- Colour tokens in index.css named by role (ink, body, muted, link, brand, action, surface, tint, danger), used everywhere instead of hex - Dark mode: follows the system, a header toggle (site and admin) overrides it and is remembered; set before first paint in index.html - Data colours go through src/lib/color.ts: withAlpha for tints, accentText (lighter on dark) for text in an accent, readableOn for text on one, so an admin's pale colour still reads - Migration 040 drops events.gradient: a card is its photo or plain, with its colour as the border; other decorative gradients are solid - The countdown and a hero event without a photo mix their colour toward ink behind white text Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
1.5 KiB
TypeScript
41 lines
1.5 KiB
TypeScript
import PageShell from '../components/PageShell.tsx'
|
|
import { sitePage } from '../lib/site.ts'
|
|
import QrCodeMaker from './sections/QrCodeMaker.tsx'
|
|
|
|
/* 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: '#0f7183',
|
|
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}
|
|
/>
|
|
)
|
|
}
|