Skip to content

Commit e255cc9

Browse files
docs: add bluesky icon to footer (#19290)
* docs: add bluesky icon to footer * fix padding of social
1 parent 5d64851 commit e255cc9

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

docs/src/_data/sites/en.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,11 @@ footer:
7373
secondary: Secondary
7474
social_icons:
7575
title: Social Media
76-
twitter: Twitter
7776
chat: Discord
7877
github: GitHub
78+
bluesky: Bluesky
7979
mastodon: Mastodon
80+
twitter: Twitter
8081
theme_switcher:
8182
title: Theme Switcher
8283
light: Light

docs/src/_data/sites/zh-hans.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ footer:
7171
secondary: 次要
7272
social_icons:
7373
title: 社交媒体
74-
twitter: Twitter
7574
chat: Discord
7675
github: GitHub
76+
bluesky: Bluesky
77+
mastodon: Mastodon
78+
twitter: Twitter
7779
theme_switcher:
7880
title: 主题切换
7981
light: 浅色

docs/src/_includes/components/social-icons.html

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
<nav aria-labelledby="eslint-social-label" class="eslint-social-icons">
22
<h2 id="eslint-social-label" hidden>{{ site.footer.social_icons.title }}</h2>
33
<ul role="list">
4-
<li>
5-
<a href="{{ links.twitter }}" rel="noopener noreferrer" target="_blank">
6-
<svg viewBox="0 0 512 512" height="25" width="25" class="c-icon" role="img" aria-label="{{ site.footer.social_icons.twitter }}" fill="currentColor">
7-
<path fill="none" d="M0 0h24v24H0z"></path><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"></path>
8-
</svg>
9-
</a>
10-
</li>
114
<li>
125
<a href="{{ links.github }}" rel="noopener noreferrer" target="_blank">
136
<svg width="25" height="24" viewBox="0 0 25 24" class="c-icon" role="img"
@@ -39,6 +32,13 @@ <h2 id="eslint-social-label" hidden>{{ site.footer.social_icons.title }}</h2>
3932

4033
</a>
4134
</li>
35+
<li>
36+
<a href="{{ links.bluesky }}" rel="me noopener noreferrer" target="_blank">
37+
<svg width="24" height="24" viewBox="0 0 64 57" class="c-icon" role="img" aria-label="{{ site.footer.social_icons.bluesky }}">
38+
<path fill="currentColor" d="M13.873 3.805C21.21 9.332 29.103 20.537 32 26.55v15.882c0-.338-.13.044-.41.867-1.512 4.456-7.418 21.847-20.923 7.944-7.111-7.32-3.819-14.64 9.125-16.85-7.405 1.264-15.73-.825-18.014-9.015C1.12 23.022 0 8.51 0 6.55 0-3.268 8.579-.182 13.873 3.805ZM50.127 3.805C42.79 9.332 34.897 20.537 32 26.55v15.882c0-.338.13.044.41.867 1.512 4.456 7.418 21.847 20.923 7.944 7.111-7.32 3.819-14.64-9.125-16.85 7.405 1.264 15.73-.825 18.014-9.015C62.88 23.022 64 8.51 64 6.55c0-9.818-8.578-6.732-13.873-2.745Z" />
39+
</svg>
40+
</a>
41+
</li>
4242
<li>
4343
<a href="{{ links.mastodon }}" rel="noopener noreferrer" target="_blank">
4444
<svg width="24" height="25" viewBox="0 0 216.4144 232.00976" class="c-icon" role="img" aria-label="{{ site.footer.social_icons.mastodon }}">
@@ -47,5 +47,12 @@ <h2 id="eslint-social-label" hidden>{{ site.footer.social_icons.title }}</h2>
4747
</svg>
4848
</a>
4949
</li>
50+
<li>
51+
<a href="{{ links.twitter }}" rel="noopener noreferrer" target="_blank">
52+
<svg viewBox="0 0 512 512" height="25" width="25" class="c-icon" role="img" aria-label="{{ site.footer.social_icons.twitter }}" fill="currentColor">
53+
<path fill="none" d="M0 0h24v24H0z"></path><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"></path>
54+
</svg>
55+
</a>
56+
</li>
5057
</ul>
5158
</nav>

docs/src/assets/scss/components/social-icons.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@
1818
padding: 1rem .75rem;
1919
}
2020
}
21+
22+
@media screen and (min-width: 800px) and (max-width: 1500px) {
23+
flex-wrap: wrap;
24+
}
2125
}
2226
}

0 commit comments

Comments
 (0)