Add a Request form, with files in Google Drive and email notices
One form at /request for blog posts, events, and new or updated chapters, regions (updates only), partners, teams, awards and people. ?type= opens it on one; buttons on the Community sections, blog posts, Retreats and the front page calendar do. Files (.docx, PDF, JPEG, PNG) go to a Google Drive folder through a service account. Requests are feedback rows of type 'content' (migration 046), in a third Forms queue: files download from Drive, a .docx can become a draft blog post, and deleting a request deletes its files. New content and data requests email the addresses in Site settings through Gmail. Setup: docs/google-drive-and-mail.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0e582c236b
commit
dc53af238f
31 changed files with 1318 additions and 113 deletions
33
src/pages/Request.tsx
Normal file
33
src/pages/Request.tsx
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import PageShell from "../components/PageShell.tsx";
|
||||
import { sitePage } from "../lib/site.ts";
|
||||
import RequestForm from "./sections/RequestForm.tsx";
|
||||
import { BRAND } from "../lib/color.ts";
|
||||
|
||||
/* Title and intro: site.json, which also gives the search metadata. */
|
||||
const PAGE = sitePage("/request");
|
||||
|
||||
/* ═══════════════════════════════════════════════════════════════
|
||||
Request page: ask for something to be added to the site or
|
||||
changed on it. The form (sections/RequestForm) reads ?type= to
|
||||
start on one kind of request; requestLink() makes those links.
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
const SECTIONS = [
|
||||
{
|
||||
id: "request",
|
||||
title: "Send a request",
|
||||
blurb:
|
||||
"Tell us what you'd like on the site, or what should change. Attach a Word document with the details and we'll take it from there.",
|
||||
accent: BRAND,
|
||||
background: "var(--color-tint)",
|
||||
content: (
|
||||
<div className="mx-auto max-w-3xl px-6">
|
||||
<RequestForm />
|
||||
</div>
|
||||
),
|
||||
},
|
||||
];
|
||||
|
||||
export default function Request() {
|
||||
return <PageShell title={PAGE.title} intro={PAGE.description} sections={SECTIONS} />;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue