From 264e571b0ca34d24f4997c5864a43d4f475e14dc Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Wed, 13 Apr 2022 19:10:44 -0400 Subject: full version 2 re-write --- src/MainPage.js | 166 -------------------------------------------------------- 1 file changed, 166 deletions(-) delete mode 100644 src/MainPage.js (limited to 'src/MainPage.js') diff --git a/src/MainPage.js b/src/MainPage.js deleted file mode 100644 index b663521..0000000 --- a/src/MainPage.js +++ /dev/null @@ -1,166 +0,0 @@ -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)]; - // const priorPrior = data[Math.max(0, data.length - (1 + props.timeDifference * 2))]; - - // const positiveTestRate = Math.max( - // 0, - // Math.min( - // 100, - // ((latest.total_students - prior.total_students) * 100) / - // (latest.tests_administered - prior.tests_administered) - // ) - // ).toFixed(1); - // const priorPositiveTestRate = Math.max( - // 0, - // Math.min( - // 100, - // ((prior.total_students - priorPrior.total_students) * 100) / - // (prior.tests_administered - priorPrior.tests_administered) - // ) - // ).toFixed(1); - - return ( - <> - {/*

- Alert Level: {latest.alert_level.charAt(0).toUpperCase() + latest.alert_level.slice(1)} -

-
- (Prior Alert Level: {prior.alert_level.charAt(0).toUpperCase() + prior.alert_level.slice(1)}) -
-
*/} -

- This dashboard has been refreshed for the new semester. Historical data from the 2020-2021 school year is - available at 2020.ritcoviddashboard.com. Data from the Fall 2021 - semester is available at 2021.ritcoviddashboard.com. -

-
-
-

- {/* Total Positive Cases Since {props.showAllTime ? "August 19 (First Day of Classes)" : "January 1"} */} - Total Positive Cases Since January 10 (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

-
- Positive Test Rate is calculated using the difference in total cases divided by the difference in - tests administed for the selected time frame (one day or one week). The daily positive test rate - fluctuates wildly and should be taken with caution, while the weekly positive test rate is far more - stable and useful. -
-
- - -
-
-
-
-

Quarantine/Isolation Bed Availability On-campus

-
- -
-
*/} - - - ); -}; - -export default MainPage; -- cgit v1.2.3