Skip to content

Commit 9a508c6

Browse files
committed
Add an rss icon/link on the right side of the footer
1 parent 5544294 commit 9a508c6

File tree

2 files changed

+58
-10
lines changed

2 files changed

+58
-10
lines changed

src/components/Footer/index.jsx

+16-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
import React from 'react'
2+
import { Link } from 'gatsby'
23
import './style.scss'
4+
import '../../assets/fonts/fontello-41f8de9d/css/fontello.css'
35

46
class Footer extends React.Component {
57
render() {
68
return (
79
<footer className="footer">
8-
{`Made with ❤️`}
9-
<br/>
10-
<div className="footer-links">
11-
<a href="https://www.gatsbyjs.org/" target="_blank" rel="noopener noreferrer">Gatsby</a>
12-
{` + `}
13-
<a href="https://github.com/" target="_blank" rel="noopener noreferrer">GitHub</a>
14-
{` + `}
15-
<a href="https://www.netlify.com/" target="_blank" rel="noopener noreferrer">Netlify</a>
10+
<div className="footer__center">
11+
{`Made with ❤️`}
12+
<div className="footer__links">
13+
<a href="https://www.gatsbyjs.org/" target="_blank" rel="noopener noreferrer">Gatsby</a>
14+
{` + `}
15+
<a href="https://github.com/" target="_blank" rel="noopener noreferrer">GitHub</a>
16+
{` + `}
17+
<a href="https://www.netlify.com/" target="_blank" rel="noopener noreferrer">Netlify</a>
18+
</div>
19+
</div>
20+
<div className="footer__right">
21+
<a className="footer__feed" href="/rss.xml">
22+
<i className="icon-rss" />
23+
</a>
1624
</div>
1725
</footer>
1826
)

src/components/Footer/style.scss

+42-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,55 @@
44
.footer {
55
background-color: #F8F8F8;
66
border-top: 1px solid #E7E7E7;
7-
text-align: center;
87
padding-top: 10px;
98
padding-bottom: 30px;
109
left: 0;
1110
bottom: 0;
1211
height: 30px;
1312
width: 100%;
1413
position: absolute;
15-
.footer-links {
14+
display: flex;
15+
justify-content: center;
16+
17+
&__center {
18+
text-align: center;
19+
width: 80vw;
20+
}
21+
22+
&__right {
23+
position: relative;
24+
padding-top: 13px;
25+
}
26+
27+
&__links {
1628
font-size: 0.8rem;
1729
}
30+
31+
&__feed {
32+
& i {
33+
color: lighten($color-base, 30%);
34+
}
35+
&:hover,
36+
&:focus {
37+
& i {
38+
color: $color-base;
39+
}
40+
}
41+
}
42+
}
43+
44+
@include breakpoint-sm {
45+
.footer {
46+
&__center {
47+
width: 90vw;
48+
}
49+
}
50+
}
51+
52+
@include breakpoint-md {
53+
.footer {
54+
&__center {
55+
width: 95vw;
56+
}
57+
}
1858
}

0 commit comments

Comments
 (0)