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

+9
View File
@@ -0,0 +1,9 @@
import React from 'react';
function About() {
return (
<div></div>
);
}
export default About;
+9
View File
@@ -0,0 +1,9 @@
import React from 'react';
function Blog() {
return (
<div></div>
);
}
export default Blog;
+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>
+1 -3
View File
@@ -1,9 +1,7 @@
import ThemeSwitcher from '@/components/ThemeSwitcher';
export default function Home() {
return (
<main>
<ThemeSwitcher />
{/*<ThemeSwitcher />*/ }
</main>
);
}