{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "logos-featured",
  "type": "registry:block",
  "title": "Logos, with quote",
  "description": "One customer quote on the left, a framed grid of up to six customer logos on the right. Names without artwork are set as wordmarks. Social proof in one screenful.",
  "categories": [
    "logos"
  ],
  "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",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/logos-featured/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/logos-featured/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, media, t } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(60),\n  quote: t(320),\n  name: t(60),\n  role: t(80),\n  logosTitle: t(80),\n  logos: z.array(z.object({ name: t(40), media })).min(2).max(6),\n});\n\nexport const spec = defineSpec({\n  type: 'logos-featured',\n  aliases: ['logo-cloud/featured'],\n  name: 'Logos, with quote',\n  category: 'logos',\n  role: 'body',\n  description: 'One customer quote on the left, a framed grid of up to six customer logos on the right. Names without artwork are set as wordmarks. Social proof in one screenful.',\n  schema,\n  defaults: {\n    eyebrow: 'Say who relies on you',\n    quote: 'Quote a customer, in their words, on the result they got',\n    name: 'Name a person',\n    role: 'Their role and company',\n    logosTitle: 'Name the logos below',\n    logos: [\n      { name: 'First customer', media: { src: '', alt: 'First customer logo' } },\n      { name: 'Second customer', media: { src: '', alt: 'Second customer logo' } },\n      { name: 'Third customer', media: { src: '', alt: 'Third customer logo' } },\n      { name: 'Fourth customer', media: { src: '', alt: 'Fourth customer logo' } },\n      { name: 'Fifth customer', media: { src: '', alt: 'Fifth customer logo' } },\n      { name: 'Sixth customer', media: { src: '', alt: 'Sixth customer logo' } },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/logos-featured/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/logos-featured/index.tsx",
      "content": "import { useId } from 'react';\nimport { Quote } from 'lucide-react';\nimport { Media, Text, withHeadingLevel } from '../../editing';\nimport { Avatar, Container, Section, Eyebrow, useEditing } from '../_shared/kit';\nimport { hasImage } from '../_shared/c-proof-kit';\nimport { cn } from '../../lib/utils';\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\nconst FACES = ['font-semibold tracking-tight', 'font-medium tracking-[0.14em] uppercase text-kh-small', 'font-bold tracking-tighter'];\n\nfunction LogosFeatured({ props }: BlockProps<Props>) {\n  const nameId = useId();\n  const editing = useEditing();\n  return (\n    <Section labelledBy={nameId}>\n      <Container className=\"grid gap-12 @4xl:grid-cols-2 @4xl:items-center @4xl:gap-20\">\n        <figure>\n          <Eyebrow path={['eyebrow']} value={props.eyebrow} />\n          <Quote aria-hidden strokeWidth={1.5} className=\"size-8 text-kh-accent-ink\" />\n          <blockquote className=\"mt-5\">\n            <Text path={['quote']} value={props.quote} as=\"p\" multiline className=\"text-kh-lead font-medium leading-snug @3xl:text-kh-title @3xl:leading-tight\" />\n          </blockquote>\n          <figcaption className=\"mt-8 flex items-center gap-3\">\n            <Avatar name={props.name} />\n            <span className=\"min-w-0\">\n              <span id={nameId} className=\"block\">\n                <Text path={['name']} value={props.name} as=\"span\" className=\"text-kh-small font-medium\" />\n              </span>\n              <Text path={['role']} value={props.role} as=\"span\" className=\"block text-kh-small text-kh-muted\" />\n            </span>\n          </figcaption>\n        </figure>\n        <div>\n          <Text path={['logosTitle']} value={props.logosTitle} as=\"p\" className=\"mb-4 text-kh-small font-medium text-kh-muted\" />\n          <ul className=\"grid grid-cols-2 gap-3 @xl:grid-cols-3\">\n              {props.logos.map((l, i) => {\n                const image = hasImage(l.media);\n                if (!image && !l.name && !editing) return null;\n                return (\n                  <li key={i} className=\"flex min-h-24 flex-col items-center justify-center gap-2 rounded-kh-lg border border-kh-line bg-kh-canvas px-4 py-6 text-center\">\n                    {(image || editing) && (\n                      <div className=\"w-24 max-w-full\">\n                        <Media path={['logos', i, 'media']} value={l.media} ratio=\"3 / 1\" />\n                      </div>\n                    )}\n                    <Text path={['logos', i, 'name']} value={l.name} as=\"span\" className={cn(image && !editing ? 'sr-only' : 'text-kh-body text-kh-muted', !image && FACES[i % FACES.length])} />\n                  </li>\n                );\n              })}\n          </ul>\n        </div>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(LogosFeatured);\n"
    }
  ]
}
