{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "nonprofit-involved",
  "title": "Nonprofit: Get involved",
  "description": "Volunteer, fundraise or bring a workplace along as numbered columns, each with its own drawing, the time it takes, what you get and the next date worked out from its monthly rule, and one enquiry form.",
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [
    "https://eased.dev/r/eased-tokens.json",
    "https://eased.dev/r/eased-motion.json",
    "https://eased.dev/r/nonprofit-core.json",
    "https://eased.dev/r/template-core.json"
  ],
  "files": [
    {
      "path": "src/registry/eased/templates/nonprofit/involved.tsx",
      "content": "\"use client\";\n\nimport { ContactForm, type ContactValues } from \"../_shared/contact-form\";\nimport type { SubmitHandler } from \"../_shared/send\";\nimport { appeal, involvedPage } from \"./content\";\nimport { WayArt } from \"./drawings\";\nimport { printDay, useNow } from \"./gift\";\nimport { nextMonthly } from \"./giving\";\nimport { COLUMN, FORM_TARGETS, PageHead, Reveal } from \"./kit\";\n\n/** Each way in's own drawing. */\nconst ART: Record<string, string> = { volunteer: \"volunteer\", fundraise: \"medal\", workplace: \"workplace\" };\n\n/**\n * Get involved: three ways to give time as numbered columns, each with its own drawing in a\n * tinted circle, a line on what it is, and what it takes, what you get and when it next happens\n * (worked out on the visitor's device from its monthly rule, so it is never stale; the rule shows\n * until then). Then one enquiry form (template-core's ContactForm) that asks which. It sends\n * nothing until you pass `onSubmit` (README, \"Before you ship\").\n */\nexport function Involved({ onSubmit }: { onSubmit?: SubmitHandler<ContactValues> }) {\n  const now = useNow();\n  return (\n    <div className={`${COLUMN} flex flex-col gap-group-lg pt-pad-xl pb-section`}>\n      <PageHead label={involvedPage.label} title={involvedPage.title} lead={involvedPage.lead} />\n      <ol className=\"grid gap-group md:grid-cols-3 md:gap-tiles-lg\">\n        {involvedPage.options.map((o, i) => {\n          const next = now ? printDay(nextMonthly(o.next.nth, o.next.weekday, appeal.timeZone, now), \"short\") : null;\n          return (\n            <li key={o.id}>\n              <Reveal index={i} className=\"flex h-full flex-col gap-pad-sm\">\n                <div aria-hidden className=\"relative mx-auto flex size-48 items-center justify-center rounded-full bg-brand-subtle\">\n                  <span className=\"absolute top-2 left-2 flex size-9 items-center justify-center rounded-full bg-surface text-ui font-semibold text-text tabular-nums shadow-resting\">\n                    {i + 1}\n                  </span>\n                  <WayArt id={ART[o.id]} className=\"w-32\" />\n                </div>\n                <h2 className=\"mt-pad-xs text-center font-display text-display-2xl font-semibold tracking-display text-text\">{o.title}</h2>\n                <p className=\"text-center text-ui-md text-pretty text-text-secondary\">{o.body}</p>\n                <dl className=\"mt-auto flex flex-col border-t border-line-subtle text-ui\">\n                  {[\n                    { k: involvedPage.labels.time, v: o.time },\n                    { k: involvedPage.labels.get, v: o.get },\n                    { k: involvedPage.labels.next, v: `${o.next.name}, ${next ?? o.next.rule}` },\n                  ].map((row) => (\n                    <div key={row.k} className=\"grid grid-cols-[5rem_1fr] gap-pad-xs border-b border-line-subtle py-2\">\n                      <dt className=\"text-text-muted\">{row.k}</dt>\n                      <dd className=\"text-text\">{row.v}</dd>\n                    </div>\n                  ))}\n                </dl>\n              </Reveal>\n            </li>\n          );\n        })}\n      </ol>\n      <Reveal className=\"grid gap-group rounded-surface bg-surface-sunken p-pad-md sm:p-pad-xl lg:grid-cols-[4fr_8fr]\">\n        <h2 className=\"font-display text-display-4xl font-semibold tracking-display text-balance text-text\">{involvedPage.form.label}</h2>\n        <ContactForm {...involvedPage.form} onSubmit={onSubmit} className={`sm:grid-cols-2 ${FORM_TARGETS}`} sentClassName=\"rounded-panel bg-surface p-pad-lg\" />\n      </Reveal>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/nonprofit/involved.tsx"
    }
  ],
  "meta": {
    "template": "nonprofit",
    "kind": "template-section",
    "industries": [
      "health"
    ]
  },
  "type": "registry:block"
}