{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-terminal",
  "title": "Hero Terminal",
  "description": "A hero block with a headline, description and CTA slot beside a typing Terminal over a dither Backdrop.",
  "dependencies": [],
  "registryDependencies": [
    "https://dotgrain.space/r/engine.json",
    "https://dotgrain.space/r/terminal.json",
    "https://dotgrain.space/r/backdrop.json"
  ],
  "files": [
    {
      "path": "registry/ui/hero-terminal.tsx",
      "content": "\"use client\";\n\nimport type { CSSProperties, ReactNode, Ref } from \"react\";\nimport { Backdrop } from \"@/components/ui/backdrop\";\nimport { Terminal } from \"@/components/ui/terminal\";\nimport { paletteColors } from \"@/lib/dotgrain/palettes\";\nimport { useColorScheme, useDitherTokens } from \"@/lib/dotgrain/provider\";\nimport type { PaletteName } from \"@/lib/dotgrain/types\";\n\nexport type HeroTerminalProps = {\n  /** The headline, rendered as an h1. */\n  title: ReactNode;\n  description?: ReactNode;\n  /** CTA slot, e.g. links or Buttons. */\n  actions?: ReactNode;\n  /** Terminal lines, typed out on mount. */\n  lines: string[];\n  palette?: PaletteName | string[];\n  /** Backdrop contrast; keep it low behind text. */\n  contrast?: number;\n  className?: string;\n  style?: CSSProperties;\n  ref?: Ref<HTMLDivElement>;\n};\n\nexport function HeroTerminal({ title, description, actions, lines, palette, contrast = 0.35, className, style, ref }: HeroTerminalProps) {\n  const colors = paletteColors(useDitherTokens({ palette }).palette, useColorScheme().scheme);\n  return (\n    <Backdrop ref={ref} palette={palette} contrast={contrast} className={className} style={{ color: colors[colors.length - 1], ...style }}>\n      {/* Two columns that wrap to one below ~700px, without media queries. */}\n      <div\n        style={{\n          display: \"grid\",\n          gridTemplateColumns: \"repeat(auto-fit, minmax(min(100%, 320px), 1fr))\",\n          gap: 32,\n          alignItems: \"center\",\n          padding: \"clamp(24px, 6vw, 72px)\",\n        }}\n      >\n        <div style={{ display: \"grid\", gap: 16, padding: 16, background: colors[0] }}>\n          <h1 style={{ margin: 0, fontSize: \"clamp(32px, 5vw, 56px)\", lineHeight: 1.05 }}>{title}</h1>\n          {description && <p style={{ margin: 0, opacity: 0.8 }}>{description}</p>}\n          {actions && <div style={{ display: \"flex\", gap: 12, flexWrap: \"wrap\" }}>{actions}</div>}\n        </div>\n        <Terminal lines={lines} typing palette={palette} style={{ minWidth: 0 }} />\n      </div>\n    </Backdrop>\n  );\n}\n",
      "type": "registry:ui"
    }
  ],
  "meta": {
    "modes": [
      "dither",
      "ascii"
    ]
  },
  "categories": [
    "block"
  ],
  "type": "registry:ui"
}