From 62f8e0961f3c90affe4408717eba21801a55e779 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sun, 3 Nov 2019 01:26:06 +0400 Subject: [PATCH] Add guide footer --- components/guide-footer/index.js | 49 ++++++++++++++++++++------------ components/guide-footer/style.js | 40 ++++++++++++++++++++++++-- components/share-guide/index.js | 4 +-- layouts/default/index.js | 3 -- 4 files changed, 70 insertions(+), 26 deletions(-) diff --git a/components/guide-footer/index.js b/components/guide-footer/index.js index 84e630613..5142bf18a 100644 --- a/components/guide-footer/index.js +++ b/components/guide-footer/index.js @@ -1,29 +1,42 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; -import { faGithub, faTwitter } from '@fortawesome/free-brands-svg-icons' -import { AuthorImg, FooterWrap, AuthorInfoWrap, WrittenBy, AuthorBio } from './style'; +import { faGithub, faFacebookSquare, faTwitterSquare, faTwitter, faHackerNewsSquare, faRedditSquare } from '@fortawesome/free-brands-svg-icons' +import { AuthorBio, AuthorImg, AuthorInfoWrap, AuthorMeta, ContributeIcon, FooterWrap, ShareIcons, ShareWrap, WrittenBy } from './style'; const GuideFooter = (props) => ( - - - Written By -

Kamran Ahmed

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

- - - Follow on Twitter - + + + Improve this Guide - Follow on GitHub -

- { /**/ } - { /**/ } - { /**/ } - { /**/ } + + + Help spread the word + + + + + + + + + + Written By +

Kamran Ahmed

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

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

+
); diff --git a/components/guide-footer/style.js b/components/guide-footer/style.js index 81fa5203c..9ec098859 100644 --- a/components/guide-footer/style.js +++ b/components/guide-footer/style.js @@ -1,10 +1,43 @@ import styled from 'styled-components'; 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; + align-items: center; + color: #101010; + } + + svg { + height: 22px; + color: #101010; + margin-left: 7px; + } +`; + +export const ContributeIcon = styled.div` display: flex; align-items: center; - padding: 20px 0 70px; - margin-top: 70px; + 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 { position: relative; @@ -74,7 +107,8 @@ export const WrittenBy = styled.p` display: block; margin-bottom: 0; `; -export const AuthorInfoWrap = styled.div` + +export const AuthorMeta = styled.div` display: flex; justify-content: center; flex-direction: column; diff --git a/components/share-guide/index.js b/components/share-guide/index.js index 820361198..9f0e86760 100644 --- a/components/share-guide/index.js +++ b/components/share-guide/index.js @@ -1,5 +1,5 @@ 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'; @@ -8,7 +8,7 @@ const ShareGuide = (props) => ( - + ); diff --git a/layouts/default/index.js b/layouts/default/index.js index 16dc0e25c..439b39bac 100644 --- a/layouts/default/index.js +++ b/layouts/default/index.js @@ -1,6 +1,3 @@ -import { fab } from '@fortawesome/free-brands-svg-icons'; -import { library } from '@fortawesome/fontawesome-svg-core'; - import Head from './head'; import './global.scss';