From 7da90092ad3f6f6f501c7af8b87ebd33db56d30f Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Wed, 2 Dec 2026 18:25:32 -0700 Subject: [PATCH] Add sticky header + autohide. --- src/components/Header.astro | 30 ++++++++++++++++++++++++++++-- src/styles/global.css | 2 ++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/src/components/Header.astro b/src/components/Header.astro index 2d66ba8..aff0ae5 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -8,7 +8,7 @@ import { urlfrag } from '../utils/path'; const base = import.meta.env.BASE_URL; --- -
+ \ No newline at end of file +
+ + \ No newline at end of file diff --git a/src/styles/global.css b/src/styles/global.css index bd4f14c..0557948 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -168,6 +168,8 @@ body { } html > body > header { + @apply sticky top-0 backdrop-blur w-full z-50; + @apply transition-transform duration-300 ease-in-out; @apply bg-sunday-theme p-4 text-white text-3xl lg:text-4xl grid grid-cols-[1fr_auto_1fr] items-center gap-4; }