2018-06-30 14:56:04 +02:00
|
|
|
import React from 'react'
|
|
|
|
|
import Link from 'gatsby-link'
|
|
|
|
|
|
2018-07-04 20:37:35 +02:00
|
|
|
let defaultClasses =
|
|
|
|
|
'px-6 py-3 leading-none inline-block text-sm no-underline uppercase'
|
2018-07-01 10:55:11 +02:00
|
|
|
|
|
|
|
|
let standardBtn = 'border hover:bg-teal hover:text-white hover:border-teal'
|
|
|
|
|
|
|
|
|
|
let filledBtn = 'text-grey-lightest bg-grey-darkest hover:bg-teal'
|
|
|
|
|
|
|
|
|
|
const Button = ({ ...props }) => (
|
2018-07-04 20:37:35 +02:00
|
|
|
<Link
|
|
|
|
|
to={props.url}
|
|
|
|
|
className={`${props.standard ? standardBtn : ''} ${
|
|
|
|
|
props.filled ? filledBtn : ''
|
|
|
|
|
} ${defaultClasses} ${props.classes}`}
|
|
|
|
|
>
|
|
|
|
|
{props.text}
|
|
|
|
|
</Link>
|
2018-06-30 14:56:04 +02:00
|
|
|
)
|
|
|
|
|
|
2018-07-04 20:37:35 +02:00
|
|
|
export default Button
|