Added Basic Darkmode and Fixed Small Bugs

This commit is contained in:
Ahmad 2025-01-13 19:12:06 -05:00
parent aacca3d141
commit 94fb5c7eb1
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
42 changed files with 593 additions and 72 deletions

View file

@ -5,6 +5,7 @@ import type { Metadata } from 'next';
import './globals.css';
import { siteConfig } from '@/config/site';
import { ThemeProvider } from '@/components/theme-provider';
const inter = Inter({ subsets: ['latin'] });
@ -28,10 +29,17 @@ export default function RootLayout({
children: React.ReactNode;
}) {
return (
<html lang='en'>
<html lang='en' suppressHydrationWarning>
<body className={inter.className}>
<SpeedInsights />
{children}
<ThemeProvider
attribute='class'
defaultTheme='system'
enableSystem
disableTransitionOnChange
>
{children}
</ThemeProvider>
<Analytics />
</body>
</html>