-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#26 initial header structure and adding vector
- Loading branch information
samgildea
committed
Mar 25, 2021
1 parent
c53ea83
commit 08e9d0f
Showing
7 changed files
with
181 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import React 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; | ||
} | ||
` | ||
|
||
export default function header() { | ||
return ( | ||
<NavContainer> | ||
<Logo>PowerHouse</Logo> | ||
|
||
<MobileIcon> | ||
<Hamburger /> | ||
</MobileIcon> | ||
<NavLinks> | ||
<NavLink>ABOUT</NavLink> | ||
<NavLink>PROCESS</NavLink> | ||
<NavLink>PRODUCTS</NavLink> | ||
<NavLink>SOLUTIONS</NavLink> | ||
</NavLinks> | ||
</NavContainer> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
html, body | ||
{ | ||
margin: 0px !important; padding: 0px !important; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.