Revised palette: teal, green, amber, ink #19
21 changed files with 116 additions and 116 deletions
|
|
@ -14,16 +14,16 @@
|
||||||
|
|
||||||
// light dark
|
// light dark
|
||||||
export const THEME_DEFAULTS = {
|
export const THEME_DEFAULTS = {
|
||||||
ink: ["#001011", "#fcfffd"],
|
ink: ["#001011", "#f5f9f8"],
|
||||||
body: ["#004552", "#c2f6ff"],
|
body: ["#003a45", "#d6f5fa"],
|
||||||
muted: ["#004c52", "#aac992"],
|
muted: ["#3b5456", "#a3b8b9"],
|
||||||
link: ["#004552", "#5ce7ff"],
|
link: ["#00748a", "#5cd3e6"],
|
||||||
brand: ["#008fa8", "#008fa8"],
|
brand: ["#00748a", "#00748a"],
|
||||||
action: ["#004552", "#004c52"],
|
action: ["#00748a", "#00748a"],
|
||||||
"action-hover": ["#001011", "#004552"],
|
"action-hover": ["#003a45", "#003a45"],
|
||||||
surface: ["#fcfffd", "#001011"],
|
surface: ["#f5f9f8", "#001011"],
|
||||||
tint: ["#c2f6ff", "#004552"],
|
tint: ["#d6f5fa", "#003a45"],
|
||||||
"tint-soft": ["#e8fcfe", "#00252b"],
|
"tint-soft": ["#e8f5f6", "#00222a"],
|
||||||
danger: ["#b3261e", "#ff8a80"],
|
danger: ["#b3261e", "#ff8a80"],
|
||||||
"danger-tint": ["#fdf3f2", "#3b1714"],
|
"danger-tint": ["#fdf3f2", "#3b1714"],
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ export default function Banner() {
|
||||||
if (!visible) return null;
|
if (!visible) return null;
|
||||||
|
|
||||||
const linkClass =
|
const linkClass =
|
||||||
"underline underline-offset-4 decoration-[#aac992] hover:text-white transition-colors";
|
"underline underline-offset-4 decoration-[#9cc47c] hover:text-white transition-colors";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -41,13 +41,13 @@ const Footer_Links = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const footerLinkClass =
|
const footerLinkClass =
|
||||||
"text-white/65 hover:text-[#aac992] text-sm transition-colors";
|
"text-white/65 hover:text-[#9cc47c] text-sm transition-colors";
|
||||||
|
|
||||||
const pageLinkClass =
|
const pageLinkClass =
|
||||||
"text-white/80 hover:text-[#aac992] text-sm font-semibold transition-colors";
|
"text-white/80 hover:text-[#9cc47c] text-sm font-semibold transition-colors";
|
||||||
|
|
||||||
const sectionLinkClass =
|
const sectionLinkClass =
|
||||||
"text-white/65 hover:text-[#aac992] text-sm transition-colors";
|
"text-white/65 hover:text-[#9cc47c] text-sm transition-colors";
|
||||||
|
|
||||||
const headingClass = "text-white/90 text-sm font-semibold mb-4";
|
const headingClass = "text-white/90 text-sm font-semibold mb-4";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@ export default function Layout() {
|
||||||
<nav
|
<nav
|
||||||
className="flex items-center justify-between px-6 py-4"
|
className="flex items-center justify-between px-6 py-4"
|
||||||
aria-label="Site"
|
aria-label="Site"
|
||||||
style={{ background: "rgba(0, 69, 82, 0.92)" }}
|
style={{ background: "rgba(0, 58, 69, 0.92)" }}
|
||||||
>
|
>
|
||||||
<div className="flex items-center gap-8">
|
<div className="flex items-center gap-8">
|
||||||
<Link to="/" aria-label="Next Generation of Unity home" className="inline-block">
|
<Link to="/" aria-label="Next Generation of Unity home" className="inline-block">
|
||||||
|
|
@ -203,7 +203,7 @@ export default function Layout() {
|
||||||
className={({ isActive }) =>
|
className={({ isActive }) =>
|
||||||
`text-base font-bold pb-1 border-b-2 transition-colors duration-200 ${
|
`text-base font-bold pb-1 border-b-2 transition-colors duration-200 ${
|
||||||
isActive
|
isActive
|
||||||
? "text-white border-[#aac992]"
|
? "text-white border-[#9cc47c]"
|
||||||
: "text-white/75 hover:text-white border-transparent"
|
: "text-white/75 hover:text-white border-transparent"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
|
|
@ -261,8 +261,8 @@ export default function Layout() {
|
||||||
aria-current={activeSection === section.hash ? "location" : undefined}
|
aria-current={activeSection === section.hash ? "location" : undefined}
|
||||||
className={`text-sm transition-colors duration-200 ${
|
className={`text-sm transition-colors duration-200 ${
|
||||||
activeSection === section.hash
|
activeSection === section.hash
|
||||||
? "text-[#aac992]"
|
? "text-[#9cc47c]"
|
||||||
: "text-white/75 hover:text-[#aac992]"
|
: "text-white/75 hover:text-[#9cc47c]"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
{section.label}
|
{section.label}
|
||||||
|
|
@ -295,7 +295,7 @@ export default function Layout() {
|
||||||
{mobileMenuOpen && (
|
{mobileMenuOpen && (
|
||||||
<div
|
<div
|
||||||
className="fixed inset-0 z-[60] flex flex-col items-center justify-center overflow-y-auto py-16"
|
className="fixed inset-0 z-[60] flex flex-col items-center justify-center overflow-y-auto py-16"
|
||||||
style={{ background: "rgba(0, 69, 82, 0.97)" }}
|
style={{ background: "rgba(0, 58, 69, 0.97)" }}
|
||||||
role="dialog"
|
role="dialog"
|
||||||
aria-modal="true"
|
aria-modal="true"
|
||||||
aria-label="Menu"
|
aria-label="Menu"
|
||||||
|
|
@ -321,7 +321,7 @@ export default function Layout() {
|
||||||
end={page.path === "/"}
|
end={page.path === "/"}
|
||||||
className={({ isActive }) =>
|
className={({ isActive }) =>
|
||||||
`block text-2xl font-bold py-3 transition-colors ${
|
`block text-2xl font-bold py-3 transition-colors ${
|
||||||
isActive ? "text-[#aac992]" : "text-white hover:text-[#c2ffd6]"
|
isActive ? "text-[#9cc47c]" : "text-white hover:text-[#f0bd4f]"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|
@ -338,7 +338,7 @@ export default function Layout() {
|
||||||
<a
|
<a
|
||||||
key={section.hash}
|
key={section.hash}
|
||||||
href={section.hash}
|
href={section.hash}
|
||||||
className="text-white/80 text-lg py-2 hover:text-[#c2ffd6] transition-colors"
|
className="text-white/80 text-lg py-2 hover:text-[#f0bd4f] transition-colors"
|
||||||
onClick={() => setMobileMenuOpen(false)}
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
>
|
>
|
||||||
{section.label}
|
{section.label}
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@
|
||||||
(PageBackdrop.tsx places them)
|
(PageBackdrop.tsx places them)
|
||||||
|
|
||||||
Flat fills only: no blur, no gradient, no glow. Light mode uses
|
Flat fills only: no blur, no gradient, no glow. Light mode uses
|
||||||
the palette's four palest shades at 60%, dark mode its dark
|
the palette's lightest teal, green and amber at 60%, dark mode
|
||||||
shades (two deepened a step) at 30% over the ink background.
|
their darkest at 30% over the ink background. Every text token
|
||||||
Every text token reads at 4.5:1 or better on each shade even at
|
reads at 4.5:1 or better on each shade even at full strength, so
|
||||||
full strength, so however many circles overlap, text stays
|
however many circles overlap, text stays readable (the lowest is
|
||||||
readable (the lowest, 4.66:1, is the danger red on #004552).
|
4.62:1, the link teal on the light green).
|
||||||
═══════════════════════════════════════════════════════════════ */
|
═══════════════════════════════════════════════════════════════ */
|
||||||
|
|
||||||
.page-backdrop {
|
.page-backdrop {
|
||||||
|
|
@ -18,10 +18,10 @@
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
||||||
--pb-opacity: 0.6;
|
--pb-opacity: 0.6;
|
||||||
--pb-0: #c2f6ff;
|
--pb-0: #d6f5fa;
|
||||||
--pb-1: #dfebd6;
|
--pb-1: #e6f0dd;
|
||||||
--pb-2: #c2ffd6;
|
--pb-2: #fdf1d6;
|
||||||
--pb-3: #c2fbff;
|
--pb-3: #d6f5fa;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* A circle's place: across by its left, down its layer's whole
|
/* A circle's place: across by its left, down its layer's whole
|
||||||
|
|
@ -71,18 +71,18 @@
|
||||||
toggle's choice, or the system's when there is none. */
|
toggle's choice, or the system's when there is none. */
|
||||||
:root[data-theme="dark"] .page-backdrop {
|
:root[data-theme="dark"] .page-backdrop {
|
||||||
--pb-opacity: 0.3;
|
--pb-opacity: 0.3;
|
||||||
--pb-0: #004552;
|
--pb-0: #003a45;
|
||||||
--pb-1: #27371b;
|
--pb-1: #23361a;
|
||||||
--pb-2: #003f45; /* #004c52 deepened */
|
--pb-2: #4a2e00;
|
||||||
--pb-3: #00441a; /* #00521b deepened */
|
--pb-3: #003a45;
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
:root:not([data-theme="light"]) .page-backdrop {
|
:root:not([data-theme="light"]) .page-backdrop {
|
||||||
--pb-opacity: 0.3;
|
--pb-opacity: 0.3;
|
||||||
--pb-0: #004552;
|
--pb-0: #003a45;
|
||||||
--pb-1: #27371b;
|
--pb-1: #23361a;
|
||||||
--pb-2: #003f45; /* #004c52 deepened */
|
--pb-2: #4a2e00;
|
||||||
--pb-3: #00441a; /* #00521b deepened */
|
--pb-3: #003a45;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ const MARGIN = 4
|
||||||
/* Dark enough to scan as black; the site's deep teal. */
|
/* Dark enough to scan as black; the site's deep teal. */
|
||||||
export const QR_INK = '#001011'
|
export const QR_INK = '#001011'
|
||||||
export const QR_PAPER = '#ffffff'
|
export const QR_PAPER = '#ffffff'
|
||||||
export const QR_DOVE = '#008fa8'
|
export const QR_DOVE = '#00748a'
|
||||||
|
|
||||||
/* Badge side as a share of the code's width. */
|
/* Badge side as a share of the code's width. */
|
||||||
const BADGE = 0.24
|
const BADGE = 0.24
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ export default function VideoPlayer({
|
||||||
className="block aspect-video w-full object-cover"
|
className="block aspect-video w-full object-cover"
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<span className="block aspect-video w-full bg-[#004552]" />
|
<span className="block aspect-video w-full bg-[#003a45]" />
|
||||||
)}
|
)}
|
||||||
<span
|
<span
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
|
|
|
||||||
|
|
@ -111,8 +111,8 @@ const button =
|
||||||
const CHECKER = {
|
const CHECKER = {
|
||||||
backgroundColor: "#fff",
|
backgroundColor: "#fff",
|
||||||
backgroundImage:
|
backgroundImage:
|
||||||
"linear-gradient(45deg,#c2fbff 25%,transparent 25%),linear-gradient(-45deg,#c2fbff 25%,transparent 25%)," +
|
"linear-gradient(45deg,#f5f9f8 25%,transparent 25%),linear-gradient(-45deg,#f5f9f8 25%,transparent 25%)," +
|
||||||
"linear-gradient(45deg,transparent 75%,#c2fbff 75%),linear-gradient(-45deg,transparent 75%,#c2fbff 75%)",
|
"linear-gradient(45deg,transparent 75%,#f5f9f8 75%),linear-gradient(-45deg,transparent 75%,#f5f9f8 75%)",
|
||||||
backgroundSize: "12px 12px",
|
backgroundSize: "12px 12px",
|
||||||
backgroundPosition: "0 0,0 6px,6px -6px,-6px 0",
|
backgroundPosition: "0 0,0 6px,6px -6px,-6px 0",
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ const inputLocked =
|
||||||
else the brand teal. */
|
else the brand teal. */
|
||||||
function colorPlaceholder(field, row): string {
|
function colorPlaceholder(field, row): string {
|
||||||
const own = typeof field.placeholder === "function" ? field.placeholder(row) : field.placeholder;
|
const own = typeof field.placeholder === "function" ? field.placeholder(row) : field.placeholder;
|
||||||
return own || "#008fa8";
|
return own || "#00748a";
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getPath(object, path) {
|
export function getPath(object, path) {
|
||||||
|
|
|
||||||
|
|
@ -24,15 +24,15 @@
|
||||||
that arrive as data (page accents, event and region colors) go
|
that arrive as data (page accents, event and region colors) go
|
||||||
through withAlpha() and accentText() in src/lib/color.ts. */
|
through withAlpha() and accentText() in src/lib/color.ts. */
|
||||||
--color-ink: #001011; /* headings */
|
--color-ink: #001011; /* headings */
|
||||||
--color-body: #004552; /* body text */
|
--color-body: #003a45; /* body text */
|
||||||
--color-muted: #004c52; /* secondary text, quiet borders */
|
--color-muted: #3b5456; /* secondary text, quiet borders */
|
||||||
--color-link: #004552; /* links and teal text */
|
--color-link: #00748a; /* links and teal text */
|
||||||
--color-brand: #008fa8; /* decoration: borders, rings, rules */
|
--color-brand: #00748a; /* decoration: borders, rings, rules */
|
||||||
--color-action: #004552; /* button fills, under white text */
|
--color-action: #00748a; /* button fills, under white text */
|
||||||
--color-action-hover: #001011;
|
--color-action-hover: #003a45;
|
||||||
--color-surface: #fcfffd; /* page and cards */
|
--color-surface: #f5f9f8; /* page and cards */
|
||||||
--color-tint: #c2f6ff; /* tinted sections and panels */
|
--color-tint: #d6f5fa; /* tinted sections and panels */
|
||||||
--color-tint-soft: #e8fcfe; /* hover rows, faint panels */
|
--color-tint-soft: #e8f5f6; /* hover rows, faint panels */
|
||||||
--color-danger: #b3261e;
|
--color-danger: #b3261e;
|
||||||
--color-danger-tint: #fdf3f2;
|
--color-danger-tint: #fdf3f2;
|
||||||
|
|
||||||
|
|
@ -65,16 +65,16 @@
|
||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
:root[data-theme="dark"] {
|
:root[data-theme="dark"] {
|
||||||
--color-ink: #fcfffd;
|
--color-ink: #f5f9f8;
|
||||||
--color-body: #c2f6ff;
|
--color-body: #d6f5fa;
|
||||||
--color-muted: #aac992;
|
--color-muted: #a3b8b9;
|
||||||
--color-link: #5ce7ff;
|
--color-link: #5cd3e6;
|
||||||
--color-brand: #008fa8;
|
--color-brand: #00748a;
|
||||||
--color-action: #004c52;
|
--color-action: #00748a;
|
||||||
--color-action-hover: #004552;
|
--color-action-hover: #003a45;
|
||||||
--color-surface: #001011;
|
--color-surface: #001011;
|
||||||
--color-tint: #004552;
|
--color-tint: #003a45;
|
||||||
--color-tint-soft: #00252b;
|
--color-tint-soft: #00222a;
|
||||||
--color-danger: #ff8a80;
|
--color-danger: #ff8a80;
|
||||||
--color-danger-tint: #3b1714;
|
--color-danger-tint: #3b1714;
|
||||||
--color-raised: color-mix(in srgb, var(--color-tint) 35%, var(--color-surface));
|
--color-raised: color-mix(in srgb, var(--color-tint) 35%, var(--color-surface));
|
||||||
|
|
@ -83,16 +83,16 @@
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
:root:not([data-theme="light"]) {
|
:root:not([data-theme="light"]) {
|
||||||
--color-ink: #fcfffd;
|
--color-ink: #f5f9f8;
|
||||||
--color-body: #c2f6ff;
|
--color-body: #d6f5fa;
|
||||||
--color-muted: #aac992;
|
--color-muted: #a3b8b9;
|
||||||
--color-link: #5ce7ff;
|
--color-link: #5cd3e6;
|
||||||
--color-brand: #008fa8;
|
--color-brand: #00748a;
|
||||||
--color-action: #004c52;
|
--color-action: #00748a;
|
||||||
--color-action-hover: #004552;
|
--color-action-hover: #003a45;
|
||||||
--color-surface: #001011;
|
--color-surface: #001011;
|
||||||
--color-tint: #004552;
|
--color-tint: #003a45;
|
||||||
--color-tint-soft: #00252b;
|
--color-tint-soft: #00222a;
|
||||||
--color-danger: #ff8a80;
|
--color-danger: #ff8a80;
|
||||||
--color-danger-tint: #3b1714;
|
--color-danger-tint: #3b1714;
|
||||||
--color-raised: color-mix(in srgb, var(--color-tint) 35%, var(--color-surface));
|
--color-raised: color-mix(in srgb, var(--color-tint) 35%, var(--color-surface));
|
||||||
|
|
@ -151,12 +151,12 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
transparent background) and would vanish. .logo-plate gives them
|
transparent background) and would vanish. .logo-plate gives them
|
||||||
a small light backing in dark mode only. */
|
a small light backing in dark mode only. */
|
||||||
:root[data-theme="dark"] .logo-plate {
|
:root[data-theme="dark"] .logo-plate {
|
||||||
background: #fcfffd;
|
background: #f5f9f8;
|
||||||
padding: 0.25rem;
|
padding: 0.25rem;
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
:root:not([data-theme="light"]) .logo-plate {
|
:root:not([data-theme="light"]) .logo-plate {
|
||||||
background: #fcfffd;
|
background: #f5f9f8;
|
||||||
padding: 0.25rem;
|
padding: 0.25rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -169,13 +169,13 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
:root,
|
:root,
|
||||||
:root[data-theme="dark"] {
|
:root[data-theme="dark"] {
|
||||||
--color-ink: #001011;
|
--color-ink: #001011;
|
||||||
--color-body: #004552;
|
--color-body: #003a45;
|
||||||
--color-muted: #004c52;
|
--color-muted: #3b5456;
|
||||||
--color-link: #004552;
|
--color-link: #00748a;
|
||||||
--color-brand: #008fa8;
|
--color-brand: #00748a;
|
||||||
--color-surface: #fcfffd;
|
--color-surface: #f5f9f8;
|
||||||
--color-tint: #c2f6ff;
|
--color-tint: #d6f5fa;
|
||||||
--color-tint-soft: #e8fcfe;
|
--color-tint-soft: #e8f5f6;
|
||||||
--color-danger: #b3261e;
|
--color-danger: #b3261e;
|
||||||
--color-danger-tint: #fdf3f2;
|
--color-danger-tint: #fdf3f2;
|
||||||
--accent-text-mix: 100%;
|
--accent-text-mix: 100%;
|
||||||
|
|
|
||||||
|
|
@ -48,31 +48,31 @@ export const BRAND = 'var(--color-action)'
|
||||||
|
|
||||||
export const ACCENTS = {
|
export const ACCENTS = {
|
||||||
teal: BRAND,
|
teal: BRAND,
|
||||||
deep: '#004c52',
|
deep: '#003a45',
|
||||||
green: '#00521b',
|
green: '#4a7431',
|
||||||
olive: '#27371b',
|
amber: '#8f5b00',
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── The palette ─────────────────────────────────────────────────
|
/* ── The palette ─────────────────────────────────────────────────
|
||||||
The site's 16 colors: four families, each a column of the grid
|
The site's 16 colors: four families, each [main, darkest, light,
|
||||||
(its primary first). The theme tokens above are chosen from these;
|
lightest]. The theme tokens above are chosen from these; so is
|
||||||
so is anything drawn from the palette as data (a person's initials
|
anything drawn from the palette as data (a person's initials
|
||||||
tile, the page background, the admin home's sections). Light
|
tile, the page background, the admin home's sections). Each main
|
||||||
shades are for fills behind text, dark shades for text and fills
|
shade reads as text on white and takes white text on it (5:1 or
|
||||||
under white text; the primaries are for decoration only (#008fa8
|
better); the darkest are for text, the light and lightest for
|
||||||
is 3.8:1 on the page, #88b668 2.3:1). */
|
fills behind text. */
|
||||||
export const PALETTE = {
|
export const PALETTE = {
|
||||||
teal: ['#008fa8', '#004552', '#5ce7ff', '#c2f6ff'],
|
teal: ['#00748a', '#003a45', '#5cd3e6', '#d6f5fa'],
|
||||||
green: ['#88b668', '#dfebd6', '#aac992', '#27371b'],
|
green: ['#4a7431', '#23361a', '#9cc47c', '#e6f0dd'],
|
||||||
mint: ['#fcfffd', '#c2ffd6', '#00b83d', '#00521b'],
|
amber: ['#8f5b00', '#4a2e00', '#f0bd4f', '#fdf1d6'],
|
||||||
ink: ['#001011', '#004c52', '#5cf4ff', '#c2fbff'],
|
ink: ['#3b5456', '#001011', '#a3b8b9', '#f5f9f8'],
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
/* Fills that take the page's ink text (#001011, 15:1 or better) and
|
/* Fills that take the page's ink text (#001011, 9:1 or better) and
|
||||||
fills that take white text (9:1 or better), for things colored
|
fills that take white text (5:1 or better), for things colored
|
||||||
from the palette by data, like an initials tile. */
|
from the palette by data, like an initials tile. */
|
||||||
export const PALETTE_LIGHT = ['#c2f6ff', '#dfebd6', '#c2ffd6', '#c2fbff', '#aac992', '#5ce7ff'] as const
|
export const PALETTE_LIGHT = ['#d6f5fa', '#e6f0dd', '#fdf1d6', '#f0bd4f', '#9cc47c', '#5cd3e6'] as const
|
||||||
export const PALETTE_DARK = ['#004552', '#27371b', '#00521b', '#004c52'] as const
|
export const PALETTE_DARK = ['#003a45', '#23361a', '#4a2e00', '#00748a', '#4a7431', '#8f5b00', '#3b5456'] as const
|
||||||
|
|
||||||
/* A palette fill for something colored by its name, like the
|
/* A palette fill for something colored by its name, like the
|
||||||
initials tile of a person with no photo: the same name always gets
|
initials tile of a person with no photo: the same name always gets
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ const SECTIONS = [
|
||||||
title: "Unity Regions",
|
title: "Unity Regions",
|
||||||
blurb:
|
blurb:
|
||||||
"The regional organizations that support groups and host their own gatherings.",
|
"The regional organizations that support groups and host their own gatherings.",
|
||||||
accent: "#004c52",
|
accent: "#3b5456",
|
||||||
Component: OrgListVertical,
|
Component: OrgListVertical,
|
||||||
request: { type: "region", label: "Request a region update" },
|
request: { type: "region", label: "Request a region update" },
|
||||||
props: {
|
props: {
|
||||||
|
|
@ -59,7 +59,7 @@ const SECTIONS = [
|
||||||
title: "Partner Organizations",
|
title: "Partner Organizations",
|
||||||
blurb:
|
blurb:
|
||||||
"Organizations we collaborate with across the Unity movement and beyond.",
|
"Organizations we collaborate with across the Unity movement and beyond.",
|
||||||
accent: ACCENTS.olive,
|
accent: ACCENTS.amber,
|
||||||
Component: OrgListCards,
|
Component: OrgListCards,
|
||||||
request: { type: "partner", label: "Request a partner listing" },
|
request: { type: "partner", label: "Request a partner listing" },
|
||||||
props: {
|
props: {
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ const SECTIONS = [
|
||||||
id: "committees",
|
id: "committees",
|
||||||
title: "Committees & Volunteers",
|
title: "Committees & Volunteers",
|
||||||
blurb: "Additional roles and contributors.",
|
blurb: "Additional roles and contributors.",
|
||||||
accent: ACCENTS.olive,
|
accent: ACCENTS.amber,
|
||||||
content: <ComingSoon what="this list of committees and volunteers" />,
|
content: <ComingSoon what="this list of committees and volunteers" />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ const SECTIONS = [
|
||||||
id: "partner",
|
id: "partner",
|
||||||
title: "Partner Resources",
|
title: "Partner Resources",
|
||||||
blurb: "Material for the organizations we collaborate with.",
|
blurb: "Material for the organizations we collaborate with.",
|
||||||
accent: ACCENTS.olive,
|
accent: ACCENTS.amber,
|
||||||
content: <ComingSoon what="resources for partners" />,
|
content: <ComingSoon what="resources for partners" />,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ const SECTIONS = [
|
||||||
id: "partner",
|
id: "partner",
|
||||||
title: "Partner Events",
|
title: "Partner Events",
|
||||||
blurb: "Retreats hosted by organizations we collaborate with.",
|
blurb: "Retreats hosted by organizations we collaborate with.",
|
||||||
accent: ACCENTS.olive,
|
accent: ACCENTS.amber,
|
||||||
Component: EventListCards,
|
Component: EventListCards,
|
||||||
props: { scope: "partner", ...RETREATS },
|
props: { scope: "partner", ...RETREATS },
|
||||||
views: { ...CARD_VIEWS, default: "grid" },
|
views: { ...CARD_VIEWS, default: "grid" },
|
||||||
|
|
@ -98,7 +98,7 @@ const SECTIONS = [
|
||||||
id: "other",
|
id: "other",
|
||||||
title: "Other Events",
|
title: "Other Events",
|
||||||
blurb: "Everything that doesn't fit the categories above.",
|
blurb: "Everything that doesn't fit the categories above.",
|
||||||
accent: ACCENTS.olive,
|
accent: ACCENTS.amber,
|
||||||
Component: EventListCards,
|
Component: EventListCards,
|
||||||
props: { scope: "other", ...RETREATS_ONLY },
|
props: { scope: "other", ...RETREATS_ONLY },
|
||||||
views: { ...CARD_VIEWS, default: "grid" },
|
views: { ...CARD_VIEWS, default: "grid" },
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ import { accentText } from '../../lib/color.ts'
|
||||||
|
|
||||||
const MUTED = "var(--color-muted)";
|
const MUTED = "var(--color-muted)";
|
||||||
const INK = "var(--color-body)";
|
const INK = "var(--color-body)";
|
||||||
const FALLBACK_COLOR = "#004c52";
|
const FALLBACK_COLOR = "#3b5456";
|
||||||
|
|
||||||
/* Wide enough for a logo beside two lines of text, narrow enough
|
/* 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
|
that three fit on a laptop. The grid drops a column rather than
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ const CONTENT_MAX = "88rem";
|
||||||
const MUTED = "var(--color-muted)";
|
const MUTED = "var(--color-muted)";
|
||||||
const RULE = "color-mix(in srgb, var(--color-muted) 25%, transparent)";
|
const RULE = "color-mix(in srgb, var(--color-muted) 25%, transparent)";
|
||||||
const INK = "var(--color-body)";
|
const INK = "var(--color-body)";
|
||||||
const FALLBACK_COLOR = "#004c52";
|
const FALLBACK_COLOR = "#3b5456";
|
||||||
|
|
||||||
/* organizations.color is nullable; an SVG fill left undefined paints
|
/* organizations.color is nullable; an SVG fill left undefined paints
|
||||||
black, so an uncolored region takes the same fallback as a card. */
|
black, so an uncolored region takes the same fallback as a card. */
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ import { accentText } from '../../lib/color.ts'
|
||||||
const MUTED = "var(--color-muted)";
|
const MUTED = "var(--color-muted)";
|
||||||
const RULE = "color-mix(in srgb, var(--color-muted) 25%, transparent)";
|
const RULE = "color-mix(in srgb, var(--color-muted) 25%, transparent)";
|
||||||
const INK = "var(--color-body)";
|
const INK = "var(--color-body)";
|
||||||
const FALLBACK_COLOR = "#004c52";
|
const FALLBACK_COLOR = "#3b5456";
|
||||||
|
|
||||||
/* ── Row button ───────────────────────────────────────────────
|
/* ── Row button ───────────────────────────────────────────────
|
||||||
Deliberately a sibling of the summary button rather than inside
|
Deliberately a sibling of the summary button rather than inside
|
||||||
|
|
|
||||||
|
|
@ -130,12 +130,12 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
|
||||||
</p>
|
</p>
|
||||||
) : feature === 'event' ? (
|
) : feature === 'event' ? (
|
||||||
<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">
|
<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" />
|
<Star className="text-[#f0bd4f]" weight="fill" aria-hidden="true" />
|
||||||
Featured event
|
Featured event
|
||||||
</p>
|
</p>
|
||||||
) : feature === 'video' ? (
|
) : feature === 'video' ? (
|
||||||
<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">
|
<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" />
|
<Play className="text-[#f0bd4f]" weight="fill" aria-hidden="true" />
|
||||||
Featured video
|
Featured video
|
||||||
{hero.video?.title && (
|
{hero.video?.title && (
|
||||||
<span className="normal-case tracking-normal text-white/75">
|
<span className="normal-case tracking-normal text-white/75">
|
||||||
|
|
@ -145,7 +145,7 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
|
||||||
</p>
|
</p>
|
||||||
) : (
|
) : (
|
||||||
hero.eyebrow && (
|
hero.eyebrow && (
|
||||||
<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]">
|
<p className="mb-6 inline-block border border-white/20 px-4 py-1.5 text-xs font-semibold uppercase tracking-[0.25em] text-[#f0bd4f]">
|
||||||
{hero.eyebrow}
|
{hero.eyebrow}
|
||||||
</p>
|
</p>
|
||||||
)
|
)
|
||||||
|
|
@ -189,7 +189,7 @@ function Words({ hero, feature }: { hero: Hero; feature: HeroFeature }) {
|
||||||
One set: that one alone, in its own style. */
|
One set: that one alone, in its own style. */
|
||||||
|
|
||||||
const SLANT = '1.75rem'
|
const SLANT = '1.75rem'
|
||||||
const PRIMARY_FILL = '#c2ffd6'
|
const PRIMARY_FILL = '#f0bd4f'
|
||||||
const PRIMARY_TEXT = '#001011'
|
const PRIMARY_TEXT = '#001011'
|
||||||
const HALF = 'relative flex items-center gap-2 px-8 py-4 text-lg transition-colors duration-200 focus-visible:outline-offset-[-6px]'
|
const HALF = 'relative flex items-center gap-2 px-8 py-4 text-lg transition-colors duration-200 focus-visible:outline-offset-[-6px]'
|
||||||
|
|
||||||
|
|
@ -248,7 +248,7 @@ function HeroActions({ primary, secondary }: { primary: HeroLink; secondary: Her
|
||||||
|
|
||||||
/* ── Brand backdrop ──────────────────────────────────────────── */
|
/* ── Brand backdrop ──────────────────────────────────────────── */
|
||||||
|
|
||||||
const BRAND_FILL = '#004552'
|
const BRAND_FILL = '#003a45'
|
||||||
|
|
||||||
function BrandBackdrop() {
|
function BrandBackdrop() {
|
||||||
return (
|
return (
|
||||||
|
|
@ -488,7 +488,7 @@ function EventPanel({ event }: { event: HeroEvent }) {
|
||||||
{event.title}
|
{event.title}
|
||||||
</Link>
|
</Link>
|
||||||
</h2>
|
</h2>
|
||||||
{event.theme && <p className="mt-1 text-lg font-semibold text-[#c2ffd6]">"{event.theme}"</p>}
|
{event.theme && <p className="mt-1 text-lg font-semibold text-[#f0bd4f]">"{event.theme}"</p>}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{(when || where) && (
|
{(when || where) && (
|
||||||
|
|
@ -504,7 +504,7 @@ function EventPanel({ event }: { event: HeroEvent }) {
|
||||||
className={`inline-flex items-center gap-2 btn px-6 py-3 transition-transform hover:scale-105 ${
|
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'
|
index === 0 ? 'text-[#001011]' : 'border border-white/35 text-white hover:bg-white/10'
|
||||||
}`}
|
}`}
|
||||||
style={index === 0 ? { background: '#c2ffd6' } : undefined}
|
style={index === 0 ? { background: '#f0bd4f' } : undefined}
|
||||||
>
|
>
|
||||||
<PlatformIcon platform={link.platform} />
|
<PlatformIcon platform={link.platform} />
|
||||||
{link.label}
|
{link.label}
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ function PathIcon({ value }: { value?: string | null }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// The site's accent family, in turn (color.ts).
|
// The site's accent family, in turn (color.ts).
|
||||||
const PATH_ACCENTS = [ACCENTS.teal, ACCENTS.green, ACCENTS.olive, ACCENTS.deep]
|
const PATH_ACCENTS = [ACCENTS.teal, ACCENTS.green, ACCENTS.amber, ACCENTS.deep]
|
||||||
|
|
||||||
export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps) {
|
export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps) {
|
||||||
const [selected, setSelected] = useState(0)
|
const [selected, setSelected] = useState(0)
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ export default function StatsBand({ id, title, blurb, stats }: StatsBandProps) {
|
||||||
id={id}
|
id={id}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className="relative overflow-hidden py-24"
|
className="relative overflow-hidden py-24"
|
||||||
style={{ background: '#004552' }}
|
style={{ background: '#003a45' }}
|
||||||
>
|
>
|
||||||
<div className="relative mx-auto max-w-6xl px-6">
|
<div className="relative mx-auto max-w-6xl px-6">
|
||||||
<h2 className="font-display text-3xl font-bold text-white md:text-4xl">
|
<h2 className="font-display text-3xl font-bold text-white md:text-4xl">
|
||||||
|
|
@ -64,7 +64,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">
|
<dd className="font-display text-5xl font-extrabold leading-none text-white md:text-6xl">
|
||||||
<CountUp value={stat.value} run={seen} />
|
<CountUp value={stat.value} run={seen} />
|
||||||
{stat.suffix && <span className="text-[#c2ffd6]">{stat.suffix}</span>}
|
{stat.suffix && <span className="text-[#f0bd4f]">{stat.suffix}</span>}
|
||||||
</dd>
|
</dd>
|
||||||
<dt className="mt-3 text-sm font-semibold uppercase tracking-widest text-white/70">
|
<dt className="mt-3 text-sm font-semibold uppercase tracking-widest text-white/70">
|
||||||
{stat.label}
|
{stat.label}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue