2019-10-28 00:20:59 +04:00
|
|
|
import { FeaturedContentWrap } from './style';
|
2019-10-31 22:27:00 +04:00
|
|
|
import Link from 'next/link';
|
|
|
|
import roadmaps from '../../data/roadmaps';
|
2019-10-28 00:20:59 +04:00
|
|
|
|
|
|
|
const FeaturedRoadmaps = () => (
|
|
|
|
<FeaturedContentWrap className="featured-content-wrap">
|
|
|
|
<div className="container">
|
|
|
|
<div className="featured-head">
|
|
|
|
<h3>Featured Content</h3>
|
|
|
|
<p className="border-through featured-separator">
|
|
|
|
<span>
|
|
|
|
List of roadmaps mostly visited by the community
|
2019-10-31 22:27:00 +04:00
|
|
|
<Link href='/roadmaps'>
|
|
|
|
<a className="dark-link d-none d-sm-none d-md-inline d-xl-inline">View all Roadmaps →</a>
|
|
|
|
</Link>
|
2019-10-28 00:20:59 +04:00
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div className="swim-lane row">
|
2019-10-31 22:27:00 +04:00
|
|
|
{ roadmaps
|
|
|
|
.filter(({ featured }) => featured)
|
|
|
|
.map(roadmap => (
|
2019-10-31 23:45:09 +04:00
|
|
|
<div className="col-xl-4 col-lg-4 col-md-6 col-sm-12 col-12 grid-item-container" key={roadmap.slug}>
|
2019-10-31 22:27:00 +04:00
|
|
|
<Link href={ roadmap.slug }>
|
|
|
|
<a className="featured-block">
|
|
|
|
<h4>{ roadmap.title }</h4>
|
|
|
|
<p>{ roadmap.featuredDescription || roadmap.description }</p>
|
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
)) }
|
2019-10-28 00:20:59 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</FeaturedContentWrap>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default FeaturedRoadmaps;
|