burgermenu
E. Almqvist 2 years ago
parent c7b0b23eed
commit e1b19ae1fa
  1. 22
      components/burgermenu.tsx
  2. 6
      components/header.tsx

@ -0,0 +1,22 @@
import styled from 'styled-components'
import Link from "next/link"
const MenuLine = styled.div`
display: block;
width: 15rem;
height: 5px;
border-radius: 4px;
background-color: var(--fg);
`
const Menu = () => {
return (
<div className="burger-container">
<MenuLine />
<MenuLine />
<MenuLine />
</div>
)
}
export default Menu

@ -1,6 +1,7 @@
import styled from 'styled-components'
import Nav from './nav'
import styled from "styled-components"
import Nav from "./nav"
import Link from "next/link"
import Menu from "./burgermenu"
const HeaderCont = styled.header`
display: flex;
@ -28,6 +29,7 @@ const Header = () => {
<HeaderCont>
<h1><Link href="/">wych.dev</Link></h1>
<Nav />
<Menu />
</HeaderCont>
)
}

Loading…
Cancel
Save