-
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.
adding header component and links to home, shop page and contact
- Loading branch information
Vittorio Pinti
committed
Aug 6, 2021
1 parent
0a18420
commit 44fd8e0
Showing
5 changed files
with
71 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
body { | ||
font-family: 'Open Sans Condensed', sans-serif; | ||
padding: 20px 60px; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
color: black; | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,22 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
import { ReactComponent as Logo } from '../../assets/crown.svg'; | ||
|
||
import './header-styles.scss'; | ||
|
||
const Header = () => { | ||
return ( | ||
<div className='header'> | ||
<Link to='/' className='logo-container'> | ||
<Logo className='logo' /> | ||
</Link> | ||
<div className="options"> | ||
<Link className='option' to='/shop'>SHOP</Link> | ||
<Link className='option' to='/shop'>CONTACT</Link> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Header |
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,25 @@ | ||
.header { | ||
height: 70px; | ||
width: 100%; | ||
display: flex; | ||
justify-content: space-between; | ||
margin-bottom: 25px; | ||
|
||
.logo-container { | ||
height: 100%; | ||
width: 70px; | ||
padding: 25px; | ||
} | ||
|
||
.options { | ||
width: 50%; | ||
height: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: flex-end; | ||
|
||
.option { | ||
padding: 10px 15px; | ||
} | ||
} | ||
} |