{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "arc-scroll-case-studies-demo",
  "type": "registry:block",
  "title": "Arc Scroll: Case Studies",
  "description": "Curved Scroll Carousel example, Case Studies: A portfolio hero: project cards on the arc, with a pinned headline and a caption for the project at the top. A take on the carousel (slider) and scroll animation (on scroll). Fits testimonials, portfolio, features and team sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "testimonials",
    "portfolio",
    "features",
    "team",
    "carousel",
    "scroll-animation",
    "timeline",
    "scroll",
    "cards",
    "motion"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/arc-scroll#arc-scroll-case-studies-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/arc-scroll.json"
  ],
  "files": [
    {
      "path": "components/arc-scroll-case-studies-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\n\nimport { ArcScroll } from \"@/components/ui/arc-scroll\";\n\nconst projects = [\n  { client: \"Lumen\", kind: \"Brand site\", year: 2026, domain: \"lumen.energy\", accent: \"from-amber-300 to-orange-500\" },\n  { client: \"Parcel\", kind: \"Logistics dashboard\", year: 2025, domain: \"parcel.app\", accent: \"from-indigo-400 to-blue-600\" },\n  { client: \"Halcyon\", kind: \"Patient app\", year: 2025, domain: \"halcyon.health\", accent: \"from-teal-300 to-emerald-600\" },\n  { client: \"Fieldnote\", kind: \"Journaling app\", year: 2024, domain: \"fieldnote.co\", accent: \"from-lime-300 to-green-600\" },\n  { client: \"Orbit\", kind: \"Mobile banking\", year: 2023, domain: \"orbit.bank\", accent: \"from-violet-400 to-purple-700\" },\n  { client: \"Kiln\", kind: \"Ceramics store\", year: 2022, domain: \"kiln.shop\", accent: \"from-rose-300 to-red-500\" },\n  { client: \"Atlas\", kind: \"Maps platform\", year: 2021, domain: \"atlas.dev\", accent: \"from-sky-300 to-cyan-600\" },\n];\n\n// For a full-page section, drop the scroll box and `containerRef`: the stage\n// defaults to the viewport height and pins while the page scrolls.\nexport function ArcScrollCaseStudiesDemo() {\n  const scrollRef = React.useRef<HTMLDivElement>(null);\n  const [active, setActive] = React.useState(0);\n  const reduceMotion = useReducedMotion();\n  const project = projects[active];\n\n  return (\n    <div className=\"relative w-full overflow-hidden rounded-xl border border-zinc-200 bg-white dark:border-zinc-800 dark:bg-zinc-950\">\n      <div ref={scrollRef} className=\"relative h-[var(--demo-height,36rem)] overflow-y-auto overscroll-contain\">\n        <ArcScroll\n          containerRef={scrollRef}\n          stageClassName=\"h-[var(--demo-height,36rem)]\"\n          spacing={22}\n          scrollPerCard={260}\n          onActiveChange={setActive}\n          overlay={\n            <>\n              <div className=\"absolute inset-x-0 top-8 px-6 text-center\">\n                <p className=\"font-mono text-xs uppercase tracking-widest text-zinc-500\">\n                  Selected work\n                </p>\n                <h2 className=\"mt-2 text-2xl font-semibold tracking-tight text-zinc-900 sm:text-3xl dark:text-zinc-50\">\n                  2021–2026\n                </h2>\n              </div>\n              <motion.div\n                key={project.client}\n                initial={{ opacity: 0, y: reduceMotion ? 0 : 8 }}\n                animate={{ opacity: 1, y: 0 }}\n                transition={{ duration: 0.25, ease: \"easeOut\" }}\n                className=\"absolute inset-x-0 bottom-10 px-6 text-center\"\n              >\n                <p className=\"font-mono text-xs text-zinc-500 tabular-nums\">\n                  {String(active + 1).padStart(2, \"0\")} /{\" \"}\n                  {String(projects.length).padStart(2, \"0\")} · {project.year}\n                </p>\n                <p className=\"mt-1 text-xl font-semibold tracking-tight text-zinc-900 dark:text-zinc-50\">\n                  {project.client}\n                </p>\n                <p className=\"text-sm text-zinc-500\">{project.kind}</p>\n              </motion.div>\n            </>\n          }\n        >\n          {projects.map((item) => (\n            <BrowserCard key={item.client} domain={item.domain} accent={item.accent} />\n          ))}\n        </ArcScroll>\n      </div>\n    </div>\n  );\n}\n\nfunction BrowserCard({ domain, accent }: { domain: string; accent: string }) {\n  return (\n    <div className=\"w-52 overflow-hidden rounded-xl bg-white shadow-xl ring-1 shadow-zinc-900/15 ring-zinc-900/10 sm:w-64 dark:bg-zinc-900 dark:shadow-black/50 dark:ring-white/10\">\n      <div className=\"flex items-center gap-1.5 border-b border-zinc-200 px-3 py-2 dark:border-zinc-800\">\n        <span className=\"size-2 rounded-full bg-zinc-300 dark:bg-zinc-700\" />\n        <span className=\"size-2 rounded-full bg-zinc-300 dark:bg-zinc-700\" />\n        <span className=\"size-2 rounded-full bg-zinc-300 dark:bg-zinc-700\" />\n        <span className=\"ml-2 truncate rounded bg-zinc-100 px-2 py-0.5 font-mono text-[10px] text-zinc-500 dark:bg-zinc-800\">\n          {domain}\n        </span>\n      </div>\n      <div className={`flex aspect-[16/10] flex-col justify-end gap-2 bg-linear-to-br p-4 ${accent}`}>\n        <span className=\"h-2.5 w-3/4 rounded-full bg-white/80\" />\n        <span className=\"h-2.5 w-1/2 rounded-full bg-white/60\" />\n        <span className=\"mt-2 h-5 w-16 rounded-full bg-white/90\" />\n      </div>\n    </div>\n  );\n}\n"
    }
  ]
}