Featured pages
This commit is contained in:
@ -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 |
BIN
static/roadmaps/backend.png
Normal file
BIN
static/roadmaps/backend.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 965 KiB |
BIN
static/roadmaps/devops.png
Normal file
BIN
static/roadmaps/devops.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 367 KiB |
BIN
static/roadmaps/frontend.png
Normal file
BIN
static/roadmaps/frontend.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 625 KiB |
Reference in New Issue
Block a user