nyx-dashboard/pages/index.js

30 lines
996 B
JavaScript
Raw Normal View History

2021-06-20 13:39:00 +02:00
import { Typography } from '@material-ui/core'
import CardContainer from '../components/CardContainer'
import { useSession } from 'next-auth/client'
2021-06-20 13:39:00 +02:00
export default function Home() {
const [session, loading] = useSession()
2021-06-20 13:39:00 +02:00
return (
<>
{!session && <>
<h1>Seems like you&apos;re not logged in. Log in to get started!</h1>
</>
}
{session && <>
<h1>Welcome {session.user.name}!</h1>
2021-06-20 13:39:00 +02:00
<div className='grid'>
2021-06-20 15:49:56 +02:00
<CardContainer title='Commands' link='/controlpanel/commands'>Command controls</CardContainer>
<CardContainer title='Commands' link='/controlpanel/commands'>Command controls</CardContainer>
<CardContainer title='Commands' link='/controlpanel/commands'>Command controls</CardContainer>
<CardContainer title='Commands' link='/controlpanel/commands'>Command controls</CardContainer>
<CardContainer title='Commands' link='/controlpanel/commands'>Command controls</CardContainer>
2021-06-20 13:39:00 +02:00
</div>
</>
}
</>
2021-06-20 13:39:00 +02:00
)
}