Fetch posts frm wp on blog page

This commit is contained in:
Moris Zen
2018-07-06 09:35:17 +02:00
parent b3a9a16a59
commit 7867ae3b09
2 changed files with 22 additions and 16 deletions

View File

@@ -4,24 +4,28 @@ import Link from 'gatsby-link'
import ImgSprint from '../images/wow-we-did-design-sprint-remotely.png'
const Card = ({ ...props }) => (
<div className="my-4 lg:my-2 lg:mx-2 w-full rounded overflow-hidden shadow-md hover:shadow-lg">
<img className="w-full" src={ImgSprint} alt="Sprint Work" />
<article
key={props.postId}
className="my-4 lg:my-2 lg:mx-2 w-full rounded overflow-hidden shadow-md hover:shadow-lg"
>
<Link to={props.url}>
<img className="w-full" src={ImgSprint} alt="Sprint Work" />
</Link>
<div className="px-6 py-4">
<div className="font-bold text-xl mb-2">
How we do remote design sprints
{props.title} - {props.date}
</div>
<p className="text-grey-darker text-base">
Its amazing how design can impact business and people making the world
a better and a friendlier place. Knowing the how important design today
is, heres a complete rundown of our design process in its fully glory.
</p>
<p
className="text-grey-darker text-base"
dangerouslySetInnerHTML={{ __html: props.excerpt }}
/>
</div>
<div className="px-6 py-4">
<span className="inline-block bg-grey-lighter rounded-full px-3 py-1 text-sm font-semibold text-grey-darker">
#workstyle
</span>
</div>
</div>
</article>
)
export default Card