Page requests now go through the API (routes/pages.js), which fills the built index.html in for that path before the app loads: title, description, preview image, canonical URL, and structured data (Organization, Event, BlogPosting). Shared links preview the page itself. Unlisted records are noindex; missing ones return 404. /sitemap.xml lists every public, listed page. site.json is the one place for the site's name, address, default description and preview image, and each static page's title and intro, which the pages now read too. Indexing is switched on: robots.txt allows all but /admin and /api and names the sitemap. The browser tab title follows the page. nginx setup, with a fallback to the plain page if the API is down, is in docs/seo.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
1.7 KiB
TypeScript
48 lines
1.7 KiB
TypeScript
import PageShell from "../components/PageShell";
|
|
import { sitePage } from "../lib/site.ts";
|
|
import FeedbackForm from "./sections/FeedbackForm";
|
|
|
|
/* Title and intro: site.json, which also gives the search metadata. */
|
|
const PAGE = sitePage("/feedback");
|
|
|
|
/* ═══════════════════════════════════════════════════════════════
|
|
Feedback page.
|
|
|
|
Section ids match the nav hashes. Right now there's one:
|
|
#website. Add more entries to SECTIONS as the page grows —
|
|
program feedback, retreat surveys, etc.
|
|
|
|
The form itself lives in sections/FeedbackForm, including its
|
|
own type list, location picker, and the POST to /api/feedback.
|
|
This file only decides where it sits on the page.
|
|
═══════════════════════════════════════════════════════════════ */
|
|
|
|
const ACCENT = "#138ba0";
|
|
|
|
const SECTIONS = [
|
|
{
|
|
id: "website",
|
|
title: "Website Feedback",
|
|
blurb:
|
|
"Found a broken link, spotted something out of date, or want the site to do something it doesn't? This form goes straight to the people who maintain it.",
|
|
accent: ACCENT,
|
|
background: "#eef9fb",
|
|
content: (
|
|
// Narrower than the usual max-w-6xl: full-width form fields
|
|
// are unpleasant to fill in.
|
|
<div className="mx-auto max-w-3xl px-6">
|
|
<FeedbackForm />
|
|
</div>
|
|
),
|
|
},
|
|
];
|
|
|
|
export default function Feedback() {
|
|
return (
|
|
<PageShell
|
|
title={PAGE.title}
|
|
intro={PAGE.description}
|
|
sections={SECTIONS}
|
|
/>
|
|
);
|
|
}
|