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

38 lines
550 B

2 years ago
import styled from 'styled-components'
import Link from "next/link"
const MenuLine = styled.div`
width: 2rem;
height: 2px;
border-radius: 2px;
2 years ago
background-color: var(--fg);
&:not(:last-child) {
margin-bottom: .4rem;
}
2 years ago
`
const BurgerContainer = styled.div`
display: none;
flex-direction: column;
@media screen and (max-width: 960px) {
display: flex;
nav {
display: none;
}
}
2 years ago
`
const Menu = () => {
return (
2 years ago
<BurgerContainer>
2 years ago
<MenuLine />
<MenuLine />
<MenuLine />
2 years ago
</BurgerContainer>
2 years ago
)
}
export default Menu