diff --git a/src/components/header/header-styles.js b/src/components/header/header-styles.js new file mode 100644 index 0000000..76ca335 --- /dev/null +++ b/src/components/header/header-styles.js @@ -0,0 +1,48 @@ +import styled from 'styled-components' +import dimensions from "../../style/dimensions" + + +export const NavContainer = styled.div`` + +export const Logo = styled.div` + font-weight: bold; + font-size: 24px; + padding-top: 32px; + + @media (max-width: ${dimensions.maxwidthTablet}px) { + text-align: center; + font-size: 20px; + padding-top: 24px; + } +` + +export const NavLinks = styled.div` + position: absolute; + right: 80px; + top: 40px; + display: flex; + + @media (max-width: ${dimensions.maxwidthTablet}px) { + display: none; + } +` + +export const NavLink = styled.a` + font-weight: bold; + font-size: 16px; + padding-left: 100px; + text-decoration: none; + color: #000000; +` + +export const MobileIcon = styled.div` + @media (min-width: ${dimensions.maxwidthTablet}px) { + display: none; + } + + @media (max-width: ${dimensions.maxwidthTablet}px) { + left: 24px; + top: 32px; + position: absolute; + } +` \ No newline at end of file diff --git a/src/components/header/header.jsx b/src/components/header/header.jsx index 549f3b7..66beb22 100644 --- a/src/components/header/header.jsx +++ b/src/components/header/header.jsx @@ -1,50 +1,12 @@ import React, { useState } from "react" -import styled from "styled-components" -import dimensions from "../../style/dimensions" import Hamburger from "../../vectors/hamburger.svg" - -const NavContainer = styled.div`` - -const Logo = styled.div` - font-weight: bold; - font-size: 24px; - padding-top: 32px; - - @media (max-width: ${dimensions.maxwidthTablet}px) { - text-align: center; - font-size: 20px; - padding-top: 24px; - } -` - -const NavLinks = styled.div` - position: absolute; - right: 80px; - top: 40px; - display: flex; - - @media (max-width: ${dimensions.maxwidthTablet}px) { - display: none; - } -` - -const NavLink = styled.div` - font-weight: bold; - font-size: 16px; - padding-left: 100px; -` - -const MobileIcon = styled.div` - @media (min-width: ${dimensions.maxwidthTablet}px) { - display: none; - } - - @media (max-width: ${dimensions.maxwidthTablet}px) { - left: 24px; - top: 32px; - position: absolute; - } -` +import { + NavContainer, + Logo, + MobileIcon, + NavLinks, + NavLink, +} from "./header-styles" export const Header = () => { const [open, setOpen] = useState(false) @@ -57,10 +19,10 @@ export const Header = () => { - ABOUT - PROCESS - PRODUCTS - SOLUTIONS + ABOUT + PROCESS + PRODUCTS + SOLUTIONS )