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
18
src/components/RequestLink.tsx
Normal file
18
src/components/RequestLink.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { Link } from "react-router-dom";
|
||||
import { PaperPlaneTilt } from "@phosphor-icons/react";
|
||||
|
||||
import { requestLink } from "../data/requestTypes.ts";
|
||||
|
||||
/* A button to the Request form, opened on one kind of request
|
||||
(REQUEST_TYPES). Section manifests place it with `request`. */
|
||||
export default function RequestLink({ type, label, className = "" }: { type: string; label: string; className?: string }) {
|
||||
return (
|
||||
<Link
|
||||
to={requestLink(type)}
|
||||
className={`inline-flex items-center gap-2 rounded-full border border-brand/40 px-4 py-2 text-sm font-semibold text-link transition-colors hover:bg-tint print:hidden ${className}`}
|
||||
>
|
||||
<PaperPlaneTilt aria-hidden="true" weight="bold" className="h-4 w-4" />
|
||||
{label}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue