{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "location-17",
  "type": "registry:block",
  "description": "Neighbourhood guide map with toggleable category pins around the venue and a synced list of nearby places.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/location/location-17.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Blocks,\n  BookOpen,\n  LayoutTemplate,\n  Palette,\n  PenTool,\n} from \"@designali/icons\"\n\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst categories = [\n  { id: \"templates\", label: \"Templates\", icon: LayoutTemplate, color: \"bg-primary\" },\n  { id: \"blocks\", label: \"Blocks\", icon: Blocks, color: \"bg-primary\" },\n  { id: \"ui\", label: \"UI designs\", icon: Palette, color: \"bg-primary\" },\n  { id: \"icons\", label: \"Icons\", icon: PenTool, color: \"bg-primary\" },\n  { id: \"docs\", label: \"Docs\", icon: BookOpen, color: \"bg-primary\" },\n]\n\nconst places = [\n  { name: \"Portfolio template\", cat: \"templates\", walk: \"/templates\", x: 58, y: 34 },\n  { name: \"Design agency template\", cat: \"templates\", walk: \"/templates\", x: 22, y: 62 },\n  { name: \"Hero blocks\", cat: \"blocks\", walk: \"/blocks\", x: 70, y: 60 },\n  { name: \"Pricing blocks\", cat: \"blocks\", walk: \"/blocks\", x: 30, y: 24 },\n  { name: \"Dashboard UI\", cat: \"ui\", walk: \"/ui\", x: 78, y: 22 },\n  { name: \"Chat UI\", cat: \"ui\", walk: \"/ui\", x: 14, y: 40 },\n  { name: \"@designali/icons\", cat: \"icons\", walk: \"/icons\", x: 44, y: 66 },\n  { name: \"Getting started\", cat: \"docs\", walk: \"/docs\", x: 84, y: 78 },\n]\n\nexport default function Location17() {\n  const [active, setActive] = useState<string[]>([\"templates\", \"blocks\"])\n\n  function toggle(id: string) {\n    setActive((a) => (a.includes(id) ? a.filter((x) => x !== id) : [...a, id]))\n  }\n\n  const shown = places.filter((p) => active.includes(p.cat))\n\n  return (\n    <section className=\"w-full bg-background py-20 md:py-28\">\n      <div className=\"mx-auto max-w-7xl px-6\">\n        <div className=\"grid gap-6 md:grid-cols-2 md:items-end\">\n          <div>\n            <p className=\"text-xs font-medium tracking-widest text-muted-foreground uppercase\">\n              Site guide\n            </p>\n            <h2 className=\"mt-3 text-4xl font-semibold tracking-tight md:text-5xl\">\n              Around designali.com\n            </h2>\n          </div>\n          <div className=\"flex flex-wrap gap-2 md:justify-end\">\n            {categories.map((c) => {\n              const on = active.includes(c.id)\n              return (\n                <button\n                  key={c.id}\n                  type=\"button\"\n                  aria-pressed={on}\n                  onClick={() => toggle(c.id)}\n                  className={cn(\n                    \"inline-flex h-9 items-center gap-2 border px-3 text-sm transition-colors\",\n                    on ? \"border-foreground bg-foreground text-background\" : \"hover:bg-muted\"\n                  )}\n                >\n                  <c.icon className=\"size-4\" />\n                  {c.label}\n                </button>\n              )\n            })}\n          </div>\n        </div>\n\n        <div className=\"mt-10 grid border lg:grid-cols-[1fr_320px]\">\n          <div className=\"relative min-h-[380px] overflow-hidden border-b bg-muted lg:min-h-[480px] lg:border-e lg:border-b-0\">\n            <svg viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\" className=\"absolute inset-0 h-full w-full\" aria-hidden>\n              <rect x=\"74\" y=\"70\" width=\"26\" height=\"30\" className=\"fill-chart-1/70 dark:fill-chart-5/40\" />\n              <g className=\"stroke-background\" fill=\"none\">\n                <path d=\"M0 50 L100 46\" strokeWidth=\"3\" />\n                <path d=\"M50 0 L48 100\" strokeWidth=\"3\" />\n                <path d=\"M0 20 L100 18 M0 80 L100 76 M20 0 L18 100 M80 0 L82 100\" strokeWidth=\"1.2\" />\n              </g>\n            </svg>\n            <span className=\"absolute top-[48%] left-[49%] flex -translate-x-1/2 -translate-y-1/2 items-center gap-2 bg-foreground px-2.5 py-1.5 text-xs font-medium text-background shadow-lg\">\n              <span className=\"size-2 rounded-full bg-primary\" />\n              designali.com\n            </span>\n            {shown.map((place) => {\n              const cat = categories.find((c) => c.id === place.cat)!\n              return (\n                <span\n                  key={place.name}\n                  title={place.name}\n                  style={{ left: `${place.x}%`, top: `${place.y}%` }}\n                  className={cn(\n                    \"absolute flex size-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full border-2 border-background text-white shadow animate-in zoom-in-50\",\n                    cat.color\n                  )}\n                >\n                  <cat.icon className=\"size-3.5\" />\n                </span>\n              )\n            })}\n          </div>\n\n          <ul className=\"max-h-[480px] divide-y overflow-y-auto\">\n            {shown.length === 0 && (\n              <li className=\"p-6 text-sm text-muted-foreground\">\n                Choose a category to see Designali resources.\n              </li>\n            )}\n            {shown.map((place) => {\n              const cat = categories.find((c) => c.id === place.cat)!\n              return (\n                <li key={place.name} className=\"flex items-center gap-3 p-4\">\n                  <span className={cn(\"flex size-8 shrink-0 items-center justify-center rounded-full text-white\", cat.color)}>\n                    <cat.icon className=\"size-3.5\" />\n                  </span>\n                  <span className=\"flex-1 text-sm\">\n                    <span className=\"block font-medium\">{place.name}</span>\n                    <span className=\"block text-xs text-muted-foreground\">{cat.label}</span>\n                  </span>\n                  <span className=\"text-xs text-muted-foreground tabular-nums\">{place.walk}</span>\n                </li>\n              )\n            })}\n          </ul>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "760px"
  },
  "categories": [
    "location"
  ]
}