Portfolio website written with Next.js
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.
wychdev-nextjs/components/header.tsx

43 lines
645 B

2 years ago
import styled from "styled-components"
import Nav from "./nav"
import Link from "next/link"
2 years ago
import Menu from "./burgermenu"
2 years ago
const HeaderCont = styled.header`
2 years ago
display: flex;
align-items: center;
2 years ago
border-bottom: var(--border-size) var(--border-type) var(--border-color);
padding: .8rem 2rem;
2 years ago
gap: 2rem;
2 years ago
h1 {
font-weight: normal;
a {
color: inherit;
}
2 years ago
}
nav {
margin-left: auto;
float: right;
}
2 years ago
@media screen and (max-width: 960px) {
padding: 1rem 2rem;
}
2 years ago
`
const Header = () => {
2 years ago
return (
<HeaderCont>
<h1><Link href="/">wych.dev</Link></h1>
2 years ago
<Nav />
2 years ago
<Menu />
</HeaderCont>
2 years ago
)
}
export default Header