diff --git a/components/guide-footer/index.js b/components/guide-footer/index.js new file mode 100644 index 000000000..84e630613 --- /dev/null +++ b/components/guide-footer/index.js @@ -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) => ( + + + + Written By +

Kamran Ahmed

+ Lead engineer at Tajawal. Created roadmap.sh. Lover of web and opensource +

+ + + Follow on Twitter + + + + Follow on GitHub + +

+ { /**/ } + { /**/ } + { /**/ } + { /**/ } +
+
+); + +export default GuideFooter; \ No newline at end of file diff --git a/components/guide-footer/style.js b/components/guide-footer/style.js new file mode 100644 index 000000000..81fa5203c --- /dev/null +++ b/components/guide-footer/style.js @@ -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; +`; \ No newline at end of file diff --git a/components/icons/github.svg b/components/icons/github.svg new file mode 100644 index 000000000..bce0d87c7 --- /dev/null +++ b/components/icons/github.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/components/share-guide/index.js b/components/share-guide/index.js index e439960fd..820361198 100644 --- a/components/share-guide/index.js +++ b/components/share-guide/index.js @@ -1,13 +1,14 @@ -import { ShareWrap, HackerNewsIcon, ShareIcon, ShareIconsList } from './style'; -import TwitterIcon from '../icons/twitter.svg'; -import FacebookIcon from '../icons/facebook.svg'; +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import { faFacebookSquare, faHackerNewsSquare, faTwitterSquare } from '@fortawesome/free-brands-svg-icons' + +import { ShareIcon, ShareIconsList, ShareWrap } from './style'; const ShareGuide = (props) => ( - - - Y + + + ); diff --git a/components/share-guide/style.js b/components/share-guide/style.js index dd245d50e..91556d301 100644 --- a/components/share-guide/style.js +++ b/components/share-guide/style.js @@ -22,27 +22,8 @@ export const ShareWrap = styled.div` export const ShareIcon = styled.span` margin-bottom: 7px; -`; - -export const HackerNewsIcon = styled.a` - background: black; - color: white; - height: 20px; - width: 19px; - text-align: center; - border-radius: 1px; - line-height: 15px; - font-size: 15px; - font-weight: bold; - display: flex; - align-items: center; - justify-content: center; - text-decoration: none; - font-family: Arial,Helvetica Neue,Helvetica,sans-serif; - margin-top: 5px; - - &:hover { - color: white; - text-decoration: none; - } + svg { + height: 26px; + color: #101010; + } `; \ No newline at end of file diff --git a/layouts/default/index.js b/layouts/default/index.js index a73bd6b96..16dc0e25c 100644 --- a/layouts/default/index.js +++ b/layouts/default/index.js @@ -1,12 +1,9 @@ -import { faGithub, fab } from '@fortawesome/free-brands-svg-icons'; -import { faArrowRight } from '@fortawesome/free-solid-svg-icons' +import { fab } from '@fortawesome/free-brands-svg-icons'; import { library } from '@fortawesome/fontawesome-svg-core'; import Head from './head'; import './global.scss'; -library.add(fab, faGithub, faArrowRight); - const DefaultLayout = (props) => (
diff --git a/pages/guides/[guide].js b/pages/guides/[guide].js index a14d99144..12f682481 100644 --- a/pages/guides/[guide].js +++ b/pages/guides/[guide].js @@ -5,6 +5,7 @@ import GuideHeader from '../../components/guide-header'; import GuideContent from '../../data/guides/keep-it-clean.md'; import GuideBody from '../../components/guide-body'; import ShareGuide from '../../components/share-guide'; +import GuideFooter from '../../components/guide-footer'; const Guide = ({ guide }) => { return ( @@ -13,6 +14,7 @@ const Guide = ({ guide }) => { + ); diff --git a/static/authors/aras.jpeg b/static/authors/aras.jpeg new file mode 100644 index 000000000..4b39fd887 Binary files /dev/null and b/static/authors/aras.jpeg differ diff --git a/static/authors/dan-abramov.jpeg b/static/authors/dan-abramov.jpeg new file mode 100644 index 000000000..b0b1e413d Binary files /dev/null and b/static/authors/dan-abramov.jpeg differ