From a907a47c24e3fd63c77ff299910f6d96820ba4f4 Mon Sep 17 00:00:00 2001 From: Zaldimmar Date: Wed, 30 Sep 2026 22:42:20 -0500 Subject: [PATCH] Mobile: menu, page titles, hero, retreat carousel, people tiles - The mobile menu centers when it fits and starts at the top when it's taller than the screen (safe center), so its top is reachable; its close button is a 44px target. - Page titles and the hero headline start a size smaller on phones and break long words instead of being cut off. - Hero: the split buttons stack on a phone (the slash from sm); the slide dots and pause button are 40px targets and wrap; photo heroes leave room for the caption above the buttons. - Retreat carousel: phone-sized padding and type; on a phone the arrows sit beside the dots instead of over the text, dots are 40px targets, and a swipe turns it. The narrow event card layout gives the logo its own row (it had made a stray column). - People tiles: the details panel slides to stay on screen with its notch under the tile; a third column only when tiles keep 60% of their width; a 40px close button. Co-Authored-By: Claude Opus 5.5 --- src/components/Layout.tsx | 4 +- src/components/PageShell.tsx | 2 +- src/components/PeopleTiles.css | 16 +---- src/components/PeopleTiles.tsx | 32 +++++++--- src/index.css | 3 + src/pages/sections/EventList-Cards.tsx | 81 +++++++++++++++++++------- src/pages/sections/home/HeroStage.tsx | 57 +++++++++--------- src/pages/sections/home/home.css | 26 +++++++++ 8 files changed, 145 insertions(+), 76 deletions(-) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index ef4e612..2551bd8 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -296,7 +296,7 @@ export default function Layout() { {/* Mobile menu */} {mobileMenuOpen && (
{events.map((e, i) => ( ))} +
)} diff --git a/src/pages/sections/home/HeroStage.tsx b/src/pages/sections/home/HeroStage.tsx index dc4c039..dd5363f 100644 --- a/src/pages/sections/home/HeroStage.tsx +++ b/src/pages/sections/home/HeroStage.tsx @@ -74,7 +74,9 @@ export default function HeroStage({ hero }: { hero: Hero | null }) { return (
{backdrop === 'photos' ? ( @@ -157,8 +159,8 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) { about two lines. */}

{hero.headline} @@ -186,12 +188,13 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) { Both set: one cell in two halves, the primary filled on the left and the secondary clear on the right, split by a slash (the filled half's slanted edge, which the clear half tucks under). - One set: that one alone, in its own style. */ + On a phone the halves stack instead, filled on top, since two + labels side by side don't fit; the slash starts at sm (home.css, + .hp-split). One set: that one alone, in its own style. */ -const SLANT = '1.75rem' const PRIMARY_FILL = '#f0bd4f' const PRIMARY_TEXT = '#001011' -const HALF = 'relative flex items-center gap-2 px-8 py-4 text-lg transition-colors duration-200 focus-visible:outline-offset-[-6px]' +const HALF = 'relative flex items-center justify-center gap-2 px-8 py-4 text-lg transition-colors duration-200 focus-visible:outline-offset-[-6px]' type HeroLink = Hero['primary'] @@ -200,24 +203,15 @@ function HeroActions({ primary, secondary }: { primary: HeroLink; secondary: Her if (primary && secondary) { return ( -
+
{primary.label} - + {secondary.label} {arrow}
@@ -323,8 +317,8 @@ function PhotoBackdrop({ slides, seconds }: { slides: HeroSlide[]; seconds: numb )} {slides.length > 1 && ( -
-
+
+
{slides.map((slide, i) => ( ))}
@@ -348,7 +345,7 @@ function PhotoBackdrop({ slides, seconds }: { slides: HeroSlide[]; seconds: numb type="button" onClick={() => setPaused((p) => !p)} aria-label={paused ? 'Play slideshow' : 'Pause slideshow'} - className="flex h-8 w-8 items-center justify-center btn border border-white/40 text-xs text-white hover:bg-white/10" + className="ml-2 flex h-10 w-10 items-center justify-center btn border border-white/40 text-xs text-white hover:bg-white/10" > {paused ?