Commit 9a508c6 1 parent 5544294 commit 9a508c6 Copy full SHA for 9a508c6
File tree 2 files changed +58
-10
lines changed
2 files changed +58
-10
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
+ import { Link } from 'gatsby'
2
3
import './style.scss'
4
+ import '../../assets/fonts/fontello-41f8de9d/css/fontello.css'
3
5
4
6
class Footer extends React . Component {
5
7
render ( ) {
6
8
return (
7
9
< 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 >
16
24
</ div >
17
25
</ footer >
18
26
)
Original file line number Diff line number Diff line change 4
4
.footer {
5
5
background-color : #F8F8F8 ;
6
6
border-top : 1px solid #E7E7E7 ;
7
- text-align : center ;
8
7
padding-top : 10px ;
9
8
padding-bottom : 30px ;
10
9
left : 0 ;
11
10
bottom : 0 ;
12
11
height : 30px ;
13
12
width : 100% ;
14
13
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 {
16
28
font-size : 0.8rem ;
17
29
}
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
+ }
18
58
}
You can’t perform that action at this time.
0 commit comments