import { useEffect } from "react"; import PageShell from "../components/PageShell.tsx"; import { sitePage } from "../lib/site.ts"; import { BRAND } from "../lib/color.ts" /* Title and intro: site.json, which also gives the search metadata. */ const PAGE = sitePage("/give"); const GIVING_URL = "https://ngu.churchcenteronline.com/giving?open-in-church-center-modal=true"; const MODAL_SCRIPT_SRC = "https://js.churchcenter.com/modal/v1"; function useChurchCenterModal() { useEffect(() => { if (document.querySelector(`script[src="${MODAL_SCRIPT_SRC}"]`)) return; const script = document.createElement("script"); script.src = MODAL_SCRIPT_SRC; script.async = true; document.head.appendChild(script); // Deliberately not removed on unmount: the script registers a // document-level click handler, and tearing it down on every // route change would mean re-fetching it on the way back. }, []); } /* ═══════════════════════════════════════════════════════════════ GIVING SECTION ═══════════════════════════════════════════════════════════════ */ function GivingPanel() { return (
Gifts are processed securely through Church Center. The form opens right here on the page and you can give once or set up a recurring gift, and you don’t need an account to do either.
GiveIf you would like to send a check, please email our Board Treasurer at treasurer@nextgenerationofunity.org to get an address.