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-09-05 00:07:15 +02:00
|
|
|
<div className="relative hover:opacity-50">
|
|
|
|
|
{props.image && <img className="w-full" src={props.image.src} />}
|
|
|
|
|
{props.teamMember && <img className="w-full" src={props.teamMember} />}
|
|
|
|
|
<div
|
|
|
|
|
className={`px-6 py-4 ${
|
|
|
|
|
props.team ? 'absolute pin-b' : ''
|
|
|
|
|
} text-center w-full bg-white-opacity`}
|
|
|
|
|
>
|
|
|
|
|
<h3 className="text-black text-center text-xl">{props.title}</h3>
|
|
|
|
|
{props.subtitle && (
|
|
|
|
|
<span className="text-sm font-medium text-black pt-1 opacity-70">
|
|
|
|
|
{props.subtitle}
|
|
|
|
|
</span>
|
|
|
|
|
)}
|
2018-08-30 12:17:36 +02:00
|
|
|
</div>
|
2018-09-05 00:07:15 +02:00
|
|
|
</div>
|
|
|
|
|
{props.team && <div className="px-6 py-4">{props.children}</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
|