forked from CodingTrain/thecodingtrain.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFooter.js
More file actions
234 lines (215 loc) Β· 6.48 KB
/
Footer.js
File metadata and controls
234 lines (215 loc) Β· 6.48 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
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
import React from 'react';
import { Link } from 'gatsby';
import { useIsFirstRender } from '../hooks';
import cn from 'classnames';
import * as css from './Footer.module.css';
import Logo from '../images/logo.mini.svg';
import {
FaGithub,
FaTwitch,
FaTwitter,
FaDiscord,
FaYoutube,
FaInstagram
} from 'react-icons/fa6';
import { IoStarSharp } from 'react-icons/io5';
import { cols } from '../styles/styles.module.css';
const externalLink = {
target: '_blank',
rel: 'noopener noreferrer'
};
const Footer = () => {
const isFirstRender = useIsFirstRender();
const currentYear = isFirstRender ? undefined : new Date().getFullYear();
return (
<footer className={cn(cols, css.root)}>
<div className={css.logoMobile}>
<Logo width={250} />
</div>
<div className={cn(css.box, css.trainBox)}>
<div className={css.logo}>
<Logo width={250} />
</div>
<div className={css.train}>
<img
src="/images/train.mini.svg"
width={371}
height={150}
alt="The Coding Train illustration"
/>
</div>
</div>
<nav className={cn(css.box)} aria-labelledby="cafe-car-navigation">
<h3 id="cafe-car-navigation">
<a href="/discord">The Cafe Car!</a>
</h3>
<div className={css.action}>
<p>
Join the Coding Train Discord to chat with the community and get
help with your code from the Station Managers.
</p>
<a className={css.cta} href="/discord">
Join Discord now
</a>
</div>
</nav>
<nav
className={cn(css.box)}
aria-labelledby="passenger-showcase-navigation">
<h3 id="passenger-showcase-navigation">
<Link to="/showcase">Passenger Showcase!</Link>
</h3>
<div className={css.action}>
<p>
What have you been inspired to make watching The Coding Train? Share
your work and have it featured on this site!
</p>
<Link className={css.cta} to="/guides/passenger-showcase-guide/">
Learn how to submit your work
</Link>
</div>
</nav>
<nav className={css.socialLinks} aria-labelledby="socials-navigation">
<h3 className={css.title} id="socials-navigation">
Follow us!
</h3>
<ul>
<li>
<a
href="https://www.youtube.com/c/TheCodingTrain/"
aria-label="Youtube">
<FaYoutube size={30} />
<span>Youtube</span>
</a>
</li>
<li>
<a
href="https://www.twitch.tv/codingtrainchoochoo"
aria-label="Twitch">
<FaTwitch size={30} />
<span>Twitch</span>
</a>
</li>
<li>
<a href="https://nebula.tv/codingtrain" aria-label="Nebula">
<IoStarSharp size={30} style={{ transform: 'scaleY(-1)' }} />
<span>Nebula</span>
</a>
</li>
<li>
<a href="https://twitter.com/thecodingtrain" aria-label="Twitter">
<FaTwitter size={30} />
<span>Twitter</span>
</a>
</li>
<li>
<a
href="https://www.instagram.com/the.coding.train/"
aria-label="Instagram">
<FaInstagram size={30} />
<span>Instagram</span>
</a>
</li>
<li>
<a href="/discord" aria-label="Discord">
<FaDiscord size={30} />
<span>Discord</span>
</a>
</li>
<li>
<a href="https://github.com/CodingTrain" aria-label="GitHub">
<FaGithub size={30} />
<span>GitHub</span>
</a>
</li>
</ul>
</nav>
<nav className={css.navBox}>
<ul>
<li className={css.title}>
<Link to="/guides/getting-started">Getting started</Link>
</li>
<li>
<Link to="/guides/getting-started"> Guide</Link>
</li>
<li>
<Link to="/faq">FAQs</Link>
</li>
<li className={css.spacer} />
<li className={css.bold}>
<Link to="/about">About</Link>
</li>
<li className={css.bold}>
<a
href="https://store.nebula.tv/collections/the-coding-train"
{...externalLink}>
Shop
</a>
</li>
</ul>
<ul>
<li className={css.title}>Videos</li>
<li>
<Link to="/tracks">Tracks</Link>
</li>
<li>
<Link to="/challenges">Challenges</Link>
</li>
</ul>
<ul>
<li className={css.title}>Passengers</li>
<li>
<Link to="/showcase">Showcase</Link>
</li>
<li>
<a href="/discord">Discord</a>
</li>
<li>
<a href="https://github.com/CodingTrain">GitHub</a>
</li>
</ul>
</nav>
<nav
className={cn(css.box, css.bottomBox)}
aria-labelledby="support-navigation">
<h3 id="support-navigation">
<Link to="#">Support the Coding Train!</Link>
</h3>
<div className={css.action}>
<p>
You can support the Coding Train by becoming a{' '}
<a
href="https://www.youtube.com/thecodingtrain/join"
{...externalLink}>
YouTube Member
</a>
,{' '}
<a href="https://www.patreon.com/codingtrain" {...externalLink}>
Patreon Supporter
</a>
, or{' '}
<a href="https://github.com/sponsors/codingtrain" {...externalLink}>
GitHub Sponsor
</a>
! For questions about rewards and perks, write us an{' '}
<a href="mailto:help@thecodingtrain.com" {...externalLink}>
email
</a>
.
</p>
</div>
</nav>
<div className={css.copyright}>
<span>
2016-{currentYear} The Coding Train. All rights reserved. Built in
collaboration with{' '}
<a href="https://designsystems.international/" {...externalLink}>
Design System International
</a>
.
</span>
</div>
</footer>
);
};
export default Footer;