From 84dde04352a253494953ec28539ef80a181fe4a9 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Mon, 1 Jul 2024 21:49:17 +0200 Subject: [PATCH] add mobile nav --- web/src/components/Button.astro | 9 +- web/src/components/Layout/Header.astro | 72 +++++++++++++++- web/src/sections/LandingHeader.astro | 112 ++++++++++++------------- 3 files changed, 128 insertions(+), 65 deletions(-) diff --git a/web/src/components/Button.astro b/web/src/components/Button.astro index 7e9539e..a5bd5b3 100644 --- a/web/src/components/Button.astro +++ b/web/src/components/Button.astro @@ -38,9 +38,14 @@ export interface Props extends HTMLAttributes<"button">, VariantProps {} -const { variant = "default", size = "default", ...props } = Astro.props; +const { + variant = "default", + size = "default", + class: className, + ...props +} = Astro.props; --- - diff --git a/web/src/components/Layout/Header.astro b/web/src/components/Layout/Header.astro index 49eef1e..bf07f74 100644 --- a/web/src/components/Layout/Header.astro +++ b/web/src/components/Layout/Header.astro @@ -1,8 +1,13 @@ --- -import { button } from "../Button.astro"; +import Button, { button } from "../Button.astro"; +import { Menu } from "lucide-astro"; --- -