From 089c1b766788154f72e3c9fab61ee7a3ea6498e3 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Tue, 2 Jul 2024 21:01:34 +0200 Subject: [PATCH] add panellum to bundle create card event component fix heading levels card event --- web/src/components/Cards/CardEvent.astro | 32 ++++++++++++++++++++++++ web/src/components/Layout/Header.astro | 7 +++++- web/src/sections/Events.astro | 24 ++---------------- web/src/sections/LandingHeader.astro | 5 +--- 4 files changed, 41 insertions(+), 27 deletions(-) create mode 100644 web/src/components/Cards/CardEvent.astro diff --git a/web/src/components/Cards/CardEvent.astro b/web/src/components/Cards/CardEvent.astro new file mode 100644 index 0000000..ee8fd9c --- /dev/null +++ b/web/src/components/Cards/CardEvent.astro @@ -0,0 +1,32 @@ +--- +import type { Event } from "@/lib/events-api"; +import Card from "../Card.astro"; + +type Props = { + event: Event; +}; + +const { event } = Astro.props; +--- + + +
+

+ + {event.start.toLocaleDateString("de-DE", { year: "numeric" })} + + + { + event.start.toLocaleDateString("de-DE", { + month: "long", + day: "numeric", + }) + } + +

+
+
+

{event.title}

+ +
+
diff --git a/web/src/components/Layout/Header.astro b/web/src/components/Layout/Header.astro index bdab738..b35a6e5 100644 --- a/web/src/components/Layout/Header.astro +++ b/web/src/components/Layout/Header.astro @@ -16,7 +16,12 @@ import { Menu } from "lucide-astro";

vspace.one

-
Events
- { - events.map((e) => ( - -
-
- {e.start.toLocaleDateString("de-DE", { year: "numeric" })} -
-

- {e.start.toLocaleDateString("de-DE", { - month: "long", - day: "numeric", - })} -

-
-
-

{e.title}

- -
-
- )) - } + {events.map((e) => )}
diff --git a/web/src/sections/LandingHeader.astro b/web/src/sections/LandingHeader.astro index 4155c85..722149f 100644 --- a/web/src/sections/LandingHeader.astro +++ b/web/src/sections/LandingHeader.astro @@ -38,13 +38,10 @@ import { Image } from "astro:assets"; src="/pic/panorama/maschinenraum_half.jpg" mode="pano">
-