{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "halftone-hero",
  "title": "Halftone Hero",
  "description": "A split hero section that prints any photo as halftone dots, live on the GPU.",
  "dependencies": [
    "@paper-design/shaders-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/shaders/halftone-hero/halftone-hero.tsx",
      "content": "import {\n  HalftoneDots,\n  type HalftoneDotsProps,\n} from \"@paper-design/shaders-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants } from \"@/components/ui/button\"\n\ntype HalftoneHeroProps = React.ComponentProps<\"section\"> & {\n  eyebrow?: string\n  title?: string\n  description?: string\n  primaryAction?: { label: string; href: string }\n  secondaryAction?: { label: string; href: string }\n  /** Any image URL. Remote images must be served with CORS headers. */\n  image?: string\n  colorBack?: string\n  colorFront?: string\n  type?: HalftoneDotsProps[\"type\"]\n  grid?: HalftoneDotsProps[\"grid\"]\n}\n\nfunction HalftoneHero({\n  eyebrow = \"Issue 07 / Portraits\",\n  title = \"Every face tells it in dots\",\n  description = \"Drop in any photo and it's printed live on the GPU as halftone. Swap the ink and paper colors to match your brand.\",\n  primaryAction = { label: \"Read the issue\", href: \"#\" },\n  secondaryAction = { label: \"Subscribe\", href: \"#\" },\n  image = \"https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=1200&q=80&fm=jpg\",\n  colorBack = \"#f2f1e8\",\n  colorFront = \"#2b2b2b\",\n  type = \"gooey\",\n  grid = \"hex\",\n  className,\n  style,\n  ...props\n}: HalftoneHeroProps) {\n  return (\n    <section\n      data-slot=\"halftone-hero\"\n      className={cn(\n        \"relative isolate grid min-h-[640px] w-full overflow-hidden md:grid-cols-2\",\n        className\n      )}\n      style={{ backgroundColor: colorBack, color: colorFront, ...style }}\n      {...props}\n    >\n      <div className=\"flex flex-col justify-center gap-6 px-6 py-24 md:px-12 lg:px-16\">\n        <span className=\"font-mono text-[11px] tracking-widest uppercase opacity-60\">\n          {eyebrow}\n        </span>\n        <h1 className=\"font-heading text-4xl leading-[1.05] tracking-tight text-balance sm:text-6xl\">\n          {title}\n        </h1>\n        <p className=\"max-w-md text-base text-pretty opacity-70 sm:text-lg\">\n          {description}\n        </p>\n        <div className=\"flex flex-wrap items-center gap-3\">\n          <a\n            href={primaryAction.href}\n            className={cn(buttonVariants({ size: \"lg\" }), \"hover:opacity-80\")}\n            style={{ backgroundColor: colorFront, color: colorBack }}\n          >\n            {primaryAction.label}\n          </a>\n          <a\n            href={secondaryAction.href}\n            className={cn(\n              buttonVariants({ size: \"lg\", variant: \"outline\" }),\n              \"border-current bg-transparent text-inherit hover:bg-current/5 hover:text-inherit\"\n            )}\n          >\n            {secondaryAction.label}\n          </a>\n        </div>\n      </div>\n      <div className=\"relative min-h-80\">\n        <HalftoneDots\n          aria-hidden\n          className=\"absolute inset-0 size-full\"\n          image={image}\n          colorBack={colorBack}\n          colorFront={colorFront}\n          type={type}\n          grid={grid}\n          fit=\"cover\"\n          size={0.5}\n          radius={1.25}\n          contrast={0.4}\n          grainMixer={0.2}\n          grainOverlay={0.2}\n          grainSize={0.5}\n        />\n      </div>\n    </section>\n  )\n}\n\nexport { HalftoneHero }\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "sections",
    "hero"
  ],
  "type": "registry:block"
}