2018-07-05 16:53:33 +02:00
|
|
|
import React, { Component } from 'react'
|
2018-07-10 22:34:52 +02:00
|
|
|
import Link, { withPrefix } from 'gatsby-link'
|
2018-08-30 14:31:03 +02:00
|
|
|
import LogoSaburlyWhite from '../images/logo-saburly-white.svg'
|
2018-06-30 15:04:24 +02:00
|
|
|
import Button from './Button'
|
2018-06-30 13:28:19 +02:00
|
|
|
|
2018-08-30 09:57:48 +02:00
|
|
|
import Headroom from 'react-headroom'
|
|
|
|
|
|
2018-07-04 10:03:22 +02:00
|
|
|
import './Header.css'
|
2018-06-30 13:59:46 +02:00
|
|
|
|
2018-07-04 10:03:22 +02:00
|
|
|
let menuClasses =
|
2018-08-29 14:05:56 +02:00
|
|
|
'no-underline mt-4 lg:inline-block text-white font-medium lg:mt-0 hover:opacity-80 uppercase mr-4'
|
2018-07-05 16:49:34 +02:00
|
|
|
|
2018-07-05 16:53:33 +02:00
|
|
|
class Header extends Component {
|
2018-07-05 16:49:34 +02:00
|
|
|
render() {
|
|
|
|
|
return (
|
2018-08-30 09:57:48 +02:00
|
|
|
<Headroom>
|
2018-09-05 00:07:15 +02:00
|
|
|
<header className="saburly-menu">
|
2018-08-30 09:57:48 +02:00
|
|
|
<nav className="container mx-auto flex items-center justify-between lg:p-6 p-4">
|
|
|
|
|
<Link to="/">
|
|
|
|
|
<div className="max-w-xs mr-8">
|
|
|
|
|
<img
|
|
|
|
|
src={LogoSaburlyWhite}
|
2018-08-30 14:33:47 +02:00
|
|
|
className="saburly-logo"
|
2018-08-30 09:57:48 +02:00
|
|
|
alt="Saburly Logo"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</Link>
|
|
|
|
|
|
|
|
|
|
<div className="side-toggle">
|
|
|
|
|
<button className="menu_icon visible lg:invisible">
|
|
|
|
|
<span className="menu_bar-top" />
|
|
|
|
|
<span className="menu_bar-mid" />
|
|
|
|
|
<span className="menu_bar-bot" />
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="hidden lg:visible w-full block flex-grow lg:flex lg:items-right lg:w-auto justify-end lg:flex-grow">
|
|
|
|
|
<ul className="list-reset font- text-sm">
|
|
|
|
|
<Link to="/services">
|
|
|
|
|
<li className={menuClasses}>Services</li>
|
|
|
|
|
</Link>
|
|
|
|
|
<Link to="/about">
|
|
|
|
|
<li className={menuClasses}>About Us</li>
|
|
|
|
|
</Link>
|
|
|
|
|
<Link to="/blog">
|
|
|
|
|
<li className={menuClasses}>Blog</li>
|
|
|
|
|
</Link>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
text="Contact"
|
|
|
|
|
standard
|
|
|
|
|
classes="rounded-full font-medium text-white hover:shadow"
|
|
|
|
|
url="/contact"
|
|
|
|
|
/>
|
|
|
|
|
</ul>
|
2018-07-05 16:49:34 +02:00
|
|
|
</div>
|
2018-08-30 09:57:48 +02:00
|
|
|
</nav>
|
|
|
|
|
</header>
|
|
|
|
|
</Headroom>
|
2018-07-05 16:49:34 +02:00
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-06-30 13:28:19 +02:00
|
|
|
|
|
|
|
|
export default Header
|