{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "location-09",
  "type": "registry:block",
  "description": "Getting-here planner with transport mode toggles, travel time, step list and an animated route drawn on a grid map.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/location/location-09.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Calendar,\n  Mail,\n  MessageCircle,\n  Video,\n} from \"@designali/icons\"\n\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nimport { GridPattern } from \"@/registry/designali/ui/grid-pattern\"\n\nconst modes = [\n  {\n    id: \"email\",\n    label: \"Email\",\n    icon: Mail,\n    time: \"24 h\",\n    detail: \"Reply from hello@designali.com\",\n    route: \"M40 300 L40 220 L180 220 L180 120 L330 120 L330 60 L420 60\",\n    steps: [\n      \"Write to hello@designali.com with your idea\",\n      \"Share links, references and a rough timeline\",\n      \"Get a reply from Ali Imam within one working day\",\n    ],\n  },\n  {\n    id: \"call\",\n    label: \"Call\",\n    icon: Video,\n    time: \"30 min\",\n    detail: \"Free discovery call\",\n    route: \"M40 300 C 100 260, 120 200, 200 190 S 300 140, 330 100 S 400 70, 420 60\",\n    steps: [\n      \"Pick a slot on the contact page\",\n      \"Walk through goals, scope and budget\",\n      \"Get a proposal within a few days\",\n    ],\n  },\n  {\n    id: \"chat\",\n    label: \"DM\",\n    icon: MessageCircle,\n    time: \"Same day\",\n    detail: \"Message @designali_com on X\",\n    route: \"M40 300 L120 300 L120 160 L300 160 L300 60 L420 60\",\n    steps: [\n      \"Send a DM on X or Instagram\",\n      \"Share a quick summary of your project\",\n      \"We move the conversation to email or a call\",\n    ],\n  },\n  {\n    id: \"kickoff\",\n    label: \"Kickoff\",\n    icon: Calendar,\n    time: \"1 week\",\n    detail: \"From first message to kickoff\",\n    route: \"M40 300 L260 300 L260 200 L420 200 L420 60\",\n    steps: [\n      \"Agree on scope and timeline\",\n      \"Share brand assets and access\",\n      \"Start designing in Figma together\",\n    ],\n  },\n]\n\nexport default function Location09() {\n  const [mode, setMode] = useState(modes[0]!.id)\n  const current = modes.find((m) => m.id === mode) ?? modes[0]!\n\n  return (\n    <section className=\"w-full bg-background py-20 md:py-28\">\n      <div className=\"mx-auto grid max-w-6xl gap-10 px-6 lg:grid-cols-[1fr_1.2fr] lg:items-center\">\n        <div>\n          <p className=\"text-xs font-medium tracking-widest text-muted-foreground uppercase\">\n            Getting in touch\n          </p>\n          <h2 className=\"mt-3 text-4xl font-semibold tracking-tight md:text-5xl\">\n            From your idea to Designali\n          </h2>\n\n          <div className=\"mt-8 grid grid-cols-4 border\">\n            {modes.map((m) => (\n              <button\n                key={m.id}\n                type=\"button\"\n                onClick={() => setMode(m.id)}\n                aria-pressed={mode === m.id}\n                className={cn(\n                  \"flex flex-col items-center gap-1 py-3 text-xs transition-colors not-last:border-e\",\n                  mode === m.id ? \"bg-foreground text-background\" : \"hover:bg-muted\"\n                )}\n              >\n                <m.icon className=\"size-4\" />\n                {m.label}\n              </button>\n            ))}\n          </div>\n\n          <div className=\"mt-8 flex items-baseline gap-3\">\n            <span className=\"text-4xl font-semibold tabular-nums\">{current.time}</span>\n            <span className=\"text-sm text-muted-foreground\">{current.detail}</span>\n          </div>\n          <ol className=\"mt-6 space-y-4 border-s ps-6\">\n            {current.steps.map((step, index) => (\n              <li key={step} className=\"relative text-sm\">\n                <span className=\"absolute -start-[31px] top-0 flex size-3.5 items-center justify-center rounded-full border bg-background text-[8px]\" />\n                <span className=\"text-muted-foreground\">{index + 1}. </span>\n                {step}\n              </li>\n            ))}\n          </ol>\n        </div>\n\n        <div className=\"relative overflow-hidden border bg-muted/40\">\n          <GridPattern width={20} height={20} className=\"stroke-border\" />\n          <svg viewBox=\"0 0 460 340\" className=\"relative h-auto w-full\" aria-label={`${current.label} route`} role=\"img\">\n            <g className=\"stroke-background\" strokeWidth=\"12\" fill=\"none\">\n              <path d=\"M0 300 H460\" />\n              <path d=\"M0 220 H460\" />\n              <path d=\"M0 160 H460\" />\n              <path d=\"M0 60 H460\" />\n              <path d=\"M40 0 V340\" />\n              <path d=\"M180 0 V340\" />\n              <path d=\"M300 0 V340\" />\n              <path d=\"M420 0 V340\" />\n            </g>\n            <rect x=\"200\" y=\"240\" width=\"80\" height=\"44\" className=\"fill-chart-1/70 dark:fill-chart-5/40\" />\n            <path\n              key={current.id}\n              d={current.route}\n              pathLength={1}\n              strokeDasharray=\"1\"\n              strokeDashoffset=\"1\"\n              fill=\"none\"\n              strokeWidth=\"5\"\n              strokeLinecap=\"round\"\n              strokeLinejoin=\"round\"\n              className=\"stroke-primary [animation:location-09-draw_900ms_ease-out_forwards]\"\n            />\n            <circle cx=\"40\" cy=\"300\" r=\"8\" className=\"fill-background stroke-foreground\" strokeWidth=\"3\" />\n            <circle cx=\"420\" cy=\"60\" r=\"12\" className=\"fill-primary\" />\n            <circle cx=\"420\" cy=\"60\" r=\"4\" className=\"fill-primary-foreground\" />\n            <text x=\"54\" y=\"322\" className=\"fill-muted-foreground text-[11px]\">Your idea</text>\n            <text x=\"330\" y=\"38\" className=\"fill-foreground text-[11px] font-medium\">designali.com</text>\n          </svg>\n          <style>{`@keyframes location-09-draw { to { stroke-dashoffset: 0; } }`}</style>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "760px"
  },
  "categories": [
    "location"
  ]
}