{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gradient-cta",
  "title": "Gradient call to action",
  "author": "Hazeglow (https://hazeglow.dev)",
  "description": "A call-to-action band with a slow gradient glowing along its bottom edge, below centered text.",
  "dependencies": [
    "hazeglow@^0.6.1"
  ],
  "files": [
    {
      "path": "registry/hazeglow/gradient-cta.tsx",
      "content": "\"use client\";\n\nimport { useState, type ReactNode } from \"react\";\nimport { Hazeglow, parseConfig } from \"hazeglow\";\nimport { cn } from \"@/lib/utils\";\n\nconst config = parseConfig({\n  shape: \"band\",\n  seed: 7,\n  center: [0.5, 1.12],\n  size: [1.3, 0.46],\n  roundness: 0.8,\n  softness: 0.55,\n  rampDirection: 1,\n  angle: 90,\n  warp: 0.25,\n  warpScale: 1.1,\n  grain: 0.45,\n  motion: \"drift\",\n  speed: 0.6,\n  hover: 0.25,\n  palette: [\n    \"var(--hazeglow-1, #05070c)\",\n    \"var(--hazeglow-2, #1b2a3a)\",\n    \"var(--hazeglow-3, #5d7a8c)\",\n    \"var(--hazeglow-4, #c7d3d9)\",\n    \"var(--hazeglow-5, #f4efe3)\",\n  ],\n  background: \"var(--background, #000000)\",\n});\n\nconst fallback =\n  \"radial-gradient(70% 60% at 50% 110%, var(--hazeglow-5, #f4efe3), var(--hazeglow-3, #5d7a8c) 45%, transparent 75%)\";\n\nexport function GradientCta({\n  title = \"Ready when you are\",\n  description = \"Ship the gradient, keep the content on top. Free and MIT.\",\n  children,\n  className,\n}: {\n  title?: ReactNode;\n  description?: ReactNode;\n  children?: ReactNode;\n  className?: string;\n}) {\n  const [unsupported, setUnsupported] = useState(false);\n\n  return (\n    <section\n      className={cn(\n        \"relative isolate overflow-hidden rounded-3xl border bg-background px-6 py-16 text-center text-foreground sm:px-16 sm:py-24\",\n        className,\n      )}\n    >\n      <div\n        aria-hidden=\"true\"\n        className=\"absolute inset-0 -z-10\"\n        style={{ backgroundImage: unsupported ? fallback : undefined }}\n      >\n        {unsupported ? null : <Hazeglow config={config} onUnsupported={() => setUnsupported(true)} />}\n      </div>\n      <h2 className=\"mx-auto max-w-2xl text-3xl font-semibold tracking-tight text-balance sm:text-5xl\">{title}</h2>\n      <p className=\"mx-auto mt-4 max-w-xl text-pretty text-muted-foreground\">{description}</p>\n      {children ? <div className=\"mt-8 flex flex-wrap justify-center gap-3\">{children}</div> : null}\n    </section>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "cssVars": {
    "light": {
      "hazeglow-1": "#05070c",
      "hazeglow-2": "#1b2a3a",
      "hazeglow-3": "#5d7a8c",
      "hazeglow-4": "#c7d3d9",
      "hazeglow-5": "#f4efe3"
    },
    "dark": {
      "hazeglow-1": "#05070c",
      "hazeglow-2": "#1b2a3a",
      "hazeglow-3": "#5d7a8c",
      "hazeglow-4": "#c7d3d9",
      "hazeglow-5": "#f4efe3"
    }
  },
  "docs": "Usage: <GradientCta title=\"Ready when you are\"><Button>Start now</Button></GradientCta>\nColors come from --hazeglow-1 to --hazeglow-5, which this item adds to your CSS for light and dark. They default to Paper moon from the hazeglow.dev gallery; edit them to match your brand, and the gradient fades into --background. Live WebGL2 canvases: keep a few per page, since browsers allow about 16. Design your own look at https://hazeglow.dev/generator and paste its config.",
  "categories": [
    "cta",
    "background",
    "gradient"
  ],
  "type": "registry:block"
}