initial commit, login page

This commit is contained in:
2022-11-19 17:30:58 +01:00
commit 41b49d6306
35 changed files with 4674 additions and 0 deletions

27
src/pages/index.tsx Normal file
View File

@@ -0,0 +1,27 @@
import { type NextPage } from "next";
import Head from "next/head";
import { Button } from "../components/Button";
import { useLogoutMutation } from "../services/hooks";
const Home: NextPage = () => {
const { mutate: logout } = useLogoutMutation();
const handleLogout = () => {
logout();
};
return (
<>
<Head>
<title>Todolist</title>
<meta name="description" content="Incubator todolist" />
<link rel="icon" href="/favicon.ico" />
</Head>
<header>
<h1>Todolist</h1>
<Button onClick={handleLogout}>Logout</Button>
</header>
<main>Hello</main>
</>
);
};
export default Home;