Skip to content

Commit e1711c9

Browse files
committed
feat(footer): add Fediverse link and improve social icons layout
1 parent db2d9c4 commit e1711c9

File tree

2 files changed

+43
-12
lines changed

2 files changed

+43
-12
lines changed

website/app-templates/smarty/footer.tpl

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,30 @@
2323
{t escape=no url={'hall_of_fame'|alias}}Designed with <abbr title="love">💗</abbr> by <a id="footer-team" href="%1">The GeoKrety Team</a>{/t}
2424
</p>
2525
<ul class="social_footer_ul text-center">
26-
<li><a id="footer-facebook" href="https://www.facebook.com/groups/1624761011150615/about/">{fa icon="facebook"}</a></li>
27-
<li><a id="footer-twitter" href="https://twitter.com/geokrety">{fa icon="twitter"}</a></li>
28-
<li><a id="footer-instagram" href="https://www.instagram.com/explore/tags/geokrety/">{fa icon="instagram"}</a></li>
26+
<li>
27+
<a id="footer-facebook" href="https://www.facebook.com/groups/1624761011150615/about/" target="_blank" rel="noopener" title="{t}Join the GeoKrety community on Facebook{/t}">
28+
{fa icon="facebook"}
29+
<span class="sr-only">{t}Facebook{/t}</span>
30+
</a>
31+
</li>
32+
<li>
33+
<a id="footer-twitter" href="https://twitter.com/geokrety" target="_blank" rel="noopener" title="{t}Follow GeoKrety on X (Twitter){/t}">
34+
{fa icon="twitter"}
35+
<span class="sr-only">{t}X (Twitter){/t}</span>
36+
</a>
37+
</li>
38+
<li>
39+
<a id="footer-instagram" href="https://www.instagram.com/explore/tags/geokrety/" target="_blank" rel="noopener" title="{t}Explore GeoKrety on Instagram{/t}">
40+
{fa icon="instagram"}
41+
<span class="sr-only">{t}Instagram{/t}</span>
42+
</a>
43+
</li>
44+
<li>
45+
<a id="footer-fediverse" href="{GK_SITE_FEDIVERSE_URL}" rel="me noopener" target="_blank" title="{t}Join us on the Fediverse{/t}">
46+
{fa icon="rss"}
47+
<span class="sr-only">{t}Fediverse{/t}</span>
48+
</a>
49+
</li>
2950
</ul>
3051
<small class="pull-right">
3152
{include file='elements/version.tpl'}

website/public/app-ui/css/footer.scss

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,38 @@ body > {
2525
}
2626

2727
.social_footer_ul {
28-
display: table;
28+
display: flex;
29+
justify-content: center;
30+
align-items: center;
31+
gap: 24px;
2932
margin: 15px auto 0;
3033
padding: 0;
3134
list-style-type: none;
3235
}
3336

3437
.social_footer_ul li {
35-
padding-left: 20px;
36-
padding-right: 20px;
37-
padding-top: 10px;
38-
float: left;
38+
display: flex;
39+
align-items: center;
3940
}
4041

4142
.social_footer_ul li a {
43+
display: flex;
44+
align-items: center;
45+
justify-content: center;
46+
width: 44px;
47+
height: 44px;
4248
color: #23527c;
4349
border: 1px solid #23527c;
44-
padding: 8px;
4550
border-radius: 50%;
51+
transition: background-color 0.2s ease, color 0.2s ease;
52+
}
53+
54+
.social_footer_ul li a:hover,
55+
.social_footer_ul li a:focus {
56+
background-color: rgba(35, 82, 124, 0.1);
57+
color: #23527c;
4658
}
4759

4860
.social_footer_ul li i {
49-
width: 20px;
50-
height: 20px;
51-
text-align: center;
61+
font-size: 18px;
5262
}

0 commit comments

Comments
 (0)