Design overhaul (v1.10.0 to v1.10.2) #18

Merged
ngu-git-admin merged 17 commits from design-overhaul into main 2026-09-30 23:59:16 +01:00
30 changed files with 50 additions and 47 deletions
Showing only changes of commit 3dfc31fd85 - Show all commits

View file

@ -147,7 +147,7 @@ function Block({ block, accent, anchor }: { block: ContentBlock; accent: string;
case 'subheading':
return (
<h4 id={anchor} className="text-lg font-semibold" style={{ color: accentText(accent), ...ANCHOR_MARGIN }}>
<h4 id={anchor} className="text-lg font-normal" style={{ color: accentText(accent), ...ANCHOR_MARGIN }}>
{text}
</h4>
)

View file

@ -80,7 +80,7 @@ function Card({ card }: { card: FeaturedCard }) {
<p className="text-sm font-semibold text-link">{card.eyebrow}</p>
)}
{card.title && (
<h3 className="mt-2 font-display text-xl font-extrabold leading-snug text-ink">
<h3 className="mt-2 font-display text-xl font-bold leading-snug text-ink">
{href ? (
// Stretched over the whole card, so the picture and the
// blurb are part of the click without nesting links.

View file

@ -27,7 +27,7 @@ export default function OrgLogo({
className={`${size} object-contain shrink-0`}
fallback={
<span
className={`${size} shrink-0 flex items-center justify-center font-extrabold`}
className={`${size} shrink-0 flex items-center justify-center font-display font-bold`}
style={{ border: `1px solid ${color}`, color: accentText(color) }}
aria-hidden="true"
>

View file

@ -77,7 +77,7 @@ export function Section({ section }: { section: ShellSection }) {
<div className="max-w-6xl mx-auto px-6 mb-10">
<div className="flex flex-wrap items-end justify-between gap-4">
<div>
<h2 className="text-3xl md:text-4xl font-extrabold" style={{ color: accentText(accent) }}>
<h2 className="text-3xl md:text-4xl font-bold" style={{ color: accentText(accent) }}>
{title}
</h2>
{blurb && <p className="mt-2 text-muted max-w-xl">{blurb}</p>}
@ -104,7 +104,7 @@ export default function PageShell({ title, intro, sections }: PageShellProps) {
{/* Page header */}
<div className="pt-24 pb-12 px-6" style={{ background: "var(--color-tint)" }}>
<div className="max-w-6xl mx-auto">
<h1 className="text-5xl md:text-6xl font-extrabold" style={{ color: accentText(BRAND) }}>
<h1 className="text-5xl md:text-6xl font-bold" style={{ color: accentText(BRAND) }}>
{title}
</h1>
{intro && <p className="mt-3 text-lg text-muted max-w-2xl">{intro}</p>}

View file

@ -277,7 +277,7 @@ export function FilePicker({
>
<div className="flex max-h-[85vh] flex-col">
<div className="flex flex-wrap items-center gap-3 border-b border-brand/15 px-5 py-4">
<h2 className="text-lg font-semibold text-link">Choose a file</h2>
<h2 className="text-lg font-bold text-link">Choose a file</h2>
<input
type="search"
value={query}

View file

@ -426,7 +426,7 @@ export function MediaPicker({
>
<div className="flex max-h-[85vh] flex-col">
<div className="flex flex-wrap items-center gap-3 border-b border-brand/15 px-5 py-4">
<h2 className="text-lg font-semibold text-link">Choose an image</h2>
<h2 className="text-lg font-bold text-link">Choose an image</h2>
<input
type="search"
value={query}

View file

@ -520,7 +520,7 @@ export function Repeater({
return (
<section className={className}>
<div className="flex flex-wrap items-center gap-3">
<h3 className="text-base font-semibold text-body">
<h3 className="text-base font-bold text-body">
{spec.label}
{list.length > 0 && (
<span className="ml-2 text-sm font-normal text-muted/80">{list.length}</span>

View file

@ -4,7 +4,7 @@
@import '@fontsource/poppins/400.css';
@import '@fontsource/poppins/600.css';
@import '@fontsource/poppins/700.css';
@import '@fontsource/poppins/800.css';
@import '@fontsource/poppins/800.css'; /* the front page's stat numbers only */
@import 'tailwindcss';
@ -132,6 +132,9 @@ body {
-webkit-font-smoothing: antialiased;
}
/* Type: Poppins Bold for titles, headings and buttons (the btn
utility), Poppins at regular weight for subheadings, Montserrat
for everything else. */
h1, h2, h3, h4, h5, h6 {
font-family: 'Poppins', sans-serif;
font-weight: bold;

View file

@ -111,7 +111,7 @@ export default function PersonDetail() {
{previous.length > 0 && (
<div>
{current.length > 0 && (
<h3 className="mb-4 text-lg font-semibold" style={{ color: accentText(accent) }}>
<h3 className="mb-4 text-lg font-bold" style={{ color: accentText(accent) }}>
Previously
</h3>
)}

View file

@ -166,7 +166,7 @@ function SaveToDrive({ clip, onSaved }: { clip: Job; onSaved: () => void }) {
function Card({ title, children }: { title: string; children: ReactNode }) {
return (
<section className="mt-6 border border-brand/20 bg-surface p-5">
<h2 className="text-lg font-semibold text-body">{title}</h2>
<h2 className="text-lg font-bold text-body">{title}</h2>
<div className="mt-4">{children}</div>
</section>
);

View file

@ -328,7 +328,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
</span>
</div>
{row.subject && <h2 className="mt-4 text-lg font-semibold text-body">{row.subject}</h2>}
{row.subject && <h2 className="mt-4 text-lg font-bold text-body">{row.subject}</h2>}
<p className={`${row.subject ? "mt-2" : "mt-4"} whitespace-pre-wrap text-body`}>{row.message}</p>
{row.feedback_type === "content" && <RequestDetails row={row} />}
{row.files?.length > 0 && <RequestFiles row={row} canWrite={canWrite} canRemove={canRemove} />}

View file

@ -41,7 +41,7 @@ function NavCard({ item }) {
return (
<div className="group relative flex flex-col border border-brand/20 bg-surface p-5 transition-all hover:border-brand/60 hover:shadow-sm">
<div className="flex items-baseline gap-3">
<h3 className="text-base font-semibold text-link">
<h3 className="text-base font-bold text-link">
<Link
to={to}
className="after:absolute after:inset-0 after:content-['']"
@ -82,7 +82,7 @@ function CardBlock({ title, blurb, children }) {
return (
<div className="mt-10">
<div className="flex items-baseline gap-3">
<h2 className="text-lg font-semibold text-link">{title}</h2>
<h2 className="text-lg font-bold text-link">{title}</h2>
{blurb && <p className="text-sm text-muted">{blurb}</p>}
</div>
<div className="mt-4 grid gap-4 sm:grid-cols-2 xl:grid-cols-3">{children}</div>
@ -93,7 +93,7 @@ function CardBlock({ title, blurb, children }) {
function PanelSection({ title, children }) {
return (
<section className="border-b border-brand/10 px-5 py-4 last:border-b-0">
<h2 className="text-xs font-semibold uppercase tracking-wider text-muted/70">
<h2 className="text-xs font-bold uppercase tracking-wider text-muted/70">
{title}
</h2>
<div className="mt-2.5 text-sm text-muted">{children}</div>

View file

@ -59,7 +59,7 @@ function Block({ title, note, children }: any) {
return (
<section className="mt-8 first:mt-0">
<div className="flex items-baseline gap-3">
<h2 className="text-lg font-semibold text-link">{title}</h2>
<h2 className="text-lg font-bold text-link">{title}</h2>
{note && <p className="text-sm text-muted">{note}</p>}
</div>
<div className="mt-3">{children}</div>

View file

@ -458,7 +458,7 @@ export default function EntityEdit() {
{/* Field groups */}
{groups.map((group) => (
<section key={group.legend} id={sectionId(group.legend)} className={CARD}>
<h2 className="text-lg font-semibold text-body">{group.legend}</h2>
<h2 className="text-lg font-bold text-body">{group.legend}</h2>
{group.note && <p className="mt-1 text-sm text-muted">{group.note}</p>}
<div className="mt-4">
<FieldGrid>

View file

@ -55,7 +55,7 @@ export function PostCard({ post, accent }: { post: BlogPostSummary; accent: stri
{[date, ...post.tags].filter(Boolean).join(' · ')}
</p>
)}
<h4 className="mt-2 font-display text-xl font-extrabold leading-snug text-ink">
<h4 className="mt-2 font-display text-xl font-bold leading-snug text-ink">
<Link
to={blogHref(post.id)}
className="after:absolute after:inset-0 after:content-[''] hover:underline"
@ -74,7 +74,7 @@ export function PostCard({ post, accent }: { post: BlogPostSummary; accent: stri
function Subheading({ children, accent }: { children: string; accent: string }) {
return (
<h3 className="text-2xl font-extrabold" style={{ color: accentText(accent) }}>
<h3 className="text-2xl font-bold" style={{ color: accentText(accent) }}>
{children}
</h3>
)

View file

@ -689,7 +689,7 @@ function MonthList({
<p className="text-xs font-bold uppercase tracking-widest" style={{ color: accentText(accent) }}>
{d.toLocaleDateString(undefined, { weekday: 'short' })}
</p>
<p className="font-display text-3xl font-extrabold leading-none">{d.getDate()}</p>
<p className="font-display text-3xl font-bold leading-none">{d.getDate()}</p>
</div>
<ul className="min-w-0 flex-1 space-y-3">
{list.map((item) => (

View file

@ -197,7 +197,7 @@ export function Card({
<Logo src={orgLogo} className="ev-org h-11 w-auto mb-4" />
<div className="ev-info">
{typeBadge}
<h3 className="text-3xl font-extrabold leading-tight">
<h3 className="text-3xl font-bold leading-tight">
<TitleLink ev={ev} linked={linked}>
{ev.title}
</TitleLink>
@ -225,7 +225,7 @@ export function Card({
<div className="md:col-span-2">
<Logo src={orgLogo} className="h-15 w-auto mb-6" />
{typeBadge}
<h3 className="text-4xl font-extrabold">
<h3 className="text-4xl font-bold">
<TitleLink ev={ev} linked={linked}>
{ev.title}
</TitleLink>
@ -576,7 +576,7 @@ export default function EventListCards({
{pastEvents.length > 0 && (
<div className="mt-12">
<h3
className="text-2xl font-extrabold mb-6"
className="text-2xl font-display font-bold mb-6"
style={{ color: accentText(accent), opacity: 0.85 }}
>
Past Events

View file

@ -180,7 +180,7 @@ function LocationPicker({ page, section, onPageChange, onSectionChange }) {
return (
<div>
<div className="flex flex-wrap items-center">
<h3 className="text-base font-semibold text-body">
<h3 className="text-base font-bold text-body">
Where did you run into it?
</h3>
<OptionalTag />
@ -415,7 +415,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
{/* Optional contact details */}
<div className="mt-8 border border-dashed border-muted/30 bg-tint/60 p-5 sm:p-6">
<div className="flex flex-wrap items-center">
<h3 className="text-base font-semibold text-body">
<h3 className="text-base font-bold text-body">
{request ? "How we reach you" : "Your details"}
</h3>
{!request && <OptionalTag />}

View file

@ -51,7 +51,7 @@ function OrgCard({ org, accent, pageLabel, siteLabel }) {
<OrgLogo org={org} color={color} />
<div className="min-w-0 flex-1">
<h3 className="text-xl font-extrabold leading-tight" style={{ color }}>
<h3 className="text-xl font-bold leading-tight" style={{ color }}>
{org.name}
</h3>
{subtitle && (
@ -117,7 +117,7 @@ function Block({ title, orgs, accent, pageLabel, siteLabel }) {
return (
<section className="mb-12">
{title && (
<h3 className="text-xl font-extrabold mb-5" style={{ color: FALLBACK_COLOR }}>
<h3 className="text-xl font-bold mb-5" style={{ color: FALLBACK_COLOR }}>
{title}
</h3>
)}

View file

@ -70,7 +70,7 @@ function Blocks({ blocks = [] as any[], color }) {
switch (block.type) {
case "heading":
return (
<h4 key={i} className="text-lg font-extrabold">
<h4 key={i} className="text-lg font-bold">
{block.text}
</h4>
);
@ -374,7 +374,7 @@ function RegionBlock({
>
{/* The heading holds the button, not the other way round: a
heading inside a button stops being a heading. */}
<h4 className={`font-extrabold ${indent ? "text-lg" : "text-xl"}`} style={{ color: INK }}>
<h4 className={`font-bold ${indent ? "text-lg" : "text-xl"}`} style={{ color: INK }}>
<button
onClick={() => setSelected(on ? null : region.id)}
onMouseEnter={() => setHovered(region.id)}
@ -547,7 +547,7 @@ function GroupDetail({ group, region, onClose }) {
<OrgLogo org={group} color={colorOf(region)} size="h-20 w-20" />
<div className="min-w-0 flex-1">
<p className="text-2xl font-extrabold leading-tight">{group.name}</p>
<p className="text-2xl font-display font-bold leading-tight">{group.name}</p>
<p style={{ color: FALLBACK_COLOR }}>{group.location_label}</p>
</div>
@ -633,7 +633,7 @@ function GroupGrid({ regions, groups, groupsIn, subtextFor, openId, setOpenId })
className="h-3 w-3 rounded-full shrink-0"
style={{ background: colorOf(region) }}
/>
<h3 className="text-2xl font-extrabold" style={{ color: colorOf(region) }}>
<h3 className="text-2xl font-bold" style={{ color: colorOf(region) }}>
{region.name}
</h3>
<span className="text-sm" style={{ color: MUTED }}>
@ -871,13 +871,13 @@ export default function OrgListMap({ view = "map", accent = FALLBACK_COLOR }) {
ref={listRef}
className="relative lg:h-0 lg:min-h-full overflow-y-auto pr-2"
>
<h3 className="text-xl font-extrabold mb-1" style={{ color: FALLBACK_COLOR }}>
<h3 className="text-xl font-bold mb-1" style={{ color: FALLBACK_COLOR }}>
{US_TITLE}
</h3>
{domestic.map(r => block(r, true))}
<h3
className="text-xl font-extrabold mt-6 mb-1 pt-4"
className="text-xl font-display font-bold mt-6 mb-1 pt-4"
style={{ color: FALLBACK_COLOR, borderTop: `1px solid ${RULE}` }}
>
{INTL_TITLE}

View file

@ -68,7 +68,7 @@ function OrgMark({ org, color }) {
<span className="h-3 w-3 rounded-full shrink-0" style={{ background: color }} aria-hidden="true" />
) : (
<span
className="h-8 w-8 shrink-0 flex items-center justify-center text-xs font-extrabold"
className="h-8 w-8 shrink-0 flex items-center justify-center text-xs font-display font-bold"
style={{ border: `1px solid ${color}`, color: accentText(color) }}
aria-hidden="true"
>
@ -114,7 +114,7 @@ function OrgRow({ org, pageLabel, siteLabel }) {
<OrgMark org={org} color={color} />
<span className="min-w-0">
<span className="block font-extrabold text-lg leading-tight" style={{ color }}>
<span className="block font-display font-bold text-lg leading-tight" style={{ color }}>
{org.name}
</span>
{summary && (
@ -224,7 +224,7 @@ function Block({ title, orgs, pageLabel, siteLabel }) {
return (
<section className="mb-10">
{title && (
<h3 className="text-xl font-extrabold mb-1" style={{ color: FALLBACK_COLOR }}>
<h3 className="text-xl font-bold mb-1" style={{ color: FALLBACK_COLOR }}>
{title}
</h3>
)}

View file

@ -318,7 +318,7 @@ export default function RequestForm() {
)}
<div className="mt-8 border border-dashed border-muted/30 bg-tint/60 p-5 sm:p-6">
<h3 className="text-base font-semibold text-body">How we reach you</h3>
<h3 className="text-base font-bold text-body">How we reach you</h3>
<p className="mt-1 max-w-prose text-sm" style={{ color: MUTED }}>
We use these only to follow up on this request, and we won't add you to any list.
</p>

View file

@ -18,7 +18,7 @@ export default function CalendarBand({ id, title, blurb }: CalendarBandProps) {
<section id={id} className="py-24" style={{ background: 'var(--color-tint-soft)' }}>
<div className="mx-auto mb-10 flex max-w-6xl flex-wrap items-end justify-between gap-4 px-6">
<div>
<h2 className="font-display text-4xl font-extrabold text-ink md:text-5xl">
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">
{title}
</h2>
{blurb && <p className="mt-3 max-w-xl text-lg text-muted">{blurb}</p>}

View file

@ -21,7 +21,7 @@ export default function FeaturedBand({ id, title, blurb, cards }: FeaturedBandPr
return (
<section id={id} className="py-24" style={{ background: 'var(--color-tint-soft)' }}>
<div className="mx-auto max-w-6xl px-6">
<h2 className="font-display text-4xl font-extrabold text-ink md:text-5xl">{title}</h2>
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">{title}</h2>
{blurb && <p className="mt-4 max-w-2xl text-lg text-muted">{blurb}</p>}
<div className="mt-12">
<FeaturedCards cards={cards} />

View file

@ -79,7 +79,7 @@ export default function FeaturedTimelineRail({ id, title, blurb }: RailProps) {
<section id={id} className="overflow-hidden py-24" style={{ background: 'var(--color-tint-soft)' }}>
<div className="mx-auto flex max-w-6xl flex-wrap items-end gap-6 px-6">
<div>
<h2 className="font-display text-4xl font-extrabold text-ink md:text-5xl">
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">
{title}
</h2>
{blurb && <p className="mt-3 max-w-xl text-lg text-muted">{blurb}</p>}
@ -158,7 +158,7 @@ export default function FeaturedTimelineRail({ id, title, blurb }: RailProps) {
className="flex flex-1 flex-col justify-center p-8 text-white transition-transform duration-300 hover:-translate-y-1"
style={{ background: BRAND }}
>
<span className="font-display text-2xl font-extrabold">The whole story</span>
<span className="font-display text-2xl font-bold">The whole story</span>
<span className="mt-2 text-white/75">Every year, every milestone.</span>
<span className="mt-6 font-semibold">See the full history <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" /></span>
</Link>

View file

@ -157,7 +157,7 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
by over a second. Sized so an admin's headline stays within
about two lines. */}
<h1
className={`hp-rise font-display font-extrabold leading-[1.02] tracking-tight ${
className={`hp-rise font-display font-bold leading-[1.02] tracking-tight ${
beside ? 'text-4xl md:text-5xl' : 'text-5xl md:text-6xl lg:text-7xl'
}`}
style={{ animationDelay: '60ms' }}
@ -477,7 +477,7 @@ function EventPanel({ event }: { event: HeroEvent }) {
<div className="space-y-4 p-8">
<div>
<h2 className="font-display text-3xl font-extrabold leading-tight md:text-4xl">
<h2 className="font-display text-3xl font-bold leading-tight md:text-4xl">
<Link to={eventHref(event.id)} className="hover:underline">
{event.title}
</Link>

View file

@ -93,7 +93,7 @@ export default function NextEventCountdown({
<p className="text-xs font-bold uppercase tracking-[0.25em]" style={{ color: accentText(accent) }}>
{live ? 'Happening now' : 'Next up'}
</p>
<p className="mt-1 truncate font-display text-2xl font-extrabold text-ink md:text-3xl">
<p className="mt-1 truncate font-display text-2xl font-bold text-ink md:text-3xl">
{event.title}
</p>
<p className="mt-1 text-sm text-muted">

View file

@ -95,7 +95,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
<div className="mx-auto max-w-6xl px-6">
<div className="grid gap-12 lg:grid-cols-12">
<div className="lg:col-span-5">
<h2 className="font-display text-4xl font-extrabold text-ink md:text-5xl">
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">
{title}
</h2>
{blurb && <p className="mt-4 text-lg text-muted">{blurb}</p>}

View file

@ -21,7 +21,7 @@ export default function RetreatsBand({ id, title, blurb }: RetreatsBandProps) {
<section id={id} className="overflow-hidden py-24" style={{ background: 'var(--color-tint)' }}>
<div className="mx-auto mb-12 flex max-w-6xl flex-wrap items-end gap-6 px-6">
<div>
<h2 className="font-display text-4xl font-extrabold text-ink md:text-5xl">
<h2 className="font-display text-4xl font-bold text-ink md:text-5xl">
{title}
</h2>
{blurb && <p className="mt-3 max-w-xl text-lg text-muted">{blurb}</p>}

View file

@ -56,7 +56,7 @@ export default function StatsBand({ id, title, blurb, stats }: StatsBandProps) {
/>
<div className="relative mx-auto max-w-6xl px-6">
<h2 className="font-display text-3xl font-extrabold text-white md:text-4xl">
<h2 className="font-display text-3xl font-bold text-white md:text-4xl">
{title}
</h2>
{blurb && <p className="mt-3 max-w-2xl text-white/70">{blurb}</p>}