From 586f4cc2b7f5f7d8f4ac73771328c617ca87bbd5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 24 Jun 2026 17:11:46 +0200 Subject: [PATCH] Add cookie notice component and associated styles for user consent management --- src/components/CookieNotice.astro | 56 ++++++++++++++++ src/layouts/BaseLayout.astro | 8 +++ src/styles/site.css | 103 ++++++++++++++++++++++++++++++ 3 files changed, 167 insertions(+) create mode 100644 src/components/CookieNotice.astro diff --git a/src/components/CookieNotice.astro b/src/components/CookieNotice.astro new file mode 100644 index 0000000..1fab7ed --- /dev/null +++ b/src/components/CookieNotice.astro @@ -0,0 +1,56 @@ +--- +import { legal } from "../data/legal"; + +const storageKey = "mm-cookie-notice-dismissed"; +--- + + + + diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 4ecb693..20f2813 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -1,4 +1,6 @@ --- +import CookieNotice from "../components/CookieNotice.astro"; + interface Props { title: string; description?: string; @@ -21,6 +23,11 @@ const { {title} +