From 3d509d4e7cddea64c196f66c7e3c0181582ed877 Mon Sep 17 00:00:00 2001 From: Vercin-G <97210222+Vercin-G@users.noreply.github.com> Date: Sun, 1 Oct 2023 11:05:28 -0600 Subject: [PATCH] housekeeping --- client/src/index.js | 14 +- client/src/pages/Activedutyroster.css | 12 +- client/src/pages/Activedutyroster.js | 18 +- client/src/pages/CavApps.css | 15 +- client/src/pages/CavApps.js | 29 +- client/src/pages/Layout.js | 4 +- client/src/pages/NoPage.js | 27 +- client/src/pages/Rosterstatistics.css | 467 ++++++++++++----------- client/src/pages/Rosterstatistics.js | 17 +- client/src/style/themes/7cav/adrLogo.js | 6 +- client/src/style/themes/7cav/appsLogo.js | 7 +- 11 files changed, 321 insertions(+), 295 deletions(-) diff --git a/client/src/index.js b/client/src/index.js index cb35bdb..ab0b8cd 100644 --- a/client/src/index.js +++ b/client/src/index.js @@ -6,7 +6,7 @@ import reportWebVitals from "./reportWebVitals"; import Layout from "./pages/Layout"; import CavApps from "./pages/Cavapps"; -import ActiveDutyRoster from "./pages/Activedutyroster" +import ActiveDutyRoster from "./pages/Activedutyroster"; import Statisticspage from "./pages/Rosterstatistics"; import NoPage from "./pages/NoPage"; @@ -15,9 +15,15 @@ export default function App() { }> - } /> - } /> - } /> + } /> + } + /> + } + /> } /> diff --git a/client/src/pages/Activedutyroster.css b/client/src/pages/Activedutyroster.css index f058c96..164190e 100644 --- a/client/src/pages/Activedutyroster.css +++ b/client/src/pages/Activedutyroster.css @@ -49,14 +49,17 @@ border: 0.5em solid #f3f3f3; border-top: 0.5em solid #ebc729; border-radius: 50%; - width: 8em; /* Make this larger than the GIF */ - height: 8em; /* Make this larger than the GIF */ + width: 8em; + /* Make this larger than the GIF */ + height: 8em; + /* Make this larger than the GIF */ animation: spin 2s linear infinite; position: absolute; top: 50%; left: 50%; z-index: 1; - margin: -4em 0 0 -4.5em; /* Half of width and height */ + margin: -4em 0 0 -4.5em; + /* Half of width and height */ } .p-loading-png { @@ -70,6 +73,7 @@ 0% { transform: rotate(0deg); } + 100% { transform: rotate(360deg); } @@ -235,4 +239,4 @@ a:hover { /* No idea why i have to do this stupidity. For some reason if I dont do this, this shit becomes off centered */ transform-origin: 67% 67%; -} +} \ No newline at end of file diff --git a/client/src/pages/Activedutyroster.js b/client/src/pages/Activedutyroster.js index d4cd5dc..6f70727 100644 --- a/client/src/pages/Activedutyroster.js +++ b/client/src/pages/Activedutyroster.js @@ -28,7 +28,7 @@ function ActiveDutyRoster(props) { `; // Change Page Title - document.title = props.title + document.title = props.title; // Reusable API fetching function async function fetchData(url, setFunction) { @@ -90,13 +90,13 @@ function ActiveDutyRoster(props) {
- - + +
{/* Data Age Warning */} @@ -155,4 +155,4 @@ function ActiveDutyRoster(props) { ); } -export default ActiveDutyRoster; \ No newline at end of file +export default ActiveDutyRoster; diff --git a/client/src/pages/CavApps.css b/client/src/pages/CavApps.css index f45ab59..33ff3cb 100644 --- a/client/src/pages/CavApps.css +++ b/client/src/pages/CavApps.css @@ -13,10 +13,15 @@ } - + @keyframes logoboxanim { - 50% {transform: translateY(20px);} - 100% {transform: translateY(0px);} + 50% { + transform: translateY(20px); + } + + 100% { + transform: translateY(0px); + } } @@ -32,7 +37,7 @@ color: black; text-align: center; display: inline-block; - font-family: "Roboto","Segoe UI","Times New Roman"; + font-family: "Roboto", "Segoe UI", "Times New Roman"; font-weight: bold; font-size: 12px; cursor: pointer; @@ -40,5 +45,5 @@ padding: 1em; margin-right: 0.25em; margin-left: 0.25em; - + } \ No newline at end of file diff --git a/client/src/pages/CavApps.js b/client/src/pages/CavApps.js index 57edb0a..af25985 100644 --- a/client/src/pages/CavApps.js +++ b/client/src/pages/CavApps.js @@ -1,27 +1,26 @@ import { Link } from "react-router-dom"; -import Logo from '../style/themes/7cav/appsLogo' -import './CavApps.css'; +import Logo from "../style/themes/7cav/appsLogo"; +import "./CavApps.css"; function CavApps(props) { - // Change Page Title - document.title = props.title + document.title = props.title; return ( -
-
- +
+
+
-
- - +
+ + + + + +
); -}; +} export default CavApps; - \ No newline at end of file diff --git a/client/src/pages/Layout.js b/client/src/pages/Layout.js index 0d5ad14..5cf20c4 100644 --- a/client/src/pages/Layout.js +++ b/client/src/pages/Layout.js @@ -6,9 +6,9 @@ import { Outlet } from "react-router-dom"; const Layout = () => { return ( <> - + - ) + ); }; export default Layout; diff --git a/client/src/pages/NoPage.js b/client/src/pages/NoPage.js index c5eeba8..bdb1346 100644 --- a/client/src/pages/NoPage.js +++ b/client/src/pages/NoPage.js @@ -1,15 +1,22 @@ -import '../index.css'; +import "../index.css"; const NoPage = () => { - return ( + return (
-

404 Error

-

Oh no! you have encountered a page that does not exist!

-

If you believe this is in error, please submit a ticket to S6. Otherwise, please enjoy this sick music!

-