Featured pages

pull/1331/head
Kamran Ahmed 5 years ago
parent 250f1d59e6
commit 3e71b7aca8
  1. 2
      components/featured-content/journeys.js
  2. 9
      data/roadmaps.json
  3. 6
      next.config.js
  4. 12
      pages/roadmaps/[roadmap].js
  5. 0
      static/dan-abramov.jpeg
  6. BIN
      static/meabed.png
  7. BIN
      static/roadmaps/backend.png
  8. BIN
      static/roadmaps/devops.png
  9. BIN
      static/roadmaps/frontend.png

@ -30,7 +30,7 @@ const FeaturedJourneys = () => (
</div> </div>
<div className="col-xl-3 col-lg-3 col-md-4 col-sm-12 col-12 grid-item-container journey-block"> <div className="col-xl-3 col-lg-3 col-md-4 col-sm-12 col-12 grid-item-container journey-block">
<a href="#"> <a href="#">
<img src="/static/dan-abramove.jpeg" alt="" /> <img src="/static/dan-abramov.jpeg" alt="" />
<div className="journey-meta"> <div className="journey-meta">
<h4>Dan Abramov</h4> <h4>Dan Abramov</h4>
<p>Co-founder and CTO at Blink</p> <p>Co-founder and CTO at Blink</p>

@ -2,16 +2,19 @@
{ {
"title": "Frontend Developer", "title": "Frontend Developer",
"description": "Roadmap to becoming a frontend developer", "description": "Roadmap to becoming a frontend developer",
"slug": "frontend" "slug": "frontend",
"picture": "/static/roadmaps/frontend.png"
}, },
{ {
"title": "Backend Developer", "title": "Backend Developer",
"description": "Roadmap to becoming a backend developer", "description": "Roadmap to becoming a backend developer",
"slug": "backend" "slug": "backend",
"picture": "/static/roadmaps/backend.png"
}, },
{ {
"title": "DevOps", "title": "DevOps",
"description": "Roadmap for DevOps or any other Operations Role", "description": "Roadmap for DevOps or any other Operations Role",
"slug": "devops" "slug": "devops",
"picture": "/static/roadmaps/devops.png"
} }
] ]

@ -8,6 +8,12 @@ module.exports = withCSS(withSass({
'/about': { page: '/about' }, '/about': { page: '/about' },
'/privacy': { page: '/privacy' }, '/privacy': { page: '/privacy' },
'/terms': { page: '/terms' }, '/terms': { page: '/terms' },
'/frontend': { page: '/frontend' },
'/backend': { page: '/backend' },
'/devops': { page: '/devops' },
'/roadmaps/frontend': { page: '/roadmaps/frontend' },
'/roadmaps/backend': { page: '/roadmaps/backend' },
'/roadmaps/devops': { page: '/roadmaps/devops' },
}; };
}, },

@ -1,17 +1,25 @@
import { useRouter } from 'next/router'; import { useRouter } from 'next/router';
import DefaultLayout from '../../layouts/default/index'; import DefaultLayout from '../../layouts/default/index';
import PageHeader from '../../components/page-header/index'; import PageHeader from '../../components/page-header/index';
// import roadmaps from "../../data/roadmaps";
const Roadmap = (props) => { const Roadmap = (props) => {
const router = useRouter(); const router = useRouter();
const { const {
roadmap = props.roadmap, roadmap: slug,
} = router.query; } = router.query;
console.log(router);
// @todo handle 404
// const roadmap = roadmaps.find(roadmap => roadmap.slug === slug);
return ( return (
<DefaultLayout> <DefaultLayout>
<PageHeader /> <PageHeader />
<p>Show roadmap for { roadmap } here</p> <div className="container">
{/*<img src={ roadmap.picture } alt="" />*/}
</div>
</DefaultLayout> </DefaultLayout>
); );
}; };

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 965 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 625 KiB

Loading…
Cancel
Save