From b8d7dad3e34660e1d98dd7dc8a473474577c2c15 Mon Sep 17 00:00:00 2001 From: Wesley Ray Date: Thu, 13 Aug 2026 08:43:32 -0400 Subject: [PATCH] Knoebels: the park map gets its own page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The homepage had two competing visuals once the reading map landed, and the park heat map was in the header — above the hero. Moved to /knoebels; the homepage keeps the one-line crowd verdict as a teaser that links there. Extracted verbatim into KnoebelsMap.astro. Its styles stay `is:global`: every element inside the is built with createElementNS and so never carries Astro's scoping attribute, which would make a scoped `.knb-map text` selector silently match nothing. Homepage HTML drops ~4 KB and no longer fetches /knoebels/rides or the Esri tiles; the strip's own /knoebels/now call is unchanged. Co-Authored-By: Claude Opus 5 --- src/components/KnoebelsMap.astro | 225 +++++++++++++++++++++++++++++++ src/layouts/Base.astro | 224 ++---------------------------- src/pages/knoebels.astro | 30 +++++ 3 files changed, 264 insertions(+), 215 deletions(-) create mode 100644 src/components/KnoebelsMap.astro create mode 100644 src/pages/knoebels.astro diff --git a/src/components/KnoebelsMap.astro b/src/components/KnoebelsMap.astro new file mode 100644 index 0000000..c06771e --- /dev/null +++ b/src/components/KnoebelsMap.astro @@ -0,0 +1,225 @@ +--- +/** + * The Knoebels park-heat map — one glow per ride, over darkened satellite imagery. + * + * Lived in the homepage header until 2026-08-13, when it moved to its own page (`/knoebels`) + * to make room for the reading map. The homepage keeps the one-line `knb-stats` strip as the + * teaser; it links here. + * + * Data: `api.c0smere.net/knoebels/rides` (live waits while the park is open, typical weekend + * peak otherwise). Fail-closed, like every garden widget. + */ +--- + +park heat + + + + + + + + diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index d3ee689..d748e0d 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -108,19 +108,11 @@ const pageUrl = new URL(Astro.url.pathname, Astro.site); - ) } @@ -321,175 +313,6 @@ const pageUrl = new URL(Astro.url.pathname, Astro.site); } - -