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,6 +1,7 @@
|
|||
import { useEffect } from "react";
|
||||
import PageShell from "../components/PageShell.tsx";
|
||||
import { sitePage } from "../lib/site.ts";
|
||||
import { BRAND } from "../lib/color.ts"
|
||||
|
||||
/* Title and intro: site.json, which also gives the search metadata. */
|
||||
const PAGE = sitePage("/give");
|
||||
|
|
@ -10,7 +11,6 @@ const GIVING_URL =
|
|||
|
||||
const MODAL_SCRIPT_SRC = "https://js.churchcenter.com/modal/v1";
|
||||
|
||||
const ACCENT = "#0f7183";
|
||||
|
||||
function useChurchCenterModal() {
|
||||
useEffect(() => {
|
||||
|
|
@ -34,7 +34,7 @@ function useChurchCenterModal() {
|
|||
function GivingPanel() {
|
||||
return (
|
||||
<div className="max-w-2xl mx-auto px-6 text-center">
|
||||
<p className="text-slate-700 leading-relaxed">
|
||||
<p className="text-body leading-relaxed">
|
||||
Gifts are processed securely through Church Center. The form opens
|
||||
right here on the page and you can give once or set up a recurring
|
||||
gift, and you don’t need an account to do either.
|
||||
|
|
@ -52,12 +52,12 @@ function GivingPanel() {
|
|||
focus-visible:ring-offset-2
|
||||
motion-reduce:transition-none
|
||||
"
|
||||
style={{ backgroundColor: ACCENT, "--tw-ring-color": ACCENT } as React.CSSProperties}
|
||||
style={{ backgroundColor: BRAND, "--tw-ring-color": BRAND } as React.CSSProperties}
|
||||
>
|
||||
Give now
|
||||
Give
|
||||
</a>
|
||||
|
||||
<p className="mt-4 text-sm text-slate-500">
|
||||
<p className="mt-4 text-sm text-muted">
|
||||
If you would like to send a check, please email our Board Treasurer at treasurer@nextgenerationofunity.org to get an address.
|
||||
</p>
|
||||
</div>
|
||||
|
|
@ -74,10 +74,10 @@ export default function GivingPage() {
|
|||
const sections = [
|
||||
{
|
||||
id: "give",
|
||||
title: "Donate to NGU",
|
||||
title: "Give to NGU",
|
||||
blurb:
|
||||
"Your giving funds scholarships, retreats, leadership development and the continued growth of the Next Generation of Unity leaders, teachers and community members.",
|
||||
accent: ACCENT,
|
||||
accent: BRAND,
|
||||
background: "var(--color-tint)",
|
||||
content: <GivingPanel />,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue