Fix dark mode and bring the public design in line with the taste audit
- Dark mode: the countdown card, timeline section, Giving text, error text, the Leadership button, skeletons and the admin's dark text all follow the tokens; logos get a light plate in dark mode - One BRAND accent (the button token, so the admin palette reaches every page) and one ACCENTS family in color.ts, replacing 20 local teal constants and the purple, ochre and rust section colours; neon green and gold become mint and brand green - Shadows are tinted with the site's ink; glow shadows are gone - One giving label, Give, in the nav, footer and Giving page - Phosphor icons replace the hand-drawn SVGs and the glyph icons; Pathfinder paths pick a named icon (emoji still shown) and lose the watermark - Home keeps two eyebrows; StatsBand's title is a real heading; section headings step down under the page title - Nav links switch to the menu below lg, so they never wrap; jump links land clear of the header; press feedback on buttons - Empty sections say what's coming and who to ask; loading is a skeleton; form placeholders and borders are readable; one corner-radius rule; theme-color for both modes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f72a9604d2
commit
048c7599ce
59 changed files with 416 additions and 350 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { CaretDown, CaretRight, CaretLeft, Cards, SquaresFour } from '@phosphor-icons/react';
|
||||
import { useEffect, useMemo, useRef, useState } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { splitByStatus, typesPresent, useEvents } from "../../lib/eventData.ts";
|
||||
|
|
@ -7,7 +8,7 @@ import { seriesLabel } from "../../lib/eventSeries.ts";
|
|||
import PlatformIcon from "../../components/PlatformIcon.tsx";
|
||||
import { mediaUrl } from "../../lib/media.ts";
|
||||
import Logo from "../../components/Logo.tsx";
|
||||
import { accentText, withAlpha, readableOn } from '../../lib/color.ts'
|
||||
import { accentText, withAlpha, readableOn, BRAND } from '../../lib/color.ts'
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════
|
||||
EVENT LIST: CARDS
|
||||
|
|
@ -35,7 +36,6 @@ import { accentText, withAlpha, readableOn } from '../../lib/color.ts'
|
|||
fires only for an event with no host at all. */
|
||||
const DEFAULT_ORG_LOGO = null;
|
||||
|
||||
const TEAL = "#0f7183"; // last-resort card color
|
||||
const INK = "var(--color-ink)"; // button text: the card colour is only a border
|
||||
const CARD_BG = "var(--color-surface)"; // sits under every card, photo or not
|
||||
|
||||
|
|
@ -131,8 +131,8 @@ function TitleLink({ ev, linked, children }) {
|
|||
═══════════════════════════════════════════════════════════════ */
|
||||
export function Card({
|
||||
ev,
|
||||
defaultColor = TEAL,
|
||||
accent = TEAL,
|
||||
defaultColor = BRAND,
|
||||
accent = BRAND,
|
||||
compact = false,
|
||||
interactive = true,
|
||||
linked = true,
|
||||
|
|
@ -397,10 +397,7 @@ export function EventCardsToggle({ view, setView, accent }) {
|
|||
className="flex items-center gap-2 py-2 px-4 font-bold text-sm transition-colors duration-200"
|
||||
style={btn(view === "carousel")}
|
||||
>
|
||||
<svg viewBox="0 0 24 24" className="h-4 w-4" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
||||
<rect x="7" y="5" width="10" height="14" rx="2" />
|
||||
<path d="M3.5 8v8M20.5 8v8" />
|
||||
</svg>
|
||||
<Cards className="h-4 w-4" weight="bold" aria-hidden="true" />
|
||||
Carousel
|
||||
</button>
|
||||
<button
|
||||
|
|
@ -409,12 +406,7 @@ export function EventCardsToggle({ view, setView, accent }) {
|
|||
className="flex items-center gap-2 py-2 px-4 font-bold text-sm transition-colors duration-200"
|
||||
style={btn(view === "grid")}
|
||||
>
|
||||
<svg viewBox="0 0 24 24" className="h-4 w-4" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
||||
<rect x="3" y="3" width="7" height="7" rx="1.5" />
|
||||
<rect x="14" y="3" width="7" height="7" rx="1.5" />
|
||||
<rect x="3" y="14" width="7" height="7" rx="1.5" />
|
||||
<rect x="14" y="14" width="7" height="7" rx="1.5" />
|
||||
</svg>
|
||||
<SquaresFour className="h-4 w-4" weight="bold" aria-hidden="true" />
|
||||
Grid
|
||||
</button>
|
||||
</div>
|
||||
|
|
@ -437,7 +429,7 @@ export default function EventListCards({
|
|||
status,
|
||||
type,
|
||||
view = "carousel",
|
||||
accent = TEAL,
|
||||
accent = BRAND,
|
||||
defaultColor,
|
||||
empty = "· Events coming soon, stay connected for announcements ·",
|
||||
}: any) {
|
||||
|
|
@ -630,19 +622,7 @@ export default function EventListCards({
|
|||
{showPast
|
||||
? "Hide past events"
|
||||
: `See past events (${pastEvents.length})`}
|
||||
<svg
|
||||
viewBox="0 0 24 24"
|
||||
className="h-4 w-4 transition-transform duration-300"
|
||||
style={{ transform: showPast ? "rotate(180deg)" : "none" }}
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth="2.5"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<path d="M6 9l6 6-6 6" />
|
||||
</svg>
|
||||
<CaretDown className="h-4 w-4 transition-transform duration-300" style={{ transform: showPast ? "rotate(180deg)" : "none" }} weight="bold" aria-hidden="true" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -696,7 +676,7 @@ export default function EventListCards({
|
|||
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"
|
||||
style={arrowStyle(index > 0)}
|
||||
>
|
||||
‹
|
||||
<CaretLeft size={20} weight="bold" aria-hidden="true" />
|
||||
</button>
|
||||
<button
|
||||
onClick={next}
|
||||
|
|
@ -705,7 +685,7 @@ export default function EventListCards({
|
|||
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"
|
||||
style={arrowStyle(index < events.length - 1)}
|
||||
>
|
||||
›
|
||||
<CaretRight size={20} weight="bold" aria-hidden="true" />
|
||||
</button>
|
||||
</>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue