2021-06-24 10:48:39 +02:00
|
|
|
import Card from '../components/Card'
|
2021-06-21 12:23:41 +02:00
|
|
|
import { useSession } from 'next-auth/client'
|
2021-06-27 15:49:16 +02:00
|
|
|
import { Text } from "@chakra-ui/react"
|
2021-06-20 13:39:00 +02:00
|
|
|
|
|
|
|
export default function Home() {
|
2021-06-21 12:23:41 +02:00
|
|
|
|
|
|
|
const [session, loading] = useSession()
|
|
|
|
|
2021-06-20 13:39:00 +02:00
|
|
|
return (
|
2021-06-21 12:23:41 +02:00
|
|
|
|
|
|
|
<>
|
|
|
|
{!session && <>
|
2021-06-21 16:12:57 +02:00
|
|
|
<h1>Seems like you're not logged in. Log in to get started!</h1>
|
2021-06-21 12:23:41 +02:00
|
|
|
</>
|
|
|
|
}
|
|
|
|
{session && <>
|
2021-06-27 15:49:16 +02:00
|
|
|
<Text fontSize='4xl'>Welcome {session.user.name}!</Text>
|
2021-06-20 13:39:00 +02:00
|
|
|
<div className='grid'>
|
2021-06-24 10:48:39 +02:00
|
|
|
<Card title='commands' desc='lorem ipsum dolor sit amet' link='/controlpanel/commands'/>
|
|
|
|
<Card title='commands' desc='lorem ipsum dolor sit amet' link='/controlpanel/commands'/>
|
|
|
|
<Card title='commands' desc='lorem ipsum dolor sit amet' link='/controlpanel/commands'/>
|
|
|
|
<Card title='commands' desc='lorem ipsum dolor sit amet' link='/controlpanel/commands'/>
|
|
|
|
<Card title='commands' desc='lorem ipsum dolor sit amet' link='/controlpanel/commands'/>
|
|
|
|
<Card title='commands' desc='lorem ipsum dolor sit amet' link='/controlpanel/commands'/>
|
2021-06-20 13:39:00 +02:00
|
|
|
</div>
|
|
|
|
</>
|
2021-06-21 12:23:41 +02:00
|
|
|
}
|
|
|
|
</>
|
2021-06-20 13:39:00 +02:00
|
|
|
)
|
|
|
|
}
|