parent
372845f6f8
commit
cbb5571e07
9 changed files with 130 additions and 33 deletions
@ -0,0 +1,31 @@ |
|||||||
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; |
||||||
|
import { faGithub, faTwitter } from '@fortawesome/free-brands-svg-icons' |
||||||
|
import { AuthorImg, FooterWrap, AuthorInfoWrap, WrittenBy, AuthorBio } from './style'; |
||||||
|
|
||||||
|
|
||||||
|
const GuideFooter = (props) => ( |
||||||
|
<FooterWrap> |
||||||
|
<AuthorImg src="/static/authors/kamranahmedse.jpeg" alt="" /> |
||||||
|
<AuthorInfoWrap> |
||||||
|
<WrittenBy>Written By</WrittenBy> |
||||||
|
<h4><a href="#">Kamran Ahmed</a></h4> |
||||||
|
<AuthorBio>Lead engineer at Tajawal. Created roadmap.sh. Lover of web and opensource</AuthorBio> |
||||||
|
<p className="social-links"> |
||||||
|
<a href="#"> |
||||||
|
<FontAwesomeIcon icon={ faTwitter } /> |
||||||
|
Follow on Twitter |
||||||
|
</a> |
||||||
|
<a href="#"> |
||||||
|
<FontAwesomeIcon icon={ faGithub } /> |
||||||
|
Follow on GitHub |
||||||
|
</a> |
||||||
|
</p> |
||||||
|
{ /*<span className="social-icons">*/ } |
||||||
|
{ /*<a href="#"><TwitterIcon /></a>*/ } |
||||||
|
{ /*<a href="#"><GitHubIcon /></a>*/ } |
||||||
|
{ /*</span>*/ } |
||||||
|
</AuthorInfoWrap> |
||||||
|
</FooterWrap> |
||||||
|
); |
||||||
|
|
||||||
|
export default GuideFooter; |
@ -0,0 +1,81 @@ |
|||||||
|
import styled from 'styled-components'; |
||||||
|
|
||||||
|
export const FooterWrap = styled.div` |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
padding: 20px 0 70px; |
||||||
|
margin-top: 70px; |
||||||
|
|
||||||
|
h4 { |
||||||
|
position: relative; |
||||||
|
font-size: 22px; |
||||||
|
margin: 8px 0; |
||||||
|
line-height: 17px; |
||||||
|
|
||||||
|
a { |
||||||
|
font-weight: 700; |
||||||
|
color: #101010; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.social-links { |
||||||
|
margin: 5px 0 0; |
||||||
|
|
||||||
|
a { |
||||||
|
border: 1px solid #757575; |
||||||
|
background: transparent; |
||||||
|
color: #757575; |
||||||
|
padding: 4px 10px; |
||||||
|
margin-right: 10px; |
||||||
|
border-radius: 5px; |
||||||
|
font-size: 10px; |
||||||
|
text-transform: uppercase; |
||||||
|
text-decoration: none; |
||||||
|
display: inline-flex; |
||||||
|
align-items: center; |
||||||
|
justify-content: center; |
||||||
|
|
||||||
|
&:hover { |
||||||
|
border-color: #757575; |
||||||
|
} |
||||||
|
|
||||||
|
svg { |
||||||
|
height: 16px; |
||||||
|
margin-right: 8px; |
||||||
|
fill: #757575; |
||||||
|
} |
||||||
|
}
|
||||||
|
} |
||||||
|
|
||||||
|
.author-description { |
||||||
|
margin-bottom: 14px; |
||||||
|
} |
||||||
|
`;
|
||||||
|
|
||||||
|
export const AuthorBio = styled.p` |
||||||
|
font-size: 15px; |
||||||
|
line-height: 20px; |
||||||
|
color: #757575; |
||||||
|
margin-bottom: 7px; |
||||||
|
`;
|
||||||
|
|
||||||
|
export const AuthorImg = styled.img` |
||||||
|
border-radius: 100%; |
||||||
|
height: 100px; |
||||||
|
width: 100px; |
||||||
|
border-radius: 100%; |
||||||
|
margin-right: 22px; |
||||||
|
`;
|
||||||
|
|
||||||
|
export const WrittenBy = styled.p` |
||||||
|
font-size: 11px; |
||||||
|
text-transform: uppercase; |
||||||
|
color: #757575; |
||||||
|
display: block; |
||||||
|
margin-bottom: 0; |
||||||
|
`;
|
||||||
|
export const AuthorInfoWrap = styled.div` |
||||||
|
display: flex; |
||||||
|
justify-content: center; |
||||||
|
flex-direction: column; |
||||||
|
`;
|
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 45 KiB |
Loading…
Reference in new issue