{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "location-12",
  "type": "registry:block",
  "description": "Interactive venue floor plan with numbered zones that highlight from a synced legend list on hover or focus.",
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/location/location-12.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\n\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst zones = [\n  { id: 1, name: \"Main stage\", detail: \"Keynotes with Ali Imam\", x: 20, y: 20, w: 260, h: 150, tone: \"fill-chart-1 dark:fill-chart-5/50\" },\n  { id: 2, name: \"Workshop rooms A-D\", detail: \"Hands-on Figma and Next.js sessions\", x: 300, y: 20, w: 180, h: 150, tone: \"fill-chart-1 dark:fill-chart-5/50\" },\n  { id: 3, name: \"Showcase\", detail: \"Designali templates, blocks and icons\", x: 20, y: 190, w: 300, h: 130, tone: \"fill-chart-1 dark:fill-chart-5/50\" },\n  { id: 4, name: \"Lounge\", detail: \"Portfolio reviews 12:00-14:00\", x: 340, y: 190, w: 140, h: 130, tone: \"fill-chart-1 dark:fill-chart-5/50\" },\n  { id: 5, name: \"Registration\", detail: \"Sign in from 08:00\", x: 200, y: 340, w: 120, h: 50, tone: \"fill-chart-1 dark:fill-chart-5/50\" },\n]\n\nexport default function Location12() {\n  const [hover, setHover] = useState<number | null>(null)\n\n  return (\n    <section className=\"w-full bg-muted/40 py-20 md:py-28\">\n      <div className=\"mx-auto max-w-7xl px-6\">\n        <div className=\"max-w-2xl\">\n          <p className=\"text-xs font-medium tracking-widest text-muted-foreground uppercase\">\n            Designali Live &middot; Virtual venue\n          </p>\n          <h2 className=\"mt-3 text-4xl font-semibold tracking-tight md:text-5xl\">\n            Finding your way around Designali Live\n          </h2>\n        </div>\n\n        <div className=\"mt-12 grid gap-8 lg:grid-cols-[1.6fr_1fr]\">\n          <div className=\"border bg-background p-4 md:p-6\">\n            <svg viewBox=\"0 0 500 410\" className=\"h-auto w-full\" role=\"img\" aria-label=\"Designali Live virtual venue plan\">\n              <rect x=\"10\" y=\"10\" width=\"480\" height=\"390\" className=\"fill-none stroke-foreground/40\" strokeWidth=\"2\" />\n              {zones.map((zone) => (\n                <g\n                  key={zone.id}\n                  onMouseEnter={() => setHover(zone.id)}\n                  onMouseLeave={() => setHover(null)}\n                  className=\"cursor-pointer\"\n                >\n                  <rect\n                    x={zone.x}\n                    y={zone.y}\n                    width={zone.w}\n                    height={zone.h}\n                    className={cn(\n                      zone.tone,\n                      \"stroke-foreground/30 transition-opacity\",\n                      hover !== null && hover !== zone.id && \"opacity-30\"\n                    )}\n                  />\n                  <circle cx={zone.x + 22} cy={zone.y + 22} r=\"12\" className=\"fill-foreground\" />\n                  <text\n                    x={zone.x + 22}\n                    y={zone.y + 26}\n                    textAnchor=\"middle\"\n                    className=\"fill-background text-[12px] font-semibold\"\n                  >\n                    {zone.id}\n                  </text>\n                </g>\n              ))}\n              <path d=\"M260 400 L260 392 M240 400 L280 400\" className=\"stroke-foreground\" strokeWidth=\"4\" />\n              <text x=\"290\" y=\"404\" className=\"fill-muted-foreground text-[10px]\">Entrance</text>\n            </svg>\n          </div>\n\n          <ol className=\"space-y-2\">\n            {zones.map((zone) => (\n              <li key={zone.id}>\n                <button\n                  type=\"button\"\n                  onMouseEnter={() => setHover(zone.id)}\n                  onMouseLeave={() => setHover(null)}\n                  onFocus={() => setHover(zone.id)}\n                  onBlur={() => setHover(null)}\n                  className={cn(\n                    \"flex w-full items-center gap-4 border bg-background p-4 text-start transition-colors\",\n                    hover === zone.id && \"border-foreground\"\n                  )}\n                >\n                  <span className=\"flex size-8 shrink-0 items-center justify-center rounded-full bg-foreground text-sm font-semibold text-background\">\n                    {zone.id}\n                  </span>\n                  <span>\n                    <span className=\"block text-sm font-medium\">{zone.name}</span>\n                    <span className=\"block text-xs text-muted-foreground\">{zone.detail}</span>\n                  </span>\n                </button>\n              </li>\n            ))}\n          </ol>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "780px"
  },
  "categories": [
    "location"
  ]
}