aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2022-07-11 17:34:32 -0400
committerGalen Guyer <galen@galenguyer.com>2022-07-11 17:34:32 -0400
commit73017bd8c7858724893cdd7d124a08235efe8120 (patch)
tree91cef51d8779e3260f9712274a1d40b45d486dae /src
parent935ef7d2f76cca7bc1f9840dc357de85f93a1ec2 (diff)
Update data for 2021-2022
Diffstat (limited to 'src')
-rw-r--r--src/App.jsx56
-rw-r--r--src/pages/Index.jsx39
2 files changed, 3 insertions, 92 deletions
diff --git a/src/App.jsx b/src/App.jsx
index 7f1f9c3..7398ba2 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -26,7 +26,7 @@ const App = () => {
<div className="App">
<header>
<Link to="/">
- <h1>2020-2021 RIT COVID Dashboard</h1>
+ <h1>2021-2022 RIT COVID Dashboard</h1>
</Link>
</header>
<Routes>
@@ -83,60 +83,6 @@ const App = () => {
}
></Route>
<Route
- path="/quarantineoncampus"
- element={
- <Suspense fallback={null}>
- <Graph name={"Quarantine On Campus"} response={response} dataKey={"quarantine_on_campus"} />
- </Suspense>
- }
- ></Route>
- <Route
- path="/quarantineoffcampus"
- element={
- <Suspense fallback={null}>
- <Graph
- name={"Quarantine Off Campus"}
- response={response}
- dataKey={"quarantine_off_campus"}
- />
- </Suspense>
- }
- ></Route>
-
- <Route
- path="/isolationoncampus"
- element={
- <Suspense fallback={null}>
- <Graph name={"Isolation On Campus"} response={response} dataKey={"isolation_on_campus"} />
- </Suspense>
- }
- ></Route>
- <Route
- path="/isolationoffcampus"
- element={
- <Suspense fallback={null}>
- <Graph name={"Isolation Off Campus"} response={response} dataKey={"isolation_off_campus"} />
- </Suspense>
- }
- ></Route>
- <Route
- path="/tests"
- element={
- <Suspense fallback={null}>
- <Graph name={"Tests Administered"} response={response} dataKey={"tests_administered"} />
- </Suspense>
- }
- ></Route>
- <Route
- path="/beds"
- element={
- <Suspense fallback={null}>
- <Graph name={"Quarantine/Isolation Bed Availability On-campus"} response={response} dataKey={"beds_available"} />
- </Suspense>
- }
- ></Route>
-
- <Route
exact
path="/"
element={
diff --git a/src/pages/Index.jsx b/src/pages/Index.jsx
index 78c32f0..1ae9fd1 100644
--- a/src/pages/Index.jsx
+++ b/src/pages/Index.jsx
@@ -15,12 +15,12 @@ const Index = (props) => {
<div>
<div>
<div className="Message">
- This site shows data from the 2020 Fall and 2021 Spring semesters. For the latest data, visit{" "}
+ This site shows data from the 2021 Fall and 2022 Spring semesters. For the latest data, visit{" "}
<a href="https://ritcoviddashboard.com/">ritcoviddashboard.com</a>
</div>
</div>
<div className="Section" id="total">
- <div className="Title">Total Positive Cases Since August 19 (First Day of Classes)</div>
+ <div className="Title">Total Positive Cases Since August 24 (First Day of Classes)</div>
<div className="Cards">
<Card name="Students" link="/totalstudents" latest={latest["total_students"]} />
<Card name="Staff" link="/totalstaff" latest={latest["total_staff"]} />
@@ -34,41 +34,6 @@ const Index = (props) => {
<Card name="Staff" link="/newstaff" latest={latest["new_staff"]} />
</div>
</div>
-
- <div className="Section" id="quarantine">
- <div className="Title">Number of Students in Quarantine</div>
- <p className="Tip">
- Quarantine separates and restricts the movement of people who were exposed to a contagious disease
- to see if they become sick.
- </p>
- <div className="Cards">
- <Card name="On Campus" link="/quarantineoncampus" latest={latest["quarantine_on_campus"]} />
- <Card name="Off Campus" link="/quarantineoffcampus" latest={latest["quarantine_off_campus"]} />
- </div>
- </div>
-
- <div className="Section" id="isolation">
- <div className="Title">Number of Students in Isolation</div>
- <p className="Tip">Isolation separates sick people with a contagious disease from people who are not sick.</p>
- <div className="Cards">
- <Card name="On Campus" link="/isolationoncampus" latest={latest["isolation_on_campus"]} />
- <Card name="Off Campus" link="/isolationoffcampus" latest={latest["isolation_off_campus"]} />
- </div>
- </div>
-
- <div className="Section" id="tests">
- <div className="Title">Tests</div>
- <div className="Cards">
- <Card name="Tests Administered" link="/tests" latest={latest["tests_administered"]} />
- </div>
- </div>
-
- <div className="Section" id="beds">
- <div className="Title">Quarantine/Isolation Bed Availability On-campus</div>
- <div className="Cards">
- <Card name="Beds Available" link="/beds" latest={latest["beds_available"]} suffix="%" />
- </div>
- </div>
</div>
);
};