From 7a53279e60191e40dca547b78d3e41feb7121228 Mon Sep 17 00:00:00 2001 From: Lorenzo Iovino Date: Tue, 29 Sep 2026 00:36:29 +0200 Subject: [PATCH] fix: align navbar and footer with the page content width --- src/components/Footer.astro | 10 ++++++++-- src/components/Navbar.astro | 8 +++++++- src/pages/blog/[slug].astro | 4 ++-- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index e1d4c50..96466ab 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,11 +1,17 @@ --- import { Image } from "astro:assets"; import forgejoIcon from "../assets/forgejo.svg"; + +interface Props { + width?: "4xl" | "7xl"; +} +const { width = "4xl" } = Astro.props; +const maxWidth = width === "7xl" ? "max-w-7xl" : "max-w-4xl"; --- -
+