From 09b5fe3b69c5082afe0129d451bd1afdd3577227 Mon Sep 17 00:00:00 2001 From: jameygleason Date: Thu, 20 Sep 2018 08:03:07 -0400 Subject: Stepped Solutions --- stepped-solutions/07/frontend/components/Header.js | 50 ++++++++++++++++++++-- 1 file changed, 47 insertions(+), 3 deletions(-) (limited to 'stepped-solutions/07/frontend/components/Header.js') diff --git a/stepped-solutions/07/frontend/components/Header.js b/stepped-solutions/07/frontend/components/Header.js index 51de94c..5a11aa4 100755 --- a/stepped-solutions/07/frontend/components/Header.js +++ b/stepped-solutions/07/frontend/components/Header.js @@ -1,16 +1,60 @@ +import Link from 'next/link'; +import styled from 'styled-components'; import Nav from './Nav'; +const Logo = styled.h1` + font-size: 4rem; + margin-left: 2rem; + position: relative; + z-index: 2; + transform: skew(-7deg); + a { + padding: 0.5rem 1rem; + background: ${props => props.theme.red}; + color: white; + text-transform: uppercase; + text-decoration: none; + } + @media (max-width: 1300px) { + margin: 0; + text-align: center; + } +`; + +const StyledHeader = styled.header` + .bar { + border-bottom: 10px solid ${props => props.theme.black}; + display: grid; + grid-template-columns: auto 1fr; + justify-content: space-between; + align-items: stretch; + @media (max-width: 1300px) { + grid-template-columns: 1fr; + justify-content: center; + } + } + .sub-bar { + display: grid; + grid-template-columns: 1fr auto; + border-bottom: 1px solid ${props => props.theme.lightgrey}; + } +`; + const Header = () => ( -
+
- Sick Fits + + + Sick Fits + +

Search

Cart
-
+ ); export default Header; -- cgit v1.3