{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "feature-floating-showcase",
  "type": "registry:block",
  "title": "Feature Floating Showcase Block",
  "description": "A Feature Floating Showcase Block component for displaying features.",
  "files": [
    {
      "path": "src/registry/blocks/feature-floating-showcase.tsx",
      "type": "registry:block",
      "content": "\"use client\";\n\nimport { useId, useState, type ComponentProps } from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\nimport { cn } from \"@/lib/utils\";\n\nexport type ShowcaseAnnotation = {\n  title: string;\n  description: string;\n};\n\nexport type ShowcaseDeploy = {\n  commit: string;\n  message: string;\n  branch: string;\n  author: string;\n  status: \"live\" | \"queued\" | \"building\" | \"rolled back\";\n  duration: string;\n};\n\nexport type FloatingFeatureShowcaseProps = {\n  eyebrow?: string;\n  title?: string;\n  description?: string;\n  /**\n   * Notes keyed to the numbered markers in the panel, in order:\n   * 01 queue header, 02 preview link, 03 rollback action, 04 audit footer.\n   */\n  annotations?: ShowcaseAnnotation[];\n  deploys?: ShowcaseDeploy[];\n  /** Line shown in the panel's audit footer (marker 04). */\n  auditLine?: string;\n  footnote?: string;\n} & ComponentProps<\"section\">;\n\nconst DEFAULT_ANNOTATIONS: ShowcaseAnnotation[] = [\n  {\n    title: \"One queue per environment\",\n    description:\n      \"Merges line up in the order they were approved. Halyard rebases each one on the last green build, so main never breaks on a race.\",\n  },\n  {\n    title: \"A preview for every branch\",\n    description:\n      \"Each push gets its own URL with seeded data, torn down 48 hours after the branch merges or goes quiet.\",\n  },\n  {\n    title: \"Rollback is a single action\",\n    description:\n      \"The previous build stays warm for 24 hours. Rolling back swaps traffic in under four seconds, no rebuild involved.\",\n  },\n  {\n    title: \"Every change is on the record\",\n    description:\n      \"Who shipped what, when, and who approved it, exportable as CSV for the quarterly audit nobody enjoys.\",\n  },\n];\n\nconst DEFAULT_DEPLOYS: ShowcaseDeploy[] = [\n  {\n    commit: \"a41f9c2\",\n    message: \"Cap retry backoff at 30s\",\n    branch: \"main\",\n    author: \"R. Okafor\",\n    status: \"live\",\n    duration: \"1m 52s\",\n  },\n  {\n    commit: \"7be03d1\",\n    message: \"Invoice PDF uses tenant locale\",\n    branch: \"fix/invoice-locale\",\n    author: \"M. Lindqvist\",\n    status: \"building\",\n    duration: \"0m 41s\",\n  },\n  {\n    commit: \"c9921ee\",\n    message: \"Drop legacy webhook signer\",\n    branch: \"chore/webhooks-v1\",\n    author: \"T. Brandt\",\n    status: \"queued\",\n    duration: \"—\",\n  },\n  {\n    commit: \"0d5a6b8\",\n    message: \"Bump connection pool to 40\",\n    branch: \"main\",\n    author: \"A. Ruiz\",\n    status: \"rolled back\",\n    duration: \"2m 07s\",\n  },\n];\n\nconst DEFAULTS = {\n  eyebrow: \"Halyard / Deploys\",\n  title: \"The release page your on-call engineer actually wants open at 2 a.m.\",\n  description:\n    \"Halyard puts the merge queue, previews, rollbacks and the audit trail on one screen. Here is what each part does.\",\n  auditLine: \"14:02 — R. Okafor promoted a41f9c2, approved by A. Ruiz\",\n  footnote:\n    \"Timings measured on the Halyard Team plan, Frankfurt region, September 2026.\",\n};\n\nfunction Marker({\n  n,\n  active,\n  className,\n}: {\n  n: number;\n  active: boolean;\n  className?: string;\n}) {\n  return (\n    <span\n      aria-hidden=\"true\"\n      className={cn(\n        \"inline-flex size-5 shrink-0 items-center justify-center rounded-sm border font-mono text-[10px] tabular-nums transition-colors\",\n        active\n          ? \"border-primary bg-primary text-primary-foreground\"\n          : \"border-foreground/30 bg-background text-foreground\",\n        className\n      )}\n    >\n      {String(n).padStart(2, \"0\")}\n    </span>\n  );\n}\n\nconst STATUS_STYLES: Record<ShowcaseDeploy[\"status\"], string> = {\n  live: \"bg-primary\",\n  building: \"bg-foreground/60\",\n  queued: \"bg-transparent border border-foreground/40\",\n  \"rolled back\": \"bg-destructive\",\n};\n\nexport function FloatingFeatureShowcase({\n  eyebrow = DEFAULTS.eyebrow,\n  title = DEFAULTS.title,\n  description = DEFAULTS.description,\n  annotations = DEFAULT_ANNOTATIONS,\n  deploys = DEFAULT_DEPLOYS,\n  auditLine = DEFAULTS.auditLine,\n  footnote = DEFAULTS.footnote,\n  className,\n  ...props\n}: FloatingFeatureShowcaseProps) {\n  const headingId = useId();\n  const reduceMotion = useReducedMotion();\n  const [active, setActive] = useState<number | null>(null);\n\n  const fadeIn = reduceMotion\n    ? {}\n    : {\n        initial: { opacity: 0, y: 12 },\n        whileInView: { opacity: 1, y: 0 },\n        viewport: { once: true, amount: 0.3 },\n        transition: { duration: 0.5, ease: [0.22, 1, 0.36, 1] as const },\n      };\n\n  const isActive = (n: number) => active === n;\n\n  return (\n    <section\n      data-slot=\"feature-floating-showcase\"\n      aria-labelledby={headingId}\n      className={cn(\"w-full bg-background text-foreground\", className)}\n      {...props}\n    >\n      <div className=\"mx-auto max-w-6xl px-6 py-20 md:py-28\">\n        <div className=\"grid gap-6 border-t pt-6 md:grid-cols-12 md:gap-10\">\n          <p className=\"font-mono text-xs uppercase tracking-wider text-muted-foreground md:col-span-3\">\n            {eyebrow}\n          </p>\n          <div className=\"md:col-span-9\">\n            <h2\n              id={headingId}\n              className=\"max-w-3xl text-3xl font-semibold tracking-[-0.03em] text-balance sm:text-4xl md:text-5xl\"\n            >\n              {title}\n            </h2>\n            <p className=\"mt-5 max-w-xl text-base leading-relaxed text-muted-foreground\">\n              {description}\n            </p>\n          </div>\n        </div>\n\n        <div className=\"mt-14 grid gap-10 lg:grid-cols-12 lg:gap-12\">\n          {/* Product panel built from plain UI */}\n          <motion.div\n            {...fadeIn}\n            aria-hidden=\"true\"\n            className=\"overflow-hidden rounded-sm border bg-card text-card-foreground lg:col-span-8\"\n          >\n            <div className=\"flex items-center justify-between border-b px-4 py-2.5\">\n              <div className=\"flex items-center gap-1.5\">\n                <span className=\"size-2 rounded-full border border-foreground/30\" />\n                <span className=\"size-2 rounded-full border border-foreground/30\" />\n                <span className=\"size-2 rounded-full border border-foreground/30\" />\n              </div>\n              <span className=\"font-mono text-[11px] text-muted-foreground\">\n                halyard.app/acme-billing/production\n              </span>\n              <span className=\"w-10\" />\n            </div>\n\n            <div className=\"grid sm:grid-cols-[9rem_1fr]\">\n              <div className=\"hidden border-r p-4 sm:block\">\n                <p className=\"font-mono text-[10px] uppercase tracking-wider text-muted-foreground\">\n                  Environments\n                </p>\n                <ul className=\"mt-3 space-y-1.5 text-sm\">\n                  <li className=\"font-medium\">Production</li>\n                  <li className=\"text-muted-foreground\">Staging</li>\n                  <li className=\"text-muted-foreground\">Previews</li>\n                </ul>\n                <p className=\"mt-6 font-mono text-[10px] uppercase tracking-wider text-muted-foreground\">\n                  Team\n                </p>\n                <ul className=\"mt-3 space-y-1.5 text-sm text-muted-foreground\">\n                  <li>Approvals</li>\n                  <li>Audit log</li>\n                </ul>\n              </div>\n\n              <div className=\"min-w-0\">\n                <div className=\"flex items-center gap-3 border-b px-4 py-3\">\n                  <Marker n={1} active={isActive(1)} />\n                  <p className=\"text-sm font-medium\">Merge queue</p>\n                  <span className=\"ml-auto font-mono text-[11px] tabular-nums text-muted-foreground\">\n                    {deploys.length} entries\n                  </span>\n                </div>\n\n                <ul className=\"divide-y\">\n                  {deploys.map((deploy, i) => (\n                    <li\n                      key={deploy.commit}\n                      className=\"grid grid-cols-[auto_1fr_auto] items-center gap-x-3 gap-y-1 px-4 py-3 text-sm\"\n                    >\n                      <span\n                        className={cn(\n                          \"size-2 rounded-full\",\n                          STATUS_STYLES[deploy.status]\n                        )}\n                      />\n                      <div className=\"min-w-0\">\n                        <p className=\"truncate\">{deploy.message}</p>\n                        <p className=\"mt-0.5 flex flex-wrap items-center gap-x-2 font-mono text-[11px] text-muted-foreground\">\n                          <span>{deploy.commit}</span>\n                          <span>{deploy.branch}</span>\n                          <span className=\"hidden sm:inline\">\n                            {deploy.author}\n                          </span>\n                          {i === 1 && (\n                            <span className=\"inline-flex items-center gap-1.5 text-foreground underline underline-offset-2\">\n                              preview\n                              <Marker n={2} active={isActive(2)} />\n                            </span>\n                          )}\n                        </p>\n                      </div>\n                      <div className=\"flex items-center gap-2\">\n                        <span className=\"hidden font-mono text-[11px] tabular-nums text-muted-foreground sm:inline\">\n                          {deploy.duration}\n                        </span>\n                        {i === 0 ? (\n                          <span className=\"inline-flex items-center gap-1.5\">\n                            <span className=\"rounded-sm border px-2 py-0.5 text-[11px]\">\n                              Roll back\n                            </span>\n                            <Marker n={3} active={isActive(3)} />\n                          </span>\n                        ) : (\n                          <span className=\"font-mono text-[11px] text-muted-foreground\">\n                            {deploy.status}\n                          </span>\n                        )}\n                      </div>\n                    </li>\n                  ))}\n                </ul>\n\n                <div className=\"flex items-center gap-3 border-t bg-muted/50 px-4 py-2.5\">\n                  <Marker n={4} active={isActive(4)} />\n                  <p className=\"truncate font-mono text-[11px] text-muted-foreground\">\n                    {auditLine}\n                  </p>\n                </div>\n              </div>\n            </div>\n          </motion.div>\n\n          {/* Annotations */}\n          <ol\n            className=\"divide-y border-y lg:col-span-4\"\n            onMouseLeave={() => setActive(null)}\n          >\n            {annotations.map((note, i) => {\n              const n = i + 1;\n              return (\n                <li\n                  key={note.title}\n                  onMouseEnter={() => setActive(n)}\n                  className=\"flex gap-4 py-5\"\n                >\n                  <Marker n={n} active={isActive(n)} className=\"mt-0.5\" />\n                  <div>\n                    <h3 className=\"text-sm font-medium\">{note.title}</h3>\n                    <p className=\"mt-1.5 text-sm leading-relaxed text-muted-foreground\">\n                      {note.description}\n                    </p>\n                  </div>\n                </li>\n              );\n            })}\n          </ol>\n        </div>\n\n        {footnote && (\n          <p className=\"mt-10 font-mono text-xs text-muted-foreground\">\n            * {footnote}\n          </p>\n        )}\n      </div>\n    </section>\n  );\n}\n"
    }
  ],
  "dependencies": [
    "motion"
  ]
}
