Extracting to reusable components

This commit is contained in:
Moris Zen
2018-06-30 14:56:04 +02:00
parent fe306ab517
commit 05e9635c7c
5 changed files with 33 additions and 21 deletions

10
src/components/Button.js Normal file
View File

@@ -0,0 +1,10 @@
import React from 'react'
import Link from 'gatsby-link'
const Button = ({ text, url, classes}) => (
<div>
<Link to={url} className={`no-underline inline-block text-sm px-4 py-2 leading-none border rounded text-grey-lightest hover:border-transparent hover:text-white hover:bg-white mt-4 lg:mt-0 uppercase bg-grey-darkest hover:bg-teal ${classes}`}>{text}</Link>
</div>
)
export default Button