{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "expanding-hero-product-demo",
  "type": "registry:block",
  "title": "Expanding Hero: Product Launch",
  "description": "Scroll Video Hero example, Product Launch: An app screenshot instead of a video, built in markup so it stays sharp full screen. A \"Watch the demo\" button appears once it fills the box. A take on the video (video player) and scroll animation (on scroll). Fits hero, portfolio and events sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "hero",
    "portfolio",
    "events",
    "video",
    "scroll-animation",
    "scroll"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/expanding-hero#expanding-hero-product-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/expanding-hero.json"
  ],
  "files": [
    {
      "path": "components/expanding-hero-product-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { ExpandingHero } from \"@/components/ui/expanding-hero\";\n\nconst features = [\n  { title: \"Docs\", body: \"Specs, briefs and notes that link straight to the work they describe.\" },\n  { title: \"Tasks\", body: \"Boards and lists that stay in step with the doc that started them.\" },\n  { title: \"Roadmaps\", body: \"Every project on one timeline, updated as tasks move.\" },\n];\n\n// The \"screenshot\" is markup, so it stays sharp at any size and follows the\n// theme. A real image works the same way: pass an <img> as `media`.\nexport function ExpandingHeroProductDemo() {\n  const scrollRef = React.useRef<HTMLDivElement>(null);\n\n  return (\n    <div className=\"relative w-full overflow-hidden rounded-xl border border-zinc-200 bg-white text-zinc-950 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50\">\n      <div ref={scrollRef} className=\"relative h-[var(--demo-height,36rem)] overflow-y-auto overscroll-contain\">\n        <ExpandingHero\n          containerRef={scrollRef}\n          stageClassName=\"h-[var(--demo-height,36rem)]\"\n          headlineClassName=\"@3xl:text-[clamp(3rem,6.4cqw,7.5rem)]\"\n          before=\"Your work,\"\n          after=\"in one place\"\n          media={<AppScreenshot />}\n          overlay={\n            <a\n              href=\"#demo\"\n              className=\"flex items-center gap-3 rounded-full bg-zinc-950 py-2 pr-5 pl-2 text-sm font-medium text-white shadow-xl shadow-zinc-950/20 transition-transform duration-150 ease-out active:scale-[0.97] dark:bg-white dark:text-zinc-950\"\n            >\n              <span className=\"grid size-8 place-items-center rounded-full bg-white/15 dark:bg-zinc-950/10\">\n                <svg viewBox=\"0 0 16 16\" aria-hidden className=\"ml-0.5 size-3 fill-current\">\n                  <path d=\"M4 2.6v10.8a.6.6 0 0 0 .9.5l8.6-5.4a.6.6 0 0 0 0-1L4.9 2.1a.6.6 0 0 0-.9.5Z\" />\n                </svg>\n              </span>\n              Watch the demo\n              <span className=\"text-white/50 tabular-nums dark:text-zinc-950/50\">2:14</span>\n            </a>\n          }\n        >\n          <p className=\"max-w-sm text-base text-balance text-zinc-600 sm:text-lg dark:text-zinc-400\">\n            Docs, tasks and roadmaps for teams that ship together.\n          </p>\n          <div className=\"flex gap-3\">\n            <a\n              href=\"#start\"\n              className=\"rounded-full bg-indigo-600 px-5 py-2.5 text-sm font-medium text-white transition-[background-color,scale] duration-150 ease-out hover:bg-indigo-500 active:scale-[0.97]\"\n            >\n              Start for free\n            </a>\n            <a\n              href=\"#sales\"\n              className=\"rounded-full px-5 py-2.5 text-sm font-medium ring-1 ring-zinc-950/10 transition-[background-color,scale] duration-150 ease-out ring-inset hover:bg-zinc-950/5 active:scale-[0.97] dark:ring-white/15 dark:hover:bg-white/5\"\n            >\n              Talk to sales\n            </a>\n          </div>\n        </ExpandingHero>\n\n        <section className=\"mx-auto grid max-w-4xl gap-8 px-6 py-16 sm:grid-cols-3 sm:py-24\">\n          {features.map((feature) => (\n            <div key={feature.title}>\n              <h2 className=\"font-medium\">{feature.title}</h2>\n              <p className=\"mt-2 text-sm leading-relaxed text-pretty text-zinc-600 dark:text-zinc-400\">\n                {feature.body}\n              </p>\n            </div>\n          ))}\n        </section>\n      </div>\n    </div>\n  );\n}\n\nconst tasks = [\n  { title: \"Final pricing copy\", who: \"MK\", color: \"bg-amber-400\", done: true },\n  { title: \"Launch film, cut 3\", who: \"JS\", color: \"bg-sky-400\", done: false },\n  { title: \"Press kit\", who: \"AL\", color: \"bg-rose-400\", done: false },\n  { title: \"Changelog post\", who: \"MK\", color: \"bg-amber-400\", done: false },\n];\n\n// Start and length on the timeline, in percent.\nconst roadmap = [\n  { name: \"Pricing page\", start: 0, span: 34, tone: \"bg-amber-400/25 text-amber-800 dark:text-amber-200\" },\n  { name: \"Launch film\", start: 20, span: 44, tone: \"bg-sky-400/25 text-sky-800 dark:text-sky-200\" },\n  { name: \"Press and launch day\", start: 60, span: 40, tone: \"bg-indigo-500/20 text-indigo-800 dark:text-indigo-200\" },\n];\n\nconst card = \"rounded-lg bg-white p-3 ring-1 ring-zinc-950/5 dark:bg-zinc-800/60 dark:ring-white/5\";\n\nfunction AppScreenshot() {\n  return (\n    <div className=\"@container relative bg-linear-to-b from-indigo-100 via-indigo-50 to-white dark:from-indigo-950 dark:via-zinc-950 dark:to-zinc-950\">\n      <div className=\"absolute inset-x-[4%] top-[8%] -bottom-px flex flex-col overflow-hidden rounded-t-xl bg-white text-left text-xs text-zinc-900 shadow-2xl ring-1 shadow-indigo-950/15 ring-zinc-950/10 dark:bg-zinc-900 dark:text-zinc-100 dark:shadow-black/50 dark:ring-white/10\">\n        <div className=\"flex h-9 shrink-0 items-center gap-1.5 border-b border-zinc-950/5 px-3 dark:border-white/5\">\n          {[0, 1, 2].map((dot) => (\n            <span key={dot} className=\"size-2.5 rounded-full bg-zinc-200 dark:bg-zinc-700\" />\n          ))}\n          <span className=\"mx-auto rounded-md bg-zinc-100 px-3 py-1 text-[11px] text-zinc-500 dark:bg-zinc-800\">\n            tandem.app/q3-launch\n          </span>\n        </div>\n\n        <div className=\"flex min-h-0 flex-1\">\n          <aside className=\"hidden w-44 shrink-0 flex-col gap-0.5 border-r border-zinc-950/5 p-3 @2xl:flex dark:border-white/5\">\n            <div className=\"mb-3 flex items-center gap-2 px-2 font-semibold\">\n              <span className=\"size-5 rounded-md bg-indigo-600\" />\n              Tandem\n            </div>\n            {[\"Inbox\", \"My work\", \"Roadmap\", \"Docs\"].map((item, i) => (\n              <span\n                key={item}\n                className={`rounded-md px-2 py-1.5 ${i === 2 ? \"bg-zinc-100 font-medium dark:bg-zinc-800\" : \"text-zinc-500\"}`}\n              >\n                {item}\n              </span>\n            ))}\n            <span className=\"mt-4 px-2 text-[11px] text-zinc-400\">Projects</span>\n            {[\n              [\"Q3 Launch\", \"bg-indigo-500\"],\n              [\"Mobile app\", \"bg-emerald-500\"],\n              [\"Brand refresh\", \"bg-rose-500\"],\n            ].map(([name, color]) => (\n              <span key={name} className=\"flex items-center gap-2 px-2 py-1.5 text-zinc-500\">\n                <span className={`size-2 rounded-full ${color}`} />\n                {name}\n              </span>\n            ))}\n          </aside>\n\n          <div className=\"flex min-w-0 flex-1 flex-col gap-3 bg-zinc-100 p-4 @3xl:p-6 dark:bg-zinc-900\">\n            <div className=\"flex items-center justify-between text-zinc-500\">\n              <span>Projects / Q3 Launch</span>\n              <div className=\"flex items-center gap-3\">\n                <div className=\"flex -space-x-1.5\">\n                  {[\"bg-amber-400\", \"bg-sky-400\", \"bg-rose-400\"].map((color) => (\n                    <span key={color} className={`size-6 rounded-full ring-2 ring-zinc-100 dark:ring-zinc-900 ${color}`} />\n                  ))}\n                </div>\n                <span className=\"rounded-md bg-zinc-950 px-2.5 py-1 font-medium text-white dark:bg-white dark:text-zinc-950\">\n                  Share\n                </span>\n              </div>\n            </div>\n\n            <div className=\"mt-2 flex items-center gap-3\">\n              <span className=\"text-xl font-semibold tracking-tight\">Q3 Launch</span>\n              <span className=\"rounded-full bg-emerald-500/10 px-2 py-0.5 text-[11px] font-medium text-emerald-700 dark:text-emerald-400\">\n                On track\n              </span>\n            </div>\n\n            <div className=\"grid grid-cols-3 gap-3\">\n              {[\n                [\"Tasks done\", \"128\", \"/ 164\"],\n                [\"Open docs\", \"24\", \"\"],\n                [\"Days to launch\", \"18\", \"\"],\n              ].map(([label, value, rest]) => (\n                <div key={label} className={card}>\n                  <span className=\"text-zinc-500\">{label}</span>\n                  <p className=\"mt-1 text-lg font-semibold tabular-nums\">\n                    {value}\n                    <span className=\"text-sm font-normal text-zinc-400\"> {rest}</span>\n                  </p>\n                </div>\n              ))}\n            </div>\n\n            <div className=\"grid min-h-40 flex-1 gap-3 @3xl:grid-cols-[1.5fr_1fr]\">\n              <div className={`${card} flex flex-col`}>\n                <div className=\"flex justify-between text-zinc-500\">\n                  <span>Burn-up</span>\n                  <span>Last 6 weeks</span>\n                </div>\n                <svg\n                  viewBox=\"0 0 300 100\"\n                  preserveAspectRatio=\"none\"\n                  aria-hidden\n                  className=\"mt-3 min-h-20 w-full flex-1\"\n                >\n                  <defs>\n                    <linearGradient id=\"tandem-area\" x1=\"0\" x2=\"0\" y1=\"0\" y2=\"1\">\n                      <stop offset=\"0\" stopColor=\"rgb(99 102 241)\" stopOpacity=\"0.35\" />\n                      <stop offset=\"1\" stopColor=\"rgb(99 102 241)\" stopOpacity=\"0\" />\n                    </linearGradient>\n                  </defs>\n                  <path\n                    d=\"M0 88 C30 84 45 76 70 72 S115 60 140 52 S190 44 215 30 S265 18 300 10 V100 H0Z\"\n                    fill=\"url(#tandem-area)\"\n                  />\n                  <path\n                    d=\"M0 88 C30 84 45 76 70 72 S115 60 140 52 S190 44 215 30 S265 18 300 10\"\n                    fill=\"none\"\n                    stroke=\"rgb(99 102 241)\"\n                    strokeWidth=\"2\"\n                    vectorEffect=\"non-scaling-stroke\"\n                  />\n                </svg>\n              </div>\n\n              <div className={card}>\n                <span className=\"text-zinc-500\">Up next</span>\n                <ul className=\"mt-2 space-y-2.5\">\n                  {tasks.map((task) => (\n                    <li key={task.title} className=\"flex items-center gap-2\">\n                      <span\n                        className={`size-3.5 shrink-0 rounded-full ${task.done ? \"bg-emerald-500\" : \"ring-1 ring-zinc-300 ring-inset dark:ring-zinc-600\"}`}\n                      />\n                      <span className={`truncate ${task.done ? \"text-zinc-400 line-through\" : \"\"}`}>\n                        {task.title}\n                      </span>\n                      <span\n                        className={`ml-auto grid size-5 shrink-0 place-items-center rounded-full text-[9px] font-semibold text-zinc-950 ${task.color}`}\n                      >\n                        {task.who}\n                      </span>\n                    </li>\n                  ))}\n                </ul>\n              </div>\n            </div>\n\n            <div className={card}>\n              <div className=\"flex justify-between text-zinc-500\">\n                <span>Roadmap</span>\n                <span>Jul – Sep</span>\n              </div>\n              <div className=\"mt-3 space-y-1.5\">\n                {roadmap.map((item) => (\n                  <div key={item.name} className=\"relative h-6\">\n                    <span\n                      className={`absolute inset-y-0 flex items-center truncate rounded-md px-2 font-medium ${item.tone}`}\n                      style={{ left: `${item.start}%`, width: `${item.span}%` }}\n                    >\n                      {item.name}\n                    </span>\n                  </div>\n                ))}\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  );\n}\n"
    }
  ]
}