From 7c3d8b98e6331169883cee2d66b7d31e7230f496 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Sat, 14 Nov 2020 13:19:23 -0500 Subject: add some fancier styling with better labels --- src/App.css | 2 ++ src/App.js | 88 +++++++++++++++++++++++++++++++++++++----------------------- src/Card.css | 4 +-- src/Card.js | 6 ++--- 4 files changed, 62 insertions(+), 38 deletions(-) (limited to 'src') diff --git a/src/App.css b/src/App.css index 0f57d9d..da16c9c 100644 --- a/src/App.css +++ b/src/App.css @@ -1,5 +1,7 @@ .App { text-align: center; + padding-bottom: 2rem; + padding-top: 1rem; } .Section { diff --git a/src/App.js b/src/App.js index 6fdf77a..734ee62 100644 --- a/src/App.js +++ b/src/App.js @@ -30,7 +30,7 @@ function App() { return (
-

RIT Covid Dashboard

+

RIT Covid Dashboard

Last Updated:{" "} {lastUpdate.toLocaleString({ @@ -41,43 +41,65 @@ function App() { minute: "2-digit", })}

-
- - +
+
+
+

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/Card.css b/src/Card.css index a9ef4ee..a4b3d2e 100644 --- a/src/Card.css +++ b/src/Card.css @@ -1,10 +1,10 @@ .Card { padding: 16px; - width: 50%; + width: 40%; } @media screen and (min-width: 768px) { .Card { - width: 20%; + width: 18%; } } diff --git a/src/Card.js b/src/Card.js index 310848d..fea3cda 100644 --- a/src/Card.js +++ b/src/Card.js @@ -7,12 +7,12 @@ const Card = (props) => { diff = "+" + diff.toString(); } return ( -
-

{props.name}

+
+

{props.name}

{props.latest} {props.suffix}{" "} - + ({diff} {props.suffix}) -- cgit v1.2.3