{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "slice-gallery-demo",
  "type": "registry:block",
  "title": "Slice Gallery: Project Covers",
  "description": "Image Accordion example, Project Covers: An architecture studio's selected work. Move across the row: a slice opens once the pointer settles, so a quick sweep doesn't make the row ripple. Each project's strip warms to its own color, and the details carry a link. A take on the accordion (collapsible) and image gallery (photo gallery). Fits portfolio, team and hero sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "portfolio",
    "team",
    "hero",
    "accordion",
    "image-gallery",
    "carousel",
    "image-reveal",
    "gallery",
    "hover",
    "layout"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/slice-gallery#slice-gallery-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/slice-gallery.json"
  ],
  "files": [
    {
      "path": "components/slice-gallery-demo.tsx",
      "type": "registry:component",
      "content": "import { SliceGallery, SliceGalleryItem } from \"@/components/ui/slice-gallery\";\n\nconst projects = [\n  {\n    title: \"Casa Alba\",\n    year: \"2025\",\n    kind: \"Private house\",\n    place: \"Comporta\",\n    text: \"A low house of lime and pine that opens to the dunes on three sides.\",\n    photo: \"1600585154340-be6161a56a0c\",\n    accent: \"#f2c48d\",\n  },\n  {\n    title: \"Hollow Pavilion\",\n    year: \"2024\",\n    kind: \"Gallery\",\n    place: \"Copenhagen\",\n    text: \"Folded white planes that pull daylight down into the rooms below.\",\n    photo: \"1487958449943-2429e8be8625\",\n    accent: \"#bcd7ff\",\n  },\n  {\n    title: \"Linden Studio\",\n    year: \"2023\",\n    kind: \"Showroom\",\n    place: \"Berlin\",\n    text: \"A furniture maker's floor, lit like the workshop next door.\",\n    photo: \"1524758631624-e2822e304c36\",\n    accent: \"#e9e1cf\",\n  },\n  {\n    title: \"Black Barn\",\n    year: \"2022\",\n    kind: \"Holiday house\",\n    place: \"Gotland\",\n    text: \"Tarred timber outside, pale ash inside, and one long window to the sea.\",\n    photo: \"1600585154526-990dced4db0d\",\n    accent: \"#ffb37a\",\n  },\n  {\n    title: \"Atelier Nine\",\n    year: \"2021\",\n    kind: \"Apartment\",\n    place: \"Milan\",\n    text: \"A ninth-floor flat reworked around a single oak table.\",\n    photo: \"1618219908412-a29a1bb7b86e\",\n    accent: \"#d8c3a0\",\n  },\n];\n\nconst photo = (id: string) =>\n  `https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=1000&h=1000&q=80`;\n\nconst slug = (title: string) => title.toLowerCase().replace(/\\s+/g, \"-\");\n\nexport function SliceGalleryDemo() {\n  return (\n    <section className=\"w-full max-w-5xl\">\n      <div className=\"mb-6 flex items-end justify-between gap-4\">\n        <div>\n          <p className=\"font-mono text-xs tracking-widest text-zinc-500 uppercase\">Selected work</p>\n          <h3 className=\"mt-2 text-2xl font-semibold tracking-tight text-zinc-900 dark:text-zinc-50\">\n            Five buildings, five quiet rooms\n          </h3>\n        </div>\n        <p className=\"hidden font-mono text-xs text-zinc-500 sm:block\">2021–2025</p>\n      </div>\n\n      <SliceGallery className=\"h-[34rem] sm:h-[30rem]\">\n        {projects.map((project) => (\n          <SliceGalleryItem\n            key={project.title}\n            title={project.title}\n            label={project.year}\n            image={photo(project.photo)}\n            accent={project.accent}\n          >\n            <p className=\"text-sm text-white/70\">\n              {project.kind} · {project.place}\n            </p>\n            <p className=\"mt-1 max-w-xs text-[15px] leading-snug text-pretty text-white/90\">\n              {project.text}\n            </p>\n            <a\n              href={`#${slug(project.title)}`}\n              className=\"mt-3 inline-flex items-center gap-1.5 rounded text-sm font-medium text-white underline-offset-4 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-white/70\"\n            >\n              View project <span aria-hidden>→</span>\n            </a>\n          </SliceGalleryItem>\n        ))}\n      </SliceGallery>\n    </section>\n  );\n}\n"
    }
  ]
}