{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "contact-08",
  "type": "registry:block",
  "description": "Department switcher (sales, support, press) that swaps the info panel, response time and form fields per team.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "input",
    "textarea"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/contact/contact-08.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Briefcase,\n  LifeBuoy,\n  Mail,\n  Newspaper,\n  Phone,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { Input } from \"@workspace/ui/components/input\"\nimport { Textarea } from \"@workspace/ui/components/textarea\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst departments = [\n  {\n    id: \"sales\",\n    label: \"Projects\",\n    icon: Briefcase,\n    title: \"Start a project with Designali\",\n    body: \"Brand identity, UI/UX design, web design and Next.js development, scoped by Ali Imam.\",\n    email: \"hello@designali.com\",\n    phone: \"Book a 30-minute call\",\n    placeholder: \"We need a brand identity and a Next.js website for our launch in...\",\n    response: \"Replies in ~2 hours\",\n  },\n  {\n    id: \"support\",\n    label: \"Support\",\n    icon: LifeBuoy,\n    title: \"Get help with templates and blocks\",\n    body: \"Stuck installing a block, an icon pack or a template? Include the page URL so we can look right away.\",\n    email: \"support@designali.com\",\n    phone: \"Read the docs\",\n    placeholder: \"The hero block from /blocks is not picking up my Tailwind CSS theme...\",\n    response: \"Replies in ~30 minutes\",\n  },\n  {\n    id: \"press\",\n    label: \"Press\",\n    icon: Newspaper,\n    title: \"Media and interview enquiries\",\n    body: \"Interviews with Ali Imam, Designali brand assets and project features. We aim to respond before your deadline.\",\n    email: \"ali@designali.com\",\n    phone: \"Download brand assets\",\n    placeholder: \"I'm writing a piece on design engineering and would like...\",\n    response: \"Replies same business day\",\n  },\n]\n\nexport default function Contact08() {\n  const [active, setActive] = useState(departments[0]!.id)\n  const dept = departments.find((d) => d.id === active) ?? departments[0]!\n\n  return (\n    <section className=\"w-full bg-background py-20 md:py-28\">\n      <div className=\"mx-auto max-w-6xl px-6\">\n        <div className=\"flex flex-col justify-between gap-6 md:flex-row md:items-end\">\n          <h2 className=\"max-w-xl text-4xl font-semibold tracking-tight md:text-5xl\">\n            Who would you like to reach?\n          </h2>\n          <div\n            role=\"tablist\"\n            aria-label=\"Departments\"\n            className=\"grid grid-cols-3 border\"\n          >\n            {departments.map((d) => (\n              <button\n                key={d.id}\n                role=\"tab\"\n                type=\"button\"\n                aria-selected={active === d.id}\n                onClick={() => setActive(d.id)}\n                className={cn(\n                  \"flex h-11 items-center justify-center gap-2 px-4 text-sm transition-colors not-last:border-e\",\n                  active === d.id\n                    ? \"bg-foreground text-background\"\n                    : \"hover:bg-muted\"\n                )}\n              >\n                <d.icon className=\"size-4\" />\n                {d.label}\n              </button>\n            ))}\n          </div>\n        </div>\n\n        <div className=\"mt-10 grid border lg:grid-cols-[1fr_1.3fr]\">\n          <div className=\"flex flex-col justify-between gap-10 border-b bg-muted/40 p-8 lg:border-e lg:border-b-0 lg:p-10\">\n            <div className=\"space-y-4\">\n              <p className=\"text-xs text-chart-3 dark:text-primary\">\n                {dept.response}\n              </p>\n              <h3 className=\"text-2xl font-semibold tracking-tight\">\n                {dept.title}\n              </h3>\n              <p className=\"text-sm text-muted-foreground\">{dept.body}</p>\n            </div>\n            <div className=\"space-y-3 text-sm\">\n              <a href={`mailto:${dept.email}`} className=\"flex items-center gap-3 hover:underline\">\n                <Mail className=\"size-4 text-muted-foreground\" />\n                {dept.email}\n              </a>\n              <a href=\"https://cal.com/aliimam/30min\" className=\"flex items-center gap-3 hover:underline\">\n                <Phone className=\"size-4 text-muted-foreground\" />\n                {dept.phone}\n              </a>\n            </div>\n          </div>\n\n          <form key={dept.id} className=\"space-y-4 p-8 lg:p-10\">\n            <div className=\"grid gap-4 sm:grid-cols-2\">\n              <Input placeholder=\"Full name\" className=\"h-11\" />\n              <Input type=\"email\" placeholder=\"Email\" className=\"h-11\" />\n            </div>\n            {dept.id === \"sales\" && (\n              <div className=\"grid gap-4 sm:grid-cols-2\">\n                <Input placeholder=\"Company\" className=\"h-11\" />\n                <Input placeholder=\"Budget (USD)\" inputMode=\"numeric\" className=\"h-11\" />\n              </div>\n            )}\n            {dept.id === \"support\" && (\n              <Input placeholder=\"Page URL, e.g. designali.com/blocks/hero\" className=\"h-11\" />\n            )}\n            {dept.id === \"press\" && (\n              <div className=\"grid gap-4 sm:grid-cols-2\">\n                <Input placeholder=\"Publication\" className=\"h-11\" />\n                <Input type=\"date\" aria-label=\"Deadline\" className=\"h-11\" />\n              </div>\n            )}\n            <Textarea placeholder={dept.placeholder} className=\"min-h-36\" />\n            <Button type=\"submit\" size=\"lg\" className=\"w-full sm:w-auto\">\n              Send to {dept.label.toLowerCase()}\n            </Button>\n          </form>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "760px"
  },
  "categories": [
    "contact"
  ]
}