Add guide footer
This commit is contained in:
@ -1,12 +1,28 @@
|
|||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
import { faGithub, faTwitter } from '@fortawesome/free-brands-svg-icons'
|
import { faGithub, faFacebookSquare, faTwitterSquare, faTwitter, faHackerNewsSquare, faRedditSquare } from '@fortawesome/free-brands-svg-icons'
|
||||||
import { AuthorImg, FooterWrap, AuthorInfoWrap, WrittenBy, AuthorBio } from './style';
|
import { AuthorBio, AuthorImg, AuthorInfoWrap, AuthorMeta, ContributeIcon, FooterWrap, ShareIcons, ShareWrap, WrittenBy } from './style';
|
||||||
|
|
||||||
|
|
||||||
const GuideFooter = (props) => (
|
const GuideFooter = (props) => (
|
||||||
<FooterWrap>
|
<FooterWrap>
|
||||||
|
<ShareWrap>
|
||||||
|
<ContributeIcon>
|
||||||
|
<a href="#">
|
||||||
|
<span>Improve this Guide </span>
|
||||||
|
<FontAwesomeIcon icon={ faGithub } />
|
||||||
|
</a>
|
||||||
|
</ContributeIcon>
|
||||||
|
<ShareIcons>
|
||||||
|
<span>Help spread the word</span>
|
||||||
|
<a href="#"><FontAwesomeIcon icon={ faTwitterSquare } /></a>
|
||||||
|
<a href="#"><FontAwesomeIcon icon={ faFacebookSquare } /></a>
|
||||||
|
<a href="#"><FontAwesomeIcon icon={ faRedditSquare } /></a>
|
||||||
|
<a href="#"><FontAwesomeIcon icon={ faHackerNewsSquare } /></a>
|
||||||
|
</ShareIcons>
|
||||||
|
</ShareWrap>
|
||||||
|
<AuthorInfoWrap className="border-top">
|
||||||
<AuthorImg src="/static/authors/kamranahmedse.jpeg" alt="" />
|
<AuthorImg src="/static/authors/kamranahmedse.jpeg" alt="" />
|
||||||
<AuthorInfoWrap>
|
<AuthorMeta>
|
||||||
<WrittenBy>Written By</WrittenBy>
|
<WrittenBy>Written By</WrittenBy>
|
||||||
<h4><a href="#">Kamran Ahmed</a></h4>
|
<h4><a href="#">Kamran Ahmed</a></h4>
|
||||||
<AuthorBio>Lead engineer at Tajawal. Created roadmap.sh. Lover of web and opensource</AuthorBio>
|
<AuthorBio>Lead engineer at Tajawal. Created roadmap.sh. Lover of web and opensource</AuthorBio>
|
||||||
@ -20,10 +36,7 @@ const GuideFooter = (props) => (
|
|||||||
Follow on GitHub
|
Follow on GitHub
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
{ /*<span className="social-icons">*/ }
|
</AuthorMeta>
|
||||||
{ /*<a href="#"><TwitterIcon /></a>*/ }
|
|
||||||
{ /*<a href="#"><GitHubIcon /></a>*/ }
|
|
||||||
{ /*</span>*/ }
|
|
||||||
</AuthorInfoWrap>
|
</AuthorInfoWrap>
|
||||||
</FooterWrap>
|
</FooterWrap>
|
||||||
);
|
);
|
||||||
|
@ -1,10 +1,43 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
export const FooterWrap = styled.div`
|
export const FooterWrap = styled.div`
|
||||||
|
display: block;
|
||||||
|
margin-top: 40px;
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const ShareWrap = styled.div`
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
a {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 20px 0 70px;
|
color: #101010;
|
||||||
margin-top: 70px;
|
}
|
||||||
|
|
||||||
|
svg {
|
||||||
|
height: 22px;
|
||||||
|
color: #101010;
|
||||||
|
margin-left: 7px;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const ContributeIcon = styled.div`
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const ShareIcons = styled.div`
|
||||||
|
display: flex;
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const AuthorInfoWrap = styled.div`
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 30px 0 70px;
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -74,7 +107,8 @@ export const WrittenBy = styled.p`
|
|||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
`;
|
`;
|
||||||
export const AuthorInfoWrap = styled.div`
|
|
||||||
|
export const AuthorMeta = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
import { faFacebookSquare, faHackerNewsSquare, faTwitterSquare } from '@fortawesome/free-brands-svg-icons'
|
import { faFacebookSquare, faRedditSquare, faTwitterSquare } from '@fortawesome/free-brands-svg-icons'
|
||||||
|
|
||||||
import { ShareIcon, ShareIconsList, ShareWrap } from './style';
|
import { ShareIcon, ShareIconsList, ShareWrap } from './style';
|
||||||
|
|
||||||
@ -8,7 +8,7 @@ const ShareGuide = (props) => (
|
|||||||
<ShareIconsList className="d-sm-none d-md-none d-lg-flex d-xl-flex">
|
<ShareIconsList className="d-sm-none d-md-none d-lg-flex d-xl-flex">
|
||||||
<ShareIcon><a href="#"><FontAwesomeIcon icon={ faTwitterSquare } /></a></ShareIcon>
|
<ShareIcon><a href="#"><FontAwesomeIcon icon={ faTwitterSquare } /></a></ShareIcon>
|
||||||
<ShareIcon><a href="#"><FontAwesomeIcon icon={ faFacebookSquare } /></a></ShareIcon>
|
<ShareIcon><a href="#"><FontAwesomeIcon icon={ faFacebookSquare } /></a></ShareIcon>
|
||||||
<ShareIcon><a href="#"><FontAwesomeIcon icon={ faHackerNewsSquare } /></a></ShareIcon>
|
<ShareIcon><a href="#"><FontAwesomeIcon icon={ faRedditSquare } /></a></ShareIcon>
|
||||||
</ShareIconsList>
|
</ShareIconsList>
|
||||||
</ShareWrap>
|
</ShareWrap>
|
||||||
);
|
);
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
import { fab } from '@fortawesome/free-brands-svg-icons';
|
|
||||||
import { library } from '@fortawesome/fontawesome-svg-core';
|
|
||||||
|
|
||||||
import Head from './head';
|
import Head from './head';
|
||||||
import './global.scss';
|
import './global.scss';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user