Compare commits

..

No commits in common. "582c65077dc4f32a6925f59b86ffef388fd9251a" and "8ca3b54b31e870b1be57efc82d15fcc424623306" have entirely different histories.

13 changed files with 82 additions and 229 deletions

View file

@ -20,7 +20,7 @@
The grid is one continuous block: no gaps and no frame, only a The grid is one continuous block: no gaps and no frame, only a
colored rule between cards (each card's right and bottom border, colored rule between cards (each card's right and bottom border,
with the grid pulled past its clipping wrapper so the outer ones with the grid pulled past its clipping wrapper so the outer ones
fall outside), 4px thick. With three or more cards the first is the large fall outside). With three or more cards the first is the large
one, two rows tall, and the next two stack beside it, so it no one, two rows tall, and the next two stack beside it, so it no
longer stretches its neighbor. longer stretches its neighbor.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
@ -112,15 +112,14 @@ function Card({ card, large }: { card: FeaturedCard; large: boolean }) {
return ( return (
<li <li
className={`relative flex flex-col overflow-hidden border-r-4 border-b-4 ${RULE} bg-surface transition-colors hover:bg-tint-soft ${ className={`relative flex flex-col overflow-hidden border-r-2 border-b-2 ${RULE} bg-surface transition-colors hover:bg-tint-soft ${
large ? 'lg:col-span-2 lg:row-span-2' : '' large ? 'lg:col-span-2 lg:row-span-2' : ''
}`} }`}
> >
{card.kind === 'video' ? ( {card.kind === 'video' ? (
// Above the stretched link, which a video card doesn't have // Above the stretched link, which a video card doesn't have
// anyway, so the play button always gets the click. Inset // anyway, so the play button always gets the click.
// from the card's edges, so the frame sits inside the cell. <div className="relative z-10">
<div className="relative z-10 p-4 pb-0">
<VideoPicture card={card} /> <VideoPicture card={card} />
</div> </div>
) : ( ) : (
@ -135,7 +134,7 @@ export default function FeaturedCards({ cards }: { cards: FeaturedCard[] }) {
const leadLarge = cards.length >= 3 const leadLarge = cards.length >= 3
return ( return (
<div className="overflow-hidden"> <div className="overflow-hidden">
<ul className="-mr-[4px] -mb-[4px] grid sm:grid-cols-2 lg:grid-cols-3"> <ul className="-mr-[2px] -mb-[2px] grid sm:grid-cols-2 lg:grid-cols-3">
{cards.map((card, index) => ( {cards.map((card, index) => (
<Card <Card
key={`${card.kind}-${card.ref?.id ?? card.url}-${index}`} key={`${card.kind}-${card.ref?.id ?? card.url}-${index}`}

View file

@ -163,7 +163,7 @@ export default function Layout() {
// container, and then nothing inside it can be position: sticky // container, and then nothing inside it can be position: sticky
// (a blog post's contents column scrolled away with the page). // (a blog post's contents column scrolled away with the page).
<div <div
className="relative min-h-screen overflow-x-clip" className="min-h-screen overflow-x-clip"
style={{ "--header-h": `${headerHeight}px` } as React.CSSProperties} style={{ "--header-h": `${headerHeight}px` } as React.CSSProperties}
> >
<a <a

View file

@ -3,86 +3,55 @@
Flat fills only: no blur, no gradient, no glow. Light mode uses Flat fills only: no blur, no gradient, no glow. Light mode uses
the palette's four palest shades, dark mode its dark shades at the palette's four palest shades, dark mode its dark shades at
45% opacity over the ink background. Every text token reads at half opacity over the ink background. Every text token reads at
4.5:1 or better on any of them, even where three overlap (the 5:1 or better on any of them, where two overlap included (the
lowest, 4.8:1, is the danger red in dark mode). lowest is the danger red in dark mode).
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
/* Spans the whole page (Layout's root is its containing block), so
the section circles sit at points down the document; the window
layer inside it is fixed. */
.page-backdrop { .page-backdrop {
position: absolute; position: fixed;
inset: 0; inset: 0;
z-index: -1; z-index: -1;
overflow: hidden; /* the section circles, never the fixed layer */ overflow: hidden;
pointer-events: none; pointer-events: none;
--pb-opacity: 0.7; --pb-opacity: 0.75;
--pb-a: #c2f6ff; --pb-a: #c2f6ff;
--pb-b: #dfebd6; --pb-b: #dfebd6;
--pb-c: #c2ffd6; --pb-c: #c2ffd6;
--pb-d: #c2fbff; --pb-d: #c2fbff;
--pb-e: #dfebd6; --pb-e: #dfebd6;
} --pb-shift: 0vw;
.page-backdrop__window {
position: fixed;
inset: 0;
overflow: hidden;
} }
.page-backdrop__circle { .page-backdrop__circle {
position: absolute; position: absolute;
border-radius: 50%; border-radius: 50%;
opacity: var(--pb-opacity); opacity: var(--pb-opacity);
transition: background-color 1.4s cubic-bezier(0.16, 1, 0.3, 1); transform: translateX(var(--pb-shift));
transition: background-color 1.4s cubic-bezier(0.16, 1, 0.3, 1),
transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
} }
/* Slow: fixed to the window. */ .page-backdrop__circle--a { width: 70vmax; height: 70vmax; left: -22vmax; top: -18vmax; background: var(--pb-a); }
.page-backdrop__circle--a { width: 70vmax; height: 70vmax; left: -24vmax; top: -16vmax; background: var(--pb-a); --pb-drift: -22vh; } .page-backdrop__circle--b { width: 52vmax; height: 52vmax; right: -16vmax; top: 8vh; background: var(--pb-b); }
.page-backdrop__circle--b { width: 50vmax; height: 50vmax; right: -18vmax; top: 34vh; background: var(--pb-b); --pb-drift: -40vh; } .page-backdrop__circle--c { width: 44vmax; height: 44vmax; left: 30vw; bottom: -20vmax; background: var(--pb-c); }
.page-backdrop__circle--d { width: 30vmax; height: 30vmax; left: 12vw; top: 46vh; background: var(--pb-d); }
.page-backdrop__circle--e { width: 24vmax; height: 24vmax; right: 18vw; bottom: 6vh; background: var(--pb-e); }
/* Section: placed down the page, moving with it. */ /* Tones, one per section in turn: the same shades, moved around. */
.page-backdrop__circle--c { width: 42vmax; height: 42vmax; left: 34vw; top: 18%; background: var(--pb-c); } .page-backdrop[data-tone="1"] { --pb-a: #dfebd6; --pb-b: #c2ffd6; --pb-c: #c2f6ff; --pb-d: #dfebd6; --pb-e: #c2fbff; --pb-shift: 4vw; }
.page-backdrop__circle--d { width: 32vmax; height: 32vmax; left: -8vmax; top: 48%; background: var(--pb-d); } .page-backdrop[data-tone="2"] { --pb-a: #c2ffd6; --pb-b: #c2fbff; --pb-c: #dfebd6; --pb-d: #c2f6ff; --pb-e: #c2ffd6; --pb-shift: -3vw; }
.page-backdrop__circle--e { width: 36vmax; height: 36vmax; right: -6vmax; top: 74%; background: var(--pb-e); } .page-backdrop[data-tone="3"] { --pb-a: #c2fbff; --pb-b: #c2f6ff; --pb-c: #c2ffd6; --pb-d: #dfebd6; --pb-e: #c2f6ff; --pb-shift: 2vw; }
/* The slow circles drift up across the whole scroll of the page. */
@supports (animation-timeline: scroll()) {
.page-backdrop__circle--a,
.page-backdrop__circle--b {
animation: page-backdrop-drift linear both;
animation-timeline: scroll(root block);
}
}
@keyframes page-backdrop-drift {
to {
transform: translateY(var(--pb-drift));
}
}
@media (prefers-reduced-motion: reduce) {
.page-backdrop__circle--a,
.page-backdrop__circle--b {
animation: none;
}
}
/* Tones, one per section in turn: the same shades, swapped around. */
.page-backdrop[data-tone="1"] { --pb-a: #dfebd6; --pb-b: #c2ffd6; --pb-c: #c2f6ff; --pb-d: #dfebd6; --pb-e: #c2fbff; }
.page-backdrop[data-tone="2"] { --pb-a: #c2ffd6; --pb-b: #c2fbff; --pb-c: #dfebd6; --pb-d: #c2f6ff; --pb-e: #c2ffd6; }
.page-backdrop[data-tone="3"] { --pb-a: #c2fbff; --pb-b: #c2f6ff; --pb-c: #c2ffd6; --pb-d: #dfebd6; --pb-e: #c2f6ff; }
/* Dark mode: the dark shades, the same turns. Two blocks as in /* Dark mode: the dark shades, the same turns. Two blocks as in
index.css: the toggle's choice, or the system's when there is none. */ index.css: the toggle's choice, or the system's when there is none. */
:root[data-theme="dark"] .page-backdrop { --pb-opacity: 0.45; --pb-a: #004552; --pb-b: #27371b; --pb-c: #004c52; --pb-d: #00521b; --pb-e: #27371b; } :root[data-theme="dark"] .page-backdrop { --pb-opacity: 0.5; --pb-a: #004552; --pb-b: #27371b; --pb-c: #004c52; --pb-d: #00521b; --pb-e: #27371b; }
:root[data-theme="dark"] .page-backdrop[data-tone="1"] { --pb-a: #27371b; --pb-b: #004c52; --pb-c: #004552; --pb-d: #27371b; --pb-e: #00521b; } :root[data-theme="dark"] .page-backdrop[data-tone="1"] { --pb-a: #27371b; --pb-b: #004c52; --pb-c: #004552; --pb-d: #27371b; --pb-e: #00521b; }
:root[data-theme="dark"] .page-backdrop[data-tone="2"] { --pb-a: #004c52; --pb-b: #00521b; --pb-c: #27371b; --pb-d: #004552; --pb-e: #004c52; } :root[data-theme="dark"] .page-backdrop[data-tone="2"] { --pb-a: #004c52; --pb-b: #00521b; --pb-c: #27371b; --pb-d: #004552; --pb-e: #004c52; }
:root[data-theme="dark"] .page-backdrop[data-tone="3"] { --pb-a: #00521b; --pb-b: #004552; --pb-c: #004c52; --pb-d: #27371b; --pb-e: #004552; } :root[data-theme="dark"] .page-backdrop[data-tone="3"] { --pb-a: #00521b; --pb-b: #004552; --pb-c: #004c52; --pb-d: #27371b; --pb-e: #004552; }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .page-backdrop { --pb-opacity: 0.45; --pb-a: #004552; --pb-b: #27371b; --pb-c: #004c52; --pb-d: #00521b; --pb-e: #27371b; } :root:not([data-theme="light"]) .page-backdrop { --pb-opacity: 0.5; --pb-a: #004552; --pb-b: #27371b; --pb-c: #004c52; --pb-d: #00521b; --pb-e: #27371b; }
:root:not([data-theme="light"]) .page-backdrop[data-tone="1"] { --pb-a: #27371b; --pb-b: #004c52; --pb-c: #004552; --pb-d: #27371b; --pb-e: #00521b; } :root:not([data-theme="light"]) .page-backdrop[data-tone="1"] { --pb-a: #27371b; --pb-b: #004c52; --pb-c: #004552; --pb-d: #27371b; --pb-e: #00521b; }
:root:not([data-theme="light"]) .page-backdrop[data-tone="2"] { --pb-a: #004c52; --pb-b: #00521b; --pb-c: #27371b; --pb-d: #004552; --pb-e: #004c52; } :root:not([data-theme="light"]) .page-backdrop[data-tone="2"] { --pb-a: #004c52; --pb-b: #00521b; --pb-c: #27371b; --pb-d: #004552; --pb-e: #004c52; }
:root:not([data-theme="light"]) .page-backdrop[data-tone="3"] { --pb-a: #00521b; --pb-b: #004552; --pb-c: #004c52; --pb-d: #27371b; --pb-e: #004552; } :root:not([data-theme="light"]) .page-backdrop[data-tone="3"] { --pb-a: #00521b; --pb-b: #004552; --pb-c: #004c52; --pb-d: #27371b; --pb-e: #004552; }

View file

@ -2,24 +2,17 @@
PAGE BACKDROP PAGE BACKDROP
One background behind every public page: large flat circles in One background behind every public page: large flat circles in
the palette's light shades (its dark ones in dark mode), the palette's light shades (its dark ones in dark mode), fixed to
overlapping. Sections paint nothing of their own, so it runs the window and overlapping. Sections paint nothing of their own,
behind all of them; cards keep their solid surface. so it runs behind all of them; cards keep their solid surface.
Two kinds of circle, for depth as the page scrolls:
slow fixed to the window, drifting up slower than the page
(a CSS scroll-driven animation, PageBackdrop.css)
section placed down the page itself, so they travel with the
sections they sit behind
Without scroll-driven animations, or under reduced motion, the
slow circles simply stay put.
As the visitor moves through a page the circles change tone: the As the visitor moves through a page the circles change tone: the
section crossing the middle of the window picks one of TONES (its section crossing the middle of the window picks one of TONES (its
place on the page, in turn), and the circles ease to that tone's place on the page, in turn), and the circles ease to that tone's
colors. Watched with an IntersectionObserver, so nothing runs colors and a slightly shifted position. Watched with an
while the page sits still. Under reduced motion the change is IntersectionObserver, so nothing runs while the page sits still;
instant (index.css stops every transition). the colors are in PageBackdrop.css. Under reduced motion the
change is instant (index.css stops every transition).
Every text color passes 4.5:1 on every shade used here, overlaps Every text color passes 4.5:1 on every shade used here, overlaps
included, in both modes: the light shades are the palette's included, in both modes: the light shades are the palette's
@ -32,8 +25,7 @@ import './PageBackdrop.css'
/** How many tones PageBackdrop.css defines (data-tone 0 to 3). */ /** How many tones PageBackdrop.css defines (data-tone 0 to 3). */
const TONES = 4 const TONES = 4
const SLOW = ['a', 'b'] const CIRCLES = ['a', 'b', 'c', 'd', 'e']
const SECTION = ['c', 'd', 'e']
export default function PageBackdrop() { export default function PageBackdrop() {
const ref = useRef<HTMLDivElement>(null) const ref = useRef<HTMLDivElement>(null)
@ -83,12 +75,7 @@ export default function PageBackdrop() {
return ( return (
<div ref={ref} className="page-backdrop" aria-hidden="true"> <div ref={ref} className="page-backdrop" aria-hidden="true">
<div className="page-backdrop__window"> {CIRCLES.map((name) => (
{SLOW.map((name) => (
<span key={name} className={`page-backdrop__circle page-backdrop__circle--${name}`} />
))}
</div>
{SECTION.map((name) => (
<span key={name} className={`page-backdrop__circle page-backdrop__circle--${name}`} /> <span key={name} className={`page-backdrop__circle page-backdrop__circle--${name}`} />
))} ))}
</div> </div>

View file

@ -25,10 +25,6 @@
flex-direction: column; flex-direction: column;
gap: calc(var(--pl-gap) * 1.25); gap: calc(var(--pl-gap) * 1.25);
color: var(--pl-ink); color: var(--pl-ink);
/* The frame is the whole list's, not each tile's. */
padding: calc(var(--pl-gap) * 1.5);
border: 2px solid var(--pl-frame-edge);
} }
.pl[data-size="sm"] { .pl[data-size="sm"] {
@ -106,7 +102,6 @@
} }
.pl__item { .pl__item {
position: relative;
flex: 0 0 auto; flex: 0 0 auto;
} }
@ -142,7 +137,8 @@
padding: var(--pl-pad); padding: var(--pl-pad);
padding-bottom: calc(var(--pl-pad) * 1.6); padding-bottom: calc(var(--pl-pad) * 1.6);
background: var(--pl-frame-bg); background: var(--pl-frame-bg);
transition: transform 160ms ease, background-color 160ms ease; border: 2px solid var(--pl-frame-edge);
transition: transform 160ms ease, border-color 160ms ease;
} }
.pl[data-tilt="on"] .pl__item:nth-child(odd) .pl__frame { .pl[data-tilt="on"] .pl__item:nth-child(odd) .pl__frame {
@ -158,7 +154,7 @@
.pl__tile--link:hover .pl__frame, .pl__tile--link:hover .pl__frame,
.pl__tile--link:focus-visible .pl__frame { .pl__tile--link:focus-visible .pl__frame {
transform: translateY(-2px); transform: translateY(-2px);
background: var(--color-tint-soft); border-color: var(--pl-accent);
} }
.pl__tile--button:focus-visible, .pl__tile--button:focus-visible,
@ -173,7 +169,7 @@
} }
.pl__tile[aria-expanded="true"] .pl__frame { .pl__tile[aria-expanded="true"] .pl__frame {
background: color-mix(in srgb, var(--pl-accent) 14%, var(--color-surface)); border-color: var(--pl-accent);
} }
.pl__photo { .pl__photo {
@ -262,41 +258,6 @@
/* bio panel ------------------------------------------------------------ */ /* bio panel ------------------------------------------------------------ */
/* Under its tile, over what follows, with a notch pointing up at
the tile (PeopleTiles.tsx picks the side). */
.pl__bio--anchored {
position: absolute;
top: calc(100% + 0.75rem);
left: 0;
z-index: 30;
width: min(24rem, calc(100vw - 2rem));
border-left: 0;
border-top: 3px solid var(--pl-accent);
background: var(--color-surface);
box-shadow: var(--shadow-lg);
}
.pl__bio--anchored[data-align="end"] {
left: auto;
right: 0;
}
.pl__bio--anchored::before {
content: '';
position: absolute;
top: -11px;
left: calc(var(--pl-w) / 2 - 8px);
width: 16px;
height: 8px;
background: var(--pl-accent);
clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.pl__bio--anchored[data-align="end"]::before {
left: auto;
right: calc(var(--pl-w) / 2 - 8px);
}
.pl__bio { .pl__bio {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View file

@ -51,13 +51,7 @@ import "./PeopleTiles.css";
* *
* At every size the photo is square and the caption a fixed two * At every size the photo is square and the caption a fixed two
* lines of name (and two of title), so a row's cards are one * lines of name (and two of title), so a row's cards are one
* height. The list as a whole has the frame, not each tile. * height. What doesn't fit ends in an ellipsis, and that tile gets
*
* Details open in a panel right under the tile, over what follows
* (flipped to end at the tile's right edge when it would run off
* the screen), and close on Escape, the tile again, or a click
* anywhere else. A scrolling row would clip that panel, so with
* overflow="scroll" it opens under the whole list instead. What doesn't fit ends in an ellipsis, and that tile gets
* the chevron too, opening the details with it in full. A person * the chevron too, opening the details with it in full. A person
* with no photo gets their initials on a palette color * with no photo gets their initials on a palette color
* (paletteFill in color.ts). * (paletteFill in color.ts).
@ -433,16 +427,6 @@ export function PeopleTilesView({
.filter((group) => group.people.length > 0); .filter((group) => group.people.length > 0);
}, [groups, people]); }, [groups, people]);
// A click anywhere outside the list closes the panel.
useEffect(() => {
if (!openKey) return undefined;
const onPointerDown = (event: PointerEvent) => {
if (!rootRef.current?.contains(event.target as Node)) setOpenKey(null);
};
document.addEventListener("pointerdown", onPointerDown);
return () => document.removeEventListener("pointerdown", onPointerDown);
}, [openKey]);
// Close the panel if the person it belongs to disappears. // Close the panel if the person it belongs to disappears.
useEffect(() => { useEffect(() => {
if (!openKey) return; if (!openKey) return;
@ -457,11 +441,6 @@ export function PeopleTilesView({
} }
const open = openKey ? findByKey(resolvedGroups, openKey) : null; const open = openKey ? findByKey(resolvedGroups, openKey) : null;
const anchored = overflow !== "scroll";
const closePanel = () => {
setOpenKey(null);
onExpand?.(null, null);
};
function markClipped(key: string, isClipped: boolean) { function markClipped(key: string, isClipped: boolean) {
setClipped((current) => { setClipped((current) => {
@ -551,15 +530,6 @@ export function PeopleTilesView({
onToggle={() => toggle(group, person, index)} onToggle={() => toggle(group, person, index)}
onClip={(isClipped) => markClipped(key, isClipped)} onClip={(isClipped) => markClipped(key, isClipped)}
/> />
{isOpen && anchored && open && (
<DetailPanel
id={`${baseId}-bio`}
person={open.person}
group={open.group}
anchored
onClose={closePanel}
/>
)}
</li> </li>
); );
})} })}
@ -568,12 +538,15 @@ export function PeopleTilesView({
))} ))}
</div> </div>
{open && !anchored && ( {open && (
<DetailPanel <DetailPanel
id={`${baseId}-bio`} id={`${baseId}-bio`}
person={open.person} person={open.person}
group={open.group} group={open.group}
onClose={closePanel} onClose={() => {
setOpenKey(null);
onExpand?.(null, null);
}}
/> />
)} )}
</div> </div>
@ -689,27 +662,13 @@ function DetailPanel({
id, id,
person, person,
group, group,
anchored = false,
onClose, onClose,
}: { }: {
id: string; id: string;
person: Person; person: Person;
group: PeopleGroup; group: PeopleGroup;
anchored?: boolean;
onClose: () => void; onClose: () => void;
}) { }) {
const panelRef = useRef<HTMLDivElement>(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 org = resolveOrg(person.org);
const title = titleOf(person); const title = titleOf(person);
const paragraphs = Array.isArray(person.bio) ? person.bio : [person.bio]; const paragraphs = Array.isArray(person.bio) ? person.bio : [person.bio];
@ -718,10 +677,8 @@ function DetailPanel({
return ( return (
<div <div
ref={panelRef}
id={id} id={id}
className={anchored ? "pl__bio pl__bio--anchored" : "pl__bio"} className="pl__bio"
data-align={alignEnd ? "end" : "start"}
role="region" role="region"
aria-label={`About ${person.name}`} aria-label={`About ${person.name}`}
style={tint ? ({ "--pl-accent": tint } as CSSProperties) : undefined} style={tint ? ({ "--pl-accent": tint } as CSSProperties) : undefined}

View file

@ -209,33 +209,12 @@ iframe[src*="churchcenter"] {
} }
/* A notice where content would be (an empty section, a form's /* A notice where content would be (an empty section, a form's
note, "coming soon"): no box and no fill, just two thick brackets note, "coming soon"): a flat tinted panel with a solid bar down
at opposite corners, top left and bottom right, like a its left edge. It replaces the dashed outlines these used to have.
viewfinder. Padding stays with each use; the brackets sit in its Padding stays with each use. */
corners, so give it some. */
@utility notice { @utility notice {
position: relative; background: var(--color-tint-soft);
&::before, border-left: 4px solid var(--color-brand);
&::after {
content: '';
position: absolute;
width: 1.75rem;
height: 1.75rem;
border: 0 solid var(--color-brand);
pointer-events: none;
}
&::before {
top: 0;
left: 0;
border-top-width: 4px;
border-left-width: 4px;
}
&::after {
right: 0;
bottom: 0;
border-right-width: 4px;
border-bottom-width: 4px;
}
} }
/* Buttons, and links drawn as buttons: Poppins Bold, superellipse /* Buttons, and links drawn as buttons: Poppins Bold, superellipse

View file

@ -7,4 +7,4 @@
box or a build banner can read the same value later. box or a build banner can read the same value later.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
export const SITE_VERSION = "NGU-Web.v1.10.1"; export const SITE_VERSION = "NGU-Web.v1.10.0";

View file

@ -43,7 +43,7 @@ const SECTIONS = [
"The regional organizations that support groups and host their own gatherings.", "The regional organizations that support groups and host their own gatherings.",
accent: "#004c52", accent: "#004c52",
Component: OrgListVertical, Component: OrgListVertical,
request: { type: "region", label: "Request a region update" }, request: { type: "region", label: "Update a region" },
props: { props: {
kind: "region", kind: "region",
pageLabel: "Region page", pageLabel: "Region page",
@ -61,7 +61,7 @@ const SECTIONS = [
"Organizations we collaborate with across the Unity movement and beyond.", "Organizations we collaborate with across the Unity movement and beyond.",
accent: ACCENTS.olive, accent: ACCENTS.olive,
Component: OrgListCards, Component: OrgListCards,
request: { type: "partner", label: "Request a partner listing" }, request: { type: "partner", label: "Add or update a partner" },
props: { props: {
kind: "partner", kind: "partner",
pageLabel: "Partner page", pageLabel: "Partner page",

View file

@ -496,13 +496,12 @@ type MonthGridProps = {
function MonthGrid({ weeks, month, today, occurrences, selected, onSelect, accent }: MonthGridProps) { function MonthGrid({ weeks, month, today, occurrences, selected, onSelect, accent }: MonthGridProps) {
return ( return (
<div className="overflow-hidden border border-brand/15 bg-surface shadow-sm"> <div className="overflow-hidden border border-brand/15 bg-surface shadow-sm">
{/* The weekday row: a solid bar in the button color, so the <div className="grid grid-cols-7 border-b border-brand/10 bg-tint-soft">
grid has a clear head. */}
<div className="grid grid-cols-7 bg-action">
{WEEKDAYS.map((day) => ( {WEEKDAYS.map((day) => (
<div <div
key={day} key={day}
className="px-3 py-3 font-display text-sm font-bold uppercase tracking-widest text-white" className="px-3 py-2 text-xs font-bold uppercase tracking-widest"
style={{ color: BODY }}
> >
{day} {day}
</div> </div>

View file

@ -36,9 +36,9 @@ import { accentText } from '../../lib/color.ts'
groupBy={org => org.details?.scope} groupBy={org => org.details?.scope}
/> />
Kind-specific extras (the areas a region covers, its map note) Kind-specific extras (the areas a region covers, the groups
come from `details` and render only when present, so a partner inside it) come from `details` and render only when present, so
row simply doesn't have them. a partner row simply doesn't have them.
═══════════════════════════════════════════════════════════════ */ ═══════════════════════════════════════════════════════════════ */
const MUTED = "var(--color-muted)"; const MUTED = "var(--color-muted)";
@ -88,6 +88,7 @@ function OrgRow({ org, pageLabel, siteLabel }) {
// Region extras. Absent for every other kind, and the JSX below // Region extras. Absent for every other kind, and the JSX below
// skips them rather than rendering empty headings. // skips them rather than rendering empty headings.
const areas = areasSentence(org.details?.areas ?? []); const areas = areasSentence(org.details?.areas ?? []);
const groupCount = (org.details?.groups ?? []).length;
const note = org.details?.map_note; const note = org.details?.map_note;
/* Collapsed, a row says who it is and nothing else, the areas /* Collapsed, a row says who it is and nothing else, the areas
@ -123,6 +124,15 @@ function OrgRow({ org, pageLabel, siteLabel }) {
)} )}
</span> </span>
{groupCount > 0 && (
<span
className="ml-auto text-sm shrink-0"
style={{ color: MUTED }}
title={`${groupCount} group${groupCount > 1 ? "s" : ""}`}
>
{groupCount}
</span>
)}
</button> </button>
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">

View file

@ -80,33 +80,25 @@
padding-block-start: 0.5rem; padding-block-start: 0.5rem;
} }
/* The numeral is a tag on the rail: a dark block with white type, /* Numeral breaks the rail. */
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 { .site-tl__decadeNum {
position: relative; position: relative;
z-index: 1; z-index: 1;
justify-self: start; margin-left: calc(var(--tl-rail-x) * -1 + 0.125rem);
width: fit-content; padding-block: 0.35rem;
margin-left: calc(var(--tl-rail-x) + (var(--tl-rail-w) / 2)); background: var(--tl-surface);
transform: translateX(-50%);
padding: 0.5rem 0.3rem;
background: var(--color-action);
color: #ffffff;
font-family: var(--font-display);
font-size: 0.9375rem; font-size: 0.9375rem;
font-weight: 700; font-weight: 650;
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
letter-spacing: 0.01em; letter-spacing: 0.01em;
line-height: 1.1; line-height: 1.1;
writing-mode: vertical-rl; writing-mode: vertical-rl;
text-orientation: sideways; text-orientation: sideways;
color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff);
} }
.site-tl__decade--pre .site-tl__decadeNum { .site-tl__decade--pre .site-tl__decadeNum {
background: var(--color-tint); color: var(--tl-faint);
color: var(--color-muted);
} }
.site-tl__decadeTitle { .site-tl__decadeTitle {
@ -140,8 +132,8 @@
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
padding: 0.375rem 0.75rem; padding: 0.375rem 0.75rem;
background: var(--color-tint-soft);
border-left: 3px solid var(--tl-rail); border-left: 3px solid var(--tl-rail);
border-bottom: 3px solid var(--tl-rail);
font-size: 0.8125rem; font-size: 0.8125rem;
color: var(--tl-faint); color: var(--tl-faint);
} }

View file

@ -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 // A cell's rules: right and bottom, the outer ones clipped off
// by the wrapper (the grid runs 4px past it). // by the wrapper (the grid runs 2px past it).
const cell = 'border-r-4 border-b-4 border-brand' const cell = 'border-r-2 border-b-2 border-brand'
const panelFill = `color-mix(in srgb, ${accent} 12%, var(--color-surface))` const panelFill = `color-mix(in srgb, ${accent} 12%, var(--color-surface))`
return ( return (
@ -108,7 +108,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
{blurb && <p className="mt-4 max-w-2xl text-lg text-muted">{blurb}</p>} {blurb && <p className="mt-4 max-w-2xl text-lg text-muted">{blurb}</p>}
<div className="mt-12 overflow-hidden"> <div className="mt-12 overflow-hidden">
<div className="-mr-[4px] -mb-[4px]"> <div className="-mr-[2px] -mb-[2px]">
<div <div
role="tablist" role="tablist"
aria-label={title} aria-label={title}