{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-terminal",
  "type": "registry:block",
  "title": "Hero, terminal",
  "description": "Headline and actions beside a terminal panel (command and output) and a prompt box. For developer and agent products.",
  "categories": [
    "hero"
  ],
  "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-b-directory.json"
  ],
  "files": [
    {
      "path": "src/blocks/hero-terminal/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/hero-terminal/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, t } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: t(120),\n  description: t(300),\n  primary: link.partial().optional(),\n  secondary: link.partial().optional(),\n  terminal: z.object({ command: t(120), output: t(160) }),\n  prompt: z.object({ label: t(20), text: t(400) }),\n});\n\nexport const spec = defineSpec({\n  type: 'hero-terminal',\n  aliases: ['hero/terminal'],\n  name: 'Hero, terminal',\n  category: 'hero',\n  role: 'body',\n  description: 'Headline and actions beside a terminal panel (command and output) and a prompt box. For developer and agent products.',\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 or two sentences what it does, who it is for and what the visitor can do next, in plain words.',\n    primary: { label: 'Name the main action', href: '#skill' },\n    secondary: { label: 'Second action', href: '#recipes' },\n    terminal: { command: 'npx your-app add skill', output: '✓ Added .claude/skills/your-app/SKILL.md' },\n    prompt: { label: 'Prompt', text: 'Write the request a visitor would give the agent: what to build, what it contains and what the main action is.' },\n  },\n});\n"
    },
    {
      "path": "src/blocks/hero-terminal/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/hero-terminal/index.tsx",
      "content": "import { useId } from 'react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { ActionLink, Container, Eyebrow, Section, Gate } from '../_shared/kit';\nimport { TerminalPanels } from '../_shared/b-directory-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 HeroTerminal({ props }: BlockProps<Props>) {\n  const id = useId();\n  return (\n    <Section labelledBy={id} className=\"pt-16 @3xl:pt-24\">\n      <Container className=\"grid grid-cols-1 items-center gap-12 @4xl:grid-cols-[1fr_1.05fr] @4xl:gap-16\">\n        <div>\n          <Eyebrow path={['eyebrow']} value={props.eyebrow} />\n          <div id={id}>\n            <Text path={['title']} value={props.title} as=\"h1\" className=\"text-kh-title font-semibold\" />\n          </div>\n          <Text path={['description']} value={props.description} as=\"p\" multiline className=\"mt-6 max-w-kh-lead text-kh-lead text-kh-muted\" />\n          <Gate label={props.primary?.label || props.secondary?.label}>\n          <div className=\"mt-8 flex flex-wrap gap-3\">\n            <ActionLink path={['primary']} value={props.primary} />\n            <ActionLink path={['secondary']} value={props.secondary} variant=\"secondary\" />\n          </div>\n          </Gate>\n        </div>\n        <TerminalPanels terminal={props.terminal} prompt={props.prompt} />\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(HeroTerminal);\n"
    }
  ]
}
