Files
old-v2-frontend/src/components/Card.js

28 lines
836 B
JavaScript
Raw Normal View History

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 20:42:10 +02:00
<article className="h-full w-full rounded overflow-hidden shadow bg-white border-bottom-saburly hover:shadow-md">
2018-08-06 00:12:09 +02:00
<Link to={props.url}>
{props.image ? (
<img className="w-full" src={props.image.src} />
) : (
<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">
<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
)
export default Card