Extracting to reusable components
This commit is contained in:
10
src/components/Button.js
Normal file
10
src/components/Button.js
Normal 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
|
||||
Reference in New Issue
Block a user