diff --git a/components/burgermenu.tsx b/components/burgermenu.tsx
new file mode 100644
index 0000000..edd7685
--- /dev/null
+++ b/components/burgermenu.tsx
@@ -0,0 +1,72 @@
+import styled, {css} from "styled-components"
+import React, {useState} from "react"
+//import Link from "next/link"
+
+const MenuLine = styled.div`
+ width: 1.8rem;
+ height: 2px;
+ border-radius: 2px;
+ background-color: var(--fg);
+ &:not(:last-child) {
+ margin-bottom: .4rem;
+ }
+`
+
+const BurgerContainer = styled.div<{open: boolean}>`
+ display: none;
+ width: 1.8rem;
+ height: 1.8rem;
+ flex-direction: column;
+ justify-content: center;
+ margin-left: auto;
+
+ div {
+ transition: .2s;
+ }
+
+ &:hover {
+ cursor: pointer;
+ }
+
+ @media screen and (max-width: 960px) {
+ display: flex;
+
+ nav {
+ display: none !important;
+ position: absolute;
+ top: 0;
+ }
+ }
+
+ ${({open}) => open && css`
+ div {
+ position: absolute;
+ height: 4px;
+ }
+
+ div:nth-child(1) {
+ transform: rotate(45deg) translate(.2rem, .2rem);
+ }
+
+ div:nth-child(2) {
+ transform: rotate(-45deg) translate(-.18rem, .2rem);
+ }
+
+ div:last-child {
+ display: none;
+ }
+ `}
+`
+
+const Menu = () => {
+ const [open, setOpen] = useState(false);
+ return (
+ setOpen(!open)}>
+
+
+
+
+ )
+}
+
+export default Menu
diff --git a/components/header.tsx b/components/header.tsx
index 4317d96..6bb9b00 100644
--- a/components/header.tsx
+++ b/components/header.tsx
@@ -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 = () => {
wych.dev
+
)
}
diff --git a/components/layout.tsx b/components/layout.tsx
index ebf75fd..4016b61 100644
--- a/components/layout.tsx
+++ b/components/layout.tsx
@@ -1,9 +1,14 @@
-import Header from './header'
-import Footer from './footer'
-import {ReactNode} from 'react'
+import Header from "./header"
+import Footer from "./footer"
+import {ReactNode} from "react"
+import Head from "next/head"
const Layout = ({children}: {children: ReactNode}) => {
return <>
+
+
+ wych.dev
+
{children}
diff --git a/components/nav.tsx b/components/nav.tsx
index da9d2b2..ebe136f 100644
--- a/components/nav.tsx
+++ b/components/nav.tsx
@@ -15,6 +15,12 @@ const NavCont = styled.nav`
a:hover {
opacity: .4;
}
+
+ @media screen and (max-width: 960px) {
+ display: none;
+ position: absolute;
+ top: 0;
+ }
`
const Nav = () => {
@@ -24,7 +30,7 @@ const Nav = () => {
Contact
Projects
GitHub
- WychGit
+ WychGit
)
}
diff --git a/styles/globals.css b/styles/globals.css
index 7788309..f964fd1 100755
--- a/styles/globals.css
+++ b/styles/globals.css
@@ -17,7 +17,7 @@
--fg-link: #abf;
--fg-code: #ffbe85;
--fg-gold: #fff190;
- --emph-shadow: 0 0 4px;
+ --emph-shadow: 0 0 2px;
--bg: #272a34;
--bg-dark: #21242b;
@@ -67,3 +67,4 @@ em {
font-style: normal;
text-shadow: var(--emph-shadow) currentColor;
}
+