From a53c05b3b6c8f5f85d122d4134c96a3f81ad7255 Mon Sep 17 00:00:00 2001 From: Niko Date: Sat, 8 Aug 2026 11:13:03 +0200 Subject: [PATCH] add date gates --- src/components/Header.astro | 42 ++++++++++--- src/components/sections/hero/hero.astro | 19 +++++- src/components/ui/DateGate.astro | 79 +++++++++++++++++++++++++ 3 files changed, 130 insertions(+), 10 deletions(-) create mode 100644 src/components/ui/DateGate.astro diff --git a/src/components/Header.astro b/src/components/Header.astro index 699cafbec..13469335f 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -2,6 +2,7 @@ import HeaderLogo from "@components/header/header-logo.astro"; import Search from "@components/Search.astro"; import ThemeToggle from "@components/ThemeToggle.astro"; +import DateGate from "@ui/DateGate.astro"; import { NAV_MENUS } from "@data/nav"; import { buildLinkChecker } from "@utils/nav"; @@ -111,12 +112,24 @@ const activeMenus = NAV_MENUS.map((menu) => ({ ), ) } - - + + + + + + + + + +