{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "nautilus-shop-demo",
  "type": "registry:block",
  "title": "Nautilus: New Arrivals",
  "description": "Spiral Image Carousel example, New Arrivals: A shop's new arrivals. A take on the spiral gallery (spiral carousel). Fits portfolio, hero and shop sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "portfolio",
    "hero",
    "shop",
    "spiral-gallery",
    "carousel",
    "image-gallery",
    "gallery",
    "motion"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/nautilus#nautilus-shop-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/nautilus.json"
  ],
  "files": [
    {
      "path": "components/nautilus-shop-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { Nautilus, type NautilusItem } from \"@/components/ui/nautilus\";\n\nconst shot = (id: string) =>\n  `https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=800&h=1000&q=80`;\n\ntype Piece = NautilusItem & { name: string; price: number; detail: string };\n\nconst DROP: Piece[] = [\n  { src: shot(\"1603808033176-9d134e6f2c74\"), alt: \"A white leather and tan suede low-top sneaker balanced on two pebbles against orange\", name: \"Pebble Low Sneaker\", price: 145, detail: \"White leather, tan suede\" },\n  { src: shot(\"1599705709640-9f9eb5964485\"), alt: \"Mirrored aviator sunglasses floating over a white ledge against teal\", name: \"Mirror Aviators\", price: 120, detail: \"Steel frame, mirrored lenses\" },\n  { src: shot(\"1756474215958-f0c2a31eddc1\"), alt: \"A yellow mushroom table lamp on a mustard background\", name: \"Cap Table Lamp\", price: 180, detail: \"Powder-coated steel, mustard\" },\n  { src: shot(\"1681573736425-0caa07d13e09\"), alt: \"A cobalt glass carafe and upturned cup with two flower stems on pink and magenta\", name: \"Cobalt Carafe Set\", price: 58, detail: \"Mouth-blown glass, carafe and cup\" },\n  { src: shot(\"1643569556871-91ec60671ed7\"), alt: \"A ring-shaped sand-colored ceramic vase on beige\", name: \"Ring Vase\", price: 72, detail: \"Sand stoneware, 24 cm\" },\n  { src: shot(\"1620003039413-b519b3c12e4d\"), alt: \"A glossy orange shell chair on wooden legs against slate blue\", name: \"Shell Side Chair\", price: 290, detail: \"Glossy orange shell, oak legs\" },\n  { src: shot(\"1624548140129-74786c5f1279\"), alt: \"A navy bomber jacket with a cream fleece collar on light grey\", name: \"Harbour Bomber\", price: 210, detail: \"Navy nylon, fleece collar\" },\n  { src: shot(\"1598532163257-ae3c6b2524b6\"), alt: \"A brown woven leather tote with a gold chain strap on pale grey\", name: \"Woven Tote\", price: 240, detail: \"Tan leather, gold chain strap\" },\n];\n\nconst money = (n: number) => `€${n}`;\n\nexport function NautilusShopDemo() {\n  const [index, setIndex] = React.useState(0);\n  const [bag, setBag] = React.useState<string[]>([]);\n  const piece = DROP[index];\n  const inBag = bag.includes(piece.name);\n\n  return (\n    <div className=\"@container/drop w-full overflow-hidden rounded-2xl border border-zinc-200 bg-white text-zinc-950 dark:border-zinc-800 dark:bg-zinc-950 dark:text-white\">\n      <div className=\"flex items-center justify-between border-b border-zinc-200 px-5 py-3 text-sm dark:border-zinc-800\">\n        <p className=\"font-semibold tracking-[-0.02em]\">Forma Supply</p>\n        <p className=\"flex items-center gap-2 text-zinc-500 dark:text-zinc-400\">\n          <svg viewBox=\"0 0 16 16\" className=\"size-4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.4\" aria-hidden>\n            <path d=\"M3 5.5h10l-.8 8H3.8L3 5.5Z\" strokeLinejoin=\"round\" />\n            <path d=\"M5.8 5.5V4.3a2.2 2.2 0 0 1 4.4 0v1.2\" />\n          </svg>\n          <span className=\"tabular-nums\">{bag.length}</span>\n          <span className=\"sr-only\">in your bag</span>\n        </p>\n      </div>\n\n      <div className=\"grid grid-cols-1 @[42rem]/drop:grid-cols-[minmax(0,1fr)_16rem]\">\n        <Nautilus\n          items={DROP}\n          index={index}\n          onIndexChange={(i) => setIndex(i)}\n          side=\"right\"\n          interval={3.2}\n          sweep={280}\n          label=\"New arrivals\"\n          className=\"h-[22rem] @[42rem]/drop:h-[30rem] [--nautilus-radius:0.25rem]\"\n          renderItem={(item) => (\n            <div className=\"relative size-full bg-zinc-100 dark:bg-zinc-800\">\n              {/* eslint-disable-next-line @next/next/no-img-element -- a remote photo in an installable demo */}\n              <img src={item.src} alt=\"\" draggable={false} className=\"size-full object-cover\" />\n              <span className=\"absolute bottom-[4%] left-[5%] rounded-full bg-white/95 px-[0.6em] py-[0.2em] text-[0.8rem] font-medium text-zinc-950 tabular-nums\">\n                {money(item.price)}\n              </span>\n            </div>\n          )}\n        />\n\n        <div className=\"flex flex-col justify-between gap-6 border-t border-zinc-200 p-5 @[42rem]/drop:border-t-0 @[42rem]/drop:border-l @[42rem]/drop:p-6 dark:border-zinc-800\">\n          <div>\n            <p className=\"text-xs font-medium tracking-[0.14em] text-[#e0136f] uppercase dark:text-[#ff5ca8]\">New this week</p>\n            <p className=\"mt-3 text-xl leading-tight font-semibold tracking-[-0.02em]\">{piece.name}</p>\n            <p className=\"mt-1 text-sm text-zinc-500 dark:text-zinc-400\">{piece.detail}</p>\n          </div>\n          <div>\n            <p className=\"text-2xl font-semibold tracking-[-0.02em] tabular-nums\">{money(piece.price)}</p>\n            <button\n              type=\"button\"\n              aria-pressed={inBag}\n              onClick={() => setBag((b) => (inBag ? b.filter((n) => n !== piece.name) : [...b, piece.name]))}\n              className=\"mt-4 flex h-11 w-full items-center justify-center gap-2 rounded-full bg-zinc-950 text-sm font-medium text-white transition-[background-color,transform] active:scale-[0.98] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-zinc-950 aria-pressed:bg-[#e0136f] dark:bg-white dark:text-zinc-950 dark:focus-visible:outline-white dark:aria-pressed:bg-[#ff5ca8]\"\n            >\n              {inBag ? \"In your bag\" : \"Add to bag\"}\n            </button>\n            <p className=\"mt-3 text-center text-xs text-zinc-500 dark:text-zinc-400\">\n              {index + 1} of {DROP.length} · drag or click to browse\n            </p>\n          </div>\n        </div>\n      </div>\n    </div>\n  );\n}\n"
    }
  ]
}