website-2/pages/index.tsx
2022-04-19 20:49:23 +10:00

20 lines
531 B
TypeScript

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>
)
}
export default Home