{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "portfolio-20",
  "type": "registry:block",
  "description": "Contact section with oversized copy-to-clipboard email, intro call slot picker and social links list.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/portfolio/portfolio-20.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { Check, Copy, Globe } from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst email = \"hello@designali.com\"\n\nconst slots = [\n  { day: \"Tue\", date: \"18 Nov\", times: [\"10:00\", \"14:30\"] },\n  { day: \"Wed\", date: \"19 Nov\", times: [\"09:00\", \"11:30\", \"16:00\"] },\n  { day: \"Thu\", date: \"20 Nov\", times: [\"13:00\"] },\n  { day: \"Fri\", date: \"21 Nov\", times: [\"10:30\", \"15:00\"] },\n]\n\nconst links = [\n  {\n    label: \"Instagram\",\n    handle: \"@designali.code\",\n    href: \"https://www.instagram.com/designali.code/\",\n  },\n  { label: \"X\", handle: \"@designali_com\", href: \"https://x.com/designali_com\" },\n  {\n    label: \"LinkedIn\",\n    handle: \"in/aliimam-in\",\n    href: \"https://www.linkedin.com/in/aliimam-in/\",\n  },\n  {\n    label: \"21st.dev\",\n    handle: \"@designali-in\",\n    href: \"https://21st.dev/@designali-in\",\n  },\n]\n\nexport default function Portfolio20() {\n  const [copied, setCopied] = useState(false)\n  const [day, setDay] = useState(1)\n  const [time, setTime] = useState<string | null>(null)\n  const selected = slots[day]!\n\n  const copy = async () => {\n    try {\n      await navigator.clipboard.writeText(email)\n    } catch {\n      // Clipboard may be unavailable; still show feedback\n    }\n    setCopied(true)\n    setTimeout(() => setCopied(false), 1800)\n  }\n\n  return (\n    <section className=\"w-full bg-background py-16 text-foreground md:py-24\">\n      <div className=\"mx-auto max-w-6xl px-6\">\n        <div className=\"flex items-center gap-2 text-sm text-muted-foreground\">\n          <span className=\"relative flex size-2\">\n            <span className=\"absolute inline-flex h-full w-full animate-ping rounded-full bg-primary opacity-60\" />\n            <span className=\"relative inline-flex size-2 rounded-full bg-primary\" />\n          </span>\n          Available for selected projects\n        </div>\n\n        <h2 className=\"mt-6 text-4xl leading-[1.05] font-medium tracking-tight md:text-7xl\">\n          Have something in mind?\n          <br />\n          <span className=\"text-muted-foreground\">\n            Let&apos;s talk it through.\n          </span>\n        </h2>\n\n        <button\n          type=\"button\"\n          onClick={copy}\n          className=\"group mt-8 flex max-w-full items-center gap-3 border-b border-foreground pb-2 text-left text-lg font-medium break-all md:text-3xl\"\n        >\n          {email}\n          {copied ? (\n            <Check className=\"size-5 shrink-0 text-primary dark:text-primary\" />\n          ) : (\n            <Copy className=\"size-5 shrink-0 text-muted-foreground group-hover:text-foreground\" />\n          )}\n          <span className=\"sr-only\" aria-live=\"polite\">\n            {copied ? \"Email copied\" : \"\"}\n          </span>\n        </button>\n\n        <div className=\"mt-14 grid gap-px border border-border bg-border lg:grid-cols-[1.5fr_1fr]\">\n          <div className=\"bg-background p-6 md:p-8\">\n            <div className=\"flex items-center justify-between gap-4\">\n              <h3 className=\"font-medium\">Book a 30-minute intro call</h3>\n              <span className=\"flex items-center gap-1 text-xs text-muted-foreground\">\n                <Globe className=\"size-3.5\" />\n                Remote · your timezone\n              </span>\n            </div>\n            <div className=\"mt-6 grid grid-cols-4 gap-2\">\n              {slots.map((slot, i) => (\n                <button\n                  key={slot.date}\n                  type=\"button\"\n                  onClick={() => {\n                    setDay(i)\n                    setTime(null)\n                  }}\n                  className={cn(\n                    \"border py-3 text-center transition-colors\",\n                    day === i\n                      ? \"border-foreground bg-foreground text-background\"\n                      : \"border-border hover:bg-muted\"\n                  )}\n                >\n                  <span className=\"block text-xs opacity-70\">{slot.day}</span>\n                  <span className=\"block text-sm font-medium\">{slot.date}</span>\n                </button>\n              ))}\n            </div>\n            <div className=\"mt-4 flex flex-wrap gap-2\">\n              {selected.times.map((t) => (\n                <button\n                  key={t}\n                  type=\"button\"\n                  onClick={() => setTime(t)}\n                  className={cn(\n                    \"border px-4 py-2 font-sans text-sm transition-colors\",\n                    time === t\n                      ? \"border-foreground bg-muted\"\n                      : \"border-border hover:bg-muted\"\n                  )}\n                >\n                  {t}\n                </button>\n              ))}\n            </div>\n            <Button\n              size=\"lg\"\n              className=\"mt-6 w-full sm:w-auto\"\n              disabled={!time}\n            >\n              {time\n                ? `Confirm ${selected.day} ${selected.date} at ${time}`\n                : \"Pick a time\"}\n            </Button>\n          </div>\n\n          <ul className=\"bg-background\">\n            {links.map((link) => (\n              <li\n                key={link.label}\n                className=\"border-b border-border last:border-b-0\"\n              >\n                <a\n                  href={link.href}\n                  className=\"flex items-center justify-between gap-4 px-6 py-5 transition-colors hover:bg-muted md:px-8\"\n                >\n                  <span className=\"font-medium\">{link.label}</span>\n                  <span className=\"text-sm text-muted-foreground\">\n                    {link.handle}\n                  </span>\n                </a>\n              </li>\n            ))}\n          </ul>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "900px"
  },
  "categories": [
    "portfolio"
  ]
}