mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-19 03:16:21 +00:00
feat(navbar) a navbar with theme switcher
This commit is contained in:
1 parent
65e7c101ac
commit
d26d45c65a
7 files changed
+139
-11
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user