{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "nonprofit-ways",
  "title": "Nonprofit: Other ways to give",
  "description": "Monthly giving, fundraising, workplace giving and a gift in a will as cards two by two beside the heading, each with its own drawing and a worked figure counted from the unit cost.",
  "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/ways.tsx",
      "content": "import { BaseLink } from \"../_shared/base\";\nimport { giving, ways } from \"./content\";\nimport { WayArt } from \"./drawings\";\nimport { countOf, unitsFor } from \"./giving\";\nimport { COLUMN, LABEL, Reveal, SECTION, TITLE } from \"./kit\";\n\n/** A way's worked figure: the families its example gift reaches in a year, counted from the unit cost (a matched gift counts twice). */\nfunction figureOf(figure: (typeof ways.items)[number][\"figure\"]) {\n  if (!figure) return ways.noFigure;\n  const amount = figure.matched ? figure.amount * 2 : figure.amount;\n  return figure.say(countOf(unitsFor(amount, figure.frequency, giving.unit), giving.unit));\n}\n\n/**\n * Other ways to give: the heading and a line on the left; on the right the four ways as cards two\n * by two, each with its own drawing, a line on what it involves, a worked figure for what it does\n * (from the same unit cost as every other figure) and the way in. The whole card is its link\n * (rule 59).\n */\nexport function Ways() {\n  return (\n    <section aria-labelledby=\"ways-title\" className={`${COLUMN} ${SECTION} grid gap-group lg:grid-cols-[4fr_8fr] lg:gap-group-lg`}>\n      <Reveal className=\"flex flex-col gap-pad-sm lg:sticky lg:top-[calc(var(--nf-header)+2rem)] lg:self-start\">\n        <p className={LABEL}>{ways.label}</p>\n        <h2 id=\"ways-title\" className={TITLE}>\n          {ways.title}\n        </h2>\n        <p className=\"max-w-sm text-ui-md text-pretty text-text-secondary\">{ways.body}</p>\n      </Reveal>\n      <ul className=\"grid gap-tiles-lg sm:grid-cols-2\">\n        {ways.items.map((w, i) => (\n          <li key={w.id}>\n            <Reveal index={i % 2} className=\"h-full\">\n              <article className=\"group relative flex h-full flex-col gap-pad-sm rounded-surface border border-line-subtle bg-surface p-pad-md transition-[border-color,box-shadow] duration-(--eased-duration-standard) ease-standard hover-fine:border-line-strong hover-fine:shadow-raised\">\n                <WayArt id={w.id} className=\"h-24 w-32\" />\n                <h3 className=\"mt-pad-xs text-display-xl font-semibold tracking-display text-text\">{w.title}</h3>\n                <p className=\"text-ui-md text-pretty text-text-secondary\">{w.body}</p>\n                <p className=\"rounded-control-sm bg-surface-sunken px-pad-sm py-2 text-ui text-pretty text-text\">{figureOf(w.figure)}</p>\n                <BaseLink\n                  href={w.href}\n                  className=\"focus-ring mt-auto inline-flex min-h-11 items-center gap-1.5 self-start rounded-control-xs text-ui font-medium text-brand-text after:absolute after:inset-0 after:rounded-surface\"\n                >\n                  {w.cta}\n                  <svg viewBox=\"0 0 16 16\" className=\"size-4 shrink-0 transition-transform duration-(--eased-duration-fast) ease-standard group-hover-fine:translate-x-0.5\" fill=\"none\" aria-hidden>\n                    <path d=\"M3.5 8h9m-3.5-3.75L12.75 8 9 11.75\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                  </svg>\n                </BaseLink>\n              </article>\n            </Reveal>\n          </li>\n        ))}\n      </ul>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/eased/templates/nonprofit/ways.tsx"
    }
  ],
  "meta": {
    "template": "nonprofit",
    "kind": "template-section",
    "industries": [
      "health"
    ]
  },
  "type": "registry:block"
}