-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.txt
44 lines (40 loc) · 1.12 KB
/
index.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import {
VStack,
Center,
Box,
Text,
} from '@chakra-ui/react'
import { useSession } from "next-auth/react"
import LoginModal from '@/components/UI/loginModal'
export default function Home() {
const { data: session, status } = useSession()
if (status === "loading") {
return <p>Loading...</p>
}
if (status === "unauthenticated") {
return (
<>
<VStack h='480px'>
<Center>
<Box mt={40}>
<Text sx={{fontSize: '30px'}} m={['4', '3']}>If your seeing this page you need to login, otherwise we can't show you any data related to you from you're Twitch account</Text>
<LoginModal />
</Box>
</Center>
</VStack>
</>
)
}
return (
<>
<VStack h='480px'>
<Center>
<Box mt={40}>
<Text sx={{fontSize: '30px'}} m={['4', '3']}>Thanks for checking out MatDash!</Text>
<Text sx={{fontSize: '30px'}} m={['4', '3']}>Press the button above that says "Dashboard" to view your awesome Dashboard</Text>
</Box>
</Center>
</VStack>
</>
)
}