feat(nav): add theme switcher

This commit is contained in:
2026-04-14 21:35:41 +02:00
parent ac258ea95b
commit f0cbc758d9
6 changed files with 380 additions and 21 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ const geistMono = Geist_Mono({
});
export const metadata: Metadata = {
title: "byHaider.",
title: "byHaider.dev",
description: "Softwareentwickler deines Vertrauens.",
};
@@ -33,7 +33,7 @@ export default function RootLayout({
lang="en" suppressHydrationWarning
className={cn("h-full", "antialiased", geistSans.variable, geistMono.variable, "font-sans", inter.variable)}
>
<body className="min-h-screen relative isolate">
<body className="min-h-screen relative isolate flex flex-col">
<ThemeProvider
attribute="class"
defaultTheme="system"
@@ -41,7 +41,7 @@ export default function RootLayout({
>
<BackgroundEffects />
<Navbar/>
<div className="relative z-10">
<div className="relative z-10 flex-1">
{children}
</div>
</ThemeProvider>
+1 -17
View File
@@ -1,22 +1,6 @@
export default function Home() {
return (
<div className="flex flex-col flex-1 h-[2000px]">
<h1 className="text-center">Test</h1>
<h1 className="text-center">Test</h1>
<h1 className="text-center">Test</h1>
<h1 className="text-center">Test</h1>
<h1 className="text-center">Test</h1>
<h1 className="text-center">Test</h1>
<h1 className="text-center">Test</h1>
<h1 className="text-center">Test</h1>
<h1 className="text-center">Test</h1>
<h1 className="text-center">Test</h1>
<h1 className="text-center">Test</h1>
<h1 className="text-center">Test</h1>
<h1 className="text-center">Test</h1>
<h1 className="text-center">Test</h1>
<h1 className="text-center">Test</h1>
<h1 className="text-center">Test</h1>
<div className="flex flex-col flex-1">
</div>
);
}