From ba6948dbdda40f9876c0e42a9999db5b98df4efd Mon Sep 17 00:00:00 2001 From: Nuno Pereira Date: Fri, 22 Dec 2023 01:27:58 +0000 Subject: [PATCH] Implemented Mobile navbar --- src/components/AppBar/Mobile.astro | 34 +++++++++++++++++++++++++++- src/components/AppBar/Nav/Link.astro | 6 +++-- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/src/components/AppBar/Mobile.astro b/src/components/AppBar/Mobile.astro index 73ccd6f..6bb1e5b 100644 --- a/src/components/AppBar/Mobile.astro +++ b/src/components/AppBar/Mobile.astro @@ -26,13 +26,14 @@ const { pages, customClasses } = Astro.props; + + + diff --git a/src/components/AppBar/Nav/Link.astro b/src/components/AppBar/Nav/Link.astro index de38b32..6d4e862 100644 --- a/src/components/AppBar/Nav/Link.astro +++ b/src/components/AppBar/Nav/Link.astro @@ -21,20 +21,22 @@ export const backgroundColorForPageLink = ( export const hasIcon = ( page: Page, -): page is Omit & { icon: NonNullable } => { +): page is Page & { icon: NonNullable } => { return page.icon !== undefined && page.icon.enabled; }; interface Props { page: Page; + linkClasses?: string; } -const { page } = Astro.props; +const { page, linkClasses } = Astro.props; ---