From 0275455662847d71eaddbe74c38860172fdcf0ec Mon Sep 17 00:00:00 2001 From: Yasamato Date: Thu, 23 May 2024 12:35:41 +0200 Subject: [PATCH] Add darkmode --- app/[lng]/conference/2023/page.tsx | 2 +- app/[lng]/layout.tsx | 20 +++++++++++++------- components/layout/BVSRFooter.tsx | 2 +- components/layout/BVSRNavbar.tsx | 10 ++++++---- components/members/MemberCard.tsx | 10 +++++++--- components/members/SponsorCard.tsx | 8 +++++--- 6 files changed, 33 insertions(+), 19 deletions(-) diff --git a/app/[lng]/conference/2023/page.tsx b/app/[lng]/conference/2023/page.tsx index 74bf926..a9bdf10 100644 --- a/app/[lng]/conference/2023/page.tsx +++ b/app/[lng]/conference/2023/page.tsx @@ -274,7 +274,7 @@ export default function Conference2023({ } return ( -
+

Ausblick Konferenz 2023

diff --git a/app/[lng]/layout.tsx b/app/[lng]/layout.tsx index a7a5682..75eb7c8 100644 --- a/app/[lng]/layout.tsx +++ b/app/[lng]/layout.tsx @@ -1,6 +1,7 @@ import { languages } from "../i18n/settings"; import BVSRFooter from "../../components/layout/BVSRFooter"; import BVSRNavbar from "../../components/layout/BVSRNavbar"; +import { Flowbite, ThemeModeScript } from "flowbite-react"; export async function generateStaticParams() { return languages.map((lng: string) => ({ lng })); @@ -15,15 +16,20 @@ export default async function RootLayout({ }) { return ( - - + + + + + + -

- {children} -
+
+ {children} +
- - + + + ); } diff --git a/components/layout/BVSRFooter.tsx b/components/layout/BVSRFooter.tsx index 35eedfb..fe91065 100644 --- a/components/layout/BVSRFooter.tsx +++ b/components/layout/BVSRFooter.tsx @@ -11,7 +11,7 @@ export default async function BVSRFooter({ lng }: { lng: string }) { const { t } = await useTranslation(lng, "footer"); return ( -