You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
import Link from "next/link"; |
|
import Profile from "./Profile"; |
|
|
|
export default function Header(props) { |
|
return ( |
|
<header className="header"> |
|
<nav className="nav" role="navigation" aria-label="main navigation"> |
|
<Link href="/"> |
|
<h1>{props.siteTitle}</h1> |
|
</Link> |
|
<Profile></Profile> |
|
</nav> |
|
<style jsx> |
|
{` |
|
h1 { |
|
margin-bottom: 0; |
|
} |
|
h1:hover { |
|
cursor: pointer; |
|
} |
|
nav { |
|
padding: 1.5rem 1.25rem; |
|
border-bottom: 1px solid #ebebeb; |
|
display: flex; |
|
justify-content: space-between; |
|
flex-direction: row; |
|
align-items: center; |
|
} |
|
@media (min-width: 768px) { |
|
.header { |
|
height: 100vh; |
|
position: fixed; |
|
left: 0; |
|
top: 0; |
|
} |
|
.nav { |
|
padding: 2rem; |
|
width: 30vw; |
|
height: 100%; |
|
border-right: 1px solid #ebebeb; |
|
border-bottom: none; |
|
flex-direction: column; |
|
align-items: flex-start; |
|
} |
|
} |
|
`} |
|
</style> |
|
</header> |
|
); |
|
}
|
|
|