Adopt the new palette; square corners, superellipse buttons

The theme defaults (light and dark) come from the 16-color grid,
kept as PALETTE in src/lib/color.ts; every text pair passes the
admin's 4.5:1 check. Nothing is rounded any more except buttons,
which share one btn utility (Poppins Bold, a superellipse corner
where the browser has corner-shape) and true dots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-30 14:40:39 -05:00
parent ecdcd4ec37
commit d81f7bd856
62 changed files with 416 additions and 384 deletions

View file

@ -114,12 +114,12 @@ function RecipientRow({ recipient, accent }: { recipient: Recipient; accent: str
alt=""
loading="lazy"
decoding="async"
className="h-16 w-16 shrink-0 rounded-full object-cover"
className="h-16 w-16 shrink-0 object-cover"
/>
) : (
<span
aria-hidden="true"
className="flex h-16 w-16 shrink-0 items-center justify-center rounded-full text-sm font-bold text-white"
className="flex h-16 w-16 shrink-0 items-center justify-center text-sm font-bold text-white"
style={{ background: accent }}
>
{initials(recipient.name)}

View file

@ -113,7 +113,7 @@ export default function BlogPost() {
{post.tags.map((tag) => (
<span
key={tag}
className="rounded-full px-3 py-0.5 text-xs font-semibold"
className=" px-3 py-0.5 text-xs font-semibold"
style={{
background: "var(--color-tint)",
color: accentText(BRAND),
@ -125,7 +125,7 @@ export default function BlogPost() {
<button
type="button"
onClick={() => window.print()}
className="ml-auto inline-flex items-center gap-1.5 rounded-full border border-link px-3 py-1 font-semibold text-link transition-colors hover:bg-tint print:hidden"
className="ml-auto inline-flex items-center gap-1.5 btn border border-link px-3 py-1 text-link transition-colors hover:bg-tint print:hidden"
>
<FilePdf size={16} weight="bold" aria-hidden="true" />
Download PDF
@ -143,7 +143,7 @@ export default function BlogPost() {
<img
src={cover}
alt={post.cover_alt ?? ""}
className="aspect-video w-full rounded-2xl object-cover"
className="aspect-video w-full object-cover"
/>
)}

View file

@ -42,7 +42,7 @@ const SECTIONS = [
title: "Unity Regions",
blurb:
"The regional organizations that support groups and host their own gatherings.",
accent: "#4a6b72",
accent: "#004c52",
background: "var(--color-surface)",
Component: OrgListVertical,
request: { type: "region", label: "Update a region" },
@ -61,7 +61,7 @@ const SECTIONS = [
title: "Partner Organizations",
blurb:
"Organizations we collaborate with across the Unity movement and beyond.",
accent: ACCENTS.mint,
accent: ACCENTS.olive,
background: "var(--color-tint)",
Component: OrgListCards,
request: { type: "partner", label: "Add or update a partner" },

View file

@ -117,7 +117,7 @@ export default function EventDetail() {
href={link.url}
target="_blank"
rel="noreferrer"
className="inline-flex items-center gap-2 rounded-full px-5 py-2 text-sm font-semibold text-white transition-transform hover:scale-105"
className="inline-flex items-center gap-2 btn px-5 py-2 text-sm text-white transition-transform hover:scale-105"
style={{ background: accent }}
>
<PlatformIcon platform={link.platform} />
@ -152,7 +152,7 @@ export default function EventDetail() {
{upcoming.map((date) => (
<li
key={date}
className="rounded-xl border-l-4 bg-surface px-5 py-3"
className="border-l-4 bg-surface px-5 py-3"
style={{ borderColor: accent }}
>
<p className="font-semibold" style={{ color: accentText(accent) }}>
@ -251,7 +251,7 @@ function Facts({ event, accent }: { event: EventRecord; accent: string }) {
return (
<div className="flex flex-wrap items-center gap-x-6 gap-y-3 text-sm">
<span
className="rounded-full px-3 py-1 font-semibold uppercase tracking-wide"
className=" px-3 py-1 font-semibold uppercase tracking-wide"
style={{
background: event.status === 'cancelled' ? '#b3261e' : accent,
color: event.status === 'cancelled' ? '#ffffff' : readableOn(accent),
@ -268,7 +268,7 @@ function Facts({ event, accent }: { event: EventRecord; accent: string }) {
redundant. */}
{event.event_type && (
<span
className="rounded-full px-3 py-1 font-semibold uppercase tracking-wide"
className=" px-3 py-1 font-semibold uppercase tracking-wide"
style={{ border: `1px solid ${accent}`, color: accentText(accent) }}
>
{eventTypeLabel(event.event_type)}

View file

@ -44,7 +44,7 @@ function GivingPanel() {
href={GIVING_URL}
className="
mt-8 inline-flex items-center justify-center
rounded-full px-10 py-4
btn px-10 py-4
text-base font-semibold tracking-wide text-white
shadow-sm transition
hover:brightness-110 hover:shadow-md

View file

@ -51,7 +51,7 @@ export default function History() {
<button
type="button"
onClick={reload}
className="mt-3 rounded-full border border-brand px-4 py-1.5 text-sm font-medium text-link transition-colors hover:bg-tint"
className="mt-3 btn border border-brand px-4 py-1.5 text-sm text-link transition-colors hover:bg-tint"
>
Try again
</button>

View file

@ -130,7 +130,7 @@ export default function Home() {
<button
type="button"
onClick={reload}
className="mt-4 rounded-full border border-brand px-5 py-2 font-semibold text-link hover:bg-tint"
className="mt-4 btn border border-brand px-5 py-2 text-link hover:bg-tint"
>
Try again
</button>

View file

@ -36,7 +36,7 @@ const SECTIONS = [
id: "committees",
title: "Committees & Volunteers",
blurb: "Additional roles and contributors.",
accent: ACCENTS.mint,
accent: ACCENTS.olive,
background: "var(--color-tint)",
content: <ComingSoon what="this list of committees and volunteers" />,
},
@ -50,7 +50,7 @@ const SECTIONS = [
<div className="max-w-6xl mx-auto px-6">
<a
href="mailto:info@nextgenerationofunity.org"
className="inline-block py-2.5 px-6 rounded-full border border-link text-link font-bold transition-all duration-200 hover:scale-105 active:scale-[0.98]"
className="inline-block py-2.5 px-6 btn border border-link text-link transition-all duration-200 hover:scale-105 active:scale-[0.98]"
>
info@nextgenerationofunity.org
</a>

View file

@ -177,7 +177,7 @@ export default function OrganizationDetail() {
<Link
key={group.id}
to={orgHref(group.id, 'group')}
className="flex items-center gap-4 rounded-lg border p-4 transition-colors hover:bg-tint"
className="flex items-center gap-4 border p-4 transition-colors hover:bg-tint"
style={{ borderColor: `${withAlpha(accent, 25)}` }}
>
<GroupMark file={group.logo} name={group.name} accent={accent} />
@ -211,7 +211,7 @@ export default function OrganizationDetail() {
<Link
key={award.id}
to={`/awards/${award.id}`}
className="rounded-lg border bg-surface p-5 transition-colors hover:bg-tint-soft"
className="border bg-surface p-5 transition-colors hover:bg-tint-soft"
style={{ borderColor: `${withAlpha(accent, 25)}` }}
>
<span className="block font-semibold" style={{ color: accentText(accent) }}>
@ -327,7 +327,7 @@ function Contact({ org, accent }: { org: OrganizationRecord; accent: string }) {
href={link.url}
target="_blank"
rel="noreferrer"
className="inline-flex items-center gap-2 rounded-full px-5 py-2 text-sm font-semibold text-white transition-transform hover:scale-105"
className="inline-flex items-center gap-2 btn px-5 py-2 text-sm text-white transition-transform hover:scale-105"
style={{ background: accent }}
>
<PlatformIcon platform={link.platform} />
@ -349,7 +349,7 @@ function Contact({ org, accent }: { org: OrganizationRecord; accent: string }) {
href={link.url}
target="_blank"
rel="noreferrer"
className="inline-flex items-center gap-2 rounded-full border px-4 py-1.5 text-sm font-medium transition-colors hover:bg-tint"
className="inline-flex items-center gap-2 btn border px-4 py-1.5 text-sm transition-colors hover:bg-tint"
style={{ borderColor: accent, color: accentText(accent) }}
>
<PlatformIcon platform={link.platform} />
@ -368,7 +368,7 @@ function GroupMark({ file, name, accent }: { file?: string | null; name: string;
fallback={
<span
aria-hidden="true"
className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full text-xs font-bold"
className="flex h-10 w-10 shrink-0 items-center justify-center text-xs font-bold"
style={{ background: accent, color: readableOn(accent) }}
>
{initialsFor(name)}

View file

@ -227,12 +227,12 @@ function Facts({ person, accent }: { person: PersonRecord; accent: string }) {
alt=""
loading="lazy"
decoding="async"
className="h-24 w-24 shrink-0 rounded-full object-cover"
className="h-24 w-24 shrink-0 object-cover"
/>
) : (
<span
aria-hidden="true"
className="flex h-24 w-24 shrink-0 items-center justify-center rounded-full text-2xl font-bold text-white"
className="flex h-24 w-24 shrink-0 items-center justify-center text-2xl font-bold text-white"
style={{ background: accent }}
>
{initials(person.name)}
@ -279,7 +279,7 @@ function Contact({ person, accent }: { person: PersonRecord; accent: string }) {
href={link.url}
target="_blank"
rel="noreferrer"
className="inline-flex items-center gap-2 rounded-full px-5 py-2 text-sm font-semibold text-white transition-transform hover:scale-105"
className="inline-flex items-center gap-2 btn px-5 py-2 text-sm text-white transition-transform hover:scale-105"
style={{ background: accent }}
>
<PlatformIcon platform={link.platform} />
@ -293,7 +293,7 @@ function Contact({ person, accent }: { person: PersonRecord; accent: string }) {
href={link.url}
target="_blank"
rel="noreferrer"
className="inline-flex items-center gap-2 rounded-full border px-4 py-1.5 text-sm font-medium transition-colors hover:bg-tint"
className="inline-flex items-center gap-2 btn border px-4 py-1.5 text-sm transition-colors hover:bg-tint"
style={{ borderColor: accent, color: accentText(accent) }}
>
<PlatformIcon platform={link.platform} />
@ -312,7 +312,7 @@ function RoleList({ roles, accent }: { roles: PersonRole[]; accent: string }) {
{roles.map((role, index) => (
<li
key={`${role.org.id}:${role.team?.id ?? ''}:${role.title ?? role.role}:${index}`}
className="rounded-xl border-l-4 bg-surface px-5 py-3"
className="border-l-4 bg-surface px-5 py-3"
style={{ borderColor: accent }}
>
<p className="font-semibold" style={{ color: accentText(accent) }}>

View file

@ -27,7 +27,7 @@ const SECTIONS = [
id: "partner",
title: "Partner Resources",
blurb: "Material for the organizations we collaborate with.",
accent: ACCENTS.mint,
accent: ACCENTS.olive,
background: "var(--color-tint)",
content: <ComingSoon what="resources for partners" />,
},

View file

@ -68,7 +68,7 @@ const SECTIONS = [
id: "partner",
title: "Partner Events",
blurb: "Retreats hosted by organizations we collaborate with.",
accent: ACCENTS.mint,
accent: ACCENTS.olive,
background: "var(--color-tint)",
Component: EventListCards,
props: { scope: "partner", ...RETREATS },
@ -103,7 +103,7 @@ const SECTIONS = [
id: "other",
title: "Other Events",
blurb: "Everything that doesn't fit the categories above.",
accent: ACCENTS.mint,
accent: ACCENTS.olive,
background: "var(--color-surface)",
Component: EventListCards,
props: { scope: "other", ...RETREATS_ONLY },

View file

@ -76,7 +76,7 @@ export default function TeamDetail() {
href={link.url}
target="_blank"
rel="noreferrer"
className="inline-flex items-center gap-2 rounded-full px-5 py-2 text-sm font-semibold text-white transition-transform hover:scale-105"
className="inline-flex items-center gap-2 btn px-5 py-2 text-sm text-white transition-transform hover:scale-105"
style={{ background: accent }}
>
<PlatformIcon platform={link.platform} />

View file

@ -83,11 +83,11 @@ function sizeOf(bytes: number | null): string {
}
const button =
"rounded-full border border-brand px-4 py-2 text-sm font-semibold text-link transition-colors hover:bg-tint disabled:cursor-default disabled:opacity-50";
"btn border border-brand px-4 py-2 text-sm text-link transition-colors hover:bg-tint disabled:cursor-default disabled:opacity-50";
const primary =
"rounded-full bg-action px-5 py-2.5 font-semibold text-white transition-colors hover:bg-action-hover disabled:bg-muted/25";
"btn bg-action px-5 py-2.5 text-white transition-colors hover:bg-action-hover disabled:bg-muted/25";
const input =
"rounded-lg border border-muted/25 bg-surface px-3 py-2 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25";
"border border-muted/25 bg-surface px-3 py-2 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25";
/* Save to Drive: a folder under Media (Tools → Media → Files), then
the clip goes there as a Files entry. Opens on a folder named for
@ -141,7 +141,7 @@ function SaveToDrive({ clip, onSaved }: { clip: Job; onSaved: () => void }) {
value={folder}
disabled={busy}
onChange={(e) => setFolder(e.target.value)}
className="rounded-lg border border-muted/25 bg-surface px-2 py-1 text-sm text-body"
className="border border-muted/25 bg-surface px-2 py-1 text-sm text-body"
>
<option value="">Media (not in a folder)</option>
{folders.map((f) => (
@ -165,7 +165,7 @@ function SaveToDrive({ clip, onSaved }: { clip: Job; onSaved: () => void }) {
function Card({ title, children }: { title: string; children: ReactNode }) {
return (
<section className="mt-6 rounded-2xl border border-brand/20 bg-surface p-5">
<section className="mt-6 border border-brand/20 bg-surface p-5">
<h2 className="text-lg font-semibold text-body">{title}</h2>
<div className="mt-4">{children}</div>
</section>
@ -178,7 +178,7 @@ function Status({ job }: { job: Job }) {
const percent = Math.round(job.progress * 100);
return (
<div className="mt-2">
<div className="h-2 overflow-hidden rounded-full bg-tint">
<div className="h-2 overflow-hidden bg-tint">
<div className="h-full bg-action transition-all" style={{ width: `${job.status === "queued" ? 0 : percent}%` }} />
</div>
<p className="mt-1 text-xs" style={{ color: MUTED }}>
@ -244,7 +244,7 @@ function Editor({ source, onMade }: { source: Job; onMade: () => void }) {
<div className="grid gap-6 lg:grid-cols-[minmax(0,3fr)_minmax(0,2fr)]">
<div>
<div
className="relative overflow-hidden rounded-xl bg-black"
className="relative overflow-hidden bg-black"
style={{ aspectRatio: aspect ? String(aspect) : "16 / 9" }}
>
<video
@ -451,7 +451,7 @@ export default function AdminClips() {
</div>
{missing.length > 0 && (
<p className="mt-4 rounded-xl bg-danger-tint px-4 py-3 text-sm text-danger">
<p className="mt-4 bg-danger-tint px-4 py-3 text-sm text-danger">
{missing.join(" and ")} {missing.length > 1 ? "aren't" : "isn't"} installed on the server, so this
won't work until {missing.length > 1 ? "they are" : "it is"}. See docs/video-clips.md.
</p>

View file

@ -87,7 +87,7 @@ function RequestFiles({ row, canWrite, canRemove }) {
}
if (files.length === 0) return null;
const small = "rounded-full border px-3 py-0.5 text-xs font-semibold transition-colors disabled:opacity-60";
const small = "btn border px-3 py-0.5 text-xs transition-colors disabled:opacity-60";
return (
<div className="mt-4">
<ul className="space-y-2">
@ -107,7 +107,7 @@ function RequestFiles({ row, canWrite, canRemove }) {
)}
<span className="text-xs text-muted">{sizeOf(file.size)}</span>
{file.missing && (
<span className="rounded-full bg-danger-tint px-2 py-0.5 text-xs font-medium text-danger">
<span className=" bg-danger-tint px-2 py-0.5 text-xs font-medium text-danger">
Missing from Drive
</span>
)}
@ -191,7 +191,7 @@ function RequestRecord({ row }) {
const state = { fromRequest: fromRequest(row) };
const button =
"rounded-full border border-link px-4 py-1.5 text-sm font-semibold text-link transition-colors hover:bg-tint disabled:opacity-60";
"btn border border-link px-4 py-1.5 text-sm text-link transition-colors hover:bg-tint disabled:opacity-60";
if (row.request_action === "new") {
return (
@ -241,7 +241,7 @@ function RequestRecord({ row }) {
id={`record-${row.id}`}
value={picked}
onChange={(e) => setPicked(e.target.value)}
className="rounded-lg border border-muted/25 bg-surface px-3 py-1.5 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25"
className="border border-muted/25 bg-surface px-3 py-1.5 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25"
>
{candidates.map((c) => (
<option key={c.id} value={c.id}>
@ -308,7 +308,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
}
return (
<article className="rounded-2xl border border-brand/20 bg-surface p-5">
<article className="border border-brand/20 bg-surface p-5">
<div className="flex flex-wrap items-center gap-x-4 gap-y-2 text-sm">
<span className="font-semibold text-body">
{row.feedback_type === "content"
@ -316,7 +316,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
: feedbackTypeLabel(row.feedback_type)}
</span>
<span
className={`rounded-full px-2.5 py-0.5 text-xs font-medium ${
className={` px-2.5 py-0.5 text-xs font-medium ${
STATUS_STYLE[row.status] ?? ""
}`}
>
@ -367,7 +367,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
value={row.status}
disabled={busy}
onChange={(e) => save({ status: e.target.value })}
className="rounded-lg border border-muted/25 bg-surface px-3 py-1.5 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25"
className="border border-muted/25 bg-surface px-3 py-1.5 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25"
>
{STATUSES.map((s) => (
<option key={s} value={s}>
@ -383,14 +383,14 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
disabled={busy}
placeholder="Internal note: who's handling it, what was done"
onChange={(e) => setNote(e.target.value)}
className="mt-3 w-full resize-y rounded-lg border border-muted/25 bg-surface px-3 py-2 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25"
className="mt-3 w-full resize-y border border-muted/25 bg-surface px-3 py-2 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25"
/>
{noteDirty && (
<button
type="button"
disabled={busy}
onClick={() => save({ admin_note: note })}
className="mt-2 rounded-full bg-action px-4 py-1.5 text-sm font-semibold text-white transition-colors hover:bg-action-hover disabled:bg-muted/25"
className="mt-2 btn bg-action px-4 py-1.5 text-sm text-white transition-colors hover:bg-action-hover disabled:bg-muted/25"
>
{busy ? "Saving…" : "Save note"}
</button>
@ -412,7 +412,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
type="button"
disabled={busy}
onClick={remove}
className="rounded-full bg-danger px-4 py-1.5 text-sm font-semibold text-white transition-colors hover:bg-[#8f1e18] disabled:bg-muted/25"
className="btn bg-danger px-4 py-1.5 text-sm text-white transition-colors hover:bg-[#8f1e18] disabled:bg-muted/25"
>
{busy ? "Deleting…" : "Delete"}
</button>
@ -420,7 +420,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
type="button"
disabled={busy}
onClick={() => setConfirming(false)}
className="rounded-full border border-muted/25 px-4 py-1.5 text-sm text-muted transition-colors hover:border-muted/50"
className="btn border border-muted/25 px-4 py-1.5 text-sm text-muted transition-colors hover:border-muted/50"
>
Keep it
</button>
@ -430,7 +430,7 @@ function FeedbackCard({ row, onChange, onRemove, canWrite, canRemove }) {
type="button"
disabled={busy}
onClick={() => setConfirming(true)}
className="rounded-full border border-danger/30 px-4 py-1.5 text-sm font-medium text-danger transition-colors hover:bg-danger-tint"
className="btn border border-danger/30 px-4 py-1.5 text-sm text-danger transition-colors hover:bg-danger-tint"
>
Delete
</button>
@ -586,7 +586,7 @@ export default function AdminFeedback({ kind = "feedback" }: { kind?: keyof type
type="button"
onClick={() => setStatus(tab.id)}
className={
"rounded-full px-4 py-1.5 text-sm transition-colors " +
"btn px-4 py-1.5 text-sm transition-colors " +
(status === tab.id
? "bg-action font-semibold text-white"
: "border border-muted/25 text-muted hover:border-brand/50")
@ -606,12 +606,12 @@ export default function AdminFeedback({ kind = "feedback" }: { kind?: keyof type
onKeyDown={(e) => {
if (e.key === "Enter") setSearch(query.trim());
}}
className="rounded-full border border-muted/25 bg-surface px-4 py-1.5 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25"
className=" border border-muted/25 bg-surface px-4 py-1.5 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25"
/>
<button
type="button"
onClick={() => setSearch(query.trim())}
className="rounded-full border border-muted/25 px-4 py-1.5 text-sm text-muted transition-colors hover:border-brand/50"
className="btn border border-muted/25 px-4 py-1.5 text-sm text-muted transition-colors hover:border-brand/50"
>
Search
</button>
@ -622,7 +622,7 @@ export default function AdminFeedback({ kind = "feedback" }: { kind?: keyof type
{error && (
<p
role="alert"
className="mt-6 rounded-xl border border-danger/30 bg-danger-tint px-4 py-3 text-sm text-danger"
className="mt-6 border border-danger/30 bg-danger-tint px-4 py-3 text-sm text-danger"
>
{error}
</p>
@ -653,7 +653,7 @@ export default function AdminFeedback({ kind = "feedback" }: { kind?: keyof type
<button
type="button"
onClick={() => load(cursor)}
className="mt-6 rounded-full border border-brand px-5 py-2 font-semibold text-link transition-colors hover:bg-tint"
className="mt-6 btn border border-brand px-5 py-2 text-link transition-colors hover:bg-tint"
>
Load older
</button>

View file

@ -39,12 +39,12 @@ function NavCard({ item }) {
const extras = (item.children ?? []).filter((child) => child.to !== to);
return (
<div className="group relative flex flex-col rounded-2xl border border-brand/20 bg-surface p-5 transition-all hover:border-brand/60 hover:shadow-sm">
<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">
<Link
to={to}
className="after:absolute after:inset-0 after:rounded-2xl after:content-['']"
className="after:absolute after:inset-0 after:content-['']"
>
{item.label}
</Link>
@ -143,14 +143,14 @@ export default function AdminHome() {
</div>
{/* Sticky so it stays put once the card column outgrows it. */}
<aside className="divide-y divide-brand/10 rounded-2xl border border-brand/20 bg-surface lg:sticky lg:top-6">
<aside className="divide-y divide-brand/10 border border-brand/20 bg-surface lg:sticky lg:top-6">
<PanelSection title="Signed in">
<p className="font-medium text-ink">{user?.name || user?.email}</p>
{user?.name && user?.email && (
<p className="mt-0.5 break-all text-xs text-muted/80">{user.email}</p>
)}
{role && (
<span className="mt-2 inline-block rounded-full bg-tint px-2.5 py-0.5 text-xs font-medium text-link">
<span className="mt-2 inline-block bg-tint px-2.5 py-0.5 text-xs font-medium text-link">
{role}
</span>
)}

View file

@ -61,12 +61,12 @@ function GroupMenu({ item, lit, pathname }) {
{children.length > 1 && (
<div className="invisible absolute left-0 top-full z-30 pt-2 opacity-0 transition-opacity group-focus-within:visible group-focus-within:opacity-100 group-hover:visible group-hover:opacity-100">
<ul className="min-w-52 rounded-xl border border-brand/20 bg-surface p-1.5 shadow-lg">
<ul className="min-w-52 border border-brand/20 bg-surface p-1.5 shadow-lg">
{children.map((child) => (
<li key={child.to}>
<NavLink
to={child.to}
className={`block rounded-lg px-3 py-2 text-sm transition-colors hover:bg-tint ${
className={`block px-3 py-2 text-sm transition-colors hover:bg-tint ${
matches(pathname, child.to)
? "font-semibold text-link"
: "text-body"
@ -142,7 +142,7 @@ export default function AdminLayout() {
) : (
<Link
to={ADMIN_HOME}
className="rounded transition-opacity hover:opacity-70"
className="transition-opacity hover:opacity-70"
title="Back to the admin home"
>
{wordmark}
@ -173,7 +173,7 @@ export default function AdminLayout() {
<button
type="button"
onClick={handleLogout}
className="rounded-full border border-muted/30 px-4 py-1.5 font-medium transition-colors hover:bg-tint hover:text-link"
className="btn border border-muted/30 px-4 py-1.5 transition-colors hover:bg-tint hover:text-link"
>
Sign out
</button>

View file

@ -39,7 +39,7 @@ const GOOGLE_ERRORS: Record<string, string> = {
};
const fieldClass =
"w-full rounded-xl border border-muted/50 bg-surface px-4 py-3 text-body " +
"w-full border border-muted/50 bg-surface px-4 py-3 text-body "+
"outline-none transition-colors focus:border-brand focus:ring-2 focus:ring-brand/25";
export default function AdminLogin() {
@ -98,13 +98,13 @@ export default function AdminLogin() {
<form
onSubmit={handleSubmit}
noValidate
className="mt-8 rounded-2xl border border-brand/20 bg-surface p-6"
className="mt-8 border border-brand/20 bg-surface p-6"
>
{google && (
<>
<a
href={`/api/auth/google?next=${encodeURIComponent(destination)}`}
className="flex items-center justify-center gap-3 rounded-full border border-muted/30 px-6 py-3 font-semibold text-body transition-colors hover:bg-tint"
className="flex items-center justify-center gap-3 btn border border-muted/30 px-6 py-3 text-body transition-colors hover:bg-tint"
>
<svg viewBox="0 0 48 48" className="h-5 w-5" aria-hidden="true">
<path fill="#FFC107" d="M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.4-.4-3.5z" />
@ -156,7 +156,7 @@ export default function AdminLogin() {
{error && (
<p
role="alert"
className="mt-5 rounded-xl border border-danger/30 bg-danger-tint px-4 py-3 text-sm text-danger"
className="mt-5 border border-danger/30 bg-danger-tint px-4 py-3 text-sm text-danger"
>
{error}
</p>
@ -165,7 +165,7 @@ export default function AdminLogin() {
<button
type="submit"
disabled={busy || !email || !password}
className="mt-6 w-full rounded-full bg-action px-6 py-3 font-semibold text-white transition-colors hover:bg-action-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40 disabled:cursor-not-allowed disabled:bg-muted/25"
className="mt-6 w-full btn bg-action px-6 py-3 text-white transition-colors hover:bg-action-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40 disabled:cursor-not-allowed disabled:bg-muted/25"
>
{busy ? "Signing in…" : "Sign in"}
</button>

View file

@ -104,7 +104,7 @@ function DeleteControl({
}
return (
<div className="rounded-lg bg-danger-tint p-2 text-xs text-body">
<div className="bg-danger-tint p-2 text-xs text-body">
{uses.length > 0 ? (
<p>
Still used by{" "}
@ -158,7 +158,7 @@ function FolderControls({ tab, onChanged }: { tab: string; onChanged: (tab: stri
const [busy, setBusy] = useState(false);
const [error, setError] = useState<string | null>(null);
const inside = tab === ALL_FOLDERS ? "" : tab;
const button = "rounded-full border border-brand px-3 py-1 text-xs font-medium text-link transition-colors hover:bg-tint disabled:opacity-50";
const button = "btn border border-brand px-3 py-1 text-xs text-link transition-colors hover:bg-tint disabled:opacity-50";
async function run(work: () => Promise<string>) {
setBusy(true);
@ -204,7 +204,7 @@ function FolderControls({ tab, onChanged }: { tab: string; onChanged: (tab: stri
if (e.key === "Escape") setMode(null);
}}
placeholder={mode === "new" ? "New folder's name" : "New name"}
className="rounded-lg border border-muted/25 bg-surface px-3 py-1 text-sm text-body outline-none focus:border-brand"
className="border border-muted/25 bg-surface px-3 py-1 text-sm text-body outline-none focus:border-brand"
/>
<button type="button" className={button} disabled={busy || !name.trim()} onClick={submit}>
{mode === "new" ? (inside ? `Make it in ${inside}` : "Make folder") : "Rename"}
@ -264,7 +264,7 @@ function MoveControl({ file, folders, onMoved }: { file: DriveFile; folders: str
setBusy(false);
}
}}
className="rounded border border-muted/25 bg-surface px-1.5 py-0.5 text-xs text-body"
className="border border-muted/25 bg-surface px-1.5 py-0.5 text-xs text-body"
>
<option value="">Not in a folder</option>
{folders.map((f) => (
@ -304,7 +304,7 @@ function FilesTab() {
value={query}
onChange={(e) => setQuery(e.target.value)}
placeholder="Search by file name"
className="ml-auto w-64 rounded-lg border border-muted/25 px-3 py-2 text-sm outline-none focus:border-brand"
className="ml-auto w-64 border border-muted/25 px-3 py-2 text-sm outline-none focus:border-brand"
/>
</div>
{!ready && (
@ -406,7 +406,7 @@ function RequestFilesTab() {
aria-selected={folder === id}
onClick={() => setFolder(id)}
className={
"rounded-full px-3 py-1 text-sm transition-colors " +
"btn px-3 py-1 text-sm transition-colors " +
(folder === id ? "bg-action font-semibold text-white" : "border border-muted/25 text-muted hover:border-brand/50")
}
>
@ -423,7 +423,7 @@ function RequestFilesTab() {
{shown.length === 0 ? (
<p className="mt-6 text-sm text-muted">No request files here.</p>
) : (
<ul className="mt-6 divide-y divide-brand/10 rounded-2xl border border-brand/20 bg-surface">
<ul className="mt-6 divide-y divide-brand/10 border border-brand/20 bg-surface">
{shown.map((file) => (
<li key={file.id} className="flex flex-wrap items-center gap-x-4 gap-y-1 px-4 py-3 text-sm">
{file.missing ? (
@ -439,7 +439,7 @@ function RequestFilesTab() {
)}
<span className="text-xs text-muted">{formatBytes(file.size)}</span>
{file.missing && (
<span className="rounded-full bg-danger-tint px-2 py-0.5 text-xs font-medium text-danger">Missing from Drive</span>
<span className=" bg-danger-tint px-2 py-0.5 text-xs font-medium text-danger">Missing from Drive</span>
)}
<Link to="/admin/requests" className="text-xs text-muted hover:text-link hover:underline">
Request #{file.feedback_id}
@ -453,7 +453,7 @@ function RequestFilesTab() {
type="button"
disabled={busy}
onClick={() => remove(file)}
className="rounded-full bg-danger px-3 py-0.5 text-xs font-semibold text-white disabled:opacity-60"
className="btn bg-danger px-3 py-0.5 text-xs text-white disabled:opacity-60"
>
{busy ? "Removing…" : "Remove it"}
</button>{" "}
@ -548,7 +548,7 @@ export default function AdminMedia() {
value={query}
onChange={(e) => setQuery(e.target.value)}
placeholder="Search by file name"
className="ml-auto w-64 rounded-lg border border-muted/25 px-3 py-2 text-sm outline-none focus:border-brand"
className="ml-auto w-64 border border-muted/25 px-3 py-2 text-sm outline-none focus:border-brand"
/>
</div>

View file

@ -69,7 +69,7 @@ function Block({ title, note, children }: any) {
function Stat({ label, value }) {
return (
<div className="rounded-xl border border-brand/20 bg-surface px-4 py-3">
<div className="border border-brand/20 bg-surface px-4 py-3">
<div className="text-xs font-medium uppercase tracking-wider text-muted/70">
{label}
</div>
@ -119,7 +119,7 @@ function AccessGroups({ access, onSynced }) {
}
const button =
"rounded-full border border-brand px-4 py-1.5 text-sm font-medium text-link transition-colors hover:bg-tint disabled:cursor-default disabled:opacity-50";
"btn border border-brand px-4 py-1.5 text-sm text-link transition-colors hover:bg-tint disabled:cursor-default disabled:opacity-50";
return (
<Block
@ -154,7 +154,7 @@ function AccessGroups({ access, onSynced }) {
value={email}
placeholder="someone@nextgenerationofunity.org"
onChange={(e) => setEmail(e.target.value)}
className="min-w-0 flex-1 rounded-lg border border-muted/25 bg-surface px-3 py-1.5 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25 sm:max-w-sm"
className="min-w-0 flex-1 border border-muted/25 bg-surface px-3 py-1.5 text-sm text-body outline-none focus:border-brand focus:ring-2 focus:ring-brand/25 sm:max-w-sm"
/>
<button type="button" className={button} disabled={busy !== null || !email.trim()} onClick={() => send("check")}>
{busy === "check" ? "Checking…" : "Check their groups"}
@ -272,7 +272,7 @@ export default function AdminPanel() {
<button
type="button"
onClick={load}
className="mt-3 rounded-full border border-brand px-4 py-1.5 text-sm font-medium text-link transition-colors hover:bg-tint"
className="mt-3 btn border border-brand px-4 py-1.5 text-sm text-link transition-colors hover:bg-tint"
>
Try again
</button>
@ -311,7 +311,7 @@ export default function AdminPanel() {
{content.map((row) => (
<span
key={row.label}
className="rounded-full border border-brand/20 bg-surface px-3 py-1 text-sm text-muted"
className=" border border-brand/20 bg-surface px-3 py-1 text-sm text-muted"
>
{row.label}{" "}
<strong className="font-semibold text-ink">
@ -326,7 +326,7 @@ export default function AdminPanel() {
title="Accounts"
note="Changing a role or disabling an account signs that person out."
>
<div className="overflow-x-auto rounded-2xl border border-brand/20 bg-surface">
<div className="overflow-x-auto border border-brand/20 bg-surface">
<table className="w-full min-w-[46rem] text-left text-sm">
<thead className="border-b border-brand/15 text-xs uppercase tracking-wider text-muted/70">
<tr>
@ -378,7 +378,7 @@ export default function AdminPanel() {
value={row.role}
disabled={locked || busy || fromGroup}
onChange={(e) => changeRole(row, e.target.value)}
className="rounded-lg border border-brand/30 bg-surface px-2 py-1 text-sm text-ink disabled:cursor-not-allowed disabled:bg-tint-soft disabled:text-muted/60"
className="border border-brand/30 bg-surface px-2 py-1 text-sm text-ink disabled:cursor-not-allowed disabled:bg-tint-soft disabled:text-muted/60"
title={
fromGroup
? "The role comes from this person's Google group."
@ -418,7 +418,7 @@ export default function AdminPanel() {
type="button"
disabled={locked || busy}
onClick={() => setActive(row, row.is_active ? 0 : 1)}
className={`rounded-full border px-3 py-1 text-xs font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 ${
className={`btn border px-3 py-1 text-xs transition-colors disabled:cursor-not-allowed disabled:opacity-50 ${
row.is_active
? "border-muted/30 text-muted hover:border-danger/50 hover:text-danger"
: "border-brand/40 text-link hover:bg-tint"

View file

@ -65,7 +65,7 @@ import {
/* One card per section. scroll-mt clears the sticky "Jump to" bar
below lg, and leaves a little air above the card on desktop. */
const CARD = "mt-6 scroll-mt-16 rounded-2xl border border-brand/20 bg-surface p-5 lg:scroll-mt-6";
const CARD = "mt-6 scroll-mt-16 border border-brand/20 bg-surface p-5 lg:scroll-mt-6";
const sectionId = (name) => `section-${slugify(name)}`;
@ -505,7 +505,7 @@ export default function EntityEdit() {
type="button"
onClick={save}
disabled={saving || !dirty}
className="rounded-full bg-action px-6 py-2 font-semibold text-white transition-colors hover:bg-action-hover disabled:bg-muted/25"
className="btn bg-action px-6 py-2 text-white transition-colors hover:bg-action-hover disabled:bg-muted/25"
>
{saving ? "Saving…" : isNew ? "Create" : "Save changes"}
</button>
@ -513,7 +513,7 @@ export default function EntityEdit() {
<button
type="button"
onClick={remove}
className="rounded-full border border-danger/40 px-4 py-2 text-sm font-medium text-danger transition-colors hover:bg-danger-tint"
className="btn border border-danger/40 px-4 py-2 text-sm text-danger transition-colors hover:bg-danger-tint"
>
Delete
</button>
@ -541,7 +541,7 @@ export default function EntityEdit() {
<button
type="button"
onClick={load}
className="rounded-full border border-danger/40 px-3 py-1 text-xs font-medium"
className="btn border border-danger/40 px-3 py-1 text-xs"
>
Reload
</button>
@ -566,7 +566,7 @@ function ImportedNote() {
`${summary.tables} tables`,
];
return (
<p role="status" className="mt-4 rounded-xl border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
<p role="status" className="mt-4 border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
Imported from Word: {parts.join(", ")}.
{summary.skipped?.images
? ` ${summary.skipped.images} image${summary.skipped.images === 1 ? " was" : "s were"} not carried over; add them as Image blocks.`
@ -583,11 +583,11 @@ function ImportedNote() {
function RequestedChanges({ request, isNew, form, onUse, onAdd }: any) {
const [done, setDone] = useState<Set<string>>(() => new Set());
const mark = (key: string) => setDone((prev) => new Set(prev).add(key));
const button = "rounded-full border border-link px-3 py-0.5 text-xs font-semibold text-link transition-colors hover:bg-tint";
const button = "btn border border-link px-3 py-0.5 text-xs text-link transition-colors hover:bg-tint";
if (isNew) {
return (
<p role="status" className="mt-4 rounded-xl border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
<p role="status" className="mt-4 border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
Filled in from content request #{request.request}. Check it, fill in the rest, then Create. It isn't saved yet.
</p>
);
@ -599,14 +599,14 @@ function RequestedChanges({ request, isNew, form, onUse, onAdd }: any) {
];
if (items.length === 0) {
return (
<p className="mt-4 rounded-xl border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
<p className="mt-4 border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
Content request #{request.request} has no details to copy; its message is in Forms → Content requests.
</p>
);
}
return (
<div className="mt-4 rounded-xl border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
<div className="mt-4 border border-brand/20 bg-tint px-4 py-3 text-sm text-body">
<p className="font-semibold">Requested in content request #{request.request}</p>
<p className="mt-0.5 text-xs text-muted">Use what should change, then Save changes.</p>
<ul className="mt-3 space-y-2">

View file

@ -97,7 +97,7 @@ export default function EntityList() {
{canWrite && (
<Link
to={`/admin/${manifest.key}/new`}
className={`${manifest.importer ? "" : "ml-auto "}rounded-full bg-action px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-action-hover`}
className={`${manifest.importer ? "" : "ml-auto "}btn bg-action px-4 py-2 text-sm text-white transition-colors hover:bg-action-hover`}
>
New {manifest.singular}
</Link>
@ -112,7 +112,7 @@ export default function EntityList() {
<select
value={params.get(filter.key) ?? ""}
onChange={(e) => setParam(filter.key, e.target.value)}
className="mt-1 rounded-lg border border-muted/25 bg-surface px-3 py-1.5 text-sm text-body outline-none focus:border-brand"
className="mt-1 border border-muted/25 bg-surface px-3 py-1.5 text-sm text-body outline-none focus:border-brand"
>
<option value="">All</option>
{labelFor(filter).map(([value, label]) => (
@ -131,12 +131,12 @@ export default function EntityList() {
placeholder="Search"
onChange={(e) => setQuery(e.target.value)}
onKeyDown={(e) => e.key === "Enter" && setParam("q", query.trim())}
className="rounded-full border border-muted/25 bg-surface px-4 py-1.5 text-sm text-body outline-none focus:border-brand"
className=" border border-muted/25 bg-surface px-4 py-1.5 text-sm text-body outline-none focus:border-brand"
/>
<button
type="button"
onClick={() => setParam("q", query.trim())}
className="rounded-full border border-muted/25 px-4 py-1.5 text-sm text-muted hover:border-brand/50"
className="btn border border-muted/25 px-4 py-1.5 text-sm text-muted hover:border-brand/50"
>
Search
</button>
@ -146,14 +146,14 @@ export default function EntityList() {
{error && (
<p
role="alert"
className="mt-6 rounded-xl border border-danger/30 bg-danger-tint px-4 py-3 text-sm text-danger"
className="mt-6 border border-danger/30 bg-danger-tint px-4 py-3 text-sm text-danger"
>
{error}
</p>
)}
{/* Rows */}
<div className="mt-6 overflow-x-auto rounded-2xl border border-brand/20 bg-surface">
<div className="mt-6 overflow-x-auto border border-brand/20 bg-surface">
<table className="w-full text-left text-sm">
<thead className="border-b border-muted/15 text-xs text-muted">
<tr>
@ -245,7 +245,7 @@ function ImportButton({ manifest }: { manifest: any }) {
</span>
)}
<label
className={`cursor-pointer rounded-full border border-link px-4 py-2 text-sm font-semibold text-link transition-colors hover:bg-tint ${
className={`cursor-pointer btn border border-link px-4 py-2 text-sm text-link transition-colors hover:bg-tint ${
busy ? "pointer-events-none opacity-60" : ""
}`}
>

View file

@ -43,7 +43,7 @@ export function PostCard({ post, accent }: { post: BlogPostSummary; accent: stri
const authors = post.authors.map((author) => author.name).join(', ')
return (
<li className="relative flex flex-col overflow-hidden rounded-2xl border border-brand/15 bg-surface shadow-sm transition-shadow hover:shadow-lg">
<li className="relative flex flex-col overflow-hidden border border-brand/15 bg-surface shadow-sm transition-shadow hover:shadow-lg">
{!cover.failed ? (
<img src={cover.src} alt="" loading="lazy" onError={cover.onError} className="aspect-video w-full object-cover" />
) : (
@ -58,7 +58,7 @@ export function PostCard({ post, accent }: { post: BlogPostSummary; accent: stri
<h4 className="mt-2 font-display text-xl font-extrabold leading-snug text-ink">
<Link
to={blogHref(post.id)}
className="after:absolute after:inset-0 after:rounded-2xl after:content-[''] hover:underline"
className="after:absolute after:inset-0 after:content-[''] hover:underline"
>
{post.title}
</Link>
@ -128,7 +128,7 @@ export default function CommunityBlog({ accent = BRAND }: { accent?: string }) {
{external.url && (
<HomeLink
url={external.url}
className="ml-auto inline-flex items-center gap-2 rounded-full px-5 py-2 text-sm font-semibold text-white transition-transform hover:scale-105"
className="ml-auto inline-flex items-center gap-2 btn px-5 py-2 text-sm text-white transition-transform hover:scale-105"
style={{ background: accent }}
>
<PlatformIcon platform={/substack\.com/i.test(external.url) ? 'substack' : null} />

View file

@ -327,7 +327,7 @@ export default function EventCalendar({
<button
type="button"
onClick={() => go(monthKey(today))}
className="rounded-full border px-3 py-1 text-sm font-semibold hover:bg-surface"
className="btn border px-3 py-1 text-sm hover:bg-surface"
style={{ borderColor: accent, color: accentText(accent) }}
>
Today
@ -335,7 +335,7 @@ export default function EventCalendar({
)}
<div
className="ml-auto hidden overflow-hidden rounded-full border md:flex"
className="ml-auto hidden overflow-hidden btn border md:flex"
style={{ borderColor: accent }}
role="group"
aria-label="Calendar view"
@ -381,12 +381,12 @@ export default function EventCalendar({
/>
)}
{show('online') && (
<label className="flex cursor-pointer items-center gap-2 rounded-full border border-brand/50 bg-surface px-4 py-2 text-sm">
<label className="flex cursor-pointer items-center gap-2 btn border border-brand/50 bg-surface px-4 py-2 text-sm">
<input
type="checkbox"
checked={onlineOnly}
onChange={(e) => setOnlineOnly(e.target.checked)}
className="h-4 w-4 rounded"
className="h-4 w-4"
style={{ accentColor: accent }}
/>
Online only
@ -399,7 +399,7 @@ export default function EventCalendar({
onChange={(e) => setQuery(e.target.value)}
placeholder="Search events"
aria-label="Search events"
className="min-w-[12rem] flex-1 rounded-full border border-brand/50 bg-surface px-4 py-2 text-sm outline-none focus:border-link focus:ring-2 focus:ring-link/40 md:max-w-xs"
className="min-w-[12rem] flex-1 border border-brand/50 bg-surface px-4 py-2 text-sm outline-none focus:border-link focus:ring-2 focus:ring-link/40 md:max-w-xs"
/>
)}
{filtering && (
@ -418,11 +418,11 @@ export default function EventCalendar({
{/* ── Body ── */}
<div className="mt-6">
{error ? (
<p className="rounded-2xl bg-surface p-6 text-danger">
<p className="bg-surface p-6 text-danger">
Couldn’t load events. {error.message}
</p>
) : loading ? (
<div className="h-[32rem] animate-pulse rounded-3xl bg-tint" aria-hidden="true" />
<div className="h-[32rem] animate-pulse bg-tint" aria-hidden="true" />
) : (
<>
{view === 'month' && (
@ -495,7 +495,7 @@ type MonthGridProps = {
function MonthGrid({ weeks, month, today, occurrences, selected, onSelect, accent }: MonthGridProps) {
return (
<div className="overflow-hidden rounded-3xl border border-brand/15 bg-surface shadow-sm">
<div className="overflow-hidden border border-brand/15 bg-surface shadow-sm">
<div className="grid grid-cols-7 border-b border-brand/10 bg-tint-soft">
{WEEKDAYS.map((day) => (
<div
@ -539,7 +539,7 @@ function MonthGrid({ weeks, month, today, occurrences, selected, onSelect, accen
}}
>
<span
className="flex h-7 w-7 items-center justify-center rounded-full text-sm font-semibold"
className="flex h-7 w-7 items-center justify-center text-sm font-semibold"
style={
isToday
? { background: accent, color: readableOn(accent) }
@ -583,8 +583,8 @@ function Bar({ seg, accent }: { seg: Segment; accent: string }) {
to={eventHref(seg.event.id)}
title={`${seg.event.title}${seg.time ? ` · ${seg.time}` : ''}`}
className={`pointer-events-auto flex items-center gap-1 truncate px-2 text-xs font-semibold text-white transition-[filter] hover:brightness-110 ${
seg.continuesBefore ? 'ml-0 rounded-l-none' : 'ml-1 rounded-l-md'
} ${seg.continuesAfter ? 'mr-0 rounded-r-none' : 'mr-1 rounded-r-md'} ${
seg.continuesBefore ? 'ml-0' : 'ml-1'
} ${seg.continuesAfter ? 'mr-0' : 'mr-1'} ${
canceled ? 'line-through opacity-60' : ''
}`}
style={{
@ -621,7 +621,7 @@ function DayPanel({
onClose: () => void
}) {
return (
<div className="mt-4 rounded-3xl border bg-surface p-6" style={{ borderColor: `${withAlpha(accent, 25)}` }}>
<div className="mt-4 border bg-surface p-6" style={{ borderColor: `${withAlpha(accent, 25)}`}}>
<div className="flex items-center gap-4">
<h4 className="font-display text-lg font-bold">{longDay(date)}</h4>
<button
@ -665,7 +665,7 @@ function MonthList({
}) {
if (items.length === 0) {
return (
<p className="rounded-3xl bg-surface p-10 text-center" style={{ color: BODY }}>
<p className="bg-surface p-10 text-center" style={{ color: BODY }}>
Nothing on the calendar this month.
</p>
)
@ -684,7 +684,7 @@ function MonthList({
{[...byDay.entries()].map(([day, list]) => {
const d = parse(day)
return (
<li key={day} className="flex gap-5 rounded-3xl bg-surface p-5 shadow-sm">
<li key={day} className="flex gap-5 bg-surface p-5 shadow-sm">
<div className="w-14 shrink-0 text-center">
<p className="text-xs font-bold uppercase tracking-widest" style={{ color: accentText(accent) }}>
{d.toLocaleDateString(undefined, { weekday: 'short' })}
@ -716,7 +716,7 @@ function EventLine({ item, accent }: { item: Occurrence; accent: string }) {
return (
<Link
to={eventHref(event.id)}
className="group flex items-start gap-3 rounded-xl p-2 transition-colors hover:bg-tint-soft"
className="group flex items-start gap-3 p-2 transition-colors hover:bg-tint-soft"
>
<span className="mt-1.5 h-3 w-3 shrink-0 rounded-full" style={{ background: color }} aria-hidden="true" />
<span className="min-w-0">
@ -756,7 +756,7 @@ function NavButton({
type="button"
onClick={onClick}
aria-label={label}
className="flex h-10 w-10 items-center justify-center rounded-full border text-xl transition-colors hover:bg-surface"
className="flex h-10 w-10 items-center justify-center btn border text-xl transition-colors hover:bg-surface"
style={{ borderColor: accent, color: accentText(accent) }}
>
{children}
@ -782,7 +782,7 @@ function FilterSelect({
value={value}
onChange={(e) => onChange(e.target.value)}
aria-label={label}
className="rounded-full border border-brand/50 bg-surface px-4 py-2 text-sm outline-none focus:border-link focus:ring-2 focus:ring-link/40"
className=" border border-brand/50 bg-surface px-4 py-2 text-sm outline-none focus:border-link focus:ring-2 focus:ring-link/40"
>
<option value="">{all}</option>
{options.map(([id, name]) => (

View file

@ -155,7 +155,7 @@ export function Card({
const typeBadge =
showType && ev.event_type ? (
<span
className="inline-block rounded-full px-3 py-0.5 mb-2 text-xs font-bold uppercase tracking-wide"
className="inline-block px-3 py-0.5 mb-2 text-xs font-bold uppercase tracking-wide"
style={{ border: `1px solid ${color}`, color: INK }}
>
{eventTypeLabel(ev.event_type)}
@ -177,7 +177,7 @@ export function Card({
return (
<div
className={`rounded-3xl text-ink overflow-hidden shadow-2xl h-full flex flex-col ${
className={`text-ink overflow-hidden shadow-2xl h-full flex flex-col ${
compact ? "ev-card" : ""
}`}
style={{
@ -284,7 +284,7 @@ export function Card({
<a
key={item.label}
href={item.url}
className={`inline-flex items-center justify-center gap-2 rounded-xl font-bold transition-all duration-200 hover:scale-105 text-center ${
className={`inline-flex items-center justify-center gap-2 font-bold transition-all duration-200 hover:scale-105 text-center ${
compact ? "py-2.5 px-5" : "py-2.5 px-6"
}`}
style={{ border: `1px solid ${color}`, color: INK }}
@ -302,7 +302,7 @@ export function Card({
href={igUrl}
target="_blank"
rel="noopener noreferrer"
className={`ig-link flex items-center justify-center rounded-xl font-bold transition-all duration-200 hover:scale-[1.02] gap-3 ${
className={`ig-link flex items-center justify-center font-bold transition-all duration-200 hover:scale-[1.02] gap-3 ${
compact ? "py-2.5 px-5" : "py-3 px-6"
}`}
style={{ border: `1px solid ${accent}`, color: accentText(accent) }}
@ -316,7 +316,7 @@ export function Card({
{linked && (
<Link
to={eventHref(ev.id)}
className={`rounded-xl font-bold transition-all duration-200 hover:scale-105 text-center ${
className={`font-bold transition-all duration-200 hover:scale-105 text-center ${
compact ? "py-2.5 px-5" : "py-2.5 px-6"
}`}
style={{ border: `1px solid ${color}`, color: INK }}
@ -355,7 +355,7 @@ export function TypeFilter({ types, active, setActive, accent }) {
key={id}
onClick={() => setActive(id)}
aria-pressed={active === id}
className="rounded-full py-1.5 px-4 text-sm font-bold transition-colors duration-200"
className="btn py-1.5 px-4 text-sm transition-colors duration-200"
style={chip(active === id)}
>
{label}
@ -386,7 +386,7 @@ export function EventCardsToggle({ view, setView, accent }) {
return (
<div
className="inline-flex rounded-xl overflow-hidden shrink-0"
className="inline-flex overflow-hidden shrink-0"
style={{ border: `1px solid ${accent}` }}
role="group"
aria-label="Change how events are displayed"
@ -616,7 +616,7 @@ export default function EventListCards({
<button
onClick={() => setShowPast(v => !v)}
aria-expanded={showPast}
className="flex items-center gap-2 py-2.5 px-6 rounded-xl font-bold transition-all duration-200 hover:scale-105"
className="flex items-center gap-2 py-2.5 px-6 font-bold transition-all duration-200 hover:scale-105"
style={{ border: `1px solid ${accent}`, color: accentText(accent) }}
>
{showPast
@ -673,7 +673,7 @@ export default function EventListCards({
onClick={prev}
disabled={index === 0}
aria-label="Previous event"
className="absolute left-2 md:left-6 top-1/2 -translate-y-1/2 z-10 h-12 w-12 rounded-full flex items-center justify-center text-2xl font-bold shadow-lg transition-all duration-200 hover:scale-110 disabled:hover:scale-100"
className="absolute left-2 md:left-6 top-1/2 -translate-y-1/2 z-10 h-12 w-12 btn flex items-center justify-center text-2xl shadow-lg transition-all duration-200 hover:scale-110 disabled:hover:scale-100"
style={arrowStyle(index > 0)}
>
<CaretLeft size={20} weight="bold" aria-hidden="true" />
@ -682,7 +682,7 @@ export default function EventListCards({
onClick={next}
disabled={index === events.length - 1}
aria-label="Next event"
className="absolute right-2 md:right-6 top-1/2 -translate-y-1/2 z-10 h-12 w-12 rounded-full flex items-center justify-center text-2xl font-bold shadow-lg transition-all duration-200 hover:scale-110 disabled:hover:scale-100"
className="absolute right-2 md:right-6 top-1/2 -translate-y-1/2 z-10 h-12 w-12 btn flex items-center justify-center text-2xl shadow-lg transition-all duration-200 hover:scale-110 disabled:hover:scale-100"
style={arrowStyle(index < events.length - 1)}
>
<CaretRight size={20} weight="bold" aria-hidden="true" />

View file

@ -35,7 +35,7 @@ const WHOLE_PAGE = "";
/* ── Shared field chrome ─────────────────────────────────────── */
export const fieldClass =
"w-full rounded-xl border border-muted/50 bg-surface px-4 py-3 text-body " +
"w-full border border-muted/50 bg-surface px-4 py-3 text-body "+
"placeholder:text-muted outline-none transition-colors " +
"focus:border-brand focus:ring-2 focus:ring-brand/25";
@ -45,7 +45,7 @@ const selectClass = `${fieldClass} appearance-none pr-10`;
export function OptionalTag() {
return (
<span className="ml-2 rounded-full bg-tint px-2 py-0.5 text-xs font-medium text-link">
<span className="ml-2 bg-tint px-2 py-0.5 text-xs font-medium text-link">
Optional
</span>
);
@ -54,7 +54,7 @@ export function OptionalTag() {
/* On a field the send button waits for. */
export function RequiredTag() {
return (
<span className="ml-2 rounded-full bg-danger-tint px-2 py-0.5 text-xs font-medium text-danger">
<span className="ml-2 bg-danger-tint px-2 py-0.5 text-xs font-medium text-danger">
Required
</span>
);
@ -141,7 +141,7 @@ export function TilePicker({
/>
<span
className={
"flex h-full flex-col gap-1 rounded-xl border p-4 transition-colors " +
"flex h-full flex-col gap-1 border p-4 transition-colors "+
"peer-focus-visible:ring-2 peer-focus-visible:ring-brand/40 " +
(selected
? "border-brand bg-tint"
@ -313,7 +313,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
return (
<div
aria-live="polite"
className="rounded-2xl border border-brand/20 bg-surface p-8 sm:p-10"
className="border border-brand/20 bg-surface p-8 sm:p-10"
>
<h3 className="text-2xl font-bold" style={{ color: accentText(BRAND) }}>
Thanks, we've got it
@ -333,7 +333,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
<button
type="button"
onClick={reset}
className="mt-6 rounded-full border border-brand px-5 py-2.5 font-semibold text-link transition-colors hover:bg-tint focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40"
className="mt-6 btn border border-brand px-5 py-2.5 text-link transition-colors hover:bg-tint focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40"
>
{request ? "Send another request" : "Send more feedback"}
</button>
@ -345,7 +345,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
<form
onSubmit={handleSubmit}
noValidate
className="rounded-2xl border border-brand/20 bg-surface p-6 sm:p-8"
className="border border-brand/20 bg-surface p-6 sm:p-8"
>
{!fixedType && (
<>
@ -413,7 +413,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
</div>
{/* Optional contact details */}
<div className="mt-8 rounded-xl border border-dashed border-muted/30 bg-tint/60 p-5 sm:p-6">
<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">
{request ? "How we reach you" : "Your details"}
@ -487,7 +487,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
{formError && (
<p
role="alert"
className="mt-8 rounded-xl border border-danger/30 bg-danger-tint px-4 py-3 text-sm text-danger"
className="mt-8 border border-danger/30 bg-danger-tint px-4 py-3 text-sm text-danger"
>
{formError}
</p>
@ -497,7 +497,7 @@ export default function FeedbackForm({ fixedType }: { fixedType?: string } = {})
<button
type="submit"
disabled={!ready || sending}
className="rounded-full bg-action px-7 py-3 font-semibold text-white transition-colors hover:bg-action-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40 disabled:cursor-not-allowed disabled:bg-muted/25 disabled:text-white/80"
className="btn bg-action px-7 py-3 text-white transition-colors hover:bg-action-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40 disabled:cursor-not-allowed disabled:bg-muted/25 disabled:text-white/80"
>
{sending ? "Sending…" : request ? "Send request" : "Send feedback"}
</button>

View file

@ -25,7 +25,7 @@ import { accentText } from '../../lib/color.ts'
const MUTED = "var(--color-muted)";
const INK = "var(--color-body)";
const FALLBACK_COLOR = "#4a6b72";
const FALLBACK_COLOR = "#004c52";
/* Wide enough for a logo beside two lines of text, narrow enough
that three fit on a laptop. The grid drops a column rather than
@ -44,7 +44,7 @@ function OrgCard({ org, accent, pageLabel, siteLabel }) {
return (
<div
className="rounded-2xl p-6 h-full flex flex-col transition-transform duration-200 hover:scale-[1.01]"
className="p-6 h-full flex flex-col transition-transform duration-200 hover:scale-[1.01]"
style={{ border: `1px solid ${color}`, background: "var(--color-surface)" }}
>
<div className="flex items-start gap-4">
@ -90,7 +90,7 @@ function OrgCard({ org, accent, pageLabel, siteLabel }) {
href={org.website}
target="_blank"
rel="noopener noreferrer"
className="py-2 px-4 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
className="py-2 px-4 font-bold text-sm transition-transform duration-200 hover:scale-105"
style={{ border: `1px solid ${color}`, color }}
>
{siteLabel} <ArrowUpRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
@ -100,7 +100,7 @@ function OrgCard({ org, accent, pageLabel, siteLabel }) {
{org.email && (
<a
href={`mailto:${org.email}`}
className="py-2 px-4 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
className="py-2 px-4 font-bold text-sm transition-transform duration-200 hover:scale-105"
style={{ border: `1px solid ${color}`, color }}
>
Contact

View file

@ -46,7 +46,7 @@ const CONTENT_MAX = "88rem";
const MUTED = "var(--color-muted)";
const RULE = "color-mix(in srgb, var(--color-muted) 25%, transparent)";
const INK = "var(--color-body)";
const FALLBACK_COLOR = "#4a6b72";
const FALLBACK_COLOR = "#004c52";
/* organizations.color is nullable; an SVG fill left undefined paints
black, so an uncolored region takes the same fallback as a card. */
@ -291,7 +291,7 @@ function LegendButton({ region, selected, setSelected, hovered, setHovered }) {
onFocus={() => setHovered(region.id)}
onBlur={() => setHovered(null)}
aria-pressed={selected === region.id}
className="flex items-center gap-2 py-1.5 px-3 rounded-lg text-sm font-bold transition-all duration-200"
className="flex items-center gap-2 py-1.5 px-3 text-sm font-bold transition-all duration-200"
style={{
border: `1px solid ${colorOf(region)}`,
background: on ? colorOf(region) : "transparent",
@ -342,7 +342,7 @@ function Legend({ domestic, international, onMapIds, ...props }: any) {
{selected && (
<button
onClick={() => setSelected(null)}
className="py-1.5 px-3 rounded-lg text-sm font-bold underline"
className="py-1.5 px-3 text-sm font-bold underline"
style={{ color: FALLBACK_COLOR }}
>
Show all
@ -470,7 +470,7 @@ function RegionBlock({
function GroupCard({ group, color, open, onOpen }) {
return (
<div
className="rounded-2xl p-4 flex items-start gap-4 transition-all duration-200"
className="p-4 flex items-start gap-4 transition-all duration-200"
style={{
border: `1px solid ${color}`,
background: open ? `${withAlpha(color, 8)}` : "transparent",
@ -499,7 +499,7 @@ function GroupCard({ group, color, open, onOpen }) {
onClick={onOpen}
aria-expanded={open}
aria-label={`${open ? "Hide" : "View"} details for ${group.name}`}
className="h-9 w-9 rounded-full flex items-center justify-center transition-transform duration-200 hover:scale-110"
className="h-9 w-9 btn flex items-center justify-center transition-transform duration-200 hover:scale-110"
style={{
border: `1px solid ${color}`,
color,
@ -540,7 +540,7 @@ function GroupDetail({ group, region, onClose }) {
return (
<div
className="rounded-2xl p-6 mb-6"
className="p-6 mb-6"
style={{ border: `2px solid ${colorOf(region)}`, background: `${withAlpha(colorOf(region), 6)}` }}
>
<div className="flex items-start gap-4">
@ -554,7 +554,7 @@ function GroupDetail({ group, region, onClose }) {
<button
onClick={onClose}
aria-label="Close details"
className="shrink-0 h-8 w-8 rounded-full flex items-center justify-center text-lg font-bold transition-transform duration-200 hover:scale-110"
className="shrink-0 h-8 w-8 btn flex items-center justify-center text-lg transition-transform duration-200 hover:scale-110"
style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }}
>
<X size={20} weight="bold" aria-hidden="true" />
@ -582,7 +582,7 @@ function GroupDetail({ group, region, onClose }) {
{orgPath(group) && (
<Link
to={orgPath(group)!}
className="py-2 px-5 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
className="py-2 px-5 font-bold text-sm transition-transform duration-200 hover:scale-105"
style={{ background: colorOf(region), color: readableOn(colorOf(region)) }}
>
Group page
@ -593,7 +593,7 @@ function GroupDetail({ group, region, onClose }) {
href={group.website}
target="_blank"
rel="noopener noreferrer"
className="py-2 px-5 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
className="py-2 px-5 font-bold text-sm transition-transform duration-200 hover:scale-105"
style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }}
>
Visit site
@ -603,7 +603,7 @@ function GroupDetail({ group, region, onClose }) {
{group.email && (
<a
href={`mailto:${group.email}`}
className="py-2 px-5 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
className="py-2 px-5 font-bold text-sm transition-transform duration-200 hover:scale-105"
style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }}
>
Get in touch
@ -695,7 +695,7 @@ export function OrgMapToggle({ view, setView, accent }) {
return (
<div
className="inline-flex rounded-xl overflow-hidden shrink-0"
className="inline-flex overflow-hidden shrink-0"
style={{ border: `1px solid ${accent}` }}
role="group"
aria-label="Change how groups are displayed"

View file

@ -44,7 +44,7 @@ import { accentText } from '../../lib/color.ts'
const MUTED = "var(--color-muted)";
const RULE = "color-mix(in srgb, var(--color-muted) 25%, transparent)";
const INK = "var(--color-body)";
const FALLBACK_COLOR = "#4a6b72";
const FALLBACK_COLOR = "#004c52";
/* ── Row button ───────────────────────────────────────────────
Deliberately a sibling of the summary button rather than inside
@ -54,7 +54,7 @@ const FALLBACK_COLOR = "#4a6b72";
function RowButton({ as: As = "button", color, children, ...rest }: any) {
return (
<As
className="inline-flex shrink-0 items-center gap-2 whitespace-nowrap py-2 px-4 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
className="inline-flex shrink-0 items-center gap-2 whitespace-nowrap py-2 px-4 font-bold text-sm transition-transform duration-200 hover:scale-105"
style={{ border: `1px solid ${color}`, color }}
{...rest}
>
@ -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 rounded-lg 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-extrabold"
style={{ border: `1px solid ${color}`, color: accentText(color) }}
aria-hidden="true"
>

View file

@ -413,7 +413,7 @@ export default function QrCodeMaker() {
)}
</div>
{warning && (
<p role="status" className="mt-2 rounded-lg bg-danger-tint px-3 py-2 text-sm text-danger">
<p role="status" className="mt-2 bg-danger-tint px-3 py-2 text-sm text-danger">
{warning}
</p>
)}
@ -423,13 +423,13 @@ export default function QrCodeMaker() {
<div>
<p className="text-sm font-medium text-body">Links to</p>
<div className="mt-2 flex flex-wrap items-center gap-3">
<code className="break-all rounded-lg bg-surface px-3 py-2 text-sm text-body ring-1 ring-muted/20">
<code className="break-all bg-surface px-3 py-2 text-sm text-body ring-1 ring-muted/20">
{url}
</code>
<button
type="button"
onClick={copy}
className="rounded-full border px-4 py-2 text-sm font-semibold transition-colors hover:bg-brand/10"
className="btn border px-4 py-2 text-sm transition-colors hover:bg-brand/10"
style={{ borderColor: BRAND, color: accentText(BRAND) }}
>
{copied ? 'Copied' : 'Copy link'}
@ -442,7 +442,7 @@ export default function QrCodeMaker() {
<div className="flex flex-col items-center gap-5">
{url ? (
<>
<div className="w-full max-w-sm rounded-3xl bg-white p-6 shadow-lg ring-1 ring-muted/10">
<div className="w-full max-w-sm bg-white p-6 shadow-lg ring-1 ring-muted/10">
<QrCode
ref={svgRef}
value={url}
@ -467,7 +467,7 @@ export default function QrCodeMaker() {
</p>
</>
) : (
<div className="aspect-square w-full max-w-sm rounded-3xl bg-surface/60 ring-1 ring-muted/10" />
<div className="aspect-square w-full max-w-sm bg-surface/60 ring-1 ring-muted/10" />
)}
</div>
</div>
@ -479,7 +479,7 @@ function DownloadButton({ onClick, children }: { onClick: () => void; children:
<button
type="button"
onClick={onClick}
className="rounded-full bg-action px-6 py-3 font-semibold text-white transition-colors hover:bg-action-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40"
className="btn bg-action px-6 py-3 text-white transition-colors hover:bg-action-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40"
>
{children}
</button>
@ -487,7 +487,7 @@ function DownloadButton({ onClick, children }: { onClick: () => void; children:
}
const inputClass =
'w-full rounded-xl border border-muted/50 bg-surface px-4 py-3 text-body ' +
'w-full border border-muted/50 bg-surface px-4 py-3 text-body ' +
'outline-none transition-colors focus:border-brand focus:ring-2 focus:ring-brand/25'
/* A color well with its hex beside it, both editable. */
@ -515,7 +515,7 @@ function ColorInput({
type="color"
value={value}
onChange={(e) => onChange(e.target.value)}
className="h-9 w-11 cursor-pointer rounded border border-muted/25 bg-white"
className="h-9 w-11 cursor-pointer border border-muted/25 bg-white"
/>
<input
type="text"
@ -525,7 +525,7 @@ function ColorInput({
setText(e.target.value)
if (/^#[0-9a-f]{6}$/i.test(e.target.value)) onChange(e.target.value.toLowerCase())
}}
className="w-24 rounded-lg border border-muted/50 bg-surface px-2 py-1.5 font-mono text-sm text-body outline-none focus:border-brand"
className="w-24 border border-muted/50 bg-surface px-2 py-1.5 font-mono text-sm text-body outline-none focus:border-brand"
/>
</div>
</div>
@ -533,7 +533,7 @@ function ColorInput({
}
const selectClass =
'w-full appearance-none rounded-xl border border-muted/50 bg-surface px-4 py-3 pr-10 text-body ' +
'w-full appearance-none border border-muted/50 bg-surface px-4 py-3 pr-10 text-body ' +
'outline-none transition-colors focus:border-brand focus:ring-2 focus:ring-brand/25'
function Select({

View file

@ -136,7 +136,7 @@ export default function RequestForm() {
if (status === "sent") {
return (
<div aria-live="polite" className="rounded-2xl border border-brand/20 bg-surface p-8 sm:p-10">
<div aria-live="polite" className="border border-brand/20 bg-surface p-8 sm:p-10">
<h3 className="text-2xl font-bold" style={{ color: accentText(BRAND) }}>
Thanks, we've got it
</h3>
@ -146,7 +146,7 @@ export default function RequestForm() {
<button
type="button"
onClick={reset}
className="mt-6 rounded-full border border-brand px-5 py-2.5 font-semibold text-link transition-colors hover:bg-tint focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40"
className="mt-6 btn border border-brand px-5 py-2.5 text-link transition-colors hover:bg-tint focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40"
>
Send another request
</button>
@ -155,7 +155,7 @@ export default function RequestForm() {
}
return (
<form onSubmit={handleSubmit} noValidate className="rounded-2xl border border-brand/20 bg-surface p-6 sm:p-8">
<form onSubmit={handleSubmit} noValidate className="border border-brand/20 bg-surface p-6 sm:p-8">
<TilePicker
legend="What is this about?"
blurb="Pick the closest fit."
@ -182,7 +182,7 @@ export default function RequestForm() {
/>
<span
className={
"inline-block rounded-full border px-5 py-2 text-sm font-semibold transition-colors " +
"inline-block btn border px-5 py-2 text-sm transition-colors " +
"peer-focus-visible:ring-2 peer-focus-visible:ring-brand/40 " +
(action === a ? "border-brand bg-tint text-link" : "border-muted/30 text-body hover:border-brand/50")
}
@ -309,7 +309,7 @@ export default function RequestForm() {
onChange={(e) => setFiles(Array.from(e.target.files ?? []))}
aria-invalid={Boolean(fileError || fieldErrors.files)}
aria-describedby={fileError || fieldErrors.files ? "request-files-error" : undefined}
className="mt-3 block w-full text-sm text-body file:mr-4 file:rounded-full file:border-0 file:bg-tint file:px-4 file:py-2 file:font-semibold file:text-link hover:file:bg-tint-soft"
className="mt-3 block w-full text-sm text-body file:mr-4 file:border-0 file:bg-tint file:px-4 file:py-2 file:font-semibold file:text-link hover:file:bg-tint-soft"
/>
<FieldError id="request-files-error">{fileError ?? fieldErrors.files}</FieldError>
</div>
@ -317,7 +317,7 @@ export default function RequestForm() {
</>
)}
<div className="mt-8 rounded-xl border border-dashed border-muted/30 bg-tint/60 p-5 sm:p-6">
<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>
<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.
@ -370,7 +370,7 @@ export default function RequestForm() {
</div>
{formError && (
<p role="alert" className="mt-8 rounded-xl border border-danger/30 bg-danger-tint px-4 py-3 text-sm text-danger">
<p role="alert" className="mt-8 border border-danger/30 bg-danger-tint px-4 py-3 text-sm text-danger">
{formError}
</p>
)}
@ -379,7 +379,7 @@ export default function RequestForm() {
<button
type="submit"
disabled={!ready || sending}
className="rounded-full bg-action px-7 py-3 font-semibold text-white transition-colors hover:bg-action-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40 disabled:cursor-not-allowed disabled:bg-muted/25 disabled:text-white/80"
className="btn bg-action px-7 py-3 text-white transition-colors hover:bg-action-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40 disabled:cursor-not-allowed disabled:bg-muted/25 disabled:text-white/80"
>
{sending ? (files.length ? "Uploading…" : "Sending…") : "Send request"}
</button>

View file

@ -15,7 +15,7 @@
--tl-faint: color-mix(in srgb, var(--color-muted) 70%, transparent);
--tl-rail: color-mix(in srgb, var(--color-brand) 20%, transparent);
--tl-surface: var(--color-surface);
--tl-accent: #0f7183;
--tl-accent: var(--color-link);
--tl-accent-soft: color-mix(in srgb, var(--tl-accent) 12%, transparent);
--tl-gutter: 5rem;
@ -133,7 +133,6 @@
gap: 0.5rem;
padding: 0.375rem 0.75rem;
border: 1px dashed var(--tl-rail);
border-radius: 999px;
font-size: 0.8125rem;
color: var(--tl-faint);
}
@ -158,7 +157,6 @@
cursor: pointer;
color: inherit;
font: inherit;
border-radius: 0.375rem;
}
.site-tl__yearBtn:hover .site-tl__yearLabel {
@ -293,7 +291,6 @@
grid-template-columns: 2.75rem minmax(0, 1fr);
gap: 0.75rem;
padding: 0.5rem 0.75rem 0.5rem 0;
border-radius: 0.5rem;
text-decoration: none;
color: inherit;
}
@ -358,7 +355,6 @@ a.site-tl__entry:hover .site-tl__entryTitle {
}
.site-tl__kind--event {
border-radius: 1px;
}
.site-tl__kind--award {
@ -385,7 +381,6 @@ a.site-tl__entry:hover .site-tl__entryTitle {
padding: 1rem 1.125rem;
border-left: 2px solid var(--tl-accent);
background: var(--tl-accent-soft);
border-radius: 0 0.5rem 0.5rem 0;
}
.site-tl__entry--featured .site-tl__entryTitle {
@ -431,10 +426,13 @@ a.site-tl__entry--featured:hover {
.site-tl__toolbarBtn {
padding: 0.375rem 0.75rem;
border: 1px solid var(--tl-rail);
border-radius: 999px;
border-radius: var(--btn-radius);
corner-shape: squircle;
background: none;
color: var(--tl-muted);
font: inherit;
font-family: var(--font-display);
font-weight: 700;
font-size: 0.8125rem;
cursor: pointer;
transition: color 140ms ease, border-color 140ms ease;
@ -511,7 +509,6 @@ a.site-tl__entry--featured:hover {
.site-tl__upcomingBtn:focus-visible {
outline: 2px solid var(--tl-accent);
outline-offset: 2px;
border-radius: 0.375rem;
}
.site-tl__upcomingDot {
@ -565,14 +562,12 @@ a.site-tl__entry--featured:hover {
margin-right: 0.5rem;
vertical-align: -0.1875rem;
object-fit: contain;
border-radius: 2px;
}
/* An 18px mark: the dark-mode backing (.logo-plate, index.css) with
a hairline of padding, not the usual quarter rem. */
:root[data-theme] .site-tl__logo.logo-plate {
padding: 1px;
border-radius: 3px;
}
.site-tl__entry--featured .site-tl__logo {
@ -596,7 +591,6 @@ a.site-tl__entry--featured:hover {
border-left: 2px solid var(--tl-accent);
background: var(--tl-accent-soft);
margin-top: -0.5rem;
border-radius: 0 0 0.5rem 0;
}
.site-tl__rosterTeam {
@ -653,7 +647,6 @@ a.site-tl__entry--featured:hover {
/* --- Kind markers, continued --------------------------------- */
.site-tl__kind--organization {
border-radius: 2px;
background: none;
box-shadow: inset 0 0 0 1.5px var(--tl-faint);
}

View file

@ -96,7 +96,7 @@ export default function FeaturedTimelineRail({ id, title, blurb }: RailProps) {
type="button"
onClick={() => step(direction as number)}
aria-label={label as string}
className="flex h-12 w-12 items-center justify-center rounded-full border text-2xl transition-colors hover:bg-surface"
className="flex h-12 w-12 items-center justify-center btn border text-2xl transition-colors hover:bg-surface"
style={{ borderColor: BRAND, color: accentText(BRAND) }}
>
{glyph}
@ -116,7 +116,7 @@ export default function FeaturedTimelineRail({ id, title, blurb }: RailProps) {
) : loading ? (
<div className="mx-auto mt-12 flex max-w-6xl gap-6 px-6" aria-hidden="true">
{[0, 1, 2].map((i) => (
<div key={i} className="h-72 w-80 shrink-0 animate-pulse rounded-3xl bg-tint" />
<div key={i} className="h-72 w-80 shrink-0 animate-pulse bg-tint" />
))}
</div>
) : (
@ -155,7 +155,7 @@ export default function FeaturedTimelineRail({ id, title, blurb }: RailProps) {
<Link
to="/history"
draggable={false}
className="flex flex-1 flex-col justify-center rounded-3xl p-8 text-white transition-transform duration-300 hover:-translate-y-1"
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>
@ -216,7 +216,7 @@ function RailCard({ item, showYear }: { item: TimelineItem; showYear: boolean })
)
const card =
'flex flex-1 flex-col rounded-3xl border border-brand/15 bg-surface p-7 shadow-sm'
'flex flex-1 flex-col border border-brand/15 bg-surface p-7 shadow-sm'
return (
<div className="flex h-full flex-col">
@ -229,7 +229,7 @@ function RailCard({ item, showYear }: { item: TimelineItem; showYear: boolean })
/>
{showYear && (
<span
className="absolute left-5 top-1/2 -translate-y-1/2 rounded-full px-3 py-0.5 font-display text-sm font-bold text-white"
className="absolute left-5 top-1/2 -translate-y-1/2 px-3 py-0.5 font-display text-sm font-bold text-white"
style={{ background: BRAND }}
>
{year(item)}

View file

@ -50,7 +50,7 @@ import { eventHref } from '../../../lib/hrefs.ts'
import { seriesLabel } from '../../../lib/eventSeries.ts'
import type { Hero, HeroBackdrop, HeroEvent, HeroFeature, HeroSlide } from '../../../lib/useFrontPage.ts'
const DEEP = '#04262e'
const DEEP = '#001011'
export default function HeroStage({ hero }: { hero: Hero | null }) {
const slides = (hero?.slides ?? []).filter((slide) => mediaUrl(slide.media))
@ -120,7 +120,7 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
return (
<div className="text-white">
{live ? (
<p className="mb-6 inline-flex items-center gap-3 rounded-full bg-white/10 px-4 py-1.5 text-sm font-semibold uppercase tracking-[0.2em] backdrop-blur">
<p className="mb-6 inline-flex items-center gap-3 bg-white/10 px-4 py-1.5 text-sm font-semibold uppercase tracking-[0.2em] backdrop-blur">
<span className="hp-live-dot h-2.5 w-2.5 rounded-full bg-[#ff4d4d]" aria-hidden="true" />
Live now
{hero.livestream?.title && (
@ -130,13 +130,13 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
)}
</p>
) : feature === 'event' ? (
<p className="mb-6 inline-flex items-center gap-3 rounded-full bg-white/10 px-4 py-1.5 text-sm font-semibold uppercase tracking-[0.2em] backdrop-blur">
<Star className="text-[#9fe7d0]" weight="fill" aria-hidden="true" />
<p className="mb-6 inline-flex items-center gap-3 bg-white/10 px-4 py-1.5 text-sm font-semibold uppercase tracking-[0.2em] backdrop-blur">
<Star className="text-[#c2ffd6]" weight="fill" aria-hidden="true" />
Featured event
</p>
) : feature === 'video' ? (
<p className="mb-6 inline-flex items-center gap-3 rounded-full bg-white/10 px-4 py-1.5 text-sm font-semibold uppercase tracking-[0.2em] backdrop-blur">
<Play className="text-[#9fe7d0]" weight="fill" aria-hidden="true" />
<p className="mb-6 inline-flex items-center gap-3 bg-white/10 px-4 py-1.5 text-sm font-semibold uppercase tracking-[0.2em] backdrop-blur">
<Play className="text-[#c2ffd6]" weight="fill" aria-hidden="true" />
Featured video
{hero.video?.title && (
<span className="normal-case tracking-normal text-white/75">
@ -146,7 +146,7 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
</p>
) : (
hero.eyebrow && (
<p className="mb-6 inline-block rounded-full border border-white/20 px-4 py-1.5 text-xs font-semibold uppercase tracking-[0.25em] text-[#9fe7d0]">
<p className="mb-6 inline-block border border-white/20 px-4 py-1.5 text-xs font-semibold uppercase tracking-[0.25em] text-[#c2ffd6]">
{hero.eyebrow}
</p>
)
@ -182,8 +182,8 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
{hero.primary && (
<HomeLink
url={hero.primary.url}
className="rounded-full px-8 py-4 text-lg font-bold text-[#04262e] shadow-xl transition-transform duration-300 hover:-translate-y-0.5 hover:scale-[1.03]"
style={{ background: '#9fe7d0' }}
className="btn px-8 py-4 text-lg text-[#001011] shadow-xl transition-transform duration-300 hover:-translate-y-0.5 hover:scale-[1.03]"
style={{ background: '#c2ffd6' }}
>
{hero.primary.label}
</HomeLink>
@ -191,7 +191,7 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
{hero.secondary && (
<HomeLink
url={hero.secondary.url}
className="rounded-full border border-white/35 px-8 py-4 text-lg font-semibold text-white transition-colors duration-300 hover:bg-white/10"
className="btn border border-white/35 px-8 py-4 text-lg text-white transition-colors duration-300 hover:bg-white/10"
>
{hero.secondary.label} <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</HomeLink>
@ -207,8 +207,8 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
function BrandBackdrop() {
return (
<div className="absolute inset-0 -z-10" aria-hidden="true">
<div className="hp-aurora hp-aurora--a" style={blob('#138ba0', '48vw', '-10%', '-10%')} />
<div className="hp-aurora hp-aurora--b" style={blob('#9fe7d0', '38vw', '45%', '20%')} />
<div className="hp-aurora hp-aurora--a" style={blob('#008fa8', '48vw', '-10%', '-10%')} />
<div className="hp-aurora hp-aurora--b" style={blob('#c2ffd6', '38vw', '45%', '20%')} />
<div className="hp-aurora hp-aurora--c" style={blob('#aac992', '30vw', '70%', '-5%')} />
<svg
@ -217,8 +217,8 @@ function BrandBackdrop() {
>
<defs>
<radialGradient id="hp-dove-glow">
<stop offset="0%" stopColor="#9fe7d0" stopOpacity="0.35" />
<stop offset="100%" stopColor="#9fe7d0" stopOpacity="0" />
<stop offset="0%" stopColor="#c2ffd6" stopOpacity="0.35" />
<stop offset="100%" stopColor="#c2ffd6" stopOpacity="0" />
</radialGradient>
</defs>
@ -229,10 +229,10 @@ function BrandBackdrop() {
{[40, 70, 100, 130, 160, 190].map((r, i) => (
<circle key={r} cx="200" cy="200" r={r} strokeWidth={i % 2 ? 0.6 : 1.2} strokeDasharray={i % 2 ? '2 6' : undefined} />
))}
<circle cx="390" cy="200" r="4" fill="#9fe7d0" stroke="none" />
<circle cx="390" cy="200" r="4" fill="#c2ffd6" stroke="none" />
<circle cx="200" cy="40" r="3" fill="#5ce7ff" stroke="none" />
</g>
<g className="hp-rings hp-rings--reverse" fill="none" stroke="#9fe7d0">
<g className="hp-rings hp-rings--reverse" fill="none" stroke="#c2ffd6">
<circle cx="200" cy="200" r="115" strokeWidth="0.8" strokeDasharray="1 10" />
<circle cx="85" cy="200" r="3.5" fill="#ffffff" stroke="none" />
</g>
@ -305,7 +305,7 @@ function PhotoBackdrop({ slides, seconds }: { slides: HeroSlide[]; seconds: numb
<div className="absolute inset-x-0 bottom-6 z-10 mx-auto flex max-w-7xl flex-wrap items-end gap-4 px-6">
{current?.caption && (
<p className="max-w-md rounded-xl bg-black/35 px-4 py-2 text-sm text-white/90 backdrop-blur">
<p className="max-w-md bg-black/35 px-4 py-2 text-sm text-white/90 backdrop-blur">
{current.link_url ? (
<HomeLink url={current.link_url} className="hover:underline">
{current.caption} <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
@ -326,7 +326,7 @@ function PhotoBackdrop({ slides, seconds }: { slides: HeroSlide[]; seconds: numb
onClick={() => setIndex(i)}
aria-label={`Show photo ${i + 1} of ${slides.length}`}
aria-current={i === index}
className="h-1.5 w-10 overflow-hidden rounded-full bg-white/25"
className="h-1.5 w-10 overflow-hidden bg-white/25"
>
<span
// Re-keyed per index so the fill restarts on every change.
@ -342,7 +342,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 rounded-full border border-white/40 text-xs text-white hover:bg-white/10"
className="flex h-8 w-8 items-center justify-center btn border border-white/40 text-xs text-white hover:bg-white/10"
>
{paused ? <Play size={14} weight="fill" aria-hidden="true" /> : <Pause size={14} weight="fill" aria-hidden="true" />}
</button>
@ -361,7 +361,7 @@ function LiveFrame({ src, url, title }: { src: string | null; url: string; title
const [watching, setWatching] = useState(false)
return (
<div
className="relative overflow-hidden rounded-3xl border border-white/15 bg-black shadow-2xl"
className="relative overflow-hidden border border-white/15 bg-black shadow-2xl"
style={{ boxShadow: '0 24px 48px -24px rgba(4, 38, 46, 0.6)' }}
>
<div className="aspect-video w-full">
@ -379,7 +379,7 @@ function LiveFrame({ src, url, title }: { src: string | null; url: string; title
<button
type="button"
onClick={() => setWatching(true)}
className="rounded-full bg-white px-6 py-3 font-semibold text-[#04262e] hover:scale-105"
className="btn bg-white px-6 py-3 text-[#001011] hover:scale-105"
>
Watch live
</button>
@ -389,7 +389,7 @@ function LiveFrame({ src, url, title }: { src: string | null; url: string; title
<span className="hp-live-dot h-4 w-4 rounded-full bg-[#ff4d4d]" aria-hidden="true" />
<HomeLink
url={url}
className="rounded-full bg-white px-6 py-3 font-semibold text-[#04262e] hover:scale-105"
className="btn bg-white px-6 py-3 text-[#001011] hover:scale-105"
>
Watch live
</HomeLink>
@ -418,7 +418,7 @@ function VideoFrame({
}) {
return (
<div
className="relative overflow-hidden rounded-3xl border border-white/15 bg-black shadow-2xl"
className="relative overflow-hidden border border-white/15 bg-black shadow-2xl"
style={{ boxShadow: '0 24px 48px -24px rgba(4, 38, 46, 0.6)' }}
>
<div className="aspect-video w-full">
@ -437,7 +437,7 @@ function VideoFrame({
<div className="flex h-full w-full items-center justify-center">
<HomeLink
url={url}
className="rounded-full bg-white px-6 py-3 font-semibold text-[#04262e] hover:scale-105"
className="btn bg-white px-6 py-3 text-[#001011] hover:scale-105"
>
Watch the video
</HomeLink>
@ -462,7 +462,7 @@ function EventPanel({ event }: { event: HeroEvent }) {
return (
<div
className="overflow-hidden rounded-3xl border border-white/15 bg-white/10 text-white shadow-2xl backdrop-blur"
className="overflow-hidden border border-white/15 bg-white/10 text-white shadow-2xl backdrop-blur"
style={{ boxShadow: '0 24px 48px -24px rgba(4, 38, 46, 0.6)' }}
>
{photo ? (
@ -471,7 +471,7 @@ function EventPanel({ event }: { event: HeroEvent }) {
<div
aria-hidden="true"
className="aspect-[16/7] w-full"
style={{ background: `color-mix(in srgb, ${color} 35%, #04262e)` }}
style={{ background: `color-mix(in srgb, ${color} 35%, #001011)` }}
/>
)}
@ -482,7 +482,7 @@ function EventPanel({ event }: { event: HeroEvent }) {
{event.title}
</Link>
</h2>
{event.theme && <p className="mt-1 text-lg font-semibold text-[#9fe7d0]">"{event.theme}"</p>}
{event.theme && <p className="mt-1 text-lg font-semibold text-[#c2ffd6]">"{event.theme}"</p>}
</div>
{(when || where) && (
@ -495,10 +495,10 @@ function EventPanel({ event }: { event: HeroEvent }) {
<HomeLink
key={link.url}
url={link.url}
className={`inline-flex items-center gap-2 rounded-full px-6 py-3 font-semibold transition-transform hover:scale-105 ${
index === 0 ? 'text-[#04262e]' : 'border border-white/35 text-white hover:bg-white/10'
className={`inline-flex items-center gap-2 btn px-6 py-3 transition-transform hover:scale-105 ${
index === 0 ? 'text-[#001011]' : 'border border-white/35 text-white hover:bg-white/10'
}`}
style={index === 0 ? { background: '#9fe7d0' } : undefined}
style={index === 0 ? { background: '#c2ffd6' } : undefined}
>
<PlatformIcon platform={link.platform} />
{link.label}
@ -506,7 +506,7 @@ function EventPanel({ event }: { event: HeroEvent }) {
))}
<Link
to={eventHref(event.id)}
className="rounded-full border border-white/35 px-6 py-3 font-semibold text-white transition-colors hover:bg-white/10"
className="btn border border-white/35 px-6 py-3 text-white transition-colors hover:bg-white/10"
>
Event details <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />
</Link>

View file

@ -86,7 +86,7 @@ export default function NextEventCountdown({
>
<Link
to={eventHref(event.id)}
className="group mx-auto flex max-w-6xl flex-col gap-6 rounded-3xl border bg-surface/95 p-6 shadow-2xl backdrop-blur transition-transform duration-300 hover:-translate-y-1 md:flex-row md:items-center md:p-8"
className="group mx-auto flex max-w-6xl flex-col gap-6 border bg-surface/95 p-6 shadow-2xl backdrop-blur transition-transform duration-300 hover:-translate-y-1 md:flex-row md:items-center md:p-8"
style={{ borderColor: `${withAlpha(accent, 33)}` }}
>
<div className="min-w-0 flex-1">
@ -108,8 +108,8 @@ export default function NextEventCountdown({
{parts.map(([label, value]) => (
<div
key={label}
className="flex w-16 flex-col items-center rounded-2xl py-3 text-white md:w-20"
style={{ background: `color-mix(in srgb, ${accent} 35%, #04262e)` }}
className="flex w-16 flex-col items-center py-3 text-white md:w-20"
style={{ background: `color-mix(in srgb, ${accent} 35%, #001011)` }}
>
<span className="font-display text-2xl font-bold tabular-nums md:text-3xl">
{String(value).padStart(2, '0')}

View file

@ -58,7 +58,7 @@ function PathIcon({ value }: { value?: string | null }) {
}
// The site's accent family, in turn (color.ts).
const PATH_ACCENTS = [ACCENTS.teal, ACCENTS.green, ACCENTS.mint, ACCENTS.deep]
const PATH_ACCENTS = [ACCENTS.teal, ACCENTS.green, ACCENTS.olive, ACCENTS.deep]
export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps) {
const [selected, setSelected] = useState(0)
@ -123,7 +123,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
aria-controls={`${base}-panel`}
tabIndex={on ? 0 : -1}
onClick={() => setSelected(index)}
className="group flex items-center gap-4 rounded-2xl border-2 px-5 py-4 text-left transition-all duration-300"
className="group flex items-center gap-4 border-2 px-5 py-4 text-left transition-all duration-300"
style={{
borderColor: on ? color : 'rgba(19,139,160,0.12)',
background: on ? `${withAlpha(color, 7)}` : 'var(--color-surface)',
@ -131,7 +131,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
}}
>
<span
className="flex h-12 w-12 shrink-0 items-center justify-center rounded-xl text-2xl transition-transform duration-300 group-hover:scale-110"
className="flex h-12 w-12 shrink-0 items-center justify-center text-2xl transition-transform duration-300 group-hover:scale-110"
style={{
background: on ? color : `${withAlpha(color, 12)}`,
color: on ? readableOn(color) : accentText(color),
@ -161,7 +161,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
id={`${base}-panel`}
role="tabpanel"
aria-labelledby={`${base}-tab-${selected}`}
className="relative overflow-hidden rounded-3xl p-8 md:p-10 lg:col-span-7"
className="relative overflow-hidden p-8 md:p-10 lg:col-span-7"
style={{ background: withAlpha(accent, 5) }}
>
@ -180,7 +180,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps)
>
<HomeLink
url={action.url}
className="group flex h-full flex-col rounded-2xl bg-surface p-6 shadow-sm ring-1 ring-black/5 transition-all duration-300 hover:-translate-y-1 hover:shadow-xl"
className="group flex h-full flex-col bg-surface p-6 shadow-sm ring-1 ring-black/5 transition-all duration-300 hover:-translate-y-1 hover:shadow-xl"
>
<span className="flex items-start gap-2 font-display text-lg font-bold text-ink">
{action.label}

View file

@ -28,7 +28,7 @@ export default function RetreatsBand({ id, title, blurb }: RetreatsBandProps) {
</div>
<Link
to="/retreats"
className="ml-auto rounded-full border px-5 py-2 text-sm font-semibold transition-colors hover:bg-surface"
className="ml-auto btn border px-5 py-2 text-sm transition-colors hover:bg-surface"
style={{ borderColor: BRAND, color: accentText(BRAND) }}
>
All retreats <ArrowRight size="1em" weight="bold" className="inline align-[-0.125em]" aria-hidden="true" />

View file

@ -47,11 +47,11 @@ export default function StatsBand({ id, title, blurb, stats }: StatsBandProps) {
id={id}
ref={ref}
className="relative overflow-hidden py-24"
style={{ background: '#073d4a' }}
style={{ background: '#004552' }}
>
<div
className="pointer-events-none absolute -left-40 -top-40 h-[32rem] w-[32rem] rounded-full opacity-25 blur-3xl"
style={{ background: '#9fe7d0' }}
style={{ background: '#c2ffd6' }}
aria-hidden="true"
/>
@ -70,7 +70,7 @@ export default function StatsBand({ id, title, blurb, stats }: StatsBandProps) {
>
<dd className="font-display text-5xl font-extrabold leading-none text-white md:text-6xl">
<CountUp value={stat.value} run={seen} />
{stat.suffix && <span className="text-[#9fe7d0]">{stat.suffix}</span>}
{stat.suffix && <span className="text-[#c2ffd6]">{stat.suffix}</span>}
</dd>
<dt className="mt-3 text-sm font-semibold uppercase tracking-widest text-white/70">
{stat.label}