Skip to content

Commit f306f4f

Browse files
committed
Twitch icon added
1 parent b38c7f7 commit f306f4f

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

components/footer/Footer.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import IconFacebook from '../../public/icons/facebook'
1212
import IconYouTube from '../../public/icons/youtube'
1313
import IconLinkedIn from '../../public/icons/linkedin'
1414
import IconGitHub from '../../public/icons/github'
15+
import IconTwitch from '../../public/icons/twitch'
1516

1617
const Footer = () => {
1718
const { pathname } = useRouter()
@@ -71,6 +72,17 @@ const Footer = () => {
7172
<IconYouTube />
7273
</span>
7374
</a>
75+
<a
76+
className="footer__button"
77+
href={getLiteral('footer:twitch-url')}
78+
target="_blank"
79+
rel="noreferrer"
80+
aria-label={getLiteral('footer:twitch-label')}
81+
>
82+
<span aria-hidden="true">
83+
<IconTwitch />
84+
</span>
85+
</a>
7486
<a
7587
className="footer__button"
7688
href={getLiteral('footer:linkedin-url')}

content/commons.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
"footer:linkedin-url": "https://www.linkedin.com/company/github",
4343
"footer:github-label": "Follow us on GitHub",
4444
"footer:github-url": "https://github.com/github/maintainermonth",
45+
"footer:twitch-label": "Follow us on Twitch",
46+
"footer:twitch-url": "https://www.twitch.tv/github",
4547

4648
"hero:image-description": "Illustration by Ariel Davis, of a surreal geometric assortment of hands and shapes implying collaboration",
4749

public/icons/twitch.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const IconTwitch = () => {
2+
return (
3+
<svg className="icon-twitch" xmlns="http://www.w3.org/2000/svg"
4+
viewBox="0 0 2400 2800" width="20" height="20" fill="none">
5+
<g>
6+
<g id="Layer_1-2">
7+
<path d="M500,0L0,500v1800h600v500l500-500h400l900-900V0H500z M2200,1300l-400,400h-400l-350,350v-350H600V200h1600
8+
V1300z" fill="white"/>
9+
<rect x="1700" y="550" class="st0" width="200" height="600" fill="white" />
10+
<rect x="1150" y="550" class="st0" width="200" height="600" fill="white" />
11+
</g>
12+
</g>
13+
</svg>
14+
15+
)
16+
}
17+
18+
export default IconTwitch

0 commit comments

Comments
 (0)