Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "video-call",
"title": "Video Call",
"description": "A video call shares a dashboard while participants send floating emoji reactions.",
"dependencies": ["remotion", "@remotion/google-fonts"],
"registryDependencies": ["@remocn/gsh"],
"files": [
{
"path": "registry/remocn/video-call/index.tsx",
"content": "\"use client\";\n\nimport { loadFont } from \"@remotion/google-fonts/Onest\";\nimport type React from \"react\";\nimport { useId } from \"react\";\nimport {\n AbsoluteFill,\n Easing,\n Img,\n interpolate,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\nimport type { GradientParams } from \"@/lib/remocn/gsh/gradient-engine\";\nimport { GshGround } from \"@/lib/remocn/gsh/gsh-ground\";\nimport type { GshPresetId } from \"@/lib/remocn/gsh/presets\";\n\nconst { fontFamily } = loadFont(\"normal\", {\n weights: [\"300\", \"400\"],\n subsets: [\"latin\"],\n});\n\nexport interface CallParticipant {\n name: string;\n /** Tile hue: drives the backdrop gradient, avatar and silhouette tint. */\n color: string;\n /** `true` draws a stylised camera feed (silhouette), `false` an avatar with initials. */\n camera?: boolean;\n muted?: boolean;\n}\n\nexport interface VideoCallProps {\n /** Up to six people, in join order. */\n participants?: CallParticipant[];\n meetingCode?: string;\n time?: string;\n /** Index of the participant who shares their screen. */\n presenter?: number;\n /** `false` keeps the grid and ends on reactions only. */\n present?: boolean;\n /** Screenshot shown as the shared screen. */\n src?: string;\n /** Custom shared-screen content (wins over `src`). */\n children?: React.ReactNode;\n accent?: string;\n speed?: number;\n ground?: GshPresetId;\n groundParams?: Partial<GradientParams>;\n}\n\nconst DEFAULT_PARTICIPANTS: CallParticipant[] = [\n { name: \"You\", color: \"#5B7A99\", camera: true },\n { name: \"Maya Chen\", color: \"#C98A55\", camera: true },\n { name: \"Leo Park\", color: \"#12A594\", camera: false, muted: true },\n { name: \"Priya Raman\", color: \"#8E6CC9\", camera: true },\n { name: \"Sam Okafor\", color: \"#D9644A\", camera: false },\n { name: \"Noor Haddad\", color: \"#4F8FD6\", camera: true, muted: true },\n];\n\nconst JOINS = [-30, 22, 46, 54, 80, 88];\nconst PRESENT_AT = 150;\nconst TRAY_AT = 196;\nconst INK = \"#F1F1F4\";\n\nconst ENTER_SOFT = Easing.bezier(0.22, 1, 0.36, 1);\nconst MOVE = Easing.bezier(0.65, 0, 0.35, 1);\nconst EXIT = Easing.bezier(0.55, 0, 1, 0.45);\nconst CARD = { mass: 0.8, damping: 18, stiffness: 160 };\nconst CHIP = { mass: 0.5, damping: 12, stiffness: 200 };\nconst HEAVY = { mass: 1, damping: 26, stiffness: 120 };\n\nconst clamp = (v: number, lo = 0, hi = 1) => Math.min(hi, Math.max(lo, v));\nconst CL = { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" } as const;\n\nfunction rgb(c: string): [number, number, number] {\n const hex = c.replace(\"#\", \"\");\n const full = hex.length === 3 ? hex.replace(/(.)/g, \"$1$1\") : hex;\n if (!/^[0-9a-fA-F]{6}$/.test(full)) return [128, 128, 128];\n const n = Number.parseInt(full, 16);\n return [(n >> 16) & 255, (n >> 8) & 255, n & 255];\n}\nfunction withAlpha(c: string, a: number) {\n const [r, g, b] = rgb(c);\n return `rgba(${r}, ${g}, ${b}, ${a})`;\n}\nfunction mix(a: string, b: string, t: number) {\n const x = rgb(a);\n const y = rgb(b);\n const m = (i: number) =>\n Math.round(x[i] + (y[i] - x[i]) * t)\n .toString(16)\n .padStart(2, \"0\");\n return `#${m(0)}${m(1)}${m(2)}`;\n}\nconst wave = (f: number, k: number) =>\n 0.5 + 0.5 * Math.sin(f * 0.83 + k * 2.3) * Math.cos(f * 0.31 + k * 1.1);\nconst initials = (name: string) =>\n name\n .split(\" \")\n .map((p) => p[0] ?? \"\")\n .join(\"\")\n .slice(0, 2)\n .toUpperCase();\n\ninterface Rect {\n x: number;\n y: number;\n w: number;\n h: number;\n}\ninterface Stage {\n area: Rect;\n main: Rect;\n gap: number;\n tall: boolean;\n stripCols: number;\n stripTop: number;\n}\nconst addDelta = (r: Rect, a: Rect, b: Rect, t: number): Rect => ({\n x: r.x + (b.x - a.x) * t,\n y: r.y + (b.y - a.y) * t,\n w: r.w + (b.w - a.w) * t,\n h: r.h + (b.h - a.h) * t,\n});\n\nfunction gridRect(S: Stage, n: number, i: number): Rect {\n const A = S.area;\n const cols = S.tall ? (n <= 2 ? 1 : 2) : n <= 1 ? 1 : n <= 4 ? 2 : 3;\n const rows = Math.ceil(n / cols);\n const cw = (A.w - (cols - 1) * S.gap) / cols;\n const ch = (A.h - (rows - 1) * S.gap) / rows;\n const row = Math.floor(i / cols);\n const inRow = Math.min(cols, n - row * cols);\n const offset = ((cols - inRow) * (cw + S.gap)) / 2;\n return {\n x: A.x + offset + (i % cols) * (cw + S.gap),\n y: A.y + row * (ch + S.gap),\n w: cw,\n h: ch,\n };\n}\nfunction stripRect(S: Stage, n: number, i: number): Rect {\n const A = S.area;\n if (S.tall) {\n const cols = S.stripCols;\n const rows = Math.ceil(n / cols);\n const w = (A.w - (cols - 1) * S.gap) / cols;\n const h = (A.y + A.h - S.stripTop - (rows - 1) * S.gap) / rows;\n return {\n x: A.x + (i % cols) * (w + S.gap),\n y: S.stripTop + Math.floor(i / cols) * (h + S.gap),\n w,\n h,\n };\n }\n const h = (A.h - (n - 1) * S.gap) / n;\n return {\n x: S.main.x + S.main.w + S.gap,\n y: A.y + i * (h + S.gap),\n w: A.x + A.w - (S.main.x + S.main.w + S.gap),\n h,\n };\n}\n\nconst ICON: Record<string, string> = {\n mic: \"M12 3a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3zM5.5 11a6.5 6.5 0 0 0 13 0M12 17.5V21\",\n micOff:\n \"M15 10.5V6a3 3 0 0 0-5.8-1M9 9v3a3 3 0 0 0 4.6 2.5M5.5 11a6.5 6.5 0 0 0 10.4 5.2M18.5 11a6.4 6.4 0 0 1-.5 2.5M12 17.5V21M4 4l16 16\",\n cam: \"M4 6.5h10a1.5 1.5 0 0 1 1.5 1.5v8a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 16V8A1.5 1.5 0 0 1 4 6.5zM15.5 10.5l5-3v9l-5-3\",\n present:\n \"M4.5 4.5h15a1.5 1.5 0 0 1 1.5 1.5v9.5a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 15.5V6a1.5 1.5 0 0 1 1.5-1.5zM12 14V8.5M9.5 11 12 8.5l2.5 2.5M8 20.5h8\",\n hand: \"M8 12V5.5a1.3 1.3 0 0 1 2.6 0V11m0-.5V4.3a1.3 1.3 0 0 1 2.6 0V11m0-5a1.3 1.3 0 0 1 2.6 0v5.5M15.8 8.5a1.3 1.3 0 0 1 2.6 0v5.7a6.3 6.3 0 0 1-6.3 6.3h-.6a6.3 6.3 0 0 1-5-2.5L4.4 14.6a1.4 1.4 0 0 1 2.1-1.8L8 14.2\",\n more: \"M6 12h.01M12 12h.01M18 12h.01\",\n people:\n \"M9 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM2.5 20c.6-3.4 3.2-5.5 6.5-5.5s5.9 2.1 6.5 5.5M16 4.3a3.5 3.5 0 0 1 0 6.4M18 14.8c1.9.7 3.2 2.5 3.5 5.2\",\n chat: \"M5 4.5h14A1.5 1.5 0 0 1 20.5 6v9a1.5 1.5 0 0 1-1.5 1.5H8.5L4 20V6a1.5 1.5 0 0 1 1-1.5z\",\n heart: \"M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z\",\n thumb:\n \"M7 11v9H4v-9zM7 11l4-7a2 2 0 0 1 3 2l-1 4h5a2 2 0 0 1 2 2.3l-1.2 6A2 2 0 0 1 16.8 20H7\",\n star: \"M12 3.5l2.6 5.4 5.9.8-4.3 4.1 1 5.9-5.2-2.8-5.2 2.8 1-5.9-4.3-4.1 5.9-.8z\",\n check: \"M5 12.5l4.5 4.5L19 7.5\",\n react:\n \"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zM8.5 14a4 4 0 0 0 7 0M9 9.5h.01M15 9.5h.01\",\n};\nconst DOT_ICONS = new Set([\"more\"]);\n\nfunction Icon({\n name,\n size = 22,\n color = INK,\n}: {\n name: string;\n size?: number;\n color?: string;\n}) {\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke={color}\n strokeWidth={DOT_ICONS.has(name) ? 3 : 1.5}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n style={{ display: \"block\" }}\n aria-hidden\n >\n <path d={ICON[name]} />\n </svg>\n );\n}\n\nconst ROOMS = [\n { win: [0.06, 0.06, 0.3, 0.5], lamp: [0.82, 0.2], plant: [0.88, 0.6] },\n { win: [0.64, 0.05, 0.3, 0.46], lamp: [0.14, 0.28], plant: [0.08, 0.64] },\n { win: [0.36, 0.03, 0.34, 0.26], lamp: [0.86, 0.46], plant: [0.06, 0.56] },\n];\n\ntype HairStyle = \"short\" | \"long\" | \"bun\" | \"curly\" | \"buzz\" | \"wavy\";\ninterface Look {\n skin: string;\n hair: string;\n style: HairStyle;\n top: \"crew\" | \"hoodie\" | \"collar\";\n cloth: string;\n glasses?: boolean;\n headset?: boolean;\n}\nconst LOOKS: Look[] = [\n {\n skin: \"#E2B394\",\n hair: \"#2B211C\",\n style: \"short\",\n top: \"hoodie\",\n cloth: \"#3A3F47\",\n headset: true,\n },\n {\n skin: \"#EEC9A8\",\n hair: \"#17120F\",\n style: \"long\",\n top: \"crew\",\n cloth: \"#CDBBA7\",\n },\n {\n skin: \"#8E5B3C\",\n hair: \"#120E0C\",\n style: \"curly\",\n top: \"collar\",\n cloth: \"#E6E4DF\",\n },\n {\n skin: \"#B47A55\",\n hair: \"#1C1512\",\n style: \"bun\",\n top: \"crew\",\n cloth: \"#5A4C86\",\n glasses: true,\n },\n {\n skin: \"#734A31\",\n hair: \"#100D0B\",\n style: \"buzz\",\n top: \"hoodie\",\n cloth: \"#2F5A4E\",\n },\n {\n skin: \"#D7A07C\",\n hair: \"#4A3122\",\n style: \"wavy\",\n top: \"collar\",\n cloth: \"#3D5A78\",\n },\n];\n\nconst HAIR_BACK: Partial<Record<HairStyle, string>> = {\n long: \"M84 94C80 60 102 50 122 51C144 52 162 66 158 100L164 172C150 180 132 178 126 170L114 170C106 178 88 180 76 172Z\",\n wavy: \"M84 94C80 62 102 50 122 51C144 52 162 66 158 98C164 118 166 140 158 156C150 164 140 160 136 152L104 152C98 162 84 164 78 154C72 138 78 116 84 94Z\",\n bun: \"M104 52a16 16 0 1 0 32 0a16 16 0 1 0-32 0\",\n};\nconst HAIR_FRONT: Record<HairStyle, string> = {\n short:\n \"M85 104C80 66 100 52 124 53C148 54 162 70 155 104C152 88 146 80 136 76C122 82 102 80 92 86C88 92 86 98 85 104Z\",\n long: \"M86 104C85 70 102 56 120 56C138 56 155 70 154 104C150 84 138 70 121 66C104 70 92 84 86 104Z\",\n bun: \"M86 98C86 68 104 57 120 57C136 57 154 68 154 98C146 80 134 71 120 71C106 71 94 80 86 98Z\",\n curly:\n \"M84 100C80 64 100 52 120 52C142 52 160 64 156 100C150 84 140 76 120 76C102 76 90 84 84 100Z\",\n buzz: \"M87 94C88 66 104 58 120 58C136 58 152 66 153 94C146 80 134 74 120 74C106 74 94 80 87 94Z\",\n wavy: \"M86 102C84 66 104 54 124 55C146 57 158 72 154 100C146 84 134 74 114 76C102 80 92 90 86 102Z\",\n};\nconst CURLS = [-150, -128, -106, -84, -62, -40, -18].map((deg) => {\n const a = (deg * Math.PI) / 180;\n return [120 + Math.cos(a) * 33, 92 + Math.sin(a) * 36];\n});\n\nfunction Person({\n w,\n h,\n color,\n seed,\n frame,\n level,\n}: {\n w: number;\n h: number;\n color: string;\n seed: number;\n frame: number;\n level: number;\n}) {\n const id = `vc-p${useId().replace(/[^a-zA-Z0-9_-]/g, \"\")}`;\n const look = LOOKS[seed % LOOKS.length];\n const s = Math.min((h * 0.96) / 240, (w * 0.86) / 240);\n const ox = w / 2 - 120 * s + Math.sin(frame * 0.045 + seed) * 3 * s;\n const oy = h - 240 * s;\n const bob =\n Math.sin(frame * 0.06 + seed * 2) * 1.6 +\n level * Math.sin(frame * 0.55) * 1.2;\n const tilt = Math.sin(frame * 0.035 + seed) * 2.4 + level * 1.4;\n const blink = (frame + seed * 37) % (92 + seed * 11) < 3 ? 0.15 : 1;\n const talk = level * wave(frame * 1.3, seed);\n const skinL = mix(look.skin, \"#FFFFFF\", 0.14);\n const skinD = mix(look.skin, \"#2A1A12\", 0.3);\n const cloth = mix(look.cloth, color, 0.12);\n const clothD = mix(cloth, \"#0B0D12\", 0.4);\n const ink = \"#2A1F1A\";\n const back = HAIR_BACK[look.style];\n const open = 1.5 + talk * 5;\n return (\n <svg\n width={w}\n height={h}\n style={{ position: \"absolute\", left: 0, top: 0 }}\n aria-hidden\n >\n <defs>\n <radialGradient id={`${id}f`} cx=\"0.36\" cy=\"0.34\" r=\"0.8\">\n <stop offset=\"0\" stopColor={skinL} />\n <stop offset=\"0.55\" stopColor={look.skin} />\n <stop offset=\"1\" stopColor={skinD} />\n </radialGradient>\n <linearGradient id={`${id}c`} x1=\"0\" y1=\"0\" x2=\"0.3\" y2=\"1\">\n <stop offset=\"0\" stopColor={mix(cloth, \"#FFFFFF\", 0.1)} />\n <stop offset=\"1\" stopColor={clothD} />\n </linearGradient>\n </defs>\n <g transform={`translate(${ox} ${oy}) scale(${s})`}>\n <g transform={`translate(0 ${bob}) rotate(${tilt} 120 150)`}>\n {back ? <path d={back} fill={look.hair} /> : null}\n </g>\n <rect x={105} y={124} width={30} height={48} rx={11} fill={skinD} />\n <path\n d=\"M4 240C8 200 30 178 74 170C94 166 106 163 120 163C134 163 146 166 166 170C210 178 232 200 236 240Z\"\n fill={`url(#${id}c)`}\n />\n {look.top === \"hoodie\" ? (\n <>\n <path\n d=\"M78 172C92 154 106 158 112 176M162 172C148 154 134 158 128 176\"\n stroke={mix(cloth, \"#FFFFFF\", 0.12)}\n strokeWidth={9}\n strokeLinecap=\"round\"\n fill=\"none\"\n />\n <path\n d=\"M112 180L110 210M128 180L130 210\"\n stroke=\"rgba(236,236,236,0.85)\"\n strokeWidth={2.2}\n strokeLinecap=\"round\"\n />\n </>\n ) : look.top === \"collar\" ? (\n <>\n <path d=\"M102 164L120 192L138 164Z\" fill={skinD} />\n <path\n d=\"M100 163L120 190L106 198L92 170ZM140 163L120 190L134 198L148 170Z\"\n fill={mix(cloth, \"#FFFFFF\", 0.55)}\n />\n </>\n ) : (\n <path\n d=\"M100 165Q120 184 140 165\"\n stroke={clothD}\n strokeWidth={4}\n fill={skinD}\n />\n )}\n <g transform={`translate(0 ${bob}) rotate(${tilt} 120 150)`}>\n {[86, 154].map((x) => (\n <ellipse key={x} cx={x} cy={104} rx={6} ry={10} fill={skinD} />\n ))}\n <path\n d=\"M86 96C86 70 102 58 120 58C138 58 154 70 154 96C154 122 140 142 120 142C100 142 86 122 86 96Z\"\n fill={`url(#${id}f)`}\n />\n {look.style === \"curly\"\n ? CURLS.map(([x, y]) => (\n <circle key={x} cx={x} cy={y} r={11} fill={look.hair} />\n ))\n : null}\n <path d={HAIR_FRONT[look.style]} fill={look.hair} />\n <path\n d=\"M100 90Q107 86 114 89M126 89Q133 86 140 90\"\n stroke={mix(look.hair, look.skin, 0.25)}\n strokeWidth={2.6}\n strokeLinecap=\"round\"\n fill=\"none\"\n />\n {[107, 133].map((x) => (\n <ellipse\n key={x}\n cx={x}\n cy={101}\n rx={3.4}\n ry={2.7 * blink}\n fill={ink}\n />\n ))}\n <path\n d=\"M121 104Q118 114 121 117Q123 118 125 116\"\n stroke={skinD}\n strokeWidth={1.8}\n strokeLinecap=\"round\"\n fill=\"none\"\n opacity={0.7}\n />\n {[98, 142].map((x) => (\n <ellipse\n key={x}\n cx={x}\n cy={116}\n rx={7}\n ry={4}\n fill=\"#E07A6A\"\n opacity={0.16}\n />\n ))}\n <path\n d={`M110 126Q120 ${126 + open} 130 126Q120 ${127 + open * 1.7} 110 126Z`}\n fill=\"#6B2C25\"\n stroke=\"#7D3F36\"\n strokeWidth={1.6}\n strokeLinejoin=\"round\"\n />\n {look.glasses ? (\n <path\n d=\"M96 99a5 5 0 0 1 5-5h10a5 5 0 0 1 5 5v4a5 5 0 0 1-5 5h-10a5 5 0 0 1-5-5zM124 99a5 5 0 0 1 5-5h10a5 5 0 0 1 5 5v4a5 5 0 0 1-5 5h-10a5 5 0 0 1-5-5zM116 99.5h8\"\n stroke=\"#1B1A19\"\n strokeWidth={2}\n fill=\"rgba(255,255,255,0.06)\"\n />\n ) : null}\n {look.headset ? (\n <>\n <path\n d=\"M84 100C82 46 158 46 156 100\"\n stroke=\"#1B1D22\"\n strokeWidth={5}\n fill=\"none\"\n />\n <rect\n x={77}\n y={92}\n width={14}\n height={26}\n rx={6}\n fill=\"#24272D\"\n />\n <rect\n x={149}\n y={92}\n width={14}\n height={26}\n rx={6}\n fill=\"#24272D\"\n />\n <path\n d=\"M84 116Q90 134 108 135\"\n stroke=\"#24272D\"\n strokeWidth={3}\n strokeLinecap=\"round\"\n fill=\"none\"\n />\n </>\n ) : null}\n </g>\n </g>\n </svg>\n );\n}\n\nfunction ScreenMock({ frame, accent }: { frame: number; accent: string }) {\n const clipId = `vc-c${useId().replace(/[^a-zA-Z0-9_-]/g, \"\")}`;\n const draw = 0.62 + 0.38 * MOVE(clamp(frame / 26));\n const daily = [900, 1120, 1040, 1480, 1390, 1880, 2380, 2290];\n const days = [\"Oct 14\", \"15\", \"16\", \"17\", \"18\", \"19\", \"20\", \"21\"];\n const LX = 44;\n const cw = 664;\n const ch = 290;\n const xy = (v: number, i: number) =>\n [LX + (i / (daily.length - 1)) * cw, ch - (v / 2400) * ch] as const;\n const path = daily\n .map((v, i) => `${i ? \"L\" : \"M\"}${xy(v, i).join(\" \")}`)\n .join(\" \");\n const tip = daily.length - 1 - (1 - draw) * (daily.length - 1);\n const tipI = Math.min(daily.length - 2, Math.floor(tip));\n const [ax, ay] = xy(daily[tipI], tipI);\n const [bx, by] = xy(daily[tipI + 1], tipI + 1);\n const tipX = ax + (bx - ax) * (tip - tipI);\n const tipY = ay + (by - ay) * (tip - tipI);\n const kpis = [\n [\"Installs\", 12480, \"+18.2%\"],\n [\"Stars\", 8431, \"+1.2k\"],\n [\"Renders\", 52930, \"+31%\"],\n [\"Templates\", 24, \"+6\"],\n ] as const;\n const top = [\n [\"zoom-blur\", 0.92],\n [\"logo-wall\", 0.74],\n [\"typewriter\", 0.61],\n [\"bento-build\", 0.48],\n [\"url-bar-cta\", 0.37],\n ] as const;\n return (\n <div\n style={{\n width: 1280,\n height: 800,\n background: \"#FFFFFF\",\n color: \"#0A0A0A\",\n fontFamily,\n }}\n >\n <div\n style={{\n height: 60,\n borderBottom: \"1px solid #EBEBEB\",\n display: \"flex\",\n alignItems: \"center\",\n padding: \"0 32px\",\n gap: 28,\n fontSize: 15,\n color: \"#666\",\n }}\n >\n <span\n style={{\n fontSize: 21,\n fontWeight: 400,\n color: \"#0A0A0A\",\n letterSpacing: -0.6,\n }}\n >\n remocn\n </span>\n {[\"Overview\", \"Components\", \"Templates\", \"Analytics\"].map((n, i) => (\n <span\n key={n}\n style={{\n color: i === 0 ? \"#0A0A0A\" : \"#666\",\n fontWeight: 400,\n }}\n >\n {n}\n </span>\n ))}\n <div\n style={{\n marginLeft: \"auto\",\n width: 260,\n height: 36,\n borderRadius: 8,\n border: \"1px solid #E5E5E5\",\n background: \"#FAFAFA\",\n display: \"flex\",\n alignItems: \"center\",\n padding: \"0 12px\",\n color: \"#999\",\n }}\n >\n Search components…\n </div>\n </div>\n <div style={{ padding: \"30px 32px\" }}>\n <div style={{ fontSize: 34, fontWeight: 300, letterSpacing: -1 }}>\n Launch week\n </div>\n <div style={{ fontSize: 15, color: \"#777\", marginTop: 4 }}>\n Oct 14 – Oct 21 · all channels\n </div>\n <div style={{ display: \"flex\", gap: 16, marginTop: 24 }}>\n {kpis.map(([label, value, delta]) => (\n <div\n key={label}\n style={{\n flex: 1,\n border: \"1px solid #EBEBEB\",\n borderRadius: 12,\n padding: \"16px 18px\",\n boxShadow: \"0 1px 2px rgba(0,0,0,0.04)\",\n }}\n >\n <div style={{ fontSize: 14, color: \"#777\" }}>{label}</div>\n <div\n style={{\n display: \"flex\",\n alignItems: \"baseline\",\n gap: 10,\n marginTop: 6,\n }}\n >\n <span\n style={{\n fontSize: 30,\n fontWeight: 400,\n letterSpacing: -0.8,\n fontVariantNumeric: \"tabular-nums\",\n }}\n >\n {Math.round(value * (0.9 + 0.1 * draw)).toLocaleString(\n \"en-US\",\n )}\n </span>\n <span\n style={{ fontSize: 14, color: \"#1A7F45\", fontWeight: 400 }}\n >\n {delta}\n </span>\n </div>\n </div>\n ))}\n </div>\n <div style={{ display: \"flex\", gap: 16, marginTop: 16 }}>\n <div\n style={{\n width: 760,\n border: \"1px solid #EBEBEB\",\n borderRadius: 12,\n padding: \"18px 24px\",\n }}\n >\n <div style={{ display: \"flex\", alignItems: \"baseline\", gap: 10 }}>\n <span style={{ fontSize: 16, fontWeight: 400 }}>\n Daily installs\n </span>\n <span style={{ fontSize: 13, color: \"#888\" }}>\n Peak 2,380 on Oct 20\n </span>\n </div>\n <svg\n width={LX + cw}\n height={ch + 24}\n style={{ marginTop: 16, overflow: \"visible\", fontFamily }}\n >\n <defs>\n <clipPath id={clipId}>\n <rect x={0} y={-20} width={tipX} height={ch + 40} />\n </clipPath>\n </defs>\n {[2400, 1600, 800, 0].map((v, g) => (\n <g key={v}>\n <line\n x1={LX}\n x2={LX + cw}\n y1={(ch / 3) * g}\n y2={(ch / 3) * g}\n stroke={v ? \"#F0F0F0\" : \"#E2E2E2\"}\n />\n <text\n x={LX - 10}\n y={(ch / 3) * g + 4}\n textAnchor=\"end\"\n fontSize={12}\n fill=\"#999\"\n >\n {v ? `${v / 1000}k` : \"0\"}\n </text>\n </g>\n ))}\n {days.map((d, i) => (\n <text\n key={d}\n x={xy(0, i)[0]}\n y={ch + 20}\n textAnchor={i ? \"middle\" : \"start\"}\n fontSize={12}\n fill=\"#999\"\n >\n {d}\n </text>\n ))}\n <g clipPath={`url(#${clipId})`}>\n <path\n d={`${path} L${LX + cw} ${ch} L${LX} ${ch} Z`}\n fill={withAlpha(accent, 0.12)}\n />\n <path\n d={path}\n fill=\"none\"\n stroke={accent}\n strokeWidth={3}\n strokeLinejoin=\"round\"\n />\n </g>\n <circle\n cx={tipX}\n cy={tipY}\n r={5}\n fill=\"#FFFFFF\"\n stroke={accent}\n strokeWidth={3}\n />\n </svg>\n </div>\n <div\n style={{\n flex: 1,\n border: \"1px solid #EBEBEB\",\n borderRadius: 12,\n padding: \"18px 22px\",\n }}\n >\n <div style={{ fontSize: 16, fontWeight: 400, marginBottom: 14 }}>\n Top components\n </div>\n {top.map(([name, v], i) => (\n <div key={name} style={{ marginBottom: 14 }}>\n <div\n style={{\n fontSize: 14,\n display: \"flex\",\n justifyContent: \"space-between\",\n color: \"#333\",\n }}\n >\n <span>{name}</span>\n <span style={{ color: \"#888\" }}>\n {Math.round(v * 4200 * (0.85 + 0.15 * draw)).toLocaleString(\n \"en-US\",\n )}\n </span>\n </div>\n <div\n style={{\n height: 6,\n borderRadius: 3,\n background: \"#F2F2F2\",\n marginTop: 6,\n }}\n >\n <div\n style={{\n height: 6,\n borderRadius: 3,\n width: `${v * 100 * clamp(draw * 1.4 - i * 0.08)}%`,\n background: i === 0 ? accent : withAlpha(accent, 0.45),\n }}\n />\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n </div>\n );\n}\n\nfunction AudioBadge({\n level,\n muted,\n frame,\n seed,\n accent,\n size,\n}: {\n level: number;\n muted?: boolean;\n frame: number;\n seed: number;\n accent: string;\n size: number;\n}) {\n const bars = [0, 1, 2].map((k) => {\n const v =\n wave(frame + seed * 7, k) * (0.55 + 0.45 * wave(frame * 0.6, k + 3));\n return 0.2 + level * v * 0.8;\n });\n const showMute = muted && level < 0.05;\n if (!showMute && level < 0.02) return null;\n return (\n <div\n style={{\n width: size,\n height: size,\n borderRadius: \"50%\",\n background: showMute ? \"rgba(14,14,18,0.5)\" : accent,\n backdropFilter: showMute ? \"blur(8px)\" : undefined,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: size * 0.1,\n opacity: showMute ? 1 : clamp(level * 2),\n }}\n >\n {showMute ? (\n <Icon name=\"micOff\" size={size * 0.56} color=\"#FFFFFF\" />\n ) : (\n bars.map((b, k) => (\n <div\n key={k}\n style={{\n width: size * 0.12,\n height: size * 0.52 * b,\n minHeight: size * 0.12,\n borderRadius: size,\n background: \"#FFFFFF\",\n }}\n />\n ))\n )}\n </div>\n );\n}\n\nfunction Tile({\n p,\n seed,\n r,\n level,\n appear,\n frame,\n accent,\n}: {\n p: CallParticipant;\n seed: number;\n r: Rect;\n level: number;\n appear: number;\n frame: number;\n accent: string;\n}) {\n const room = ROOMS[seed % ROOMS.length];\n const blur = Math.max(5, r.h * 0.05);\n const small = r.h < 150;\n const radius = small ? 14 : 18;\n const avatar = clamp(Math.min(r.w, r.h) * 0.34, 40, 128);\n const pulse = level * (0.55 + 0.45 * wave(frame, seed));\n const blob = (\n x: number,\n y: number,\n bw: number,\n bh: number,\n bg: string,\n k: number,\n br: string | number = \"50%\",\n ): React.CSSProperties => ({\n position: \"absolute\",\n left: `${x * 100}%`,\n top: `${y * 100}%`,\n width: bw,\n height: bh,\n borderRadius: br,\n background: bg,\n filter: `blur(${blur * k}px)`,\n });\n return (\n <div\n style={{\n position: \"absolute\",\n left: r.x,\n top: r.y,\n width: r.w,\n height: r.h,\n borderRadius: radius,\n overflow: \"hidden\",\n opacity: clamp(appear * 1.4),\n transform: `translateY(${(1 - appear) * 18}px) scale(${0.94 + 0.06 * appear})`,\n boxShadow: \"0 24px 50px -24px rgba(0,0,0,0.7)\",\n background: p.camera\n ? `linear-gradient(170deg, ${mix(p.color, \"#ECE7DF\", 0.74)} 0%, ${mix(p.color, \"#5E5750\", 0.72)} 100%)`\n : `linear-gradient(170deg, ${mix(p.color, \"#191A20\", 0.8)} 0%, #15161B 100%)`,\n }}\n >\n {p.camera ? (\n <>\n <div\n style={blob(\n room.win[0],\n room.win[1],\n r.w * room.win[2],\n r.h * room.win[3],\n \"rgba(255,255,255,0.5)\",\n 1,\n r.h * 0.04,\n )}\n />\n <div\n style={{\n ...blob(\n room.lamp[0],\n room.lamp[1],\n r.h * 0.3,\n r.h * 0.3,\n \"rgba(255,214,160,0.5)\",\n 1.4,\n ),\n marginLeft: -r.h * 0.15,\n }}\n />\n <div\n style={{\n ...blob(\n room.plant[0],\n room.plant[1],\n r.h * 0.22,\n r.h * 0.5,\n \"rgba(28,58,38,0.5)\",\n 1,\n \"45% 45% 20% 20%\",\n ),\n marginLeft: -r.h * 0.11,\n }}\n />\n <Person\n w={r.w}\n h={r.h}\n color={p.color}\n seed={seed}\n frame={frame}\n level={level}\n />\n </>\n ) : (\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"46%\",\n width: avatar,\n height: avatar,\n transform: \"translate(-50%, -50%)\",\n borderRadius: \"50%\",\n background: mix(p.color, \"#191A20\", 0.35),\n boxShadow: `0 0 0 ${pulse * avatar * 0.08}px ${withAlpha(p.color, 0.35)}, inset 0 1px 0 rgba(255,255,255,0.12)`,\n color: \"#FFFFFF\",\n fontSize: avatar * 0.4,\n fontWeight: 300,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n {initials(p.name).slice(0, 1)}\n </div>\n )}\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n bottom: 0,\n height: small ? 48 : 64,\n background:\n \"linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.12) 40%, rgba(0,0,0,0.42) 100%)\",\n }}\n />\n <div\n style={{\n position: \"absolute\",\n right: small ? 8 : 12,\n top: small ? 8 : 12,\n }}\n >\n <AudioBadge\n level={level}\n muted={p.muted}\n frame={frame}\n seed={seed}\n accent={accent}\n size={small ? 26 : 30}\n />\n </div>\n <div\n style={{\n position: \"absolute\",\n left: small ? 10 : 14,\n bottom: small ? 8 : 12,\n right: 12,\n color: \"#FFFFFF\",\n fontSize: 16,\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n }}\n >\n {p.name}\n </div>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n borderRadius: radius,\n boxShadow: \"inset 0 0 0 1px rgba(255,255,255,0.1)\",\n }}\n />\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n borderRadius: radius,\n boxShadow: `inset 0 0 0 2.5px ${accent}`,\n opacity: clamp(level * 1.6),\n }}\n />\n </div>\n );\n}\n\nconst TRAY: { icon: string; color: string }[] = [\n { icon: \"heart\", color: \"#E0566F\" },\n { icon: \"thumb\", color: \"#4D74F0\" },\n { icon: \"star\", color: \"#E3A13A\" },\n { icon: \"hand\", color: \"#E3A13A\" },\n { icon: \"check\", color: \"#3FA877\" },\n];\nconst FLOATS = [\n { at: 0, k: 2, who: 2, x: 0.04 },\n { at: 7, k: 1, who: 4, x: 0.3 },\n { at: 12, k: 0, who: 0, x: 0.56 },\n { at: 20, k: 2, who: 3, x: 0.16 },\n { at: 27, k: 1, who: 5, x: 0.44 },\n { at: 33, k: 3, who: 0, x: 0.02 },\n { at: 40, k: 4, who: 2, x: 0.62 },\n { at: 48, k: 2, who: 4, x: 0.24 },\n { at: 56, k: 0, who: 3, x: 0.5 },\n];\n\nfunction FloatingReaction({\n local,\n k,\n name,\n x,\n bottom,\n rise,\n seed,\n fps,\n}: {\n local: number;\n k: number;\n name: string;\n x: number;\n bottom: number;\n rise: number;\n seed: number;\n fps: number;\n}) {\n if (local < 0 || local > 84) return null;\n const t = ENTER_SOFT(clamp(local / 84));\n const pop = spring({ frame: local, fps, config: CHIP });\n const fade =\n interpolate(local, [0, 4], [0, 1], { extrapolateRight: \"clamp\" }) *\n (1 - interpolate(local, [64, 84], [0, 1], { ...CL, easing: EXIT }));\n const y = bottom - 30 - t * rise;\n const sway = Math.sin(local * 0.11 + seed * 1.7) * 14 * t;\n const r = TRAY[k % TRAY.length];\n return (\n <div\n style={{\n position: \"absolute\",\n left: x + sway,\n top: y,\n opacity: fade,\n display: \"flex\",\n alignItems: \"center\",\n gap: 8,\n padding: \"5px 12px 5px 5px\",\n borderRadius: 999,\n background: \"rgba(16,16,22,0.62)\",\n backdropFilter: \"blur(12px)\",\n boxShadow: \"inset 0 0 0 1px rgba(255,255,255,0.1)\",\n transform: `scale(${0.6 + 0.4 * pop})`,\n transformOrigin: \"20px 50%\",\n }}\n >\n <div\n style={{\n width: 34,\n height: 34,\n borderRadius: 17,\n background: r.color,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <Icon name={r.icon} size={18} color=\"#FFFFFF\" />\n </div>\n <span style={{ color: INK, fontSize: 16, whiteSpace: \"nowrap\" }}>\n {name}\n </span>\n </div>\n );\n}\n\nexport function VideoCall({\n participants = DEFAULT_PARTICIPANTS,\n meetingCode = \"kqv-mnrt-zpa\",\n time = \"10:42 AM\",\n presenter = 1,\n present = true,\n src,\n children,\n accent = \"#3B5BFD\",\n speed = 1,\n ground,\n groundParams,\n}: VideoCallProps) {\n const frame = useCurrentFrame() * speed;\n const { width, height, fps, durationInFrames } = useVideoConfig();\n const tall = height > width * 1.2;\n const u = tall ? width / 640 : Math.min(width / 1280, height / 720);\n const dw = width / u;\n const dh = height / u;\n const people = participants.slice(0, 6);\n const n = people.length;\n const pi = clamp(presenter, 0, n - 1);\n\n const area: Rect = tall\n ? { x: 32, y: 104, w: 576, h: 840 }\n : { x: 140, y: 40, w: 1000, h: 560 };\n const S: Stage = {\n area,\n gap: 10,\n tall,\n stripCols: 3,\n stripTop: area.y + 420,\n main: tall\n ? { x: area.x, y: area.y, w: area.w, h: 410 }\n : { x: area.x, y: area.y, w: area.w - 190 - 10, h: area.h },\n };\n const ctrlY = tall ? area.y + area.h + 40 : area.y + area.h + 28;\n\n const reflow = JOINS.slice(0, n).map((at) =>\n spring({ frame: frame - at, fps, config: CARD }),\n );\n const appear = JOINS.slice(0, n).map((at) =>\n spring({ frame: frame - at - 4, fps, config: CARD }),\n );\n const pres = people.map((_, i) =>\n present\n ? interpolate(frame, [PRESENT_AT + i, PRESENT_AT + i + 10], [0, 1], {\n ...CL,\n easing: MOVE,\n })\n : 0,\n );\n const vis = pres.map((t) => (t < 0.5 ? 1 - t * 2 : t * 2 - 1));\n const rects = people.map((_, i) => {\n let r = gridRect(S, Math.max(1, i + 1), i);\n for (let k = 2; k <= n; k++) {\n r = addDelta(\n r,\n gridRect(S, Math.max(k - 1, i + 1), i),\n gridRect(S, Math.max(k, i + 1), i),\n reflow[k - 1],\n );\n }\n return pres[i] < 0.5 ? r : stripRect(S, n, i);\n });\n\n const sched = [\n { at: 30, i: 1 },\n { at: 66, i: 0 },\n { at: 100, i: 3 },\n { at: 126, i: 4 },\n { at: PRESENT_AT + 6, i: pi },\n ].filter((s) => s.i < n);\n const levels = people.map((_, i) =>\n sched.reduce((acc, s, k) => {\n if (s.i !== i) return acc;\n const end = sched[k + 1]?.at ?? 1e6;\n return Math.max(\n acc,\n interpolate(frame, [s.at, s.at + 5, end - 4, end], [0, 1, 1, 0], CL),\n );\n }, 0),\n );\n const screenIn = present\n ? spring({ frame: frame - PRESENT_AT - 3, fps, config: HEAVY })\n : 0;\n const trayIn = spring({ frame: frame - TRAY_AT, fps, config: CHIP });\n const trayOut = interpolate(frame, [TRAY_AT + 52, TRAY_AT + 60], [0, 1], {\n ...CL,\n easing: EXIT,\n });\n const joined = JOINS.slice(0, n).filter((at) => frame >= at + 6).length;\n const lastJoin = Math.max(\n ...JOINS.slice(0, n).filter((at) => frame >= at + 6),\n );\n const badgePop = spring({ frame: frame - lastJoin - 6, fps, config: CHIP });\n const ui = spring({ frame: frame - 6, fps, config: HEAVY });\n const push = interpolate(frame, [0, durationInFrames], [1, 1.03], CL);\n\n const M = S.main;\n const fit = Math.min((M.w - 32) / 1280, (M.h - 64) / 800);\n const screenW = 1280 * fit;\n const screenH = 800 * fit;\n\n const buttons = [\"mic\", \"cam\", \"present\", \"react\", \"hand\", \"more\"];\n const btnSize = 50;\n const barW = buttons.length * btnSize + (buttons.length - 1) * 10 + 10 + 104;\n const reactX =\n dw / 2 - barW / 2 + buttons.indexOf(\"react\") * (btnSize + 10) + 25;\n const trayW = TRAY.length * 44 + (TRAY.length - 1) * 6 + 16;\n const floatBottom = tall ? area.y + area.h : area.y + area.h;\n const floatLeft = area.x + 16;\n\n return (\n <AbsoluteFill\n style={{\n fontFamily,\n overflow: \"hidden\",\n WebkitFontSmoothing: \"antialiased\",\n }}\n >\n <GshGround\n preset={ground ?? \"velvet-hour\"}\n params={groundParams}\n timeOffset={6}\n timeScale={0.35}\n />\n <AbsoluteFill\n style={{\n background:\n \"radial-gradient(75% 85% at 50% 45%, rgba(4,5,12,0.42), rgba(4,5,12,0.1))\",\n }}\n />\n <div\n style={{\n position: \"absolute\",\n left: 0,\n top: 0,\n width: dw,\n height: dh,\n transform: `scale(${u})`,\n transformOrigin: \"0 0\",\n color: INK,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: `scale(${push})`,\n transformOrigin: \"50% 45%\",\n }}\n >\n {tall ? (\n <div\n style={{\n position: \"absolute\",\n left: area.x,\n top: 36,\n width: area.w,\n display: \"flex\",\n alignItems: \"baseline\",\n gap: 14,\n opacity: ui,\n }}\n >\n <span\n style={{\n fontSize: 30,\n fontWeight: 300,\n letterSpacing: \"-0.02em\",\n }}\n >\n Launch sync\n </span>\n <span\n style={{\n marginLeft: \"auto\",\n fontSize: 18,\n color: \"rgba(241,241,244,0.6)\",\n fontVariantNumeric: \"tabular-nums\",\n }}\n >\n {joined} in call\n </span>\n </div>\n ) : null}\n {present && screenIn > 0.001 ? (\n <div\n style={{\n position: \"absolute\",\n left: M.x,\n top: M.y,\n width: M.w,\n height: M.h,\n borderRadius: 18,\n background: \"rgba(14,15,20,0.78)\",\n backdropFilter: \"blur(20px)\",\n boxShadow:\n \"inset 0 0 0 1px rgba(255,255,255,0.09), 0 30px 70px -30px rgba(0,0,0,0.8)\",\n overflow: \"hidden\",\n opacity: clamp(screenIn * 1.6),\n transform: `translateY(${(1 - screenIn) * 24}px) scale(${0.97 + 0.03 * screenIn})`,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: (M.w - screenW) / 2,\n top: 16,\n width: screenW,\n height: screenH,\n borderRadius: 8,\n overflow: \"hidden\",\n boxShadow: \"0 0 0 1px rgba(255,255,255,0.08)\",\n }}\n >\n {children ? (\n children\n ) : src ? (\n <Img\n src={src}\n style={{\n width: \"100%\",\n height: \"100%\",\n objectFit: \"cover\",\n }}\n />\n ) : (\n <div\n style={{\n transform: `scale(${fit})`,\n transformOrigin: \"0 0\",\n }}\n >\n <ScreenMock\n frame={frame - PRESENT_AT - 8}\n accent={accent}\n />\n </div>\n )}\n </div>\n <div\n style={{\n position: \"absolute\",\n left: 18,\n bottom: 14,\n display: \"flex\",\n alignItems: \"center\",\n gap: 10,\n color: INK,\n fontSize: 16,\n }}\n >\n <Icon name=\"present\" size={20} color={INK} />\n {people[pi]?.name} is presenting\n </div>\n </div>\n ) : null}\n\n {people.map((p, i) => (\n <Tile\n key={p.name}\n p={p}\n seed={i}\n r={rects[i]}\n level={levels[i]}\n appear={appear[i] * vis[i]}\n frame={frame}\n accent={accent}\n />\n ))}\n\n {FLOATS.map((r, k) => (\n <FloatingReaction\n key={`${r.at}-${r.who}`}\n local={frame - TRAY_AT - 6 - r.at}\n k={r.k}\n name={people[r.who % n]?.name.split(\" \")[0] ?? \"\"}\n x={floatLeft + r.x * (tall ? area.w : M.w)}\n bottom={floatBottom}\n rise={(tall ? 520 : 400) * (0.82 + 0.12 * (k % 3))}\n seed={k}\n fps={fps}\n />\n ))}\n <div\n style={{\n position: \"absolute\",\n left: reactX,\n top: ctrlY - 70,\n transform: `translateX(-50%) translateY(${(1 - trayIn) * 16}px) scale(${0.85 + 0.15 * trayIn})`,\n transformOrigin: \"50% 100%\",\n opacity: clamp(trayIn * 1.5) * (1 - trayOut),\n display: \"flex\",\n gap: 6,\n width: trayW,\n boxSizing: \"border-box\",\n padding: 8,\n borderRadius: 999,\n background: \"rgba(18,18,24,0.72)\",\n backdropFilter: \"blur(16px)\",\n boxShadow:\n \"inset 0 0 0 1px rgba(255,255,255,0.1), 0 16px 40px -16px rgba(0,0,0,0.7)\",\n }}\n >\n {TRAY.map((t, k) => {\n const sent = FLOATS.find(\n (f) => f.who === 0 && f.k === k && frame >= TRAY_AT + 6 + f.at,\n );\n const b = sent\n ? spring({\n frame: frame - (TRAY_AT + 6 + sent.at),\n fps,\n config: CHIP,\n })\n : 1;\n return (\n <div\n key={t.icon}\n style={{\n width: 44,\n height: 44,\n borderRadius: 22,\n background: withAlpha(t.color, 0.18),\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n transform: `scale(${(sent ? 1.2 - 0.2 * b : 1) * interpolate(trayIn, [0, 1], [0.8 + k * 0.03, 1])})`,\n }}\n >\n <Icon\n name={t.icon}\n size={22}\n color={mix(t.color, \"#FFFFFF\", 0.35)}\n />\n </div>\n );\n })}\n </div>\n\n {!tall ? (\n <div\n style={{\n position: \"absolute\",\n left: area.x,\n top: ctrlY,\n height: btnSize,\n display: \"flex\",\n alignItems: \"center\",\n gap: 12,\n fontSize: 17,\n fontVariantNumeric: \"tabular-nums\",\n opacity: ui,\n }}\n >\n <span>{time}</span>\n <span style={{ color: \"rgba(241,241,244,0.35)\" }}>·</span>\n <span style={{ color: \"rgba(241,241,244,0.6)\" }}>\n {meetingCode}\n </span>\n </div>\n ) : (\n <div\n style={{\n position: \"absolute\",\n left: 0,\n width: dw,\n top: ctrlY + btnSize + 22,\n textAlign: \"center\",\n fontSize: 18,\n color: \"rgba(241,241,244,0.6)\",\n fontVariantNumeric: \"tabular-nums\",\n opacity: ui,\n }}\n >\n {time} · {meetingCode}\n </div>\n )}\n <div\n style={{\n position: \"absolute\",\n left: dw / 2 - barW / 2,\n top: ctrlY,\n display: \"flex\",\n gap: 10,\n opacity: ui,\n transform: `translateY(${(1 - ui) * 24}px)`,\n }}\n >\n {buttons.map((b) => {\n const on = b === \"react\" ? clamp(trayIn) * (1 - trayOut) : 0;\n return (\n <div\n key={b}\n style={{\n width: btnSize,\n height: btnSize,\n borderRadius: 999,\n background:\n on > 0.01\n ? mix(\"#2A2B33\", \"#F1F1F4\", on)\n : \"rgba(255,255,255,0.1)\",\n backdropFilter: \"blur(12px)\",\n boxShadow: \"inset 0 0 0 1px rgba(255,255,255,0.1)\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <Icon name={b} color={on > 0.5 ? \"#15161B\" : INK} />\n </div>\n );\n })}\n <div\n style={{\n marginLeft: 10,\n width: 104,\n height: btnSize,\n borderRadius: 999,\n background: \"#D9443A\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontSize: 17,\n color: \"#FFFFFF\",\n }}\n >\n Leave\n </div>\n </div>\n {!tall ? (\n <div\n style={{\n position: \"absolute\",\n left: area.x + area.w - 140,\n width: 140,\n top: ctrlY,\n height: btnSize,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n gap: 22,\n opacity: ui,\n }}\n >\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 8,\n fontSize: 17,\n fontVariantNumeric: \"tabular-nums\",\n }}\n >\n <Icon name=\"people\" />\n <span\n style={{\n display: \"inline-block\",\n transform: `scale(${0.8 + 0.2 * badgePop})`,\n }}\n >\n {joined}\n </span>\n </div>\n <Icon name=\"chat\" />\n </div>\n ) : null}\n </div>\n </div>\n </AbsoluteFill>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/video-call.tsx"
}
],
"type": "registry:component"
}