{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "video-hero",
  "title": "Video Hero",
  "description": "A hero section with ambient video behind a gradient: a headline, supporting copy and calls to action over a looping muted clip.",
  "dependencies": [
    "cn"
  ],
  "registryDependencies": [
    "litingyes/blocove/ambient-video",
    "badge"
  ],
  "files": [
    {
      "path": "src/registry/blocove/blocks/video-hero.tsx",
      "content": "import type { ReactNode } from 'react'\nimport { cn } from 'cn'\nimport { AmbientVideo } from '@/components/blocove/media/ambient-video'\nimport { Badge } from '@/components/ui/badge'\n\nexport interface VideoHeroProps {\n  /** The ambient video source. Keep it short and loopable. */\n  src: string\n  /** Image shown before the first frame is available. */\n  poster?: string\n  /** Small label above the headline, for example the section or campaign. */\n  eyebrow?: string\n  /** The headline drawn over the video. */\n  title: string\n  /** Supporting copy below the headline. */\n  description?: string\n  /** Calls to action, usually buttons. */\n  actions?: ReactNode\n  className?: string\n}\n\n/**\n * A hero section with ambient video: the clip loops behind a dark gradient so\n * the headline stays readable, and the content sits on top of it. The video is\n * decorative, so the headline carries the meaning.\n */\nexport function VideoHero({\n  src,\n  poster,\n  eyebrow,\n  title,\n  description,\n  actions,\n  className,\n}: VideoHeroProps) {\n  return (\n    <section\n      data-slot=\"video-hero\"\n      className={cn(\n        'relative isolate w-full overflow-hidden rounded-xl border bg-black',\n        className,\n      )}\n    >\n      <AmbientVideo\n        src={src}\n        poster={poster}\n        aspectRatio=\"auto\"\n        className=\"absolute inset-0\"\n      />\n\n      <div\n        aria-hidden=\"true\"\n        className=\"absolute inset-0 bg-linear-to-t from-black/85 via-black/45 to-black/10\"\n      />\n\n      <div className=\"relative flex min-h-72 flex-col items-start justify-end gap-3 p-6 text-white sm:min-h-88 sm:p-10\">\n        {eyebrow\n          ? (\n              <Badge\n                variant=\"secondary\"\n                className=\"border-white/20 bg-white/15 text-white\"\n              >\n                {eyebrow}\n              </Badge>\n            )\n          : null}\n\n        <h2 className=\"max-w-2xl text-2xl font-semibold tracking-tight text-balance sm:text-4xl\">\n          {title}\n        </h2>\n\n        {description\n          ? (\n              <p className=\"max-w-xl text-sm text-white/80 sm:text-base\">\n                {description}\n              </p>\n            )\n          : null}\n\n        {actions\n          ? (\n              <div className=\"mt-2 flex flex-wrap items-center gap-2\">\n                {actions}\n              </div>\n            )\n          : null}\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:block",
      "target": "components/blocove/video-hero.tsx"
    }
  ],
  "categories": [
    "media",
    "block"
  ],
  "type": "registry:block"
}