From bd0e1a9050a823603950f020f07aa326cd141faa Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Tue, 3 Mar 2026 20:28:23 +0000 Subject: [PATCH] refactor(frontend): move stylings out of logic into centralized file --- frontend/src/components/AppLayout.tsx | 26 +--- frontend/src/components/Card.tsx | 43 ++---- frontend/src/components/EmotionalStats.tsx | 22 +-- frontend/src/components/UserModal.tsx | 23 +-- frontend/src/index.css | 27 ++++ frontend/src/pages/DatasetStatus.tsx | 7 +- frontend/src/pages/Datasets.tsx | 23 ++- frontend/src/pages/Login.tsx | 90 +++--------- frontend/src/pages/Stats.tsx | 6 +- frontend/src/pages/Upload.tsx | 27 ++-- frontend/src/styles/stats/appLayout.ts | 42 ++++++ frontend/src/styles/stats/auth.ts | 92 ++++++++++++ frontend/src/styles/stats/cards.ts | 42 ++++++ frontend/src/styles/stats/datasets.ts | 55 ++++++++ frontend/src/styles/stats/emotional.ts | 51 +++++++ frontend/src/styles/stats/feedback.ts | 34 +++++ frontend/src/styles/stats/foundations.ts | 157 +++++++++++++++++++++ frontend/src/styles/stats/modal.ts | 28 ++++ frontend/src/styles/stats/palette.ts | 26 ++++ frontend/src/styles/stats/types.ts | 3 + frontend/src/styles/stats_styling.tsx | 148 +++---------------- 21 files changed, 652 insertions(+), 320 deletions(-) create mode 100644 frontend/src/styles/stats/appLayout.ts create mode 100644 frontend/src/styles/stats/auth.ts create mode 100644 frontend/src/styles/stats/cards.ts create mode 100644 frontend/src/styles/stats/datasets.ts create mode 100644 frontend/src/styles/stats/emotional.ts create mode 100644 frontend/src/styles/stats/feedback.ts create mode 100644 frontend/src/styles/stats/foundations.ts create mode 100644 frontend/src/styles/stats/modal.ts create mode 100644 frontend/src/styles/stats/palette.ts create mode 100644 frontend/src/styles/stats/types.ts diff --git a/frontend/src/components/AppLayout.tsx b/frontend/src/components/AppLayout.tsx index 832515f..5aea6f2 100644 --- a/frontend/src/components/AppLayout.tsx +++ b/frontend/src/components/AppLayout.tsx @@ -91,36 +91,24 @@ const AppLayout = () => { }; return ( -
-
+
+
-
- +
+ Ethnograph View {isSignedIn ? `Signed in: ${getUserLabel(currentUser)}` : "Not signed in"}
-
+
-
Analytics Dashboard
-
Dataset #{datasetId ?? "-"}
+
Analytics Dashboard
+
Dataset #{datasetId ?? "-"}
-
+