Add in fixes for navbar on mobile plus toggle switch

This commit is contained in:
Nick Bland
2022-04-23 00:46:37 +10:00
parent e70001f0cd
commit 50a30a8a34
3 changed files with 66 additions and 38 deletions
+1 -3
View File
@@ -1,16 +1,14 @@
import type {NextPage} from 'next';
import NavBar from "../components/navbar";
import {useTheme} from "next-themes";
const Home: NextPage = () => {
const {theme, setTheme} = useTheme();
return (
<div className="">
<NavBar title="Home | nickbland.dev"></NavBar>
<main className="">
<h1>Test Comment</h1>
<button onClick={() => setTheme(theme === "dark" ? "light" : "dark")}>Toggle Theme</button>
</main>
</div>
)