From 265f660443bd89912fb881b38a9880eeb9362177 Mon Sep 17 00:00:00 2001 From: Michael <87752300+michi-onl@users.noreply.github.com> Date: Thu, 31 Jul 2025 17:38:05 +0200 Subject: [PATCH] feat: enhance mobile menu with structured links and download button --- src/components/MobileMenu.astro | 123 +++++++++++++++----------------- 1 file changed, 59 insertions(+), 64 deletions(-) diff --git a/src/components/MobileMenu.astro b/src/components/MobileMenu.astro index 8efb4d15..10492745 100644 --- a/src/components/MobileMenu.astro +++ b/src/components/MobileMenu.astro @@ -1,4 +1,6 @@ --- +import Button from '~/components/Button.astro' +import ArrowRightIcon from '~/icons/ArrowRightIcon.astro' import { getLocale, getPath, getUI } from '~/utils/i18n' const locale = getLocale(Astro) @@ -8,6 +10,26 @@ const { nav: { menu }, }, } = getUI(locale) + +const menuItems = [ + { + section: menu.gettingStarted, + links: [ + { href: getLocalePath('/mods'), text: menu.zenMods }, + { href: getLocalePath('/release-notes'), text: menu.releaseNotes }, + { href: 'https://discord.gg/zen-browser', text: menu.discord }, + ], + }, + { + section: menu.usefulLinks, + links: [ + { href: getLocalePath('/donate'), text: menu.donate }, + { href: getLocalePath('/about'), text: menu.aboutUs }, + { href: 'https://docs.zen-browser.app', text: menu.documentation }, + { href: 'https://github.com/zen-browser', text: menu.github, target: '_blank' }, + ], + }, +] --- @@ -18,14 +40,14 @@ const { id="mobile-menu" class="fixed inset-y-0 right-0 z-40 w-64 translate-x-full transform bg-paper shadow-lg transition-transform duration-300 peer-checked:translate-x-0 lg:hidden" > -