{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "location-08",
  "type": "registry:block",
  "description": "City tabs that move a pulsing pin across an SVG street map and swap venue, hours, transit and parking details.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/location/location-08.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Clock,\n  Mail,\n  MapPin,\n  Video,\n} from \"@designali/icons\"\n\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst cities = [\n  {\n    id: \"americas\",\n    city: \"Americas\",\n    venue: \"Remote studio\",\n    area: \"Async across UTC−8 to UTC−3\",\n    hours: \"Mon-Fri, 9:00-18:00 local\",\n    transit: \"Video calls on your schedule\",\n    parking: \"hello@designali.com\",\n    pin: { x: 38, y: 58 },\n    river: \"M0 78 C 30 70, 60 86, 100 74\",\n  },\n  {\n    id: \"europe\",\n    city: \"Europe\",\n    venue: \"Remote studio\",\n    area: \"Live across UTC to UTC+3\",\n    hours: \"Mon-Fri, 9:00-18:00 local\",\n    transit: \"Weekly design reviews\",\n    parking: \"hello@designali.com\",\n    pin: { x: 56, y: 40 },\n    river: \"M0 66 C 25 60, 55 72, 100 60\",\n  },\n  {\n    id: \"asia\",\n    city: \"Asia\",\n    venue: \"Remote studio\",\n    area: \"Live across UTC+4 to UTC+9\",\n    hours: \"Mon-Sat, 10:00-19:00 local\",\n    transit: \"Daily async updates\",\n    parking: \"ali@designali.com\",\n    pin: { x: 64, y: 48 },\n    river: \"M10 100 C 20 80, 8 60, 18 40\",\n  },\n]\n\nexport default function Location08() {\n  const [active, setActive] = useState(cities[0]!.id)\n  const city = cities.find((c) => c.id === active) ?? cities[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=\"text-4xl font-semibold tracking-tight md:text-5xl\">\n            Work with Designali\n          </h2>\n          <div className=\"flex border\" role=\"tablist\">\n            {cities.map((c) => (\n              <button\n                key={c.id}\n                type=\"button\"\n                role=\"tab\"\n                aria-selected={active === c.id}\n                onClick={() => setActive(c.id)}\n                className={cn(\n                  \"h-10 flex-1 px-5 text-sm transition-colors not-last:border-e\",\n                  active === c.id ? \"bg-foreground text-background\" : \"hover:bg-muted\"\n                )}\n              >\n                {c.city}\n              </button>\n            ))}\n          </div>\n        </div>\n\n        <div className=\"mt-10 grid border md:grid-cols-[1.5fr_1fr]\">\n          <div className=\"relative aspect-[4/3] overflow-hidden border-b bg-muted md:aspect-auto md:min-h-[440px] md:border-e md:border-b-0\">\n            <svg viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\" className=\"absolute inset-0 h-full w-full\" aria-hidden>\n              <g className=\"stroke-background\" strokeWidth=\"1.2\" fill=\"none\">\n                {[12, 28, 46, 62, 80, 94].map((v) => (\n                  <path key={`v${v}`} d={`M${v} 0 L${v + 4} 100`} />\n                ))}\n                {[10, 24, 38, 52, 66, 84].map((h) => (\n                  <path key={`h${h}`} d={`M0 ${h} L100 ${h - 3}`} />\n                ))}\n              </g>\n              <path\n                d={city.river}\n                className=\"stroke-chart-1 transition-all duration-500 dark:stroke-chart-4\"\n                strokeWidth=\"7\"\n                fill=\"none\"\n              />\n            </svg>\n            <span\n              className=\"absolute flex -translate-x-1/2 -translate-y-1/2 transition-all duration-500\"\n              style={{ left: `${city.pin.x}%`, top: `${city.pin.y}%` }}\n            >\n              <span className=\"absolute inset-0 animate-ping rounded-full bg-primary/40\" />\n              <span className=\"relative flex size-10 items-center justify-center rounded-full border-4 border-background bg-primary text-primary-foreground shadow-lg\">\n                <MapPin className=\"size-4\" />\n              </span>\n            </span>\n          </div>\n\n          <div key={city.id} className=\"flex flex-col p-8 animate-in fade-in\">\n            <p className=\"text-xs tracking-widest text-muted-foreground uppercase\">\n              {city.city}\n            </p>\n            <p className=\"mt-2 text-2xl font-semibold tracking-tight\">{city.venue}</p>\n            <p className=\"text-muted-foreground\">{city.area}</p>\n            <dl className=\"mt-8 space-y-5 text-sm\">\n              {[\n                { icon: Clock, label: \"Hours\", value: city.hours },\n                { icon: Video, label: \"Calls\", value: city.transit },\n                { icon: Mail, label: \"Email\", value: city.parking },\n              ].map((row) => (\n                <div key={row.label} className=\"flex gap-3\">\n                  <row.icon className=\"mt-0.5 size-4 shrink-0 text-muted-foreground\" />\n                  <div>\n                    <dt className=\"text-xs text-muted-foreground\">{row.label}</dt>\n                    <dd>{row.value}</dd>\n                  </div>\n                </div>\n              ))}\n            </dl>\n            <a href=\"/contact\" className=\"mt-auto pt-8 text-sm font-medium underline underline-offset-4\">\n              Book a call for {city.city}\n            </a>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "720px"
  },
  "categories": [
    "location"
  ]
}