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/nav.tsx

39 lines
771 B

2 years ago
import styled from 'styled-components'
import ActiveLink from './activelink'
2 years ago
const NavCont = styled.nav`
2 years ago
display: flex;
gap: 1.5rem;
font-size: 1.2rem;
border: unset;
a {
color: var(--fg-button);
transition: var(--trans-time) opacity;
2 years ago
}
a:hover {
opacity: .4;
}
2 years ago
@media screen and (max-width: 960px) {
display: none;
position: absolute;
top: 0;
}
2 years ago
`
const Nav = () => {
2 years ago
return (
<NavCont>
<ActiveLink href="/">About</ActiveLink>
<ActiveLink href="/#contact">Contact</ActiveLink>
<ActiveLink href="/projects">Projects</ActiveLink>
<a href="https://github.com/E-Almqvist" target="_blank" rel="noreferrer">GitHub</a>
<a href="https://git.wych.dev" target="_blank" rel="noreferrer">WychGit</a>
</NavCont>
2 years ago
)
}
export default Nav