Template
- Set up next-themes with a light/dark toggle in the header and move all sections onto theme tokens; dark mode stays pure black - Replace the hero terminal line with the AI Elements Snippet component - Restructure components into layout/, sections/, and shared/ with site-wide config in lib/site.ts Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
32 lines
834 B
TypeScript
32 lines
834 B
TypeScript
import type { Metadata } from 'next';
|
|
|
|
import { ThemeProvider } from '@/components/layout/theme-provider';
|
|
import { siteConfig } from '@/lib/site';
|
|
import './globals.css';
|
|
|
|
export const metadata: Metadata = {
|
|
title: siteConfig.title,
|
|
description: siteConfig.description,
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning className="h-full antialiased">
|
|
<body className="min-h-full flex flex-col bg-background text-foreground font-sans selection:bg-foreground selection:text-background">
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="dark"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
{children}
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|