-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainLayout.tsx
48 lines (44 loc) · 1.28 KB
/
MainLayout.tsx
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
45
46
47
48
import { FC, ReactNode } from "react";
import Head from 'next/head'
import {Box, Center, Spacer, Stack} from '@chakra-ui/react'
import NavBar from './NavBar'
import styles from '../styles/Home.module.css'
const MainLayout: FC<{children: ReactNode}> = ({children}) => {
return (
<div className={styles.container}>
<Head>
<title>Treasure Hunters</title>
<meta name="The NFT Collection of Treasures" />
<link rel="icon" href="/favicon.ico" />
</Head>
<Box
w="full"
h="calc(100vh)"
bgImage={"url(/home-background.png)"}
backgroundPosition="center"
>
<Stack w="full" h="calc(100vh)" justify="center">
<NavBar />
<Spacer/>
{/** If connected, the second view, otherwise the first */}
<Center>
{children}
</Center>
<Spacer/>
<Center>
<Box marginBottom={4} color="white">
<a
href="https://twitter.com/dobleuber"
target="_blank"
rel="noopener noreferrer"
>
build for @dobleuber
</a>
</Box>
</Center>
</Stack>
</Box>
</div>
)
}
export default MainLayout