feat(navbar) a navbar with theme switcher

This commit is contained in:
lumither committed 2024-04-25 00:41:32 +08:00
1 parent 65e7c101ac
commit d26d45c65a
7 files changed
+139 -11

No files matched your search

+2
View File
@@ -3,6 +3,7 @@ import { Inter } from 'next/font/google';
import './globals.css';
import React from 'react';
import { ThemeProvider as NextThemesProvider } from 'next-themes';
import Navbar from '@/components/Navbar';
const inter = Inter({ subsets: [ 'latin' ] });
@@ -20,6 +21,7 @@ export default function RootLayout({
<html lang="en" suppressHydrationWarning>
<body className={ inter.className }>
<NextThemesProvider attribute="class" defaultTheme="dark">
<Navbar />
{ children }
</NextThemesProvider>
</body>