Pages -> Navigation (migration 075) edits the header's pages and buttons and the footer's links; navConfig.ts is now only the defaults. Page titles and intros move there from Site settings. A hidden page answers Not found below viewer (server and app) and is out of the menus and sitemap; signed in, it shows with a bar. Adds a /shop page of sections, hidden, with its header button. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
1.6 KiB
TypeScript
41 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 Pages → Navigation's links, 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,
|
|
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}
|
|
/>
|
|
)
|
|
}
|