diff --git a/components/detailed-roadmap/index.js b/components/detailed-roadmap/index.js index 4dd317db4..ef4fc2ad3 100644 --- a/components/detailed-roadmap/index.js +++ b/components/detailed-roadmap/index.js @@ -1,7 +1,12 @@ -import { Sidebar, Summary, SummaryContainer } from './style'; +import { PageHeader, RoadmapMeta, ShareRoadmap, Sidebar, Summary, SummaryContainer } from './style'; +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import { faFacebookSquare, faTwitterSquare, faRedditSquare } from '@fortawesome/free-brands-svg-icons' +import { getFacebookShareUrl } from 'lib/url'; +import { ShareIcon } from 'components/share-icon'; +import { getRedditShareUrl, getTwitterShareUrl } from '../../lib/url'; const DetailedRoadmap = ({ roadmap }) => { - const RoadmapPages = Object.keys(roadmap.sidebar || {}).map(groupTitle => { + const roadmapPages = Object.keys(roadmap.sidebar || {}).map(groupTitle => { return (
Roadmap contributed by Kamran Ahmed and 5 others
+Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut beatae blanditiis commodi, consequatur, dicta distinctio esse et id, ipsa labore libero nisi odit placeat possimus saepe sed vel vitae voluptate?
diff --git a/components/detailed-roadmap/style.js b/components/detailed-roadmap/style.js index fd4d2eb40..92d4c9997 100644 --- a/components/detailed-roadmap/style.js +++ b/components/detailed-roadmap/style.js @@ -3,7 +3,7 @@ import styled from 'styled-components'; export const SummaryContainer = styled.div``; export const Summary = styled.div` - text-align: center; + text-align: left; min-height: 400px; display: flex; @@ -12,6 +12,43 @@ export const Summary = styled.div` } `; +export const PageHeader = styled.div` + padding-top: 20px; + padding-bottom: 20px; + + h3 { + margin-bottom: 4px; + font-weight: 600; + font-size: 21px; + } + + p { + margin-bottom: 0; + font-size: 14px; + color: #696969; + + a { + color: #101010; + } + } +`; + +export const RoadmapMeta = styled.div` + flex: 1; +`; + +export const ShareRoadmap = styled.div` + display: flex; + align-items: center; + + a { + margin-bottom: 0; + & + a { + margin-left: 5px; + } + } +`; + export const Sidebar = styled.div` border-left: 1px solid #efefef; padding-bottom: 150px; diff --git a/components/share-icon/index.js b/components/share-icon/index.js new file mode 100644 index 000000000..f655fabc7 --- /dev/null +++ b/components/share-icon/index.js @@ -0,0 +1,20 @@ +import styled from 'styled-components'; + +export const ShareIcon = styled.a` + display: block; + width: 22px; + height: 22px; + margin-bottom: 8px; + + svg { + height: 22px !important; + width: 22px !important; + color: #757575; + transition: all 0.2s; + vertical-align: top; + } + + &:hover svg { + color: #000000 + } +`; diff --git a/components/share-page/index.js b/components/share-page/index.js index e4ac3ce03..37348576d 100644 --- a/components/share-page/index.js +++ b/components/share-page/index.js @@ -2,7 +2,8 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faFacebookSquare, faRedditSquare, faTwitterSquare } from '@fortawesome/free-brands-svg-icons' import { getFacebookShareUrl, getRedditShareUrl, getTwitterShareUrl } from "lib/url"; -import { ShareIcon, ShareIconsList, ShareWrap } from './style'; +import { ShareIconsList, ShareWrap } from './style'; +import { ShareIcon } from 'components/share-icon'; const SharePage = ({ url, @@ -10,7 +11,7 @@ const SharePage = ({ twitterUsername, }) => (