2022-04-10 20:15:15 +10:00
|
|
|
import type { NextPage } from 'next'
|
2022-04-13 13:44:23 +10:00
|
|
|
import {useTheme} from "next-themes"
|
2022-04-10 20:15:15 +10:00
|
|
|
import Head from 'next/head'
|
|
|
|
import Image from 'next/image'
|
|
|
|
|
|
|
|
const Home: NextPage = () => {
|
2022-04-13 13:44:23 +10:00
|
|
|
const {theme, setTheme} = useTheme();
|
2022-04-10 20:15:15 +10:00
|
|
|
return (
|
2022-04-13 13:44:23 +10:00
|
|
|
<div className="">
|
2022-04-10 20:15:15 +10:00
|
|
|
<Head>
|
|
|
|
<title>Create Next App</title>
|
|
|
|
<meta name="description" content="Generated by create next app" />
|
|
|
|
<link rel="icon" href="/favicon.ico" />
|
|
|
|
</Head>
|
|
|
|
|
2022-04-13 13:44:23 +10:00
|
|
|
<main className="">
|
|
|
|
<h1 className="">
|
2022-04-10 20:15:15 +10:00
|
|
|
Welcome to <a href="https://nextjs.org">Next.js!</a>
|
|
|
|
</h1>
|
|
|
|
|
2022-04-13 13:44:23 +10:00
|
|
|
<p className="">
|
2022-04-10 20:15:15 +10:00
|
|
|
Get started by editing{' '}
|
2022-04-13 13:44:23 +10:00
|
|
|
<code className="">pages/index.tsx</code>
|
2022-04-10 20:15:15 +10:00
|
|
|
</p>
|
|
|
|
|
2022-04-13 13:44:23 +10:00
|
|
|
<div className="">
|
|
|
|
<a href="https://nextjs.org/docs" className="">
|
2022-04-10 20:15:15 +10:00
|
|
|
<h2>Documentation →</h2>
|
|
|
|
<p>Find in-depth information about Next.js features and API.</p>
|
|
|
|
</a>
|
|
|
|
|
2022-04-13 13:44:23 +10:00
|
|
|
<a href="https://nextjs.org/learn" className="">
|
2022-04-10 20:15:15 +10:00
|
|
|
<h2>Learn →</h2>
|
|
|
|
<p>Learn about Next.js in an interactive course with quizzes!</p>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a
|
|
|
|
href="https://github.com/vercel/next.js/tree/canary/examples"
|
2022-04-13 13:44:23 +10:00
|
|
|
className=""
|
2022-04-10 20:15:15 +10:00
|
|
|
>
|
|
|
|
<h2>Examples →</h2>
|
|
|
|
<p>Discover and deploy boilerplate example Next.js projects.</p>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a
|
|
|
|
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
|
2022-04-13 13:44:23 +10:00
|
|
|
className=""
|
2022-04-10 20:15:15 +10:00
|
|
|
>
|
|
|
|
<h2>Deploy →</h2>
|
|
|
|
<p>
|
|
|
|
Instantly deploy your Next.js site to a public URL with Vercel.
|
|
|
|
</p>
|
|
|
|
</a>
|
|
|
|
</div>
|
2022-04-13 13:44:23 +10:00
|
|
|
<button onClick={() => setTheme(theme === "dark" ? "light" : "dark")}>Toggle Theme</button>
|
2022-04-10 20:15:15 +10:00
|
|
|
</main>
|
|
|
|
|
2022-04-13 13:44:23 +10:00
|
|
|
<footer className="">
|
2022-04-10 20:15:15 +10:00
|
|
|
<a
|
|
|
|
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
>
|
|
|
|
Powered by{' '}
|
2022-04-13 13:44:23 +10:00
|
|
|
<span className="">
|
2022-04-10 20:15:15 +10:00
|
|
|
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Home
|