{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "zoom-portal",
  "title": "Zoom Portal",
  "type": "registry:component",
  "description": "The headline steps back and the product grows to fill the view",
  "dependencies": [
    "motion@^12.43.0"
  ],
  "files": [
    {
      "path": "src/kavyn/zoom-portal.jsx",
      "type": "registry:file",
      "target": "@components/kavyn/zoom-portal.jsx",
      "content": "'use client'\n\nimport { useRef } from 'react'\nimport { motion, useScroll, useTransform } from 'motion/react'\n\n// A launch-page reveal. The headline steps back and the product window grows to fill the view.\nexport default function ZoomPortal({ title = 'Meet the new console', className = '' }) {\n  const box = useRef(null), track = useRef(null)\n  const { scrollYProgress: p } = useScroll({ container: box, target: track, offset: ['start start', 'end end'] })\n  const scale = useTransform(p, [0, 0.7], [0.42, 1])\n  const radius = useTransform(p, [0, 0.7], [28, 0])\n  const titleS = useTransform(p, [0, 0.5], [1, 0.7])\n  const titleO = useTransform(p, [0, 0.4], [1, 0])\n  const inner = useTransform(p, [0.55, 0.85], [0, 1])\n  return (\n    <div ref={box} className={`relative h-full min-h-80 w-full overflow-y-auto overscroll-contain bg-bg [container-type:size] ${className}`}>\n      <div ref={track} className=\"relative h-[280cqh]\">\n        <div className=\"sticky top-0 h-[100cqh] overflow-hidden\">\n          <motion.div style={{ scale: titleS, opacity: titleO }} className=\"absolute inset-x-0 top-[12%] z-10 text-center\">\n            <h3 className=\"text-2xl font-semibold tracking-tight text-tx @xl:text-4xl\">{title}</h3>\n            <p className=\"mt-1 text-xs text-faint\">Scroll to open</p>\n          </motion.div>\n          <motion.div style={{ scale, borderRadius: radius }} className=\"absolute inset-0 origin-[50%_85%] overflow-hidden border border-line bg-panel\">\n            <div className=\"flex h-9 items-center gap-1.5 border-b border-line px-3\"><span className=\"size-2 rounded-full bg-line2\" /><span className=\"size-2 rounded-full bg-line2\" /><span className=\"size-2 rounded-full bg-line2\" /><span className=\"ml-3 h-4 w-40 rounded bg-panel2\" /></div>\n            <motion.div style={{ opacity: inner }} className=\"grid h-[calc(100%-2.25rem)] grid-cols-[120px_1fr] gap-3 p-3\">\n              <div className=\"space-y-2 rounded-lg bg-panel2 p-2\">{[1, 2, 3, 4, 5].map((n) => <div key={n} className={`h-5 rounded ${n === 2 ? 'bg-acc/25' : 'bg-line'}`} />)}</div>\n              <div className=\"grid grid-rows-[auto_1fr] gap-3\">\n                <div className=\"grid grid-cols-3 gap-3\">{['Deploys', 'p95', 'Errors'].map((k, n) => <div key={k} className=\"rounded-lg border border-line p-2\"><div className=\"text-[10px] text-faint\">{k}</div><div className=\"font-mono text-sm text-tx\">{['1,204', '84ms', '0.02%'][n]}</div></div>)}</div>\n                <div className=\"flex items-end gap-1 rounded-lg border border-line p-3\">{Array.from({ length: 24 }, (_, n) => <span key={n} style={{ height: `${25 + ((n * 37) % 70)}%` }} className=\"flex-1 rounded-sm bg-acc/70\" />)}</div>\n              </div>\n            </motion.div>\n          </motion.div>\n        </div>\n      </div>\n    </div>\n  )\n}\n"
    }
  ],
  "cssVars": {
    "theme": {
      "color-bg": "var(--bg)",
      "color-panel": "var(--panel)",
      "color-panel2": "var(--panel2)",
      "color-line": "var(--line)",
      "color-line2": "var(--line2)",
      "color-tx": "var(--tx)",
      "color-mute": "var(--mute)",
      "color-faint": "var(--faint)",
      "color-acc": "var(--acc)",
      "color-acc-fg": "var(--acc-fg)"
    },
    "light": {
      "bg": "#ffffff",
      "panel": "#f5f5f7",
      "panel2": "#e8e8ed",
      "line": "#e5e5ea",
      "line2": "#d2d2d7",
      "tx": "#1d1d1f",
      "mute": "#6e6e73",
      "faint": "#a1a1a6",
      "acc": "#1d1d1f",
      "acc-fg": "#ffffff"
    },
    "dark": {
      "bg": "#000000",
      "panel": "#141416",
      "panel2": "#1f1f22",
      "line": "#262628",
      "line2": "#3a3a3d",
      "tx": "#f5f5f7",
      "mute": "#a1a1a6",
      "faint": "#6e6e73",
      "acc": "#f5f5f7",
      "acc-fg": "#000000"
    }
  },
  "css": {
    ".light": {
      "--bg": "#ffffff",
      "--panel": "#f5f5f7",
      "--panel2": "#e8e8ed",
      "--line": "#e5e5ea",
      "--line2": "#d2d2d7",
      "--tx": "#1d1d1f",
      "--mute": "#6e6e73",
      "--faint": "#a1a1a6",
      "--acc": "#1d1d1f",
      "--acc-fg": "#ffffff"
    }
  }
}
