-
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.
- Loading branch information
1 parent
f451968
commit 0c47f20
Showing
7 changed files
with
133 additions
and
105 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"presets": [ | ||
"next/babel" | ||
], | ||
"plugins": [ | ||
[ | ||
"styled-components", | ||
{ | ||
"ssr": true, | ||
"displayName": true, | ||
"preprocess": false | ||
} | ||
] | ||
] | ||
} |
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,42 +1,24 @@ | ||
import Link from 'next/link' | ||
import styled from 'styled-components' | ||
|
||
const HeaderContainer = styled.header` | ||
background: rgba(0,0,0, 0.08); | ||
padding: 24px 16px; | ||
` | ||
|
||
export default function Header() { | ||
return ( | ||
<> | ||
<header className="header"> | ||
<nav className="nav" role="navigation" aria-label="main navigation"> | ||
<HeaderContainer> | ||
<nav role="navigation" aria-label="main navigation"> | ||
<Link href="/"> | ||
<a>Demo Blog</a> | ||
<a>Notes</a> | ||
</Link> | ||
<Link href="/about"> | ||
<a>About</a> | ||
</Link> | ||
</nav> | ||
</header> | ||
<style jsx>{` | ||
header { | ||
width: 100%; | ||
height: 100px; | ||
border-bottom: 1px solid #eaeaea; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
nav { | ||
width: calc(100% - 40px); | ||
max-width: 1200px; | ||
font-weight: bold; | ||
font-size: 1.3rem; | ||
} | ||
nav a { | ||
margin-right: 20px; | ||
color: #00a395; | ||
text-decoration: none; | ||
} | ||
nav a:hover { | ||
text-decoration: underline; | ||
} | ||
`}</style> | ||
</HeaderContainer> | ||
</> | ||
) | ||
} |
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
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
Oops, something went wrong.