From a3a0249abc5ae6313e71d8757f5d9fdb31945878 Mon Sep 17 00:00:00 2001 From: FleetAdmiralJakob Date: Sat, 13 Jan 2024 15:21:13 +0100 Subject: [PATCH] feat: Added a bottom menubar for mobile --- apps/web/public/locales/en/common.json | 2 +- apps/web/src/components/Layout.tsx | 84 +++++++++++++++++++++----- 2 files changed, 70 insertions(+), 16 deletions(-) diff --git a/apps/web/public/locales/en/common.json b/apps/web/public/locales/en/common.json index d95854ea..93984d09 100644 --- a/apps/web/public/locales/en/common.json +++ b/apps/web/public/locales/en/common.json @@ -7,7 +7,7 @@ "menu home": "Home", "menu locations": "Locations", "menu settings": "Settings", - "menu contact": "Contact Us", + "menu contact": "Contact", "footer legal": "Legal", "footer contributors": "Contributors", diff --git a/apps/web/src/components/Layout.tsx b/apps/web/src/components/Layout.tsx index 37ce0db5..eef834cd 100644 --- a/apps/web/src/components/Layout.tsx +++ b/apps/web/src/components/Layout.tsx @@ -5,7 +5,9 @@ import { useTranslation } from "next-i18next"; import { AiFillGithub, AiFillHome } from "react-icons/ai"; import { FaMapMarkedAlt, FaShare } from "react-icons/fa"; import { IoIosSettings, IoMdContact } from "react-icons/io"; +import { IoPeopleSharp } from "react-icons/io5"; import { LuMenu, LuX } from "react-icons/lu"; +import { PiScrollFill } from "react-icons/pi"; import { cn } from "@weatherio/ui"; @@ -99,21 +101,21 @@ const Layout: React.FC = ({ {navbarOpen && (
- - -

{translation("menu home")}

- - - -

{translation("menu locations")}

+ + +

GitHub

- - {" "} -

{translation("menu settings")}

+ + +

{translation("footer legal")}

- - -

{translation("menu contact")}

+ + +

{translation("footer contributors")}

)} @@ -128,8 +130,60 @@ const Layout: React.FC = ({ {" "} {translation("share button")} -
{children}
-