2019-11-01 03:20:13 +04:00
|
|
|
import Link from 'next/link';
|
2019-10-28 00:20:59 +04:00
|
|
|
import { FeaturedContentWrap } from './style';
|
2019-11-01 04:14:38 +04:00
|
|
|
import guides from '../../data/guides';
|
|
|
|
import GuideBlock from '../guide-block';
|
2019-10-28 00:20:59 +04:00
|
|
|
|
|
|
|
const FeaturedGuides = () => (
|
|
|
|
<FeaturedContentWrap className="featured-content-wrap">
|
|
|
|
<div className="container">
|
|
|
|
<p className='border-through featured-separator'>
|
|
|
|
<span>
|
|
|
|
List of most visited guides
|
2019-11-01 03:20:13 +04:00
|
|
|
<Link href="/guides"><a className="dark-link d-none d-sm-none d-md-inline d-xl-inline">View all Guides →</a></Link>
|
2019-10-28 00:20:59 +04:00
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
<div className="swim-lane row">
|
2019-11-01 04:14:38 +04:00
|
|
|
{ guides
|
|
|
|
.filter(({ featured }) => featured)
|
|
|
|
.map(guide => (
|
|
|
|
<GuideBlock guide={ guide } key={ guide.slug } />
|
|
|
|
)) }
|
2019-10-28 00:20:59 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</FeaturedContentWrap>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default FeaturedGuides;
|