{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "testimonials-cover",
  "type": "registry:block",
  "title": "Testimonials, cover",
  "description": "A full-width cover picture under a dark scrim with a big headline over it, and one white quote card (quote, name and role, one button) overlapping its lower part, to the right on a wide screen and full width on a phone. One strong customer quote that opens a page or closes a story.",
  "categories": [
    "testimonials"
  ],
  "dependencies": [
    "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/testimonials-cover/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/testimonials-cover/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, media, t } from '../_shared/schema';\n\nconst schema = z.object({\n  /** The big headline over the picture; two lines on a wide screen. */\n  title: t(90),\n  /** The full-width picture behind the heading, under a dark scrim. */\n  media,\n  /** The quote on the card, in the speaker's own words. */\n  quote: t(240),\n  name: t(60),\n  role: t(80),\n  action: link,\n});\n\nexport const spec = defineSpec({\n  type: 'testimonials-cover',\n  aliases: ['testimonials/cover'],\n  sourceRuns: ['rmwj1xbmn1b944b', 'rmwj0sz97f0551f'],\n  name: 'Testimonials, cover',\n  category: 'testimonials',\n  role: 'body',\n  description: 'A full-width cover picture under a dark scrim with a big headline over it, and one white quote card (quote, name and role, one button) overlapping its lower part, to the right on a wide screen and full width on a phone. One strong customer quote that opens a page or closes a story.',\n  schema,\n  defaults: {\n    title: 'Write one big heading that carries the point',\n    media: { src: '', alt: 'Show the place or moment the quote is about' },\n    quote: 'Write a real customer quote, in the voice of the speaker, on what changed for them.',\n    name: 'Name of the speaker',\n    role: 'Their role at their company',\n    action: { label: 'Name the next step', href: '#start' },\n  },\n});\n"
    },
    {
      "path": "src/blocks/testimonials-cover/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/testimonials-cover/index.tsx",
      "content": "import { Media, Text, withHeadingLevel } from '../../editing';\nimport { ActionLink, Container, 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 TestimonialsCover({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  return (\n    <Section labelledBy={id} flushEnd className=\"pt-0\">\n      <div className=\"relative isolate flex min-h-[50rem] flex-col overflow-hidden bg-kh-canvas text-kh-on-ink\">\n        <Media path={['media']} value={props.media} priority ratio=\"16/9\" className=\"absolute inset-0 -z-10 h-full rounded-none\" />\n        <div aria-hidden className=\"absolute inset-0 -z-10 bg-kh-ink/50\" />\n        <Container className=\"flex flex-1 flex-col justify-start py-kh-section @3xl:justify-center\">\n          <div id={id} className=\"max-w-kh-narrow\">\n            <Text path={['title']} value={props.title} as=\"h2\" className=\"font-kh-display text-kh-display text-balance\" />\n          </div>\n        </Container>\n        <Container className=\"pb-kh-section\">\n          <figure className=\"w-full max-w-kh-narrow rounded-kh-xl bg-kh-surface p-6 text-kh-ink shadow-kh-3 @md:ml-auto @md:p-8\">\n            <blockquote className=\"font-kh-display text-kh-heading text-balance\">\n              <Text path={['quote']} value={props.quote} multiline />\n            </blockquote>\n            <figcaption className=\"mt-4 font-kh-sans text-kh-small text-kh-muted\">\n              <Text path={['name']} value={props.name} />, <Text path={['role']} value={props.role} />\n            </figcaption>\n            <div className=\"mt-6\">\n              <ActionLink path={['action']} value={props.action} className=\"rounded-kh-pill\" />\n            </div>\n          </figure>\n        </Container>\n      </div>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(TestimonialsCover);\n"
    }
  ]
}
