2018-07-01 11:56:57 +02:00
|
|
|
import React from 'react'
|
|
|
|
|
import Link from 'gatsby-link'
|
2018-07-06 11:54:24 +02:00
|
|
|
import Img from 'gatsby-image'
|
2018-07-01 11:56:57 +02:00
|
|
|
|
|
|
|
|
import ImgSprint from '../images/wow-we-did-design-sprint-remotely.png'
|
|
|
|
|
|
|
|
|
|
const Card = ({ ...props }) => (
|
2018-07-06 11:54:24 +02:00
|
|
|
<article className="my-4 lg:my-2 lg:mx-2 w-full rounded overflow-hidden shadow-md hover:shadow-lg">
|
2018-07-06 09:35:17 +02:00
|
|
|
<Link to={props.url}>
|
2018-07-06 11:54:24 +02:00
|
|
|
{props.image ? (
|
|
|
|
|
<Img resolutions={props.image} />
|
|
|
|
|
) : (
|
|
|
|
|
<img className="w-full" src={ImgSprint} alt="Sprint Work" />
|
|
|
|
|
)}
|
2018-07-06 09:35:17 +02:00
|
|
|
</Link>
|
2018-07-01 11:56:57 +02:00
|
|
|
<div className="px-6 py-4">
|
2018-07-05 07:14:42 +02:00
|
|
|
<div className="font-bold text-xl mb-2">
|
2018-07-06 09:35:17 +02:00
|
|
|
{props.title} - {props.date}
|
2018-07-01 11:56:57 +02:00
|
|
|
</div>
|
2018-07-06 09:35:17 +02:00
|
|
|
<p
|
|
|
|
|
className="text-grey-darker text-base"
|
|
|
|
|
dangerouslySetInnerHTML={{ __html: props.excerpt }}
|
|
|
|
|
/>
|
2018-07-01 11:56:57 +02:00
|
|
|
</div>
|
|
|
|
|
<div className="px-6 py-4">
|
2018-07-05 07:14:42 +02:00
|
|
|
<span className="inline-block bg-grey-lighter rounded-full px-3 py-1 text-sm font-semibold text-grey-darker">
|
|
|
|
|
#workstyle
|
|
|
|
|
</span>
|
2018-07-01 11:56:57 +02:00
|
|
|
</div>
|
2018-07-06 09:35:17 +02:00
|
|
|
</article>
|
2018-07-01 11:56:57 +02:00
|
|
|
)
|
|
|
|
|
|
2018-07-05 07:14:42 +02:00
|
|
|
export default Card
|