2018-07-01 11:56:57 +02:00
|
|
|
import React from 'react'
|
|
|
|
|
import Link from 'gatsby-link'
|
|
|
|
|
|
|
|
|
|
import ImgSprint from '../images/wow-we-did-design-sprint-remotely.png'
|
|
|
|
|
|
|
|
|
|
const Card = ({ ...props }) => (
|
2018-08-08 18:10:40 +02:00
|
|
|
<article className="h-full w-full rounded overflow-hidden bg-white border-bottom-saburly hover:shadow-md">
|
2018-08-06 00:12:09 +02:00
|
|
|
<Link to={props.url}>
|
2018-07-06 11:54:24 +02:00
|
|
|
{props.image ? (
|
2018-07-06 12:56:09 +02:00
|
|
|
<img className="w-full" src={props.image.src} />
|
2018-07-06 11:54:24 +02:00
|
|
|
) : (
|
|
|
|
|
<img className="w-full" src={ImgSprint} alt="Sprint Work" />
|
|
|
|
|
)}
|
2018-07-06 09:35:17 +02:00
|
|
|
</Link>
|
2018-08-08 01:12:04 +02:00
|
|
|
<div className="px-6 py-4">
|
2018-07-06 12:56:09 +02:00
|
|
|
<Link className="no-underline" to={props.url}>
|
|
|
|
|
<h3 className="text-black font-bold text-xl mb-2">{props.title}</h3>
|
|
|
|
|
</Link>
|
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>
|
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
|