From 73f83293a003d4da2457919389a0ddae605e5d5d Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Sat, 14 Nov 2020 13:37:11 -0500 Subject: pop most data into MainPage for router --- src/App.js | 61 ++----------------------------------------------- src/MainPage.js | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 59 deletions(-) create mode 100644 src/MainPage.js diff --git a/src/App.js b/src/App.js index 734ee62..e456b5c 100644 --- a/src/App.js +++ b/src/App.js @@ -1,6 +1,6 @@ import useSWR from "swr"; import { DateTime } from "luxon"; -import Card from "./Card"; +import MainPage from "./MainPage"; import "./App.css"; const url = "https://rcpoller.galenguyer.com/api/v0/history"; @@ -43,64 +43,7 @@ function App() {

-
-

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. -
-
- - -
-
-
-
-

Number of Tests Administered by Student Health Center

-
- -
-
-
-
-

Quarantine/Isolation Bed Availability On-campus

-
- -
-
+ ); } diff --git a/src/MainPage.js b/src/MainPage.js new file mode 100644 index 0000000..3ce4c22 --- /dev/null +++ b/src/MainPage.js @@ -0,0 +1,71 @@ +import React from "react"; +import Card from "./Card"; + +const MainPage = (props) => { + const latest = props.latest; + const prior = props.prior; + + return ( + <> +
+

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. +
+
+ + +
+
+
+
+

Number of Tests Administered by Student Health Center

+
+ +
+
+
+
+

Quarantine/Isolation Bed Availability On-campus

+
+ +
+
+ + ); +}; + +export default MainPage; -- cgit v1.2.3