From d003059d40fed8f7907556af8f118da2d8db6c24 Mon Sep 17 00:00:00 2001 From: SidhantDash Date: Fri, 30 May 2025 23:33:21 -0400 Subject: [PATCH] Completed Dark Mode Visual --- frontend/src/app/create/page.tsx | 6 +-- frontend/src/app/not-found.tsx | 2 +- frontend/src/app/page.tsx | 2 +- frontend/src/app/plans/[id]/page.tsx | 6 +-- frontend/src/app/plans/page.tsx | 54 ++++++++++--------- frontend/src/components/Filters.tsx | 14 ++--- .../src/components/courses/AddCourses.tsx | 8 +-- .../src/components/courses/CourseDisplay.tsx | 4 +- .../components/courses/RegisteredClass.tsx | 2 +- .../src/components/saved-plans/SavedPlan.tsx | 8 +-- .../src/components/schedules/DayClass.tsx | 44 +++++++-------- .../components/schedules/ScheduleDisplay.tsx | 10 ++-- .../src/components/schedules/WeekSchedule.tsx | 12 ++--- frontend/src/components/ui/Combobox.tsx | 8 +-- frontend/src/components/ui/DeletePlan.tsx | 4 +- frontend/tailwind.config.ts | 1 + 16 files changed, 96 insertions(+), 89 deletions(-) diff --git a/frontend/src/app/create/page.tsx b/frontend/src/app/create/page.tsx index 5927248a..5e6a1a14 100644 --- a/frontend/src/app/create/page.tsx +++ b/frontend/src/app/create/page.tsx @@ -15,9 +15,9 @@ export default function Page({ searchParams }: Props) { return (
diff --git a/frontend/src/app/not-found.tsx b/frontend/src/app/not-found.tsx index 264763e9..462c48e5 100644 --- a/frontend/src/app/not-found.tsx +++ b/frontend/src/app/not-found.tsx @@ -6,7 +6,7 @@ import Link from "next/link"; export default function NotFound() { return ( -
+

404 Page Not Found

diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 9be1e396..7918a142 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -54,7 +54,7 @@ export default function Home() {
{/* Ready and Start Now Button */}
-

+

Ready?

{/* Schedule display container */}
diff --git a/frontend/src/app/plans/page.tsx b/frontend/src/app/plans/page.tsx index 5cba7dec..88e4dfda 100644 --- a/frontend/src/app/plans/page.tsx +++ b/frontend/src/app/plans/page.tsx @@ -41,7 +41,7 @@ export default function MyPlans() { }; return ( -
+
@@ -52,7 +52,7 @@ export default function MyPlans() { {savedPlans.length === 0 && ( // if savedPlans array is empty: direct user to the schedule builder -
+

You don't have any saved plans yet.{" "} @@ -66,29 +66,33 @@ export default function MyPlans() {

)} -
- {savedPlans - .toSorted((a, b) => (a.pinned !== b.pinned ? (a.pinned ? -1 : 1) : 0)) - .map((plan) => ( - - pinPlan(plan.id)} - onDelete={() => confirmDeletePlan(plan.title)} - /> - - ))} -
+ {savedPlans.length !== 0 && ( +
+ {savedPlans + .toSorted((a, b) => + a.pinned !== b.pinned ? (a.pinned ? -1 : 1) : 0, + ) + .map((plan) => ( + + pinPlan(plan.id)} + onDelete={() => confirmDeletePlan(plan.title)} + /> + + ))} +
+ )} {planToDelete && ( (18); return ( -
+

Filters

@@ -104,9 +104,9 @@ export default function Filters() {
-