-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfooter.js
More file actions
126 lines (120 loc) · 3.21 KB
/
footer.js
File metadata and controls
126 lines (120 loc) · 3.21 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import {
Box,
Button,
Container,
SimpleGrid,
Stack,
Text,
useColorModeValue,
VisuallyHidden,
VStack,
} from '@chakra-ui/react'
import { ColorModeImage } from '@/components/ColorModeImage'
import { Image, Link } from '@/components/mdx'
import { footerItems } from '@/data/footer-items'
const SocialButton = ({ children, label, href }) => {
return (
<Button
bg={useColorModeValue('blackAlpha.100', 'whiteAlpha.100')}
rounded={'full'}
w={12}
h={12}
cursor={'pointer'}
as={'a'}
href={href}
display={'inline-flex'}
alignItems={'center'}
justifyContent={'center'}
transition={'background 0.3s ease'}
_hover={{
bg: useColorModeValue('blackAlpha.200', 'whiteAlpha.200'),
}}
>
<VisuallyHidden>{label}</VisuallyHidden>
{children}
</Button>
)
}
const ListHeader = ({ children }) => {
return (
<Text fontWeight={'bold'} my={2}>
{children}
</Text>
)
}
export const Footer = () => {
return (
<Box
bg={useColorModeValue('gray.50', 'gray.900')}
color={useColorModeValue('gray.700', 'gray.200')}
as='footer'
>
<Container maxW='container.lg' my={8} centerContent>
<SimpleGrid
columns={{ base: 1, sm: 2, md: 4 }}
spacing={{ base: 2, md: 8 }}
>
<Stack spacing={6}>
<Box>
<ColorModeImage
w={32}
lightSrc={'/virtualship-assets/virtual_ship_logo.png'}
darkSrc={'/virtualship-assets/virtual_ship_logo_inverted.png'}
alt={'parcels logo'}
/>
</Box>
<Text fontSize={'sm'}>
© {new Date().getFullYear()}, Virtual Ship developers. Apache 2.0
Licensed.
</Text>
</Stack>
<Stack align={'flex-start'}>
<ListHeader>Parcels</ListHeader>
{footerItems.parcels.map((item) => {
return (
<Link
key={item.label}
href={item.href}
fontSize={'sm'}
_hover={{ color: 'blue.500' }}
>
{item.label}
</Link>
)
})}
</Stack>
<Stack align={'flex-start'}>
<ListHeader>Resources</ListHeader>
{footerItems.resources.map((item) => {
return (
<Link
key={item.label}
href={item.href}
fontSize={'sm'}
_hover={{ color: 'blue.500' }}
>
{item.label}
</Link>
)
})}
</Stack>
<Stack align={'flex-start'}>
<ListHeader>Community</ListHeader>
{footerItems.community.map((item) => {
return (
<Link
key={item.label}
href={item.href}
fontSize={'sm'}
_hover={{ color: 'blue.500' }}
>
{item.label}
</Link>
)
})}
</Stack>
</SimpleGrid>
</Container>
</Box>
)
}