From dc153ba354118a378459b8b65ee06ac5d54d3926 Mon Sep 17 00:00:00 2001 From: Yigit BALABAN Date: Sun, 1 Nov 2026 08:05:39 +0300 Subject: [PATCH] Polish navigation, footer, focus states, and related pages --- src/components/Footer.astro | 5 +-- src/components/Header.astro | 4 ++- src/components/IridescentDefs.astro | 2 +- src/layouts/Base.astro | 11 +++++-- src/pages/404.astro | 12 ++++---- src/pages/devices.astro | 26 ++++++++-------- src/styles/global.css | 48 +++++++++++++++++------------ 7 files changed, 63 insertions(+), 45 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index ab763aa..f5b81e7 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -2,12 +2,13 @@
PeacockProject
- Open source · early days + Open source, built in the open. + The Project GitHub Wiki Community - Top ↑ + Back to top ↑
diff --git a/src/components/Header.astro b/src/components/Header.astro index a94e690..bc4f9c8 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -3,13 +3,15 @@ import Mark from './Mark.astro'; // The homepage's wordmark points at "#", every other page points home. const { homeHref = '/' } = Astro.props; +const path = Astro.url.pathname.replace(/\/+$/, '') || '/'; +const here = (p) => path === p || path.startsWith(p + '/'); ---
Peacock// OS