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
669 B

2 years ago
import Link from "next/link"
import styled from 'styled-components'
const Header = styled.header`
display: flex;
align-items: center;
max-width: 70rem;
padding: 0 4rem;
border-bottom: 1px dotted #aaa;
nav {
margin-left: auto;
float: right;
}
2 years ago
`
const Nav = styled(Header).attrs({as: "nav"})`
gap: 1.5rem;
font-size: 1.5rem;
border: unset;
a {
transition: .2s opacity
}
a:hover {
opacity: .4;
}
`
2 years ago
export default () => {
return (
<Header>
<h1>wych.dev</h1>
<Nav>
<Link href="/">Home</Link>
<Link href="/projects">Projects</Link>
<a href="https://github.com/E-Almqvist" target="_blank">GitHub</a>
2 years ago
</Nav>
</Header>
)
}