forked from reservoirprotocol/marketplace-v2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFooter.tsx
196 lines (186 loc) · 4.72 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
import { FC } from 'react'
import { Box, Text, Flex, Anchor, Button } from './primitives'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import {faDiscord, faTelegram, faTelegramPlane, faXTwitter} from '@fortawesome/free-brands-svg-icons'
import {IconProp} from "@fortawesome/fontawesome-svg-core";
import React from 'react';
type SectionTitleProps = {
title: string
}
const SectionTitle: FC<SectionTitleProps> = ({ title }) => (
<Text style="subtitle1" css={{ color: '$gray12', mb: 8 }}>
{title}
</Text>
)
type SectionLinkProps = {
name: string
href: string
}
const SectionLink: FC<SectionLinkProps> = ({ name, href }) => (
<Anchor
target="_blank"
rel="noopener noreferrer"
href={href}
weight="medium"
css={{ fontSize: 14, mt: 16 }}
>
{name}
</Anchor>
)
const resourcesSectionLinks = [
{
name: 'Medium',
href: 'https://medium.com/@nftearth',
},
{
name: 'CoinGecko',
href: 'https://www.coingecko.com/en/coins/nftearth',
},
{
name: 'CoinMarketCap',
href: 'https://coinmarketcap.com/currencies/nftearth',
},
{
name: 'Contact: [email protected]',
href: 'mailto:[email protected]',
},
]
const developerSectionLinks = [
{
name: 'Docs',
href: 'https://docs.nftearth.exchange',
},
{
name: 'GitHub',
href: 'https://github.com/NFTEarth',
},
{
name: 'Brand Assets',
href: 'https://docs.nftearth.exchange/resources/brand-assets',
},
]
const companySectionLinks = [
{
name: 'Governance',
href: 'https://snapshot.org/#/nftearthl2.eth',
},
{
name: 'Governance Discussion',
href: 'https://discord.com/channels/1062256160264171520/1063532288866005043',
},
{
name: 'Terms',
href: '/terms',
},
{
name: 'Privacy',
href: '/privacy',
},
]
export const Footer = () => {
return (
<Flex
justify="between"
css={{
borderTop: '1px solid #A879FF',
borderStyle: 'solid',
pt: '$5',
flexDirection: 'column',
alignItems: 'flex-start',
gap: 36,
'@bp600': {
flexDirection: 'row',
gap: 0,
},
}}
>
<Flex css={{ gap: 40, '@bp600': { gap: 136 }, flexWrap: 'wrap' }}>
<Flex direction="column">
<SectionTitle title="Developers" />
{developerSectionLinks.map((props) => (
<SectionLink key={props.name} {...props} />
))}
</Flex>
<Flex direction="column">
<SectionTitle title="Protocol" />
{companySectionLinks.map((props) => (
<SectionLink key={props.name} {...props} />
))}
</Flex>
<Flex direction="column">
<Flex direction="column">
<SectionTitle title="Resources" />
{resourcesSectionLinks.map((props) => (
<SectionLink key={props.name} {...props} />
))}
</Flex>
</Flex>
</Flex>
<Flex
direction="column"
css={{ alignItems: 'flex-start', '@bp600': { alignItems: 'flex-end' } }}
>
<SectionTitle title="Community" />
<Flex css={{ gap: '$4', mt: 16 }}>
<a
target="_blank"
rel="noopener noreferrer"
href="https://x.com/NFTEarth_L2"
aria-label="X"
>
<Button
size="xs"
color="gray3"
css={{
'&:hover': {
background: '$gray8',
},
}}
aria-label="X"
>
<FontAwesomeIcon icon={faXTwitter} width={14} height={14} />
</Button>
</a>
<a
target="_blank"
rel="noopener noreferrer"
href="https://discord.gg/56a7u3wDkX"
aria-label="Discord"
>
<Button
size="xs"
color="gray3"
css={{
'&:hover': {
background: '$gray8',
},
}}
aria-label="Discord"
>
<FontAwesomeIcon icon={faDiscord} width={14} height={14} />
</Button>
</a>
<a
target="_blank"
rel="noopener noreferrer"
href="https://t.me/nftearth_community"
aria-label="Discord"
>
<Button
size="xs"
color="gray3"
css={{
'&:hover': {
background: '$gray8',
},
}}
aria-label="Telegram"
>
<FontAwesomeIcon icon={faTelegramPlane} width={14} height={14} />
</Button>
</a>
</Flex>
</Flex>
</Flex>
)
}