From 43f9656cd81d8952e684db43ceda590b574ed9a6 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Fri, 2 Sep 2022 00:08:55 +0300 Subject: Fugly but functional hamburger menu --- src/Geshem.css | 38 ++++++++++++++++++++++++++++++++++++++ src/Geshem.tsx | 2 ++ src/Menu.tsx | 23 +++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 src/Menu.tsx diff --git a/src/Geshem.css b/src/Geshem.css index 2e0f58e..e14e971 100644 --- a/src/Geshem.css +++ b/src/Geshem.css @@ -6,6 +6,44 @@ font-family: monospace; } +#menu { + position: absolute; + top: 20px; + right: 20px; + height: 4em; + width: 4em; + line-height: 4em; + text-align: center; + background-color: rgba(20, 30, 10, 0.8); +} + +#bars { + display: flex; + flex-direction: column; + align-items: center; + gap: 10px; + padding: 10px; +} + +.bar { + height: 0.2em; + width: 80%; + background-color: lightgray; +} + +#about { + position: fixed; + left: 20px; + width: 80vw; + height: 80vh; + background-color: rgba(200, 200, 200, 0.8); + direction: rtl; +} + +#menu:hover { + background-color: rgba(0, 120, 0, 1); +} + #date { font-size: 1.4em; } diff --git a/src/Geshem.tsx b/src/Geshem.tsx index 6e88f19..3bd99ad 100644 --- a/src/Geshem.tsx +++ b/src/Geshem.tsx @@ -4,6 +4,7 @@ import { BrowserRouter, Route, Routes } from "react-router-dom"; import { Map } from "./Map"; import { Slider } from "./Slider"; import { DateTime } from "./Datetime"; +import { Menu } from "./Menu"; import { IMAGES_BASE_URL, PLAYBACK_HOURS, PLAYBACK_SLOTS } from "./config"; @@ -73,6 +74,7 @@ export function Geshem({ date }: GeshemProps) { return ( <> +