Added Card component for blog posts

This commit is contained in:
Moris Zen
2018-07-01 11:56:57 +02:00
parent 7847ea62da
commit b026acc6c6
3 changed files with 31 additions and 0 deletions

22
src/components/Card.js Normal file
View File

@@ -0,0 +1,22 @@
import React from 'react'
import Link from 'gatsby-link'
import ImgSprint from '../images/wow-we-did-design-sprint-remotely.png'
const Card = ({ ...props }) => (
<div className="m-3 max-w-sm rounded overflow-hidden shadow-lg">
<img className="w-full" src={ImgSprint} alt="Sprint Work" />
<div className="px-6 py-4">
<div className="font-bold text-xl mb-2">How we do remote design sprints
</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>
</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>
)
export default Card