File tree Expand file tree Collapse file tree 3 files changed +466
-1
lines changed Expand file tree Collapse file tree 3 files changed +466
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { Box , Container , Flex , Text } from '@chakra-ui/react'
2
+
3
+ import NavLink from '../components/Link'
4
+
5
+ const Links = [
6
+ { url : '/about' , name : 'About' } ,
7
+ { url : '/guide' , name : 'User guide' } ,
8
+ { url : '/developers' , name : 'Developers' } ,
9
+ { url : '/privacy' , name : 'Privacy Policy' } ,
10
+ ]
11
+
12
+ export default function PageFooter ( ) {
13
+ return (
14
+ < Box bg = 'brand.700' color = 'white' as = 'footer' >
15
+ < Container
16
+ color = 'white'
17
+ maxW = 'container.xl'
18
+ position = 'relative'
19
+ display = 'flex'
20
+ justifyContent = { [ 'center' , null , 'space-between' ] }
21
+ flexDirection = { [ 'column' , null , 'row' ] }
22
+ >
23
+ < Flex
24
+ as = 'nav'
25
+ alignItems = { 'center' }
26
+ gap = { [ 0 , null , 8 ] }
27
+ flexDirection = { [ 'column' , null , 'row' ] }
28
+ >
29
+ < Text color = 'white' fontSize = 'xs' fontFamily = 'mono' >
30
+ osm_teams
31
+ </ Text >
32
+ { Links . map ( ( link ) => (
33
+ < NavLink key = { link . url } href = { link . url } passHref color = 'white' >
34
+ < Text color = 'white' fontSize = 'xs' textTransform = 'uppercase' >
35
+ { link . name }
36
+ </ Text >
37
+ </ NavLink >
38
+ ) ) }
39
+ </ Flex >
40
+ < Text
41
+ color = 'white'
42
+ fontSize = 'xs'
43
+ fontFamily = 'mono'
44
+ lineHeight = '2rem'
45
+ textAlign = 'center'
46
+ >
47
+ < a href = 'https://developmentseed.org' style = { { color : 'white' } } >
48
+ © Development Seed { new Date ( ) . getFullYear ( ) }
49
+ </ a >
50
+ </ Text >
51
+ </ Container >
52
+ </ Box >
53
+ )
54
+ }
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { SessionProvider } from 'next-auth/react'
13
13
14
14
import theme from '../styles/theme'
15
15
import PageHeader from '../components/page-header'
16
+ import PageFooter from '../components/page-footer'
16
17
import ErrorBoundary from '../components/error-boundary'
17
18
const BASE_PATH = process . env . BASE_PATH || ''
18
19
@@ -31,7 +32,7 @@ export default function App({
31
32
< Box
32
33
display = 'grid'
33
34
position = 'relative'
34
- gridTemplateRows = { '4rem 1fr' }
35
+ gridTemplateRows = { '4rem 1fr auto ' }
35
36
minHeight = '100vh'
36
37
margin = '0'
37
38
padding = '0'
@@ -40,6 +41,7 @@ export default function App({
40
41
< ErrorBoundary >
41
42
< Component { ...pageProps } />
42
43
</ ErrorBoundary >
44
+ < PageFooter />
43
45
</ Box >
44
46
< ToastContainer position = 'bottom-right' />
45
47
</ SessionProvider >
You can’t perform that action at this time.
0 commit comments