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-08 10:25:01 +04:00
|
|
|
import FeaturedGuide from 'components/featured-guide';
|
2019-11-13 21:54:31 +04:00
|
|
|
import { getFeaturedGuides } from 'lib/guide';
|
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>
|
2019-11-08 19:20:52 +04:00
|
|
|
Guides mostly visited by the community
|
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-13 21:54:31 +04:00
|
|
|
{ getFeaturedGuides()
|
2019-11-01 04:14:38 +04:00
|
|
|
.map(guide => (
|
2019-11-08 10:25:01 +04:00
|
|
|
<FeaturedGuide guide={ guide } key={ guide.url } />
|
2019-11-01 04:14:38 +04:00
|
|
|
)) }
|
2019-10-28 00:20:59 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</FeaturedContentWrap>
|
|
|
|
);
|
|
|
|
|
2019-11-06 18:20:09 +04:00
|
|
|
export default FeaturedGuides;
|