From 935ef7d2f76cca7bc1f9840dc357de85f93a1ec2 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Mon, 11 Jul 2022 17:10:23 -0400 Subject: Update for new dashboard frontend --- src/pages/Index.jsx | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 src/pages/Index.jsx (limited to 'src/pages/Index.jsx') diff --git a/src/pages/Index.jsx b/src/pages/Index.jsx new file mode 100644 index 0000000..78c32f0 --- /dev/null +++ b/src/pages/Index.jsx @@ -0,0 +1,76 @@ +import Card from "../components/Card"; +import "./Index.css"; + +const Index = (props) => { + const response = props.response; + if (response.loading) { + return
Loading...
; + } + + const data = response.data; + + const latest = data[data.length - 1]; + + return ( +
+
+
+ This site shows data from the 2020 Fall and 2021 Spring semesters. For the latest data, visit{" "} + ritcoviddashboard.com +
+
+
+
Total Positive Cases Since August 19 (First Day of Classes)
+
+ + +
+
+ +
+
New Positive Cases From Past 14 Days
+
+ + +
+
+ +
+
Number of Students in Quarantine
+

+ Quarantine separates and restricts the movement of people who were exposed to a contagious disease + to see if they become sick. +

+
+ + +
+
+ +
+
Number of Students in Isolation
+

Isolation separates sick people with a contagious disease from people who are not sick.

+
+ + +
+
+ +
+
Tests
+
+ +
+
+ +
+
Quarantine/Isolation Bed Availability On-campus
+
+ +
+
+
+ ); +}; + +export default Index; -- cgit v1.2.3