{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-wordmark",
  "type": "registry:block",
  "title": "Footer, wordmark",
  "description": "A footer led by an SVG text wordmark that scales to the full container width without wrapping or cropping, with up to three short link columns above and a legal row. Brand names up to 16 characters.",
  "categories": [
    "footer"
  ],
  "dependencies": [
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/button.json",
    "https://ui.klarhimmel.com/r/editing.json",
    "https://ui.klarhimmel.com/r/kit-d-chrome.json",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/footer-wordmark/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/footer-wordmark/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, t } from '../_shared/schema';\n\nconst schema = z.object({\n  brand: t(16),\n  tagline: t(120),\n  columns: z.array(z.object({ title: t(30), links: z.array(link).min(1).max(5) })).min(1).max(3),\n  legal: t(120),\n  legalLinks: z.array(link).max(3),\n});\n\nexport const spec = defineSpec({\n  type: 'footer-wordmark',\n  aliases: ['footer/wordmark'],\n  name: 'Footer, wordmark',\n  category: 'footer',\n  role: 'foot',\n  description: 'A footer led by an SVG text wordmark that scales to the full container width without wrapping or cropping, with up to three short link columns above and a legal row. Brand names up to 16 characters.',\n  schema,\n  defaults: {\n    brand: 'Brand name',\n    tagline: 'Say what you do in one line.',\n    columns: [\n      { title: 'First group', links: [{ label: 'First page', href: '/product' }, { label: 'Second page', href: '/calendar' }, { label: 'Third page', href: '/pricing' }] },\n      { title: 'Second group', links: [{ label: 'First page', href: '/about' }, { label: 'Second page', href: '/journal' }, { label: 'Third page', href: '/careers' }] },\n      { title: 'Third group', links: [{ label: 'First page', href: '/help' }, { label: 'Second page', href: '/status' }, { label: 'Third page', href: '/contact' }] },\n    ],\n    legal: '© 0000 Company name',\n    legalLinks: [{ label: 'Privacy', href: '/privacy' }, { label: 'Terms', href: '/terms' }],\n  },\n});\n"
    },
    {
      "path": "src/blocks/footer-wordmark/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/footer-wordmark/index.tsx",
      "content": "import { Text, withHeadingLevel } from '../../editing';\nimport { safeHref } from '../../ui/button';\nimport { Container, Opt, useEditing } from '../_shared/kit';\nimport { FOCUS } from '../_shared/d-chrome-kit';\nimport { cn } from '../../lib/utils';\nimport { spec } from './spec';\nimport { BrandWordmark } from '../_shared/brand-wordmark';\nimport type { BlockProps } from '../types';\nimport type { z } from 'zod';\n\nexport { spec };\ntype Props = z.infer<typeof spec.schema>;\n\nconst linkCls = cn('inline-flex min-h-8 items-center rounded-kh-sm text-kh-small text-kh-muted transition-colors hover:text-kh-ink', FOCUS);\n\nfunction FooterWordmark({ props }: BlockProps<Props>) {\n  const editing = useEditing();\n  const legalLinks = props.legalLinks.map((l, i) => ({ l, i })).filter(({ l }) => l.label || editing);\n  return (\n    <footer className=\"overflow-hidden border-t border-kh-line bg-kh-canvas pt-14\">\n      <Container>\n        <div className=\"grid gap-10 @3xl:grid-cols-[1fr_2fr] @3xl:gap-16\">\n          <Opt path={['tagline']} value={props.tagline} className=\"max-w-kh-narrow text-kh-body text-kh-muted\" placeholder=\"Tagline\" />\n          <nav aria-label=\"Footer\" className=\"grid grid-cols-2 gap-8 @xl:grid-cols-3\">\n            {props.columns.map((c, i) => (\n              <div key={i}>\n                <Text path={['columns', i, 'title']} value={c.title} as=\"p\" className=\"text-kh-small font-semibold\" />\n                <ul className=\"mt-3\">\n                  {c.links.filter((l) => l.label || editing).map((l) => {\n                    const j = c.links.indexOf(l);\n                    return (\n                      <li key={j}>\n                        <a href={safeHref(l.href)} className={linkCls}>\n                          <Text path={['columns', i, 'links', j, 'label']} value={l.label} as=\"span\" placeholder=\"Label\" />\n                        </a>\n                      </li>\n                    );\n                  })}\n                </ul>\n              </div>\n            ))}\n          </nav>\n        </div>\n        {(props.brand.trim() || editing) && <div className=\"mt-12\">\n          <BrandWordmark brand={props.brand} />\n        </div>}\n        <div className=\"flex flex-col gap-3 border-t border-kh-line py-6 @2xl:flex-row @2xl:items-center @2xl:justify-between\">\n          <Text path={['legal']} value={props.legal} as=\"p\" className=\"text-kh-caption text-kh-muted\" />\n          {legalLinks.length > 0 && (\n            <ul className=\"-mx-2 flex flex-wrap\">\n              {legalLinks.map(({ l, i }) => (\n                <li key={i}>\n                  <a href={safeHref(l.href)} className={cn(linkCls, 'px-2 text-kh-caption')}>\n                    <Text path={['legalLinks', i, 'label']} value={l.label} as=\"span\" placeholder=\"Label\" />\n                  </a>\n                </li>\n              ))}\n            </ul>\n          )}\n        </div>\n      </Container>\n    </footer>\n  );\n}\n\nexport default withHeadingLevel(FooterWordmark);\n"
    }
  ]
}
