{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "call-to-action-20",
  "type": "registry:block",
  "description": "Dark waitlist section with email capture that reveals queue position and a copyable referral link.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "input"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/call-to-action/call-to-action-20.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Check,\n  Copy,\n  Users,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { Input } from \"@workspace/ui/components/input\"\n\nconst referral = \"designali.com/r/kx42-ali\"\n\nexport default function CallToAction20() {\n  const [joined, setJoined] = useState(false)\n  const [copied, setCopied] = useState(false)\n\n  const copy = async () => {\n    try {\n      await navigator.clipboard.writeText(`https://${referral}`)\n    } catch {\n      // clipboard not available\n    }\n    setCopied(true)\n    setTimeout(() => setCopied(false), 1800)\n  }\n\n  return (\n    <section className=\"w-full bg-foreground px-6 py-20 text-background md:py-28\">\n      <div className=\"mx-auto max-w-2xl text-center\">\n        <span className=\"inline-flex items-center gap-2 border border-background/20 px-3 py-1 text-xs text-background/70\">\n          <Users className=\"size-3.5\" />\n          12,840 people waiting\n        </span>\n        <h2 className=\"mt-6 text-4xl font-medium tracking-tight md:text-6xl\">\n          Designali Pro opens in March.\n        </h2>\n        <p className=\"mx-auto mt-5 max-w-lg text-sm leading-7 text-background/70\">\n          Every template, block and icon pack in one membership. Join the waitlist\n          and move up three spots for every friend who signs up.\n        </p>\n\n        {!joined ? (\n          <form\n            onSubmit={(e) => {\n              e.preventDefault()\n              setJoined(true)\n            }}\n            className=\"mx-auto mt-10 flex max-w-md flex-col gap-2 sm:flex-row\"\n          >\n            <Input\n              type=\"email\"\n              required\n              placeholder=\"you@example.com\"\n              aria-label=\"Email\"\n              className=\"h-11 flex-1 border-background/20 bg-background/5 text-sm text-background placeholder:text-background/40 md:text-sm dark:bg-background/5\"\n            />\n            <Button\n              type=\"submit\"\n              className=\"h-11 bg-background text-foreground hover:bg-background/90\"\n            >\n              Join waitlist\n            </Button>\n          </form>\n        ) : (\n          <div className=\"mx-auto mt-10 max-w-md border border-background/20 p-6 text-left\">\n            <div className=\"flex items-baseline justify-between\">\n              <span className=\"text-sm text-background/70\">Your position</span>\n              <span className=\"font-sans text-3xl\">#12,841</span>\n            </div>\n            <div className=\"mt-5 text-xs text-background/60\">\n              Share your link to jump the queue\n            </div>\n            <div className=\"mt-2 flex items-center gap-2 border border-background/20 bg-background/5 py-1 pr-1 pl-3\">\n              <span className=\"min-w-0 flex-1 truncate font-sans text-sm\">\n                {referral}\n              </span>\n              <Button\n                size=\"sm\"\n                onClick={copy}\n                className=\"bg-background text-foreground hover:bg-background/90\"\n              >\n                {copied ? <Check data-icon=\"inline-start\" /> : <Copy data-icon=\"inline-start\" />}\n                {copied ? \"Copied\" : \"Copy\"}\n              </Button>\n            </div>\n          </div>\n        )}\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "560px"
  },
  "categories": [
    "call-to-action"
  ]
}