{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-minimal",
  "type": "registry:block",
  "title": "Hero, minimal",
  "description": "Oversized headline, one line of description and a single link, left-aligned or centred, optionally filling the screen. No media.",
  "categories": [
    "hero"
  ],
  "dependencies": [
    "lucide-react@^1.49.0",
    "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/hero-minimal/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/hero-minimal/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, media, t } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: t(160),\n  description: t(300),\n  primary: link,\n  /** A second action button beside the primary, in the outline look. Absent or empty label: no second button. */\n  secondary: link.partial().optional(),\n  /** 'narrow': the content sits in the narrow centred column instead of the full container width (a left-aligned hero that floats in the middle). Default 'wide'. */\n  width: z.enum(['wide', 'narrow']).optional(),\n  /** 'center': the text and actions centred. Default 'start'. */\n  align: z.enum(['start', 'center']).optional(),\n  /** 'screen': the block fills the viewport below a sticky navbar of height --kh-nav-height (0 if unset) and centres its content vertically. Default 'auto'. */\n  height: z.enum(['auto', 'screen']).optional(),\n  /** A portfolio hero (a company and what it runs): two to four large linked tiles in the band under the headline, each a\n   *  business with its picture or logo, name and one line. Empty: the plain hero. */\n  tiles: z.array(z.object({ name: t(60), description: t(140), href: t(300), media: media.optional() })).max(4).optional(),\n});\n\nexport const spec = defineSpec({\n  type: 'hero-minimal',\n  aliases: ['hero/minimal'],\n  sourceRuns: ['rmwjf66gz21225b', 'rmwjf5qf6b9052d', 'rmwj4ued27e8536'],\n  name: 'Hero, minimal',\n  category: 'hero',\n  role: 'body',\n  description: 'Oversized headline, one line of description and a single link, left-aligned or centred, optionally filling the screen. No media.',\n  schema,\n  defaults: {\n    eyebrow: 'Name what this is',\n    title: 'Say what the visitor gets in one line',\n    description: 'Say in one sentence what it does and who it is for, plainly.',\n    primary: { label: 'Main action', href: '#work' },\n  },\n});\n"
    },
    {
      "path": "src/blocks/hero-minimal/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/hero-minimal/index.tsx",
      "content": "import { useId } from 'react';\nimport { ArrowRight } from 'lucide-react';\nimport { Media, Text, withHeadingLevel } from '../../editing';\nimport { safeHref } from '../../ui/button';\nimport { FOCUS } from '../_shared/d-chrome-kit';\nimport { ButtonLink } from '../../ui/button';\nimport { ActionLink, Container, Eyebrow, Opt, Section, useEditing } from '../_shared/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 TILE_COLS = { 1: '', 2: '@2xl:grid-cols-2', 3: '@2xl:grid-cols-3', 4: '@2xl:grid-cols-2 @5xl:grid-cols-4' } as const;\n\nfunction HeroMinimal({ props }: BlockProps<Props>) {\n  const id = useId();\n  const editing = useEditing();\n  const center = props.align === 'center';\n  const screen = props.height === 'screen';\n  const tiles = (props.tiles ?? []).map((tile, i) => ({ tile, i })).filter(({ tile }) => tile.name || editing);\n  return (\n    <Section labelledBy={id} className={cn(screen ? 'flex min-h-[calc(100svh-var(--kh-nav-height,0px))] flex-col justify-center py-16' : 'pt-20 pb-16 @3xl:pt-32 @3xl:pb-24')}>\n      <Container width={props.width === 'narrow' ? 'narrow' : undefined} className={cn(center && 'text-center')}>\n        <Eyebrow path={['eyebrow']} value={props.eyebrow} />\n        <div id={id} className={cn('max-w-4xl', center && 'mx-auto')}>\n          <Text path={['title']} value={props.title} as=\"h1\" className=\"text-balance text-kh-display font-semibold\" />\n        </div>\n        <Opt path={['description']} value={props.description} as=\"p\" multiline className={cn('mt-6 max-w-kh-lead text-kh-lead text-kh-muted', center && 'mx-auto')} />\n        {(props.primary.label || props.secondary?.label || editing) && (\n          <div className={cn('mt-10 flex flex-wrap items-center gap-3', center && 'justify-center')}>\n            <ButtonLink href={props.primary.href} variant=\"primary\" size=\"lg\" iconEnd={<ArrowRight aria-hidden className=\"size-4\" />}>\n              <Text path={['primary', 'label']} value={props.primary.label} as=\"span\" placeholder=\"Label\" />\n            </ButtonLink>\n            {props.secondary && <ActionLink path={['secondary']} value={{ label: props.secondary.label ?? '', href: props.secondary.href ?? '' }} variant=\"secondary\" size=\"lg\" />}\n          </div>\n        )}\n        {tiles.length > 0 && (\n          // The businesses this company runs, large and linked, inside the hero band (klarholding 12:56, tiny.com style). A tile\n          // shows its picture only when it has one: no placeholder on a real page.\n          <ul className={cn('mt-14 grid gap-4 text-left @3xl:mt-20', TILE_COLS[Math.min(4, tiles.length) as 1 | 2 | 3 | 4])}>\n            {tiles.map(({ tile, i }) => (\n              <li key={i} className=\"flex\">\n                <a\n                  href={safeHref(tile.href)}\n                  className={cn('group flex flex-1 flex-col overflow-hidden rounded-kh-xl border border-kh-line bg-kh-surface transition-[transform,border-color] hover:-translate-y-1 hover:border-kh-accent motion-reduce:transform-none motion-reduce:transition-none', FOCUS)}\n                >\n                  {(tile.media?.src || editing) && (\n                    <div className=\"border-b border-kh-line\">\n                      <Media path={['tiles', i, 'media']} value={tile.media ?? { src: '', alt: '' }} ratio=\"16 / 10\" />\n                    </div>\n                  )}\n                  <span className={cn('flex flex-1 flex-col justify-between gap-8 p-6 @3xl:p-7', !(tile.media?.src || editing) && 'min-h-40')}>\n                    <Text path={['tiles', i, 'name']} value={tile.name} as=\"span\" className={cn('font-semibold', tiles.length > 3 ? 'text-kh-heading' : 'text-kh-title')} />\n                    <span className=\"flex items-end justify-between gap-4\">\n                      <Text path={['tiles', i, 'description']} value={tile.description} as=\"span\" className=\"text-kh-small text-kh-muted\" />\n                      <ArrowRight aria-hidden className=\"size-5 shrink-0 text-kh-muted transition-transform group-hover:translate-x-1 group-hover:text-kh-ink motion-reduce:transform-none\" />\n                    </span>\n                  </span>\n                </a>\n              </li>\n            ))}\n          </ul>\n        )}\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(HeroMinimal);\n"
    }
  ]
}
