computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
915 B
33 lines
915 B
import Error from 'next/error'; |
|
import DefaultLayout from 'layouts/default'; |
|
import SiteNav from 'components/site-nav'; |
|
import PageFooter from 'components/page-footer'; |
|
import RoadmapBody from 'components/roadmap-body'; |
|
import { serverOnlyProps } from 'lib/server'; |
|
import { getRequestedRoadmap } from 'lib/roadmap'; |
|
import Helmet from 'components/helmet'; |
|
import RoadmapHeader from 'components/roadmap-header'; |
|
|
|
const Roadmap = ({ roadmap }) => { |
|
if (!roadmap) { |
|
return <Error statusCode={ 404 } /> |
|
} |
|
|
|
return ( |
|
<DefaultLayout> |
|
<Helmet title={ roadmap.title } description={ roadmap.description } /> |
|
<SiteNav /> |
|
<RoadmapHeader roadmap={ roadmap } /> |
|
<RoadmapBody roadmap={ roadmap } /> |
|
<PageFooter /> |
|
</DefaultLayout> |
|
); |
|
}; |
|
|
|
Roadmap.getInitialProps = serverOnlyProps(({ req }) => { |
|
return { |
|
roadmap: getRequestedRoadmap(req), |
|
}; |
|
}); |
|
|
|
export default Roadmap;
|
|
|