{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "release-pill-launch-demo",
  "type": "registry:block",
  "title": "Release Pill: Launch Week",
  "description": "Hover Changelog Badge example, Launch Week: The closed pill cycles through the week's announcements. Opened, it lists the days and ends on a dimmed, locked Day 4 row with a live countdown. A take on the badge (pill). Fits hero and changelog sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "hero",
    "changelog",
    "badge",
    "tooltip",
    "hover"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/release-pill#release-pill-launch-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/release-pill.json"
  ],
  "files": [
    {
      "path": "components/release-pill-launch-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { ReleasePill, type Release } from \"@/components/ui/release-pill\";\n\nconst releases: Release[] = [\n  {\n    version: \"Day 3\",\n    title: \"Usage-based pricing\",\n    date: \"Wed\",\n    href: \"#day-3\",\n    summary: \"Pay for the runs you make. Nothing else, no seats.\",\n  },\n  { version: \"Day 2\", title: \"Slack approvals\", date: \"Tue\", href: \"#day-2\" },\n  { version: \"Day 1\", title: \"Agents 2.0\", date: \"Mon\", href: \"#day-1\" },\n];\n\n// Day 4 unlocks 14h 32m after the demo loads.\nconst UNLOCK_SECONDS = 14 * 3600 + 32 * 60;\n\nfunction Countdown() {\n  const [left, setLeft] = React.useState(UNLOCK_SECONDS);\n  React.useEffect(() => {\n    const timer = window.setInterval(() => setLeft((s) => Math.max(0, s - 1)), 1000);\n    return () => window.clearInterval(timer);\n  }, []);\n  const minutes = Math.ceil(left / 60);\n  return (\n    <span className=\"tabular-nums\">\n      in {Math.floor(minutes / 60)}h {String(minutes % 60).padStart(2, \"0\")}m\n    </span>\n  );\n}\n\nfunction LockedDay() {\n  return (\n    <div aria-disabled=\"true\" className=\"flex items-center gap-3 text-muted-foreground opacity-60 select-none\">\n      <svg\n        aria-hidden\n        viewBox=\"0 0 16 16\"\n        className=\"size-3.5 shrink-0\"\n        fill=\"none\"\n        stroke=\"currentColor\"\n        strokeWidth=\"1.5\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n      >\n        <rect x=\"3\" y=\"7\" width=\"10\" height=\"7\" rx=\"2\" />\n        <path d=\"M5.5 7V5a2.5 2.5 0 0 1 5 0v2\" />\n      </svg>\n      <span className=\"sr-only\">Locked.</span>\n      <span className=\"font-medium\">Day 4 · Tomorrow</span>\n      <span className=\"ml-auto text-xs\">\n        <Countdown />\n      </span>\n    </div>\n  );\n}\n\nexport function ReleasePillLaunchDemo() {\n  return (\n    <section className=\"relative flex w-full max-w-3xl flex-col items-center px-6 py-16 text-center text-foreground sm:py-24\">\n      <ReleasePill\n        releases={releases}\n        tag=\"Launch week\"\n        changelogHref=\"#launch-week\"\n        cycle\n      >\n        <LockedDay />\n      </ReleasePill>\n\n      <h2 className=\"mt-7 max-w-[14ch] text-4xl/[1.05] font-semibold tracking-tight text-balance sm:text-6xl/[1.03]\">\n        One new thing, every morning\n      </h2>\n      <p className=\"mt-5 max-w-md text-base/7 text-pretty text-muted-foreground\">\n        Launch week is here. Three days in, three things shipped, and the best one is still to\n        come.\n      </p>\n\n      <a\n        href=\"#remind\"\n        className=\"mt-9 inline-flex h-11 items-center rounded-full bg-foreground px-6 text-sm font-medium text-background outline-none hover:opacity-90 focus-visible:ring-2 focus-visible:ring-foreground focus-visible:ring-offset-2 focus-visible:ring-offset-background\"\n      >\n        Remind me tomorrow\n      </a>\n    </section>\n  );\n}\n"
    }
  ]
}