This is not a commit

This commit is contained in:
2022-02-22 15:01:23 +01:00
parent e4478d7841
commit 2cdbe28b6e
3 changed files with 25 additions and 14 deletions

View File

@@ -3,7 +3,7 @@ import styles from "../styles/Home.module.css";
import Header from "./templates/header";
import Generator from "./templates/generator";
import Nav from "./templates/nav";
import Content from "./templates/content";
import UserTop from "./templates/userTop";
import Footer from "./templates/footer";
import { useState } from "react";
import { useSession, signIn, signOut } from "next-auth/react";
@@ -17,22 +17,14 @@ export default function Home() {
<div className={styles.container}>
<Head>
<title>Wastpol</title>
<meta name="description" content="Wastpol" />
<link rel="icon" href="/icon.png" />
</Head>
<div className="flex justify-between">
<Nav />
<div className="flex">
<h3 className="px-3 py-2 place-self-end">
Zalogowano jako {session.user.email}
</h3>
<Button onClick={() => signOut()} className="place-self-end">
Wyloguj
</Button>
</div>
<UserTop session={session} />
</div>
<main className={styles.main}>
<main className="flex flex-1 flex-col justify-center items-center p-8 mx-96 mt-24 rounded-md shadow-md transition-all duration-500 hover:shadow-xl">
<Header />
<Generator />
</main>
@@ -45,8 +37,6 @@ export default function Home() {
<div className="grid place-items-center h-screen">
<Head>
<title>Wastpol</title>
<meta name="description" content="Wastpol" />
<link rel="icon" href="/icon.png" />
</Head>
<div className="flex flex-col justify-center">
<h2 className="p-2">Nie zalogowano</h2>