/
Footer.tsx
157 lines (152 loc) · 5.55 KB
/
Footer.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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
import { Box, Flex, Icon, Image, Link, Text } from '@chakra-ui/react'
import { Trans, useTranslation } from 'react-i18next'
import { FaDiscord, FaGithub } from 'react-icons/fa'
import { FaXTwitter } from 'react-icons/fa6'
import vcdLogo from '/assets/logo-classic.svg'
const Footer = () => {
const { t } = useTranslation()
return (
<>
<Flex
className='site-wrapper'
py={{ base: '60px', md: '120px' }}
flexDirection={{ base: 'column', xl: 'row' }}
alignItems='start'
gap={{ base: '60px', lg: 0 }}
>
<Box flex='1 1 33%'>
<Image src={vcdLogo} w='125px' mb='24px' />
<Text fontSize='16px' lineHeight='28px' mb='24px' color='gray'>
{t('footer.footer_subtitle')}
</Text>
</Box>
<Flex
flex='1 1 67%'
flexDirection={{ base: 'column', sm2: 'row' }}
justifyContent={{ sm2: 'space-between', lg: 'space-around' }}
gap={{ base: '30px', sm2: 0 }}
mt={1}
ml={{ xl: 10 }}
>
<Flex flexDirection={{ base: 'column', xl: 'row' }} gap={{ base: '40px', xl: '90px' }}>
<Text fontWeight='bold' fontSize='18px' lineHeight='21px' mb='16px' display='none'>
{t('footer.company')}
</Text>
<Link fontWeight='bold' variant='footer' href='https://www.vocdoni.io' target='_blank'>
Vocdoni
</Link>
<Link
fontWeight='bold'
variant='footer'
href='https://www.vocdoni.io/about'
whiteSpace='nowrap'
target='_blank'
>
About Us
</Link>
<Link fontWeight='bold' variant='footer' href='https://www.vocdoni.io/contact' target='_blank'>
Contact
</Link>
<Link fontWeight='bold' variant='footer' href='https://www.vocdoni.io/api' target='_blank'>
SDK
</Link>
<Link
fontWeight='bold'
variant='footer'
href='https://developer.vocdoni.io'
whiteSpace='nowrap'
target='_blank'
>
Developer Portal
</Link>
<Link fontWeight='bold' variant='footer' href='https://blog.vocdoni.io' target='_blank'>
Blog
</Link>
</Flex>
<Flex flexDirection='column' gap='10px' display='none'>
<Text fontWeight='bold' fontSize='18px' lineHeight='21px' mb='16px'>
{t('footer.uses_cases')}
</Text>
<Link variant='footer'>{t('footer.uses_cases1')}</Link>
<Link variant='footer'>{t('footer.uses_cases2')}</Link>
<Link variant='footer'>{t('footer.uses_cases3')}</Link>
<Link variant='footer'>{t('footer.uses_cases4')}</Link>
<Link variant='footer'>{t('footer.uses_cases5')}</Link>
</Flex>
<Flex flexDirection='column' gap='10px' display='none'>
<Text fontWeight='bold' fontSize='18px' lineHeight='21px' mb='16px'>
{t('footer.demo')}
</Text>
<Link variant='footer'>{t('footer.demo1')}</Link>
<Link variant='footer'>{t('footer.demo2')}</Link>
<Link variant='footer'>{t('footer.demo3')}</Link>
<Link variant='footer'>{t('footer.demo4')}</Link>
<Link variant='footer'>{t('footer.demo5')}</Link>
<Link variant='footer'>{t('footer.demo6')}</Link>
</Flex>
</Flex>
</Flex>
<Flex
className='site-wrapper'
flexDirection={{ base: 'column', md: 'row' }}
gap={{ base: '20px', md: '10px' }}
justifyContent='space-between'
alignItems='center'
py='24px'
borderTop='1px solid rgb(229, 229, 229)'
>
<Text as='span' color='gray' textAlign='center'>
<Trans
i18nKey='footer.terms_and_privacy'
components={{
link1: <Link href='https://aragon.org/terms-and-conditions' target='_blank' />,
link2: <Link href='https://aragon.org/privacy-policy' target='_blank' />,
}}
/>
</Text>
<Flex gap='10px'>
<Link
href='https://twitter.com/vocdoni'
target='_blank'
display='flex'
justifyContent='center'
alignItems='center'
borderRadius='sm'
minW='30px'
h='30px'
border='1px solid gray'
>
<Icon aria-label={t('link.twitter').toString()} as={FaXTwitter} w={4} h={4} cursor='pointer' color='gray' />
</Link>
<Link
href='https://chat.vocdoni.io/'
target='_blank'
display='flex'
justifyContent='center'
alignItems='center'
borderRadius='sm'
minW='30px'
h='30px'
border='1px solid gray'
>
<Icon aria-label={t('link.discord').toString()} as={FaDiscord} w={4} h={4} cursor='pointer' color='gray' />
</Link>
<Link
href='https://github.com/vocdoni'
target='_blank'
display='flex'
justifyContent='center'
alignItems='center'
borderRadius='sm'
minW='30px'
h='30px'
border='1px solid gray'
>
<Icon aria-label={t('link.github').toString()} as={FaGithub} w={4} h={4} cursor='pointer' color='gray' />
</Link>
</Flex>
</Flex>
</>
)
}
export default Footer