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": "prompt-to-app",
"title": "Prompt to App",
"description": "A prompt types into a chat and a site preview builds as files are written.",
"dependencies": ["remotion", "@remotion/google-fonts"],
"registryDependencies": ["@remocn/gsh"],
"files": [
{
"path": "registry/remocn/prompt-to-app/index.tsx",
"content": "\"use client\";\n\nimport { loadFont } from \"@remotion/google-fonts/Geist\";\nimport { loadFont as loadMono } from \"@remotion/google-fonts/GeistMono\";\nimport { loadFont as loadSerif } from \"@remotion/google-fonts/InstrumentSerif\";\nimport type React from \"react\";\nimport { useId } from \"react\";\nimport {\n AbsoluteFill,\n Easing,\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});\nconst { fontFamily: serif } = loadSerif(\"normal\", {\n weights: [\"400\"],\n subsets: [\"latin\"],\n});\nconst { fontFamily: mono } = loadMono(\"normal\", {\n weights: [\"400\"],\n subsets: [\"latin\"],\n});\n\nexport interface AppPour {\n name: string;\n origin: string;\n price: string;\n tone: [string, string];\n}\n\nexport interface PromptToAppProps {\n prompt?: string;\n plan?: string;\n files?: string[];\n doneMessage?: string;\n projectName?: string;\n deployUrl?: string;\n siteName?: string;\n siteEyebrow?: string;\n siteHeadline?: string;\n siteBody?: string;\n siteLinks?: string[];\n pours?: AppPour[];\n children?: React.ReactNode;\n theme?: \"light\" | \"dark\";\n accent?: string;\n speed?: number;\n ground?: GshPresetId;\n groundParams?: Partial<GradientParams>;\n}\n\nconst DEFAULT_POURS: AppPour[] = [\n {\n name: \"Skin-contact Riesling\",\n origin: \"Pfalz, DE · 2022\",\n price: \"14 / 58\",\n tone: [\"#E9B35A\", \"#C9792E\"],\n },\n {\n name: \"Carbonic Gamay\",\n origin: \"Beaujolais, FR · 2023\",\n price: \"13 / 52\",\n tone: [\"#9A2C3E\", \"#5E1424\"],\n },\n {\n name: \"Pét-nat Rosé\",\n origin: \"Sonoma, CA · 2023\",\n price: \"15 / 60\",\n tone: [\"#F2B8A6\", \"#D97C6B\"],\n },\n];\n\nconst PVW = 784;\nconst PV_BAR = 52;\nconst DEPLOY = { x: PVW - 12 - 96, y: 11, w: 96, h: 30 };\n\ninterface Layout {\n w: number;\n h: number;\n chat: { x: number; y: number; w: number; h: number; s: number };\n pv: { x: number; y: number; s: number };\n pvH: number;\n cursorFrom: { x: number; y: number };\n}\n\nconst LAYOUT_WIDE: Layout = {\n w: 1280,\n h: 720,\n chat: { x: 72, y: 75, w: 408, h: 620, s: 0.92 },\n pv: { x: 487, y: 75, s: 0.92 },\n pvH: 620,\n cursorFrom: { x: 330, y: 610 },\n};\n\nconst LAYOUT_TALL: Layout = {\n w: 1080,\n h: 1920,\n chat: { x: 82, y: 150, w: 560, h: 540, s: 1.6375 },\n pv: { x: 82, y: 1080, s: 1.17 },\n pvH: 600,\n cursorFrom: { x: 620, y: 930 },\n};\n\nconst SITE = {\n bg: \"#FBF7F1\",\n ink: \"#2A211C\",\n muted: \"#7A6A5E\",\n line: \"rgba(42,33,28,0.1)\",\n brand: \"#B4532A\",\n};\n\nconst clampX = { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" } as const;\nconst enterE = Easing.bezier(0.22, 1, 0.36, 1);\nconst exitE = Easing.bezier(0.55, 0, 1, 0.45);\nconst camE = Easing.bezier(0.87, 0, 0.13, 1);\nconst tween = (f: number, a: number, b: number, easing = enterE) =>\n interpolate(f, [a, b], [0, 1], { ...clampX, easing });\n\ntype SpringCfg = { mass?: number; damping: number; stiffness?: number };\nconst HEAVY: SpringCfg = { mass: 1, damping: 26, stiffness: 120 };\nconst CARD: SpringCfg = { mass: 0.8, damping: 18, stiffness: 160 };\nconst CHIP: SpringCfg = { mass: 0.5, damping: 12, stiffness: 200 };\nconst MORPH: SpringCfg = { damping: 200 };\n\nconst REMOCN_R_PATH =\n \"M 0.01 0.81 C 0.01 1.73, 0.36 2.79, 1.09 4.13 C 4.91 11.04, 13.45 17.16, 21.7 18.9 C 22.94 19.16, 23.18 19.16, 51.39 19.27 C 76.07 19.36, 80.02 19.4, 81.32 19.57 C 89.89 20.69, 96.2 24.68, 99.38 31.01 C 103.19 38.56, 102.53 50.1, 97.91 57.07 C 94.66 61.96, 89.68 64.99, 83.26 66 C 82.81 66.07, 70.18 66.83, 55.2 67.69 C 24.82 69.43, 27.03 69.23, 24.18 70.4 C 19.9 72.15, 14.84 75.7, 10.65 79.89 C 4.86 85.68, 1.3 91.91, 0.25 98.13 C 0.12 98.85, 0.08 103.13, 0.04 116.66 L 0 134.26 9.5 134.26 L 19 134.26 19.05 119.41 C 19.1 103.27, 19.08 103.82, 19.82 101.04 C 21.79 93.65, 27.86 88.75, 36.45 87.63 C 37.23 87.53, 39.41 87.5, 43.57 87.53 C 50.12 87.59, 50.75 87.65, 53.22 88.45 C 56.61 89.56, 59.67 91.86, 62.02 95.07 C 62.52 95.76, 69.35 103.85, 77.2 113.07 C 85.04 122.28, 91.63 130.04, 91.85 130.32 C 92.07 130.59, 92.5 131.34, 92.82 131.97 C 93.52 133.35, 94.11 133.93, 95.06 134.13 C 95.5 134.23, 98.97 134.26, 106.36 134.23 L 117.01 134.19 100.82 113.07 C 91.91 101.45, 84.52 91.78, 84.39 91.57 C 83.36 89.89, 83.66 87.53, 85.09 86 C 85.79 85.25, 86.36 84.94, 88.07 84.38 C 96.18 81.72, 104.15 76.62, 109.97 70.36 C 120.59 58.93, 124.06 44.32, 119.44 30.43 C 114.59 15.81, 101.93 4.02, 87.64 0.83 C 83.93 0.01, 88.09 0.08, 41.85 0.04 L 0.01 0 0.01 0.81 Z\";\n\nfunction RemocnR({ height, color }: { height: number; color: string }) {\n return (\n <svg\n viewBox=\"0 0 124.06 134.26\"\n height={height}\n width={(height * 124.06) / 134.26}\n style={{ display: \"block\", flexShrink: 0 }}\n aria-hidden\n >\n <path fill={color} d={REMOCN_R_PATH} />\n </svg>\n );\n}\n\nfunction withAlpha(hex: string, alpha: number) {\n const h = hex.replace(\"#\", \"\");\n const full = h.length === 3 ? h.replace(/./g, (c) => c + c) : h.slice(0, 6);\n if (!/^[0-9a-fA-F]{6}$/.test(full)) return hex;\n const n = Number.parseInt(full, 16);\n return `rgba(${(n >> 16) & 255}, ${(n >> 8) & 255}, ${n & 255}, ${alpha})`;\n}\n\nconst T = {\n type: 12,\n cps: 2.3,\n};\n\nfunction timeline(promptLen: number, planWords: number) {\n const typeEnd = T.type + promptLen / T.cps;\n const send = typeEnd + 6;\n const think = send + 6;\n const planAt = think + 16;\n const planEnd = planAt + planWords * 1.3;\n const file = (i: number) => {\n const s = planEnd + 4 + i * 24;\n return { start: s, done: s + 20 };\n };\n const doneMsg = file(3).done + 4;\n const cursorIn = doneMsg + 4;\n const deployClick = cursorIn + 22;\n const deployed = deployClick + 24;\n return {\n typeEnd,\n send,\n think,\n planAt,\n planEnd,\n file,\n doneMsg,\n cursorIn,\n deployClick,\n deployed,\n end: deployed + 40,\n };\n}\n\nexport function promptToAppDuration(\n prompt = DEFAULT_PROMPT,\n plan = DEFAULT_PLAN,\n) {\n return Math.ceil(timeline(prompt.length, plan.split(\" \").length).end);\n}\n\nconst DEFAULT_PROMPT =\n \"Build a landing page for Fernway, a neighborhood wine bar. Warm and editorial, with tonight’s pours and a booking button.\";\nconst DEFAULT_PLAN =\n \"I’ll build a one-page site for Fernway: a sticky nav, an editorial hero with a booking CTA, and a card grid for tonight’s pours.\";\n\ninterface Pal {\n base: string;\n scrim: string;\n win: string;\n border: string;\n line: string;\n text: string;\n muted: string;\n faint: string;\n bubble: string;\n field: string;\n well: string;\n green: string;\n shadow: string;\n pop: string;\n popShadow: string;\n dark: boolean;\n}\n\nfunction palette(theme: \"light\" | \"dark\"): Pal {\n return theme === \"dark\"\n ? {\n base: \"#0B0907\",\n scrim: \"rgba(8,6,5,0.28)\",\n win: \"#111113\",\n border: \"rgba(255,255,255,0.1)\",\n line: \"rgba(255,255,255,0.07)\",\n text: \"#EDEDEF\",\n muted: \"#A4A5AB\",\n faint: \"#707178\",\n bubble: \"#1C1C1F\",\n field: \"#161618\",\n well: \"#1A1A1D\",\n green: \"#3DD68C\",\n shadow:\n \"inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(255,255,255,0.08), 0 30px 80px -20px rgba(0,0,0,0.7)\",\n pop: \"#1A1A1D\",\n popShadow:\n \"inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(255,255,255,0.1), 0 18px 40px -8px rgba(0,0,0,0.6)\",\n dark: true,\n }\n : {\n base: \"#EEF0F5\",\n scrim: \"rgba(246,246,248,0.22)\",\n win: \"#FFFFFF\",\n border: \"rgba(17,19,24,0.1)\",\n line: \"rgba(17,19,24,0.07)\",\n text: \"#18181B\",\n muted: \"#5F6168\",\n faint: \"#8E9096\",\n bubble: \"#F3F3F5\",\n field: \"#FFFFFF\",\n well: \"#F3F3F5\",\n green: \"#16A34A\",\n shadow:\n \"0 0 0 1px rgba(17,19,24,0.06), 0 2px 4px rgba(17,19,24,0.04), 0 28px 64px -18px rgba(30,34,60,0.28)\",\n pop: \"#FFFFFF\",\n popShadow:\n \"0 0 0 1px rgba(17,19,24,0.08), 0 4px 8px rgba(17,19,24,0.04), 0 18px 40px -8px rgba(17,19,24,0.2)\",\n dark: false,\n };\n}\n\nconst ICONS = {\n arrowUp: \"M12 19V5M5.5 11.5 12 5l6.5 6.5\",\n plus: \"M12 5v14M5 12h14\",\n paperclip:\n \"M20.5 11.5 12.6 19.4a5 5 0 0 1-7.1-7.1l8.3-8.3a3.3 3.3 0 0 1 4.7 4.7l-8.3 8.3a1.7 1.7 0 0 1-2.4-2.4l7.6-7.6\",\n file: \"M14 3H6.5A1.5 1.5 0 0 0 5 4.5v15A1.5 1.5 0 0 0 6.5 21h11a1.5 1.5 0 0 0 1.5-1.5V8zM14 3v5h5\",\n check: \"M20 6.5 9.5 17 4 11.5\",\n refresh: \"M20 11a8 8 0 1 0-2.3 5.7M20 4.5V11h-6.5\",\n monitor: \"M3.5 5h17v11h-17zM8.5 20h7M12 16v4\",\n phoneDev:\n \"M8 3h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zM11 18h2\",\n external:\n \"M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5\",\n lock: \"M7 11V8a5 5 0 0 1 10 0v3M5.5 11h13v9.5h-13z\",\n chevDown: \"M6 9l6 6 6-6\",\n chevRight: \"M9 6l6 6-6 6\",\n rocket:\n \"M5 15c-1.5 1.3-2 5-2 5s3.7-.5 5-2c.7-.8.7-2.1-.1-2.9a2.2 2.2 0 0 0-2.9-.1zM12 15l-3-3a22 22 0 0 1 2-4A12.9 12.9 0 0 1 22 2c0 2.7-.8 7.5-6 11a22.4 22.4 0 0 1-4 2zM9 12H4s.6-3 2-4c1.6-1.1 5 0 5 0M12 15v5s3-.6 4-2c1.1-1.6 0-5 0-5\",\n share: \"M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7M16 6l-4-4-4 4M12 2v13\",\n code: \"M16 18l6-6-6-6M8 6l-6 6 6 6\",\n eye: \"M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z\",\n arrowRight: \"M5 12h14M13 6l6 6-6 6\",\n} as const;\ntype IconName = keyof typeof ICONS;\n\nfunction Icon({\n name,\n color,\n size = 16,\n stroke = 1.75,\n}: {\n name: IconName;\n color: string;\n size?: number;\n stroke?: number;\n}) {\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n style={{ flexShrink: 0, display: \"block\" }}\n >\n <path\n d={ICONS[name]}\n fill=\"none\"\n stroke={color}\n strokeWidth={stroke}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction Spinner({\n color,\n size,\n frame,\n}: {\n color: string;\n size: number;\n frame: number;\n}) {\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n style={{ display: \"block\", transform: `rotate(${frame * 22}deg)` }}\n >\n <circle\n cx={12}\n cy={12}\n r={9}\n fill=\"none\"\n stroke={color}\n strokeOpacity={0.2}\n strokeWidth={2.5}\n />\n <path\n d=\"M12 3a9 9 0 0 1 9 9\"\n fill=\"none\"\n stroke={color}\n strokeWidth={2.5}\n strokeLinecap=\"round\"\n />\n </svg>\n );\n}\n\nfunction Cursor({ x, y, press }: { x: number; y: number; press: number }) {\n return (\n <svg\n width={22}\n height={26}\n viewBox=\"0 0 20 24\"\n style={{\n position: \"absolute\",\n left: x - 2,\n top: y - 2,\n transformOrigin: \"2px 2px\",\n transform: `scale(${1 - 0.12 * press})`,\n filter: \"drop-shadow(0 2px 3px rgba(0,0,0,0.28))\",\n overflow: \"visible\",\n zIndex: 5,\n }}\n >\n <path\n d=\"M2 2 L2 19.5 L6.6 15.4 L9.8 22.4 L12.9 21 L9.8 14.2 L16 14.2 Z\"\n fill=\"#FFFFFF\"\n stroke=\"#16171A\"\n strokeWidth={1.1}\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction arc(\n a: { x: number; y: number },\n b: { x: number; y: number },\n p: number,\n) {\n const dx = b.x - a.x;\n const dy = b.y - a.y;\n const d = Math.hypot(dx, dy) || 1;\n const lift = Math.sin(p * Math.PI) * Math.min(40, d * 0.12);\n return {\n x: a.x + dx * p + (-dy / d) * lift,\n y: a.y + dy * p + (dx / d) * lift,\n };\n}\n\nfunction Grow({ p, children }: { p: number; children: React.ReactNode }) {\n return (\n <div style={{ display: \"grid\", gridTemplateRows: `${p}fr` }}>\n <div style={{ minHeight: 0, overflow: \"hidden\" }}>{children}</div>\n </div>\n );\n}\n\nfunction Skeleton({\n rows,\n pal,\n}: {\n rows: [number, number][];\n pal: { line: string };\n}) {\n return (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: 12 }}>\n {rows.map(([w, h], i) => (\n <div\n key={i}\n style={{\n width: `${w}%`,\n height: h,\n borderRadius: 5,\n background: pal.line,\n }}\n />\n ))}\n </div>\n );\n}\n\nfunction Section({\n start,\n done,\n frame,\n label,\n accent,\n skeleton,\n children,\n height,\n}: {\n start: number;\n done: number;\n frame: number;\n label: string;\n accent: string;\n skeleton: React.ReactNode;\n children: React.ReactNode;\n height: number;\n}) {\n const shown = tween(frame, start - 2, start + 5);\n const real = tween(frame, start + 8, start + 15);\n const edit =\n tween(frame, start, start + 5) * (1 - tween(frame, done + 2, done + 9));\n if (shown <= 0) return <div style={{ height }} />;\n return (\n <div style={{ position: \"relative\", height }}>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n opacity: shown * (1 - tween(frame, start + 8, start + 11)),\n }}\n >\n {skeleton}\n </div>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n opacity: real,\n transform: `translateY(${(1 - real) * 6}px)`,\n }}\n >\n {children}\n </div>\n {edit > 0 ? (\n <>\n <div\n style={{\n position: \"absolute\",\n inset: 3,\n borderRadius: 6,\n boxShadow: `inset 0 0 0 1.5px ${withAlpha(accent, 0.85 * edit)}`,\n pointerEvents: \"none\",\n }}\n />\n <div\n style={{\n position: \"absolute\",\n left: 3,\n top: 3,\n transform: `translateY(${(1 - edit) * 2}px)`,\n opacity: edit,\n fontFamily,\n fontSize: 11,\n fontWeight: 400,\n color: \"#fff\",\n background: accent,\n borderRadius: \"6px 0 6px 0\",\n padding: \"2px 7px\",\n }}\n >\n {label}\n </div>\n </>\n ) : null}\n </div>\n );\n}\n\nfunction SitePhoto({ id }: { id: string }) {\n return (\n <svg\n width=\"100%\"\n height=\"100%\"\n viewBox=\"0 0 260 216\"\n preserveAspectRatio=\"xMidYMid slice\"\n style={{ display: \"block\" }}\n >\n <defs>\n <linearGradient id={`${id}sky`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0\" stopColor=\"#5B3A2E\" />\n <stop offset=\"0.55\" stopColor=\"#8E5A3C\" />\n <stop offset=\"1\" stopColor=\"#C68A55\" />\n </linearGradient>\n <linearGradient id={`${id}table`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0\" stopColor=\"#6B4128\" />\n <stop offset=\"1\" stopColor=\"#3E2416\" />\n </linearGradient>\n <linearGradient id={`${id}wine`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0\" stopColor=\"#8E2236\" />\n <stop offset=\"1\" stopColor=\"#4E0E1C\" />\n </linearGradient>\n </defs>\n <rect width=\"260\" height=\"216\" fill={`url(#${id}sky)`} />\n <rect\n x=\"22\"\n y=\"18\"\n width=\"70\"\n height=\"96\"\n rx=\"3\"\n fill=\"#F3C98B\"\n opacity=\"0.18\"\n />\n <rect\n x=\"100\"\n y=\"18\"\n width=\"70\"\n height=\"96\"\n rx=\"3\"\n fill=\"#F3C98B\"\n opacity=\"0.12\"\n />\n <rect x=\"0\" y=\"150\" width=\"260\" height=\"66\" fill={`url(#${id}table)`} />\n <rect x=\"0\" y=\"148\" width=\"260\" height=\"3\" fill=\"#2A160D\" opacity=\"0.5\" />\n <path\n d=\"M170 68h12v22c8 6 11 12 11 22v40h-34v-40c0-10 3-16 11-22z\"\n fill=\"#1F2A1E\"\n />\n <rect x=\"161\" y=\"110\" width=\"30\" height=\"24\" rx=\"2\" fill=\"#EDE2CC\" />\n <rect x=\"166\" y=\"117\" width=\"20\" height=\"2.5\" rx=\"1\" fill=\"#8E5A3C\" />\n <rect x=\"166\" y=\"123\" width=\"14\" height=\"2\" rx=\"1\" fill=\"#B9A78A\" />\n <path\n d=\"M96 96h34c0 22-6 34-17 36-11-2-17-14-17-36z\"\n fill=\"#FFFFFF\"\n opacity=\"0.22\"\n />\n <path\n d=\"M98 112h30c-1 12-6 19-15 20-9-1-14-8-15-20z\"\n fill={`url(#${id}wine)`}\n />\n <rect\n x=\"111.5\"\n y=\"132\"\n width=\"3\"\n height=\"16\"\n fill=\"#FFFFFF\"\n opacity=\"0.3\"\n />\n <ellipse\n cx=\"113\"\n cy=\"150\"\n rx=\"12\"\n ry=\"2.5\"\n fill=\"#FFFFFF\"\n opacity=\"0.3\"\n />\n <rect x=\"54\" y=\"122\" width=\"12\" height=\"28\" rx=\"2\" fill=\"#F1E6D2\" />\n <path d=\"M60 110c3 4 3 8 0 11-3-3-3-7 0-11z\" fill=\"#FFD27A\" />\n </svg>\n );\n}\n\nfunction Site({\n frame,\n accent,\n file,\n siteName,\n siteEyebrow,\n siteHeadline,\n siteBody,\n siteLinks,\n pours,\n}: {\n frame: number;\n accent: string;\n file: (i: number) => { start: number; done: number };\n siteName: string;\n siteEyebrow: string;\n siteHeadline: string;\n siteBody: string;\n siteLinks: string[];\n pours: AppPour[];\n}) {\n const id = useId().replace(/[^a-zA-Z0-9_-]/g, \"\");\n const skel = { line: \"rgba(42,33,28,0.08)\" };\n const btn = (label: string, primary: boolean) => (\n <div\n style={{\n height: 34,\n padding: \"0 14px\",\n borderRadius: 8,\n display: \"flex\",\n alignItems: \"center\",\n gap: 6,\n fontSize: 13,\n fontWeight: 400,\n background: primary ? SITE.ink : \"transparent\",\n color: primary ? \"#FBF7F1\" : SITE.ink,\n boxShadow: primary ? \"none\" : `inset 0 0 0 1px ${SITE.line}`,\n }}\n >\n {label}\n </div>\n );\n return (\n <div\n style={{\n background: SITE.bg,\n height: \"100%\",\n fontFamily,\n color: SITE.ink,\n }}\n >\n <Section\n start={file(0).start}\n done={file(0).done}\n frame={frame}\n label=\"Nav\"\n accent={accent}\n height={58}\n skeleton={\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 22,\n height: 58,\n padding: \"0 32px\",\n }}\n >\n <div\n style={{\n width: 84,\n height: 18,\n borderRadius: 5,\n background: skel.line,\n }}\n />\n {[38, 56, 44, 34].map((w) => (\n <div\n key={w}\n style={{\n width: w,\n height: 10,\n borderRadius: 5,\n background: skel.line,\n }}\n />\n ))}\n <div\n style={{\n marginLeft: \"auto\",\n width: 104,\n height: 34,\n borderRadius: 8,\n background: skel.line,\n }}\n />\n </div>\n }\n >\n <div\n style={{\n height: 58,\n display: \"flex\",\n alignItems: \"center\",\n padding: \"0 32px\",\n borderBottom: `1px solid ${SITE.line}`,\n }}\n >\n <div\n style={{\n fontFamily: serif,\n fontSize: 24,\n letterSpacing: \"-0.01em\",\n }}\n >\n {siteName}\n </div>\n <div\n style={{\n marginLeft: 36,\n display: \"flex\",\n gap: 22,\n fontSize: 13,\n color: SITE.muted,\n }}\n >\n {siteLinks.map((l) => (\n <span key={l}>{l}</span>\n ))}\n </div>\n <div style={{ marginLeft: \"auto\" }}>{btn(\"Book a table\", true)}</div>\n </div>\n </Section>\n\n <Section\n start={file(1).start}\n done={file(1).done}\n frame={frame}\n label=\"Hero\"\n accent={accent}\n height={276}\n skeleton={\n <div style={{ display: \"flex\", gap: 32, padding: \"32px 32px 0\" }}>\n <div style={{ flex: 1 }}>\n <Skeleton\n rows={[\n [34, 10],\n [92, 36],\n [74, 36],\n [84, 10],\n [56, 10],\n [42, 34],\n ]}\n pal={skel}\n />\n </div>\n <div\n style={{\n width: 260,\n height: 216,\n borderRadius: 12,\n background: skel.line,\n }}\n />\n </div>\n }\n >\n <div style={{ display: \"flex\", gap: 32, padding: \"28px 32px 0\" }}>\n <div style={{ flex: 1, paddingTop: 4 }}>\n <div\n style={{\n fontSize: 11,\n fontWeight: 400,\n letterSpacing: \"0.08em\",\n textTransform: \"uppercase\",\n color: SITE.brand,\n }}\n >\n {siteEyebrow}\n </div>\n <div\n style={{\n fontFamily: serif,\n fontSize: 44,\n lineHeight: 1.02,\n letterSpacing: \"-0.015em\",\n marginTop: 12,\n textWrap: \"balance\",\n }}\n >\n {siteHeadline}\n </div>\n <div\n style={{\n fontSize: 14,\n lineHeight: 1.55,\n color: SITE.muted,\n marginTop: 14,\n maxWidth: 360,\n textWrap: \"pretty\",\n }}\n >\n {siteBody}\n </div>\n <div style={{ display: \"flex\", gap: 10, marginTop: 20 }}>\n {btn(\"Book a table\", true)}\n {btn(\"See the menu\", false)}\n </div>\n </div>\n <div\n style={{\n width: 260,\n height: 216,\n borderRadius: 12,\n overflow: \"hidden\",\n flexShrink: 0,\n boxShadow: \"0 0 0 1px rgba(0,0,0,0.08)\",\n }}\n >\n <SitePhoto id={id} />\n </div>\n </div>\n </Section>\n\n <Section\n start={file(2).start}\n done={file(2).done}\n frame={frame}\n label=\"PourCards\"\n accent={accent}\n height={196}\n skeleton={\n <div style={{ display: \"flex\", gap: 14, padding: \"58px 32px 0\" }}>\n {[0, 1, 2].map((i) => (\n <div\n key={i}\n style={{\n flex: 1,\n height: 140,\n borderRadius: 10,\n background: skel.line,\n }}\n />\n ))}\n </div>\n }\n >\n <div style={{ padding: \"18px 32px 0\" }}>\n <div style={{ display: \"flex\", alignItems: \"baseline\" }}>\n <div style={{ fontFamily: serif, fontSize: 24 }}>\n Tonight’s pours\n </div>\n <div\n style={{ marginLeft: \"auto\", fontSize: 13, color: SITE.muted }}\n >\n Full wine list →\n </div>\n </div>\n <div style={{ display: \"flex\", gap: 14, marginTop: 12 }}>\n {pours.slice(0, 3).map((p, i) => {\n const a = tween(\n frame,\n file(2).start + 9 + i * 3,\n file(2).start + 17 + i * 3,\n );\n return (\n <div\n key={p.name}\n style={{\n flex: 1,\n borderRadius: 10,\n background: \"#FFFFFF\",\n boxShadow:\n \"0 0 0 1px rgba(42,33,28,0.08), 0 1px 2px rgba(42,33,28,0.04)\",\n padding: 8,\n opacity: a,\n transform: `translateY(${(1 - a) * 8}px)`,\n }}\n >\n <div\n style={{\n height: 64,\n borderRadius: 6,\n background: `linear-gradient(135deg, ${p.tone[0]}, ${p.tone[1]})`,\n position: \"relative\",\n overflow: \"hidden\",\n }}\n >\n <svg\n width={40}\n height={64}\n viewBox=\"0 0 40 64\"\n style={{ position: \"absolute\", right: 16, bottom: 0 }}\n >\n <path\n d=\"M16 4h8v14c6 4 8 9 8 16v30H8V34c0-7 2-12 8-16z\"\n fill=\"rgba(20,12,8,0.32)\"\n />\n <rect\n x=\"11\"\n y=\"38\"\n width=\"18\"\n height=\"14\"\n rx=\"1.5\"\n fill=\"rgba(255,250,240,0.75)\"\n />\n </svg>\n </div>\n <div style={{ padding: \"8px 4px 2px\" }}>\n <div style={{ fontSize: 13, fontWeight: 400 }}>\n {p.name}\n </div>\n <div\n style={{\n display: \"flex\",\n fontSize: 12,\n color: SITE.muted,\n marginTop: 3,\n }}\n >\n <span>{p.origin}</span>\n <span\n style={{\n marginLeft: \"auto\",\n fontVariantNumeric: \"tabular-nums\",\n color: SITE.ink,\n }}\n >\n {p.price}\n </span>\n </div>\n </div>\n </div>\n );\n })}\n </div>\n </div>\n </Section>\n </div>\n );\n}\n\nexport function PromptToApp({\n prompt = DEFAULT_PROMPT,\n plan = DEFAULT_PLAN,\n files = [\n \"components/Nav.tsx\",\n \"components/Hero.tsx\",\n \"components/PourCards.tsx\",\n \"app/page.tsx\",\n ],\n doneMessage = \"Fernway is ready. The booking button links to your reservations page.\",\n projectName = \"fernway-site\",\n deployUrl = \"fernway.remocn.app\",\n siteName = \"Fernway\",\n siteEyebrow = \"Wine bar · Open late\",\n siteHeadline = \"Natural wine, small plates, one long table.\",\n siteBody = \"Low-intervention bottles and seasonal plates in the Mission. Walk-ins welcome until 10.\",\n siteLinks = [\"Menu\", \"Wine list\", \"Events\", \"Visit\"],\n pours = DEFAULT_POURS,\n children,\n theme = \"light\",\n accent = \"#3B5BFD\",\n speed = 1,\n ground,\n groundParams,\n}: PromptToAppProps) {\n const frame = useCurrentFrame() * speed;\n const { width: W, height: H, fps } = useVideoConfig();\n const tall = H > W;\n const L = tall ? LAYOUT_TALL : LAYOUT_WIDE;\n const u = W / L.w;\n const pal = palette(theme);\n const planWords = plan.split(\" \");\n const tl = timeline(prompt.length, planWords.length);\n const file = (i: number) => tl.file(i);\n const sp = (at: number, config: SpringCfg, durationInFrames?: number) =>\n spring({ frame: frame - at, fps, config, durationInFrames });\n\n const chatIn = sp(0, HEAVY);\n const dock = sp(tl.send - 6, HEAVY);\n const pvIn = sp(tl.send - 2, HEAVY);\n const chatW = L.chat.w * L.chat.s;\n const chatH = L.chat.h * L.chat.s;\n const chatX = interpolate(\n dock,\n [0, 1],\n [tall ? L.chat.x : (L.w - chatW) / 2, L.chat.x],\n );\n const chatY = interpolate(\n dock,\n [0, 1],\n [tall ? (L.h - chatH) / 2 : L.chat.y, L.chat.y],\n );\n const typed = Math.max(\n 0,\n Math.min(prompt.length, Math.floor((frame - T.type) * T.cps)),\n );\n const sent = frame >= tl.send + 1;\n const sendScale =\n 1 - 0.06 * (sp(tl.send - 2, MORPH, 3) - sp(tl.send + 1, CHIP));\n const emptyOut = tween(frame, tl.send + 1, tl.send + 6, exitE);\n const bubble = sp(tl.send, MORPH);\n const thinkIn = sp(tl.think, MORPH);\n const thinking = frame < tl.planAt;\n const planIn = sp(tl.planAt - 2, MORPH);\n const filesIn = (i: number) => sp(file(i).start - 2, MORPH);\n const doneIn = sp(tl.doneMsg, MORPH);\n const ready =\n tween(frame, tl.think, tl.think + 6) *\n (1 - tween(frame, file(0).start - 4, file(0).start + 2, exitE));\n\n const target = {\n x: L.pv.x + L.pv.s * (DEPLOY.x + DEPLOY.w / 2 + 6),\n y: L.pv.y + L.pv.s * (DEPLOY.y + DEPLOY.h / 2 + 4),\n };\n const cp = sp(tl.cursorIn, CARD, tl.deployClick - 2 - tl.cursorIn);\n const cur = arc(L.cursorFrom, target, cp);\n const cursorOp =\n tween(frame, tl.cursorIn - 4, tl.cursorIn + 2) *\n (1 - tween(frame, tl.deployed + 12, tl.deployed + 18, exitE));\n const press = sp(tl.deployClick - 2, MORPH, 3) - sp(tl.deployClick + 2, CHIP);\n const deploying = frame >= tl.deployClick + 1 && frame < tl.deployed;\n const isLive = frame >= tl.deployed;\n const hover = tween(frame, tl.deployClick - 8, tl.deployClick - 4);\n const pop = sp(tl.deployed + 2, CHIP);\n const popOp = tween(frame, tl.deployed + 2, tl.deployed + 6);\n const urlSwap = tween(frame, tl.deployed, tl.deployed + 8);\n\n const cam = interpolate(frame, [0, tl.end], [1, 1.025], {\n ...clampX,\n easing: camE,\n });\n\n const composerText = sent ? \"\" : prompt.slice(0, typed);\n const caretOn = !sent && Math.floor(frame / 8) % 2 === 0;\n const ink = pal.dark ? \"#EDEDEF\" : \"#18181B\";\n const inkOn = pal.dark ? \"#18181B\" : \"#FFFFFF\";\n\n return (\n <AbsoluteFill\n style={{\n fontFamily,\n overflow: \"hidden\",\n WebkitFontSmoothing: \"antialiased\",\n background: pal.base,\n }}\n >\n <GshGround\n preset={ground ?? (pal.dark ? \"hearth\" : \"paper-crease\")}\n params={groundParams}\n timeOffset={pal.dark ? 5 : 3}\n timeScale={0.3}\n />\n <AbsoluteFill style={{ background: pal.scrim }} />\n <div\n style={{\n position: \"absolute\",\n left: 0,\n top: 0,\n width: L.w,\n height: L.h,\n transformOrigin: \"0 0\",\n transform: `scale(${u})`,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: `scale(${cam})`,\n transformOrigin: `${(target.x / L.w) * 100}% ${(target.y / L.h) * 100}%`,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: chatX,\n top: chatY,\n width: L.chat.w,\n height: L.chat.h,\n transformOrigin: \"0 0\",\n transform: `translateY(${(1 - chatIn) * 40}px) scale(${L.chat.s})`,\n opacity: Math.min(1, chatIn * 1.6),\n }}\n >\n <div\n style={{\n position: \"relative\",\n width: L.chat.w,\n height: L.chat.h,\n borderRadius: 18,\n background: pal.win,\n boxShadow: pal.shadow,\n overflow: \"hidden\",\n display: \"flex\",\n flexDirection: \"column\",\n }}\n >\n <div\n style={{\n height: 52,\n flexShrink: 0,\n display: \"flex\",\n alignItems: \"center\",\n gap: 10,\n padding: \"0 20px\",\n borderBottom: `1px solid ${pal.line}`,\n fontSize: 15,\n }}\n >\n <RemocnR height={15} color={pal.text} />\n <span style={{ color: pal.faint }}>/</span>\n <span style={{ color: pal.text }}>{projectName}</span>\n <Icon name=\"chevDown\" color={pal.faint} size={14} />\n </div>\n <div\n style={{\n flex: 1,\n minHeight: 0,\n overflow: \"hidden\",\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"flex-end\",\n padding: \"0 22px\",\n }}\n >\n <div style={{ marginBottom: \"auto\", paddingTop: 20 }}>\n {frame >= tl.send ? (\n <Grow p={bubble}>\n <div\n style={{\n marginLeft: 28,\n background: pal.bubble,\n borderRadius: 14,\n padding: \"12px 15px\",\n fontSize: 15,\n lineHeight: 1.5,\n color: pal.text,\n textWrap: \"pretty\",\n opacity: tween(frame, tl.send, tl.send + 4),\n }}\n >\n {prompt}\n </div>\n </Grow>\n ) : null}\n {frame >= tl.think ? (\n <Grow p={thinkIn}>\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 8,\n marginTop: 20,\n fontSize: 14,\n color: pal.muted,\n }}\n >\n <RemocnR height={13} color={pal.text} />\n {thinking ? (\n <span\n style={{\n opacity:\n 0.45 + 0.55 * Math.abs(Math.cos(frame / 9)),\n }}\n >\n Thinking\n </span>\n ) : (\n <span\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 2,\n color: pal.faint,\n }}\n >\n Thought for 3s\n <Icon\n name=\"chevRight\"\n color={pal.faint}\n size={13}\n />\n </span>\n )}\n </div>\n </Grow>\n ) : null}\n {frame >= tl.planAt - 2 ? (\n <Grow p={planIn}>\n <div\n style={{\n marginTop: 10,\n fontSize: 15,\n lineHeight: 1.5,\n color: pal.text,\n textWrap: \"pretty\",\n }}\n >\n {planWords.map((w, k) => (\n <span\n key={k}\n style={{\n opacity: tween(\n frame,\n tl.planAt + k * 1.3,\n tl.planAt + k * 1.3 + 5,\n ),\n }}\n >\n {w}{\" \"}\n </span>\n ))}\n </div>\n </Grow>\n ) : null}\n {frame >= file(0).start - 2 ? (\n <div\n style={{\n marginTop: 14,\n opacity: tween(\n frame,\n file(0).start - 2,\n file(0).start + 4,\n ),\n }}\n >\n {files.slice(0, 4).map((f, i) => {\n const st =\n frame >= file(i).done\n ? 2\n : frame >= file(i).start\n ? 1\n : 0;\n const ok = sp(file(i).done, CHIP);\n if (i > 0 && frame < file(i).start - 2) return null;\n return (\n <Grow key={f} p={i === 0 ? 1 : filesIn(i)}>\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 10,\n height: 32,\n fontSize: 14,\n color: pal.muted,\n borderTop:\n i === 0 ? \"none\" : `1px solid ${pal.line}`,\n }}\n >\n <span\n style={{\n width: 58,\n color: st === 1 ? pal.text : pal.faint,\n }}\n >\n {st === 2 ? \"Edited\" : \"Writing\"}\n </span>\n <span\n style={{\n fontFamily: mono,\n fontSize: 13,\n color: st === 1 ? pal.text : pal.muted,\n }}\n >\n {f}\n </span>\n <span\n style={{\n marginLeft: \"auto\",\n position: \"relative\",\n width: 15,\n height: 15,\n }}\n >\n <span\n style={{\n position: \"absolute\",\n inset: 0,\n opacity: 1 - Math.min(1, ok),\n }}\n >\n <Spinner\n color={pal.muted}\n size={15}\n frame={frame}\n />\n </span>\n <span\n style={{\n position: \"absolute\",\n inset: 0,\n opacity: Math.min(1, ok),\n transform: `scale(${0.4 + 0.6 * ok})`,\n }}\n >\n <Icon\n name=\"check\"\n color={pal.green}\n size={15}\n stroke={2}\n />\n </span>\n </span>\n </div>\n </Grow>\n );\n })}\n </div>\n ) : null}\n {frame >= tl.doneMsg ? (\n <Grow p={doneIn}>\n <div\n style={{\n marginTop: 12,\n fontSize: 15,\n lineHeight: 1.5,\n color: pal.text,\n opacity: tween(frame, tl.doneMsg + 2, tl.doneMsg + 8),\n textWrap: \"pretty\",\n }}\n >\n {doneMessage}\n </div>\n </Grow>\n ) : null}\n </div>\n </div>\n\n {emptyOut < 1 ? (\n <div\n style={{\n position: \"absolute\",\n left: 28,\n right: 28,\n top: L.chat.h * 0.3,\n opacity: 1 - emptyOut,\n transform: `translateY(${-emptyOut * 10}px)`,\n }}\n >\n <div\n style={{\n fontSize: 26,\n fontWeight: 300,\n letterSpacing: \"-0.03em\",\n lineHeight: 1.15,\n color: pal.text,\n }}\n >\n What should we build?\n </div>\n </div>\n ) : null}\n\n <div style={{ padding: \"12px 14px 14px\", flexShrink: 0 }}>\n <div\n style={{\n borderRadius: 14,\n background: pal.field,\n boxShadow: `inset 0 0 0 1px ${pal.border}`,\n padding: \"12px 10px 10px 14px\",\n }}\n >\n <div\n style={{\n height: 45,\n fontSize: 15,\n lineHeight: 1.5,\n color: composerText ? pal.text : pal.faint,\n overflow: \"hidden\",\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"flex-end\",\n }}\n >\n <div style={{ marginBottom: \"auto\" }}>\n {composerText || \"Describe an app or a page\"}\n {caretOn && composerText ? (\n <span\n style={{\n display: \"inline-block\",\n width: 1.5,\n height: 18,\n background: ink,\n verticalAlign: \"-3px\",\n marginLeft: 1,\n }}\n />\n ) : null}\n </div>\n </div>\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 12,\n marginTop: 6,\n }}\n >\n <Icon name=\"paperclip\" color={pal.faint} size={17} />\n <div\n style={{\n marginLeft: \"auto\",\n width: 32,\n height: 32,\n borderRadius: 99,\n background:\n typed > 0 && !sent\n ? ink\n : pal.dark\n ? \"rgba(255,255,255,0.08)\"\n : \"rgba(17,19,24,0.06)\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n transform: `scale(${sendScale})`,\n }}\n >\n {sent && frame < tl.doneMsg ? (\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: 2,\n background: pal.muted,\n }}\n />\n ) : (\n <Icon\n name=\"arrowUp\"\n color={typed > 0 && !sent ? inkOn : pal.faint}\n size={16}\n stroke={2}\n />\n )}\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div\n style={{\n position: \"absolute\",\n left: L.pv.x,\n top: L.pv.y,\n width: PVW,\n height: L.pvH,\n transformOrigin: \"0 0\",\n transform: `translateY(${(1 - pvIn) * 56}px) scale(${L.pv.s})`,\n opacity: Math.min(1, pvIn * 1.6),\n }}\n >\n <div\n style={{\n position: \"relative\",\n width: PVW,\n height: L.pvH,\n borderRadius: 14,\n overflow: \"hidden\",\n background: pal.win,\n boxShadow: pal.shadow,\n }}\n >\n <div\n style={{\n height: PV_BAR,\n display: \"flex\",\n alignItems: \"center\",\n gap: 12,\n padding: \"0 12px 0 16px\",\n borderBottom: `1px solid ${pal.line}`,\n }}\n >\n <div style={{ display: \"flex\", gap: 7 }}>\n {[0, 1, 2].map((d) => (\n <div\n key={d}\n style={{\n width: 11,\n height: 11,\n borderRadius: 99,\n boxShadow: `inset 0 0 0 1px ${pal.border}`,\n }}\n />\n ))}\n </div>\n <div\n style={{\n marginLeft: 70,\n width: 330,\n height: 30,\n borderRadius: 8,\n background: pal.well,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontSize: 13,\n color: pal.muted,\n position: \"relative\",\n overflow: \"hidden\",\n fontVariantNumeric: \"tabular-nums\",\n }}\n >\n <span\n style={{\n position: \"absolute\",\n opacity: 1 - urlSwap,\n transform: `translateY(${-urlSwap * 8}px)`,\n }}\n >\n localhost:3000\n </span>\n <span\n style={{\n position: \"absolute\",\n opacity: urlSwap,\n display: \"flex\",\n alignItems: \"center\",\n gap: 6,\n transform: `translateY(${(1 - urlSwap) * 8}px)`,\n }}\n >\n <Icon name=\"lock\" color={pal.muted} size={12} />\n <span style={{ color: pal.text }}>{deployUrl}</span>\n </span>\n </div>\n </div>\n <div\n style={{\n position: \"absolute\",\n left: DEPLOY.x,\n top: DEPLOY.y,\n width: DEPLOY.w,\n height: DEPLOY.h,\n borderRadius: 8,\n background: isLive ? \"transparent\" : ink,\n boxShadow: isLive ? `inset 0 0 0 1px ${pal.border}` : \"none\",\n color: isLive ? pal.text : inkOn,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: 7,\n fontSize: 14,\n transform: `scale(${1 - 0.04 * press})`,\n filter: `brightness(${1 + (pal.dark ? -0.08 : 0.25) * hover * (isLive ? 0 : 1)})`,\n }}\n >\n {deploying ? (\n <Spinner color={inkOn} size={13} frame={frame} />\n ) : isLive ? (\n <div\n style={{\n width: 7,\n height: 7,\n borderRadius: 99,\n background: pal.green,\n }}\n />\n ) : null}\n {deploying ? \"Deploying\" : isLive ? \"Live\" : \"Deploy\"}\n </div>\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: PV_BAR,\n bottom: 0,\n background: pal.dark ? \"#141416\" : \"#F6F6F7\",\n }}\n >\n {children ? (\n <div\n style={{\n width: \"100%\",\n height: \"100%\",\n opacity: tween(frame, file(0).start, file(0).start + 10),\n }}\n >\n {children}\n </div>\n ) : (\n <div\n style={{\n height: \"100%\",\n opacity: tween(\n frame,\n file(0).start - 4,\n file(0).start + 2,\n ),\n }}\n >\n <Site\n frame={frame}\n accent={accent}\n file={file}\n siteName={siteName}\n siteEyebrow={siteEyebrow}\n siteHeadline={siteHeadline}\n siteBody={siteBody}\n siteLinks={siteLinks}\n pours={pours}\n />\n </div>\n )}\n {ready > 0 ? (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: 9,\n opacity: ready,\n fontSize: 14,\n color: pal.muted,\n }}\n >\n <Spinner color={pal.muted} size={14} frame={frame} />\n Starting dev server\n </div>\n ) : null}\n </div>\n\n {popOp > 0 ? (\n <div\n style={{\n position: \"absolute\",\n right: 12,\n top: DEPLOY.y + DEPLOY.h + 8,\n width: 316,\n borderRadius: 14,\n background: pal.pop,\n boxShadow: pal.popShadow,\n padding: 6,\n opacity: popOp,\n transform: `translateY(${(1 - pop) * -6}px) scale(${0.94 + 0.06 * pop})`,\n transformOrigin: `${316 - DEPLOY.w / 2}px 0`,\n }}\n >\n <div\n style={{\n display: \"flex\",\n alignItems: \"baseline\",\n padding: \"8px 10px 10px\",\n }}\n >\n <span style={{ fontSize: 16, color: pal.text }}>\n Deployed to production\n </span>\n <span\n style={{\n marginLeft: \"auto\",\n fontSize: 13,\n color: pal.faint,\n fontVariantNumeric: \"tabular-nums\",\n }}\n >\n 21.4s\n </span>\n </div>\n <div\n style={{\n height: 40,\n borderRadius: 8,\n background: pal.well,\n display: \"flex\",\n alignItems: \"center\",\n gap: 9,\n padding: \"0 5px 0 12px\",\n fontSize: 14,\n color: pal.text,\n }}\n >\n <div\n style={{\n width: 7,\n height: 7,\n borderRadius: 99,\n background: pal.green,\n }}\n />\n {deployUrl}\n <div\n style={{\n marginLeft: \"auto\",\n height: 30,\n padding: \"0 11px\",\n borderRadius: 6,\n background: ink,\n color: inkOn,\n display: \"flex\",\n alignItems: \"center\",\n gap: 5,\n fontSize: 13,\n }}\n >\n Visit\n <Icon\n name=\"external\"\n color={inkOn}\n size={12}\n stroke={1.75}\n />\n </div>\n </div>\n </div>\n ) : null}\n </div>\n </div>\n\n {cursorOp > 0 ? (\n <div style={{ opacity: cursorOp }}>\n <Cursor x={cur.x} y={cur.y} press={press} />\n </div>\n ) : null}\n </div>\n </div>\n </AbsoluteFill>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/prompt-to-app.tsx"
}
],
"type": "registry:component"
}