Skip to content

Commit e2f5ef1

Browse files
authored
feat: link to github (#49)
Co-authored-by: Andrey <[email protected]>
1 parent b4e79b5 commit e2f5ef1

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

src/components/Footer.astro

+20
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
---
22
import Navigation from "./Navigation.astro";
3+
import { Icon } from "astro-icon/components";
34
---
45

56
<footer>
67
<section>
78
@<a href="http://codenomnom.com" target="_blank">codenomnom</a>
89
{["🔫", "❤️", "👋"][(3 * Math.random()) | 0]}
910
<a href="/legal">cc by-sa 4.0</a>
11+
12+
<a href="https://github.com/codenomnom/quirks-mode/" target="_blank">
13+
<Icon name="github" class="github" title="github" />
14+
</a>
1015
</section>
1116
<Navigation location="footer" />
1217
</footer>
@@ -20,6 +25,21 @@ import Navigation from "./Navigation.astro";
2025
padding-top: 12px;
2126
padding-bottom: 12px;
2227

28+
section {
29+
display: flex;
30+
align-items: center;
31+
32+
a {
33+
margin-right: 4px;
34+
display: flex;
35+
align-items: center;
36+
37+
&:not(:first-of-type) {
38+
margin-left: 4px;
39+
}
40+
}
41+
}
42+
2343
@media (max-width: 486px) {
2444
flex-direction: column;
2545
flex-flow: column-reverse;

src/components/Navigation.astro

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const { location } = Astro.props;
2828
</ul>
2929

3030
<div class="icons">
31+
<!-- <Icon name="github" class="github" title="github" /> -->
3132
<Icon name="sun" class="sun" title="turn lights on" />
3233
<Icon name="moon" class="moon" title="turn lights off" />
3334
</div>
@@ -65,7 +66,11 @@ const { location } = Astro.props;
6566

6667
transition: color .2s ease;
6768

68-
&:hover {
69+
.github {
70+
margin-right: 4px;
71+
}
72+
73+
svg:hover {
6974
color: var(--color-href-hover);
7075
}
7176
}

src/icons/github.svg

+1
Loading

0 commit comments

Comments
 (0)