{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cta-figure",
  "type": "registry:block",
  "title": "Cta, figure",
  "description": "A short dark closing band: one giant figure in the display font on the left and a single small underlined text link with an arrow beneath it. On a phone the figure scales down and the link stays under it.",
  "categories": [
    "cta"
  ],
  "dependencies": [
    "lucide-react@^1.49.0",
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/editing.json",
    "https://ui.klarhimmel.com/r/kit-c-proof.json"
  ],
  "files": [
    {
      "path": "src/blocks/cta-figure/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/cta-figure/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, t } from '../_shared/schema';\n\nconst schema = z.object({\n  title: t(80),\n  figure: t(4),\n  link,\n});\n\nexport const spec = defineSpec({\n  type: 'cta-figure',\n  aliases: ['cta/figure'],\n  name: 'Cta, figure',\n  category: 'cta',\n  role: 'body',\n  description: 'A short dark closing band: one giant figure in the display font on the left and a single small underlined text link with an arrow beneath it. On a phone the figure scales down and the link stays under it.',\n  schema,\n  defaults: {\n    title: 'Say in a few words what the figure stands for',\n    figure: '00',\n    link: { label: 'Say what the visitor does next', href: '#start' },\n  },\n});\n"
    },
    {
      "path": "src/blocks/cta-figure/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/cta-figure/index.tsx",
      "content": "import { ArrowRight } from 'lucide-react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { Section } from '../_shared/kit';\nimport { useHeadingId } from '../_shared/c-proof-kit';\nimport { spec } from './spec';\nimport type { BlockProps } from '../types';\nimport type { z } from 'zod';\n\nexport { spec };\ntype Props = z.infer<typeof spec.schema>;\n\nfunction CtaFigure({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  return (\n    <Section labelledBy={id} bare className=\"!py-0\">\n      <div data-kh-tone=\"inverse\" data-kh-dark=\"raised\" className=\"flex min-h-[28rem] flex-col justify-between gap-10 overflow-hidden bg-kh-canvas px-kh-gutter py-12 text-kh-ink @4xl:min-h-[40rem] @4xl:py-16\">\n        <div id={id} className=\"sr-only\">\n          <Text path={['title']} value={props.title} as=\"h2\" />\n        </div>\n        <Text path={['figure']} value={props.figure} as=\"p\" className=\"font-kh-display text-[44cqi] font-light leading-[0.9] tracking-tight @4xl:text-[26cqi]\" />\n        {props.link.label.trim() && (\n          <a href={props.link.href} className=\"inline-flex w-fit items-center gap-2 border-b border-kh-ink/40 pb-1 text-kh-body\">\n            <Text path={['link', 'label']} value={props.link.label} as=\"span\" />\n            <ArrowRight aria-hidden className=\"size-4\" />\n          </a>\n        )}\n      </div>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(CtaFigure);\n"
    }
  ]
}
