File tree Expand file tree Collapse file tree 3 files changed +476
-1
lines changed Expand file tree Collapse file tree 3 files changed +476
-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'
1313
1414import theme from '../styles/theme'
1515import PageHeader from '../components/page-header'
16+ import PageFooter from '../components/page-footer'
1617import ErrorBoundary from '../components/error-boundary'
1718const BASE_PATH = process . env . BASE_PATH || ''
1819
@@ -31,7 +32,7 @@ export default function App({
3132 < Box
3233 display = 'grid'
3334 position = 'relative'
34- gridTemplateRows = { '4rem 1fr' }
35+ gridTemplateRows = { '4rem 1fr auto ' }
3536 minHeight = '100vh'
3637 margin = '0'
3738 padding = '0'
@@ -40,6 +41,7 @@ export default function App({
4041 < ErrorBoundary >
4142 < Component { ...pageProps } />
4243 </ ErrorBoundary >
44+ < PageFooter />
4345 </ Box >
4446 < ToastContainer position = 'bottom-right' />
4547 </ SessionProvider >
You can’t perform that action at this time.
0 commit comments