|
|
@ -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 DetailedRoadmap = ({ roadmap }) => { |
|
|
|
const RoadmapPages = Object.keys(roadmap.sidebar || {}).map(groupTitle => { |
|
|
|
const roadmapPages = Object.keys(roadmap.sidebar || {}).map(groupTitle => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className='links-group'> |
|
|
|
<div className='links-group'> |
|
|
|
<h3>{ groupTitle }</h3> |
|
|
|
<h3>{ groupTitle }</h3> |
|
|
@ -22,10 +27,29 @@ const DetailedRoadmap = ({ roadmap }) => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<SummaryContainer className="border-top"> |
|
|
|
<SummaryContainer> |
|
|
|
<Summary className="container text-left"> |
|
|
|
<PageHeader className="border-top border-bottom text-center text-md-left"> |
|
|
|
|
|
|
|
<div className="container d-flex align-items-center flex-column flex-md-row"> |
|
|
|
|
|
|
|
<RoadmapMeta> |
|
|
|
|
|
|
|
<h3>{ roadmap.title }</h3> |
|
|
|
|
|
|
|
<p>Roadmap contributed by <a href="#">Kamran Ahmed</a> and <a href="#">5 others</a></p> |
|
|
|
|
|
|
|
</RoadmapMeta> |
|
|
|
|
|
|
|
<ShareRoadmap className="mt-2 mt-md-0"> |
|
|
|
|
|
|
|
<ShareIcon href={ getFacebookShareUrl({ text: roadmap.title, url: roadmap.url }) } target="_blank"> |
|
|
|
|
|
|
|
<FontAwesomeIcon icon={ faFacebookSquare } /> |
|
|
|
|
|
|
|
</ShareIcon> |
|
|
|
|
|
|
|
<ShareIcon href={ getTwitterShareUrl({ text: roadmap.title, url: roadmap.url }) } target="_blank"> |
|
|
|
|
|
|
|
<FontAwesomeIcon icon={ faTwitterSquare } /> |
|
|
|
|
|
|
|
</ShareIcon> |
|
|
|
|
|
|
|
<ShareIcon href={ getRedditShareUrl({ text: roadmap.title, url: roadmap.url }) } target="_blank"> |
|
|
|
|
|
|
|
<FontAwesomeIcon icon={ faRedditSquare } /> |
|
|
|
|
|
|
|
</ShareIcon> |
|
|
|
|
|
|
|
</ShareRoadmap> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</PageHeader> |
|
|
|
|
|
|
|
<Summary className="container"> |
|
|
|
<Sidebar className="sidebar"> |
|
|
|
<Sidebar className="sidebar"> |
|
|
|
{ RoadmapPages } |
|
|
|
{ roadmapPages } |
|
|
|
</Sidebar> |
|
|
|
</Sidebar> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<p>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?</p> |
|
|
|
<p>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?</p> |
|
|
|