Add style after new guidelines, markup and restructuring of components

This commit is contained in:
Moris Zen
2018-07-02 20:33:44 +02:00
parent 01b910f7d9
commit e5287ac835
11 changed files with 1132 additions and 63 deletions

View File

@@ -1,18 +1,18 @@
import React from 'react'
import Link from 'gatsby-link'
import LogoSaburly from "../images/logo-saburly.svg"
import LogoSaburly from "../images/logo-saburly-white.svg"
import Button from './Button'
import "./Header.css"
let menuClasses = "no-underline mt-4 lg:inline-block opacity-50 lg:mt-0 text-white hover:opacity-100 uppercase mr-4"
const Header = () => (
<header>
<nav className="flex items-center justify-between lg:p-6">
<div className="flex items-center flex-no-shrink text-white mr-6">
<Link to="/">
<img src={LogoSaburly} alt='Saburly Logo' style={{ maxWidth: '300px' }} />
</Link>
</div>
<header className="bg-saburly-default">
<nav className="container mx-auto flex justify-between lg:p-6 p-4">
<Link to="/">
<img src={LogoSaburly} alt='Saburly Logo' className="max-w-xs" />
</Link>
<button className="menu_icon lg:invisible">
<span className="menu_bar-top" />
@@ -20,24 +20,20 @@ const Header = () => (
<span className="menu_bar-bot" />
</button>
<div className="hidden lg:visible w-full block flex-grow lg:flex lg:items-center lg:w-auto">
<ul className="flex text-sm justify-center lg:flex-grow">
<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="text-sm">
<Link to="/services">
<li className="no-underline block mt-4 lg:inline-block lg:mt-0 text-grey-darkest hover:text-teal uppercase mr-4">What We Do
</li>
<li className={menuClasses}>What We Do</li>
</Link>
<Link to="/about">
<li className="no-underline block mt-4 lg:inline-block lg:mt-0 text-grey-darkest hover:text-teal uppercase mr-4">TEAM
</li>
<li className={menuClasses}>TEAM</li>
</Link>
<Link to="/blog">
<li className="no-underline block mt-4 lg:inline-block lg:mt-0 text-grey-darkest hover:text-teal uppercase mr-4">BLOG
</li>
<li className={menuClasses}>BLOG</li>
</Link>
<Button text="Contact" standard classes="rounded-full text-white" url="/contact" />
</ul>
<Button text="Contact" standard classes="rounded-full" url="/contact" />
</div>
</nav>
</header>