- 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>
42 lines
1.6 KiB
TypeScript
42 lines
1.6 KiB
TypeScript
import PageShell from '../components/PageShell.tsx'
|
|
import { sitePage } from '../lib/site.ts'
|
|
import QrCodeMaker from './sections/QrCodeMaker.tsx'
|
|
import { BRAND } from '../lib/color.ts'
|
|
|
|
/* Title and intro: site.json, which also gives the search metadata. */
|
|
const PAGE = sitePage('/qr')
|
|
|
|
/* ═══════════════════════════════════════════════════════════════
|
|
QR CODES PAGE: /qr
|
|
|
|
A QR code for any page on the site, for flyers, slides and
|
|
signs. Unlisted: not in navConfig, so neither the header nor the
|
|
footer links here. It lists only published records, so there is
|
|
nothing on it a visitor couldn't already reach.
|
|
═══════════════════════════════════════════════════════════════ */
|
|
|
|
const SECTIONS = [
|
|
{
|
|
id: 'make',
|
|
title: 'Make a QR code',
|
|
blurb:
|
|
'Pick a page from the main navigation, any event, organization, team, award, person or blog post, or type any link. Site pages always point at the live site. Choose what sits in the centre and the colours; a warning shows if the code might not scan.',
|
|
accent: BRAND,
|
|
background: 'var(--color-tint)',
|
|
content: (
|
|
<div className="mx-auto max-w-6xl px-6">
|
|
<QrCodeMaker />
|
|
</div>
|
|
),
|
|
},
|
|
]
|
|
|
|
export default function QrCodes() {
|
|
return (
|
|
<PageShell
|
|
title={PAGE.title}
|
|
intro={PAGE.description}
|
|
sections={SECTIONS}
|
|
/>
|
|
)
|
|
}
|