i think i fixed a bug...
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import Head from "next/head";
|
||||
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 Footer from "./templates/footer";
|
||||
import Header from "../templates/header";
|
||||
import Generator from "../templates/generator";
|
||||
import Nav from "../templates/nav";
|
||||
import UserTop from "../templates/userTop";
|
||||
import Footer from "../templates/footer";
|
||||
import { useState } from "react";
|
||||
import { useSession, signIn, signOut } from "next-auth/react";
|
||||
import { Button } from "evergreen-ui";
|
||||
@@ -17,26 +17,18 @@ 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-auto mt-24 rounded-md shadow-md transition-all duration-500 hover:shadow-xl">
|
||||
<Header />
|
||||
<Generator />
|
||||
</main>
|
||||
<Footer />
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user