From f484437451eb12119fcb1a032c69d5300aa738ba Mon Sep 17 00:00:00 2001 From: Calum Muir Date: Sun, 21 Dec 2025 21:07:47 +0000 Subject: [PATCH] Make pages full-bleed on mobile --- client/src/components/SiteFooter.tsx | 13 +++++++++++-- client/src/pages/About.tsx | 8 ++++---- client/src/pages/Contact.tsx | 6 +++--- client/src/pages/Desktop.tsx | 2 +- client/src/pages/Facebook.tsx | 4 ++-- client/src/pages/News.tsx | 4 ++-- client/src/pages/NewsArticle.tsx | 4 ++-- client/src/pages/SupportUs.tsx | 10 +++++----- 8 files changed, 30 insertions(+), 21 deletions(-) diff --git a/client/src/components/SiteFooter.tsx b/client/src/components/SiteFooter.tsx index 9b3d868..bb18b3e 100644 --- a/client/src/components/SiteFooter.tsx +++ b/client/src/components/SiteFooter.tsx @@ -1,8 +1,17 @@ import React from "react"; -export const SiteFooter = (): JSX.Element => { +type SiteFooterProps = { + fullBleedOnMobile?: boolean; +}; + +export const SiteFooter = ({ + fullBleedOnMobile = false, +}: SiteFooterProps): JSX.Element => { + const outerClass = fullBleedOnMobile + ? "mt-0 w-full max-w-[1200px] mx-auto px-0 sm:px-8" + : "mt-0 w-full max-w-[1200px] mx-auto px-4 sm:px-8"; return ( -