From f37c093dc04e83f310557d19b560eec8b3a087d3 Mon Sep 17 00:00:00 2001 From: Zaldimmar Date: Wed, 30 Sep 2026 15:40:04 -0500 Subject: [PATCH] Overhaul fixes: vertical parallax backdrop, bracket notices, list-framed people tiles - Backdrop: two slow circles fixed to the window drift up as the page scrolls (a scroll-driven animation), three sit down the page and travel with their sections; tones still change per section. - Notices are two corner brackets, no box or fill. - People tiles: the frame is the list's, and details open right under the tile, closing on Escape or a click elsewhere. - Featured cards and the connect section: 4px rules; video frames inset from the card edge. - Calendar weekday row is a solid bar; History decade numerals are tags on the rail instead of a white box. - Region and partner buttons say Request; the region list's group count is gone. Co-Authored-By: Claude Opus 5.5 --- src/components/FeaturedCards.tsx | 11 ++-- src/components/Layout.tsx | 2 +- src/components/PageBackdrop.css | 73 ++++++++++++++++++------- src/components/PageBackdrop.tsx | 31 ++++++++--- src/components/PeopleTiles.css | 47 ++++++++++++++-- src/components/PeopleTiles.tsx | 57 ++++++++++++++++--- src/index.css | 31 +++++++++-- src/pages/Community.tsx | 4 +- src/pages/sections/EventCalendar.tsx | 7 ++- src/pages/sections/OrgList-Vertical.tsx | 16 +----- src/pages/sections/history/timeline.css | 24 +++++--- src/pages/sections/home/Pathfinder.tsx | 6 +- 12 files changed, 228 insertions(+), 81 deletions(-) diff --git a/src/components/FeaturedCards.tsx b/src/components/FeaturedCards.tsx index c0fc3dc..d7112c5 100644 --- a/src/components/FeaturedCards.tsx +++ b/src/components/FeaturedCards.tsx @@ -20,7 +20,7 @@ The grid is one continuous block: no gaps and no frame, only a colored rule between cards (each card's right and bottom border, with the grid pulled past its clipping wrapper so the outer ones - fall outside). With three or more cards the first is the large + fall outside), 4px thick. With three or more cards the first is the large one, two rows tall, and the next two stack beside it, so it no longer stretches its neighbor. ═══════════════════════════════════════════════════════════════ */ @@ -112,14 +112,15 @@ function Card({ card, large }: { card: FeaturedCard; large: boolean }) { return (
  • {card.kind === 'video' ? ( // Above the stretched link, which a video card doesn't have - // anyway, so the play button always gets the click. -
    + // anyway, so the play button always gets the click. Inset + // from the card's edges, so the frame sits inside the cell. +
    ) : ( @@ -134,7 +135,7 @@ export default function FeaturedCards({ cards }: { cards: FeaturedCard[] }) { const leadLarge = cards.length >= 3 return (
    -
    - {open && ( + {open && !anchored && ( { - setOpenKey(null); - onExpand?.(null, null); - }} + onClose={closePanel} /> )}
    @@ -662,13 +689,27 @@ function DetailPanel({ id, person, group, + anchored = false, onClose, }: { id: string; person: Person; group: PeopleGroup; + anchored?: boolean; onClose: () => void; }) { + const panelRef = useRef(null); + const [alignEnd, setAlignEnd] = useState(false); + + // Under the tile, starting at its left edge unless that would run + // off the right of the screen; then ending at its right edge. + useLayoutEffect(() => { + if (!anchored || !panelRef.current) return; + const tile = panelRef.current.parentElement?.getBoundingClientRect(); + const width = panelRef.current.offsetWidth; + if (tile) setAlignEnd(tile.left + width > document.documentElement.clientWidth - 16); + }, [anchored]); + const org = resolveOrg(person.org); const title = titleOf(person); const paragraphs = Array.isArray(person.bio) ? person.bio : [person.bio]; @@ -677,8 +718,10 @@ function DetailPanel({ return (
    -
    + {/* The weekday row: a solid bar in the button color, so the + grid has a clear head. */} +
    {WEEKDAYS.map((day) => (
    {day}
    diff --git a/src/pages/sections/OrgList-Vertical.tsx b/src/pages/sections/OrgList-Vertical.tsx index 6a4622a..18ed850 100644 --- a/src/pages/sections/OrgList-Vertical.tsx +++ b/src/pages/sections/OrgList-Vertical.tsx @@ -36,9 +36,9 @@ import { accentText } from '../../lib/color.ts' groupBy={org => org.details?.scope} /> - Kind-specific extras (the areas a region covers, the groups - inside it) come from `details` and render only when present, so - a partner row simply doesn't have them. + Kind-specific extras (the areas a region covers, its map note) + come from `details` and render only when present, so a partner + row simply doesn't have them. ═══════════════════════════════════════════════════════════════ */ const MUTED = "var(--color-muted)"; @@ -88,7 +88,6 @@ function OrgRow({ org, pageLabel, siteLabel }) { // Region extras. Absent for every other kind, and the JSX below // skips them rather than rendering empty headings. const areas = areasSentence(org.details?.areas ?? []); - const groupCount = (org.details?.groups ?? []).length; const note = org.details?.map_note; /* Collapsed, a row says who it is and nothing else, the areas @@ -124,15 +123,6 @@ function OrgRow({ org, pageLabel, siteLabel }) { )} - {groupCount > 0 && ( - 1 ? "s" : ""}`} - > - {groupCount} - - )}
    diff --git a/src/pages/sections/history/timeline.css b/src/pages/sections/history/timeline.css index 95305fe..3c73c36 100644 --- a/src/pages/sections/history/timeline.css +++ b/src/pages/sections/history/timeline.css @@ -80,25 +80,33 @@ padding-block-start: 0.5rem; } -/* Numeral breaks the rail. */ +/* The numeral is a tag on the rail: a dark block with white type, + centered on the line, so the rail runs into it and out again. + (It used to paint the page's color to hide the rail behind it, + which showed as a white box once sections went transparent.) */ .site-tl__decadeNum { position: relative; z-index: 1; - margin-left: calc(var(--tl-rail-x) * -1 + 0.125rem); - padding-block: 0.35rem; - background: var(--tl-surface); + justify-self: start; + width: fit-content; + margin-left: calc(var(--tl-rail-x) + (var(--tl-rail-w) / 2)); + transform: translateX(-50%); + padding: 0.5rem 0.3rem; + background: var(--color-action); + color: #ffffff; + font-family: var(--font-display); font-size: 0.9375rem; - font-weight: 650; + font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; line-height: 1.1; writing-mode: vertical-rl; text-orientation: sideways; - color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff); } .site-tl__decade--pre .site-tl__decadeNum { - color: var(--tl-faint); + background: var(--color-tint); + color: var(--color-muted); } .site-tl__decadeTitle { @@ -132,8 +140,8 @@ align-items: center; gap: 0.5rem; padding: 0.375rem 0.75rem; - background: var(--color-tint-soft); border-left: 3px solid var(--tl-rail); + border-bottom: 3px solid var(--tl-rail); font-size: 0.8125rem; color: var(--tl-faint); } diff --git a/src/pages/sections/home/Pathfinder.tsx b/src/pages/sections/home/Pathfinder.tsx index 71f4bf1..a246398 100644 --- a/src/pages/sections/home/Pathfinder.tsx +++ b/src/pages/sections/home/Pathfinder.tsx @@ -97,8 +97,8 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps) } // A cell's rules: right and bottom, the outer ones clipped off - // by the wrapper (the grid runs 2px past it). - const cell = 'border-r-2 border-b-2 border-brand' + // by the wrapper (the grid runs 4px past it). + const cell = 'border-r-4 border-b-4 border-brand' const panelFill = `color-mix(in srgb, ${accent} 12%, var(--color-surface))` return ( @@ -108,7 +108,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps) {blurb &&

    {blurb}

    }
    -
    +