{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "location-14",
  "type": "registry:block",
  "description": "Horizontal snap carousel of location cards with generated street-grid thumbnails and prev/next controls.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/location/location-14.tsx",
      "content": "\"use client\"\n\nimport { useRef } from \"react\"\nimport {\n  ArrowLeft,\n  ArrowRight,\n} from \"@designali/icons\"\n\nimport { Macbook } from \"@/registry/designali/ui/apple/macbook\"\n\nconst spots = [\n  { name: \"Portfolio\", city: \"Template\", address: \"Next.js · Tailwind CSS\", rooms: 42, image: \"/images/templates/portfolio-simple.jpg\" },\n  { name: \"Design Agency\", city: \"Template\", address: \"Next.js · Framer-style motion\", rooms: 68, image: \"/images/templates/design-agency.jpg\" },\n  { name: \"Resort\", city: \"Template\", address: \"Next.js · Booking flows\", rooms: 54, image: \"/images/templates/resort.jpg\" },\n  { name: \"AI Startup\", city: \"Template\", address: \"Next.js · Dashboard UI\", rooms: 38, image: \"/images/templates/ai.jpg\" },\n  { name: \"Dalim UI\", city: \"Case study\", address: \"React · Component library\", rooms: 26, image: \"/images/templates/dalim-ui-old.jpg\" },\n]\n\nfunction Thumb({ image, name }: { image: string; name: string }) {\n  return (\n    <div className=\"relative flex aspect-[4/3] items-center justify-center overflow-hidden bg-muted p-4\">\n      <Macbook variant=\"macbook-air\" size=\"sm\" color=\"silver\" className=\"max-w-full\">\n        <img src={image} alt={name} className=\"size-full object-cover object-top\" />\n      </Macbook>\n    </div>\n  )\n}\n\nexport default function Location14() {\n  const track = useRef<HTMLUListElement>(null)\n\n  function scroll(direction: 1 | -1) {\n    const el = track.current\n    if (!el) return\n    el.scrollBy({ left: direction * el.clientWidth * 0.8, behavior: \"smooth\" })\n  }\n\n  return (\n    <section className=\"w-full overflow-hidden bg-background py-20 md:py-28\">\n      <div className=\"mx-auto max-w-7xl px-6\">\n        <div className=\"flex items-end justify-between gap-6\">\n          <div>\n            <p className=\"text-xs font-medium tracking-widest text-muted-foreground uppercase\">\n              Designali templates\n            </p>\n            <h2 className=\"mt-3 text-4xl font-semibold tracking-tight md:text-5xl\">\n              Five templates, ready to ship\n            </h2>\n          </div>\n          <div className=\"hidden gap-2 md:flex\">\n            <button\n              type=\"button\"\n              aria-label=\"Previous templates\"\n              onClick={() => scroll(-1)}\n              className=\"flex size-10 items-center justify-center border transition-colors hover:bg-muted\"\n            >\n              <ArrowLeft className=\"size-4\" />\n            </button>\n            <button\n              type=\"button\"\n              aria-label=\"Next templates\"\n              onClick={() => scroll(1)}\n              className=\"flex size-10 items-center justify-center border transition-colors hover:bg-muted\"\n            >\n              <ArrowRight className=\"size-4\" />\n            </button>\n          </div>\n        </div>\n      </div>\n\n      <div className=\"mx-auto mt-10 max-w-7xl\">\n        <ul\n          ref={track}\n          className=\"flex snap-x snap-mandatory gap-4 overflow-x-auto scroll-smooth px-6 pb-4 [scrollbar-width:thin]\">\n          {spots.map((spot) => (\n            <li key={spot.name} className=\"w-[78%] shrink-0 snap-start sm:w-[46%] lg:w-[31%]\">\n              <a href=\"/templates\" className=\"group block border bg-card\">\n                <Thumb image={spot.image} name={spot.name} />\n                <div className=\"space-y-1 p-5\">\n                  <p className=\"text-xs tracking-widest text-muted-foreground uppercase\">\n                    {spot.city}\n                  </p>\n                  <p className=\"text-lg font-medium\">Designali {spot.name}</p>\n                  <p className=\"text-sm text-muted-foreground\">{spot.address}</p>\n                  <div className=\"flex items-center justify-between pt-4 text-sm\">\n                    <span>{spot.rooms} blocks</span>\n                    <span className=\"inline-flex items-center gap-1 font-medium group-hover:underline\">\n                      View template <ArrowRight className=\"size-3.5\" />\n                    </span>\n                  </div>\n                </div>\n              </a>\n            </li>\n          ))}\n        </ul>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "640px"
  },
  "categories": [
    "location"
  ]
}