{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "sync-grid-render-demo",
  "type": "registry:block",
  "title": "Sync Grid: Render Quality",
  "description": "Video Comparison Grid example, Render Quality: One clip in four cards at 1/8, 1/4, 1/2 and full resolution. It decodes once and is drawn into each card, so all four always show the same frame. Drag Final onto Draft and switch to Difference: only the detail the draft lost lights up. A take on the video (video player) and before and after (before after). Fits features sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "features",
    "video",
    "before-and-after",
    "comparison",
    "scrubbing",
    "motion"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/sync-grid#sync-grid-render-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/sync-grid.json"
  ],
  "files": [
    {
      "path": "components/sync-grid-render-demo.tsx",
      "type": "registry:component",
      "content": "import { SyncGrid, SyncGridItem } from \"@/components/ui/sync-grid\";\n\n// One clip, decoded once and drawn at four resolutions, so every card shows\n// exactly the same frame.\nconst src = \"https://assets.mixkit.co/videos/33957/33957-720.mp4\";\nconst poster = \"https://assets.mixkit.co/videos/33957/33957-thumb-720-0.jpg\";\n\nconst passes = [\n  { label: \"Draft\", resolution: 1 / 8, size: \"160 × 90\", time: \"0.4s / frame\" },\n  { label: \"Preview\", resolution: 1 / 4, size: \"320 × 180\", time: \"1.1s / frame\" },\n  { label: \"High\", resolution: 1 / 2, size: \"640 × 360\", time: \"4.8s / frame\" },\n  { label: \"Final\", resolution: 1, size: \"1280 × 720\", time: \"19s / frame\" },\n];\n\nexport function SyncGridRenderDemo() {\n  return (\n    <div className=\"w-full max-w-3xl\">\n      <div className=\"mb-4 flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1\">\n        <p className=\"text-sm font-medium text-zinc-900 dark:text-zinc-100\">\n          Shot 04 · Lakeside <span className=\"font-normal text-zinc-500\">· four render passes</span>\n        </p>\n        <p className=\"text-xs text-zinc-500\">Drag Final onto Draft, then switch to Difference</p>\n      </div>\n\n      <SyncGrid columns={2}>\n        {passes.map((pass) => (\n          <SyncGridItem key={pass.label} label={pass.label} src={src} poster={poster} resolution={pass.resolution}>\n            <div className=\"absolute top-9 left-2.5 flex gap-1\">\n              <span className=\"rounded-full bg-black/45 px-1.5 py-0.5 font-mono text-[10px] text-white/90 tabular-nums backdrop-blur-md\">\n                {pass.size}\n              </span>\n              <span className=\"rounded-full bg-black/45 px-1.5 py-0.5 font-mono text-[10px] text-white/90 tabular-nums backdrop-blur-md\">\n                {pass.time}\n              </span>\n            </div>\n          </SyncGridItem>\n        ))}\n      </SyncGrid>\n    </div>\n  );\n}\n"
    }
  ]
}