NGU-Web/src/pages/QrCodes.tsx
Zaldimmar 2ad65cdc15 Write the site in US English
color, center, canceled, labeled, recognize and the rest, in UI
text, help text, comments, docs and names (ColorInput, QrCenter).
Migration 053 renames the two Site settings color CHECKs, whose
names are the messages the admin shows. Kept: events.status's
stored value 'cancelled' (shown as canceled), aria-labelledby,
schema.org's EventCancelled, and old migrations as they ran.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 13:24:11 -05:00

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 center and the colors; 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}
/>
)
}