forked from neptune-mutual-blue/nft-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Footer.jsx
118 lines (107 loc) · 4.14 KB
/
Footer.jsx
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
import { useContext } from 'react'
import { AppConstants } from '@/constants/AppConstants'
import { ThemeContext } from '@/contexts/ThemeContext'
import { Icon } from '@/elements/Icon'
import NpmDarkLogo from '../../elements/npm/npm-logo-dark-mode.svg?raw'
import NpmLightLogo from '../../elements/npm/npm-logo-light-mode.svg?raw'
import { normalizeUrl } from '../../utils/url'
import { getFooterData } from './data'
const { lists, socials } = getFooterData()
const Footer = () => {
const themeContext = useContext(ThemeContext)
return (
<footer>
<div className='inner container'>
<div className='nav container'>
<a className='logo' href={AppConstants.neptunemutualOrigin + '/?theme=' + (themeContext.dark ? 'dark' : 'light')}>
<span className='sr-only'>Neptune Mutual</span>
<span className='light only'><NpmLightLogo /></span>
<span className='dark only'><NpmDarkLogo /></span>
</a>
<nav>
{lists.map((list) => {
return (
<div key={list.title} className='list'>
<h2>{list.title}</h2>
<ul>
{list.links.map((link) => {
return (
<li key={link.href}>
{link.isExternal
? (
<a
href={
AppConstants.neptunemutualOrigin +
normalizeUrl(link.href) + '?theme=' + (themeContext.dark ? 'dark' : 'light')
}
rel='noreferrer'
>
{link.text}
</a>
)
: (
<a
href={
AppConstants.neptunemutualOrigin +
normalizeUrl(link.href)
}
>
{link.text}
</a>
)}
{link.badge && (
<div
data-color={link?.badgeColor || 'info'}
className='badge'
>
{link.badge}
</div>
)}
</li>
)
})}
</ul>
</div>
)
})}
</nav>
</div>
<div className='risk warning'>
<div className='inner container'>
<h3>Risk Warning</h3>
<p>
Trading crypto assets involves significant risk and can result in
the loss of your capital. You should not invest more than you can
afford to lose and you should ensure that you fully understand the
risks involved. Before trading, please take into consideration
your level of experience, investment objectives, and seek
independent financial advice if necessary. It is your
responsibility to ascertain whether you are permitted to use the
services of Neptune Mutual based on the legal requirements in your
country of residence.
</p>
</div>
</div>
<div className='copyright'>
<p className='text'>Neptune Mutual © 2022</p>
<div className='social'>
{socials.map((link) => {
return (
<a
key={link.href}
href={normalizeUrl(link.href)}
target='_blank'
rel='noopener noreferrer'
>
<span className='sr-only'>{link.text}</span>
<Icon size='xl' variant={link.icon} />
</a>
)
})}
</div>
</div>
</div>
</footer>
)
}
export { Footer }