mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 18:36: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
@@ -0,0 +1,9 @@
|
||||
import React from 'react';
|
||||
|
||||
function About() {
|
||||
return (
|
||||
<div></div>
|
||||
);
|
||||
}
|
||||
|
||||
export default About;
|
||||
@@ -0,0 +1,9 @@
|
||||
import React from 'react';
|
||||
|
||||
function Blog() {
|
||||
return (
|
||||
<div></div>
|
||||
);
|
||||
}
|
||||
|
||||
export default Blog;
|
||||
@@ -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>
|
||||
|
||||
+1
-3
@@ -1,9 +1,7 @@
|
||||
import ThemeSwitcher from '@/components/ThemeSwitcher';
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<main>
|
||||
<ThemeSwitcher />
|
||||
{/*<ThemeSwitcher />*/ }
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user