From be01fd2faaad2feebdb31f7a813a636d93356db8 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Sat, 14 Nov 2020 14:38:35 -0500 Subject: Add alert level and clean up colors --- src/History.js | 4 ++-- src/MainPage.js | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/History.js b/src/History.js index c559d83..6b42460 100644 --- a/src/History.js +++ b/src/History.js @@ -32,7 +32,7 @@ const History = (props) => { margin={{ top: 15, right: 30, left: 20, bottom: 5 }} data={data} > - + { if (active) { return ( -
+

{DateTime.fromSeconds(label).toLocaleString()}

{payload[0].value}

diff --git a/src/MainPage.js b/src/MainPage.js index 82cb196..cb83078 100644 --- a/src/MainPage.js +++ b/src/MainPage.js @@ -7,6 +7,10 @@ const MainPage = (props) => { return ( <> +

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

+

Total Positive Cases Since August 19 (First Day of Classes)

-- cgit v1.2.3