From 0216f8879440ce73d90a9e58cc5eac68240e9fdd Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Fri, 29 Oct 2021 12:19:15 -0400 Subject: add static data for 2020-2021 school year --- src/MainPage.js | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 src/MainPage.js (limited to 'src/MainPage.js') diff --git a/src/MainPage.js b/src/MainPage.js new file mode 100644 index 0000000..fcc2e0b --- /dev/null +++ b/src/MainPage.js @@ -0,0 +1,126 @@ +import React from "react"; +import Card from "./Card"; +import GoatCounter from "./GoatCounter"; + +const MainPage = (props) => { + const data = props.data; + const latest = data[data.length - 1]; + const prior = data[data.length - (1 + props.timeDifference)]; + + return ( + <> +

+ This site shows data from the 2020 Fall and 2021 Spring semesters. +

+
+
+

+ 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 MainPage; -- cgit v1.2.3