[dyad] Added a footer and theme switcher - wrote 6 file(s), deleted 1 file(s)

This commit is contained in:
[dyad]
2026-01-20 12:00:18 +01:00
parent 3f4cd7443c
commit e978708456
7 changed files with 60 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { ThemeProvider } from "@/components/theme-provider";
const geistSans = Geist({
variable: "--font-geist-sans",
@@ -23,12 +24,19 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html lang="en">
<html lang="en" suppressHydrationWarning>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
{children}
</ThemeProvider>
</body>
</html>
);
}
}

View File

@@ -1,4 +1,4 @@
import { MadeWithDyad } from "@/components/made-with-dyad";
import { Footer } from "@/components/footer";
import { MetaForm } from "@/components/meta-form";
export default function Home() {
@@ -15,7 +15,7 @@ export default function Home() {
</div>
<MetaForm />
</main>
<MadeWithDyad />
<Footer />
</div>
);
}