From 90a1e990b437fc928aee74b551908cc283b1e7d2 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Wed, 30 Jul 2025 05:12:55 +0200 Subject: [PATCH] Add dark mode --- app/Header.tsx | 6 +++-- app/auth/error/page.tsx | 6 ++--- app/auth/verification-success/page.tsx | 4 +-- app/complete-profile/page.tsx | 24 +++++++++--------- app/globals.css | 34 ++++++++++++++++++++++++-- app/layout.tsx | 14 +++++++---- app/learn-more/page.tsx | 10 ++++---- app/login/page.tsx | 12 ++++----- app/page.tsx | 8 +++--- app/privacy/page.tsx | 6 ++--- app/profile/page.tsx | 26 ++++++++++---------- app/profiles/ProfileFilters.tsx | 10 ++++---- app/profiles/[id]/page.tsx | 9 +++---- app/profiles/page.tsx | 17 ++++++------- app/providers.tsx | 7 ++++-- app/register/page.tsx | 18 +++++++------- app/setup/page.tsx | 6 ++--- app/terms/page.tsx | 4 +-- lib/client/LoadingSpinner.tsx | 2 +- lib/client/theme.tsx | 32 ++++++++++++++++++++++++ package-lock.json | 11 +++++++++ package.json | 1 + styles/links.modules.css | 3 +++ tailwind.config.ts | 1 + 24 files changed, 178 insertions(+), 93 deletions(-) create mode 100644 lib/client/theme.tsx create mode 100644 styles/links.modules.css diff --git a/app/Header.tsx b/app/Header.tsx index 59d218a1..b50d9dd5 100644 --- a/app/Header.tsx +++ b/app/Header.tsx @@ -2,6 +2,7 @@ import Link from "next/link"; import {useSession, signOut} from "next-auth/react"; +import ThemeToggle from "@/lib/client/theme"; export default function Header() { const {data: session} = useSession(); @@ -9,11 +10,12 @@ export default function Header() { console.log(session); return ( -
+