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": "phone-trio",
"title": "Phone Trio",
"description": "Three phones side by side show a notification, a photo feed and a profile.",
"dependencies": ["remotion", "@remotion/google-fonts"],
"registryDependencies": ["@remocn/gsh"],
"files": [
{
"path": "registry/remocn/phone-trio/index.tsx",
"content": "\"use client\";\n\nimport { loadFont as loadSerif } from \"@remotion/google-fonts/InstrumentSerif\";\nimport { loadFont as loadManrope } from \"@remotion/google-fonts/Manrope\";\nimport type React from \"react\";\nimport {\n AbsoluteFill,\n Easing,\n Img,\n interpolate,\n spring,\n staticFile,\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 manrope = loadManrope(\"normal\", {\n weights: [\"300\", \"400\"],\n subsets: [\"latin\"],\n});\nconst serif = loadSerif(\"italic\", { weights: [\"400\"], subsets: [\"latin\"] });\n\nconst ENTER = Easing.bezier(0.32, 0.72, 0, 1);\nconst MOVE = Easing.bezier(0.65, 0, 0.35, 1);\nconst HEAVY = { mass: 1, damping: 26, stiffness: 120 };\nconst CARD = { mass: 0.8, damping: 18, stiffness: 160 };\nconst CHIP = { mass: 0.5, damping: 12, stiffness: 200 };\nconst FLICK = { mass: 0.9, damping: 22, stiffness: 110 };\n\nconst B = {\n rise: [-12, -8, -4],\n scrollL: 10,\n flick1: 14,\n scrollR: 20,\n flick2: 44,\n forward: 70,\n banner: 84,\n end: 132,\n};\n\nconst PW = 286;\nconst PH = 620;\nconst BEZEL = 10;\nconst SW = PW - BEZEL * 2;\nconst SH = PH - BEZEL * 2;\n\nconst ramp = (f: number, start: number, dur: number, easing = ENTER) =>\n interpolate(f, [start, start + dur], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing,\n });\n\nconst mix = (a: number, b: number, t: number) => a + (b - a) * t;\n\nconst line = (color: string, w = 1.5) => ({\n fill: \"none\",\n stroke: color,\n strokeWidth: w,\n strokeLinecap: \"round\" as const,\n strokeLinejoin: \"round\" as const,\n});\n\ninterface Tone {\n dark: boolean;\n bg: string;\n ink: string;\n muted: string;\n faint: string;\n hair: string;\n fill: string;\n accent: string;\n}\n\nfunction StatusBar({ t }: { t: Tone }) {\n return (\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: 0,\n height: 46,\n display: \"flex\",\n alignItems: \"center\",\n padding: \"4px 26px 0\",\n fontSize: 15,\n color: t.ink,\n zIndex: 5,\n }}\n >\n <span style={{ flex: 1, letterSpacing: \"-0.01em\" }}>9:41</span>\n <svg viewBox=\"0 0 18 12\" width={17} height={11} aria-hidden>\n {[0, 1, 2, 3].map((i) => (\n <rect\n key={i}\n x={i * 4.6}\n y={9 - i * 2.6}\n width={3}\n height={3 + i * 2.6}\n rx={0.8}\n fill={t.ink}\n />\n ))}\n </svg>\n <svg\n viewBox=\"0 0 16 12\"\n width={15}\n height={11}\n style={{ marginLeft: 6 }}\n aria-hidden\n >\n <path\n d=\"M1.5 4.5a9.5 9.5 0 0 1 13 0M4 7a6 6 0 0 1 8 0M6.5 9.5a2.4 2.4 0 0 1 3 0\"\n {...line(t.ink, 1.6)}\n />\n </svg>\n <div\n style={{\n marginLeft: 6,\n width: 24,\n height: 12,\n borderRadius: 4,\n border: `1.2px solid ${t.faint}`,\n padding: 1.5,\n boxSizing: \"border-box\",\n }}\n >\n <div\n style={{\n width: \"78%\",\n height: \"100%\",\n borderRadius: 2,\n background: t.ink,\n }}\n />\n </div>\n </div>\n );\n}\n\nfunction Phone({\n t,\n children,\n shellDark,\n}: {\n t: Tone;\n children: React.ReactNode;\n shellDark: boolean;\n}) {\n return (\n <div\n style={{\n position: \"absolute\",\n left: -PW / 2,\n top: -PH / 2,\n width: PW,\n height: PH,\n borderRadius: 54,\n background: shellDark\n ? \"linear-gradient(150deg, #4a4a52 0%, #16161a 22%, #0b0b0d 60%, #34343a 100%)\"\n : \"linear-gradient(150deg, #ffffff 0%, #d9d6d2 26%, #c9c5c0 62%, #f4f2ef 100%)\",\n boxShadow: shellDark\n ? \"inset 0 0 0 1.5px rgba(255,255,255,0.12), 0 2px 4px rgba(0,0,0,0.3), 0 24px 50px rgba(20,10,40,0.35), 0 70px 120px rgba(20,10,40,0.35)\"\n : \"inset 0 0 0 1.5px rgba(255,255,255,0.9), 0 2px 4px rgba(80,60,40,0.12), 0 24px 50px rgba(120,90,60,0.18), 0 70px 120px rgba(120,90,60,0.2)\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: BEZEL,\n top: BEZEL,\n width: SW,\n height: SH,\n borderRadius: 44,\n overflow: \"hidden\",\n background: t.bg,\n boxShadow: shellDark ? \"0 0 0 2px #050506\" : \"0 0 0 2px #1a1a1c\",\n }}\n >\n {children}\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: 0,\n height: 62,\n background: `linear-gradient(180deg, ${t.bg} 0%, ${t.bg} 74%, transparent 100%)`,\n zIndex: 4,\n }}\n />\n <StatusBar t={t} />\n <div\n style={{\n position: \"absolute\",\n left: SW / 2 - 46,\n top: 11,\n width: 92,\n height: 27,\n borderRadius: 14,\n background: \"#000\",\n zIndex: 6,\n }}\n />\n <div\n style={{\n position: \"absolute\",\n left: SW / 2 - 58,\n bottom: 8,\n width: 116,\n height: 5,\n borderRadius: 3,\n background: t.ink,\n opacity: 0.85,\n zIndex: 6,\n }}\n />\n </div>\n </div>\n );\n}\n\nexport interface PhoneTrioProps {\n theme?: \"dark\" | \"light\";\n accent?: string;\n name?: string;\n handle?: string;\n role?: string;\n headline?: string;\n accentWord?: string;\n images?: string[];\n skills?: string[];\n liveLabel?: string;\n ground?: GshPresetId;\n groundParams?: Partial<GradientParams>;\n}\n\nexport function PhoneTrio({\n theme = \"dark\",\n accent = \"#ff5a36\",\n name = \"Ines Marlow\",\n handle = \"ines.marlow\",\n role = \"Motion designer\",\n headline = \"Driven by motion, obsessed with the\",\n accentWord = \"seamless.\",\n images = [\n staticFile(\"reel/reel-1.jpg\"),\n staticFile(\"templates/launch-anything/horizon.jpg\"),\n staticFile(\"reel/reel-3.jpg\"),\n staticFile(\"templates/product-showcase/sculpture.jpg\"),\n staticFile(\"templates/launch-anything/earth.jpg\"),\n staticFile(\"reel/reel-6.jpg\"),\n staticFile(\"templates/brand-guidelines/ceramics.jpg\"),\n staticFile(\"templates/product-showcase/gallery.jpg\"),\n staticFile(\"reel/reel-4.jpg\"),\n ],\n skills = [\"Motion\", \"Sound\", \"Web\"],\n liveLabel = \"Portfolio is live\",\n ground,\n groundParams,\n}: PhoneTrioProps) {\n const frame = useCurrentFrame();\n const { width, height, fps } = useVideoConfig();\n const dark = theme === \"dark\";\n const portrait = height > width * 1.2;\n const stageW = portrait ? 720 : 1280;\n const stageH = portrait ? 1280 : 720;\n const k = width / stageW;\n\n const t: Tone = dark\n ? {\n dark: true,\n bg: \"#0c0c0e\",\n ink: \"#f5f4f2\",\n muted: \"rgba(245,244,242,0.56)\",\n faint: \"rgba(245,244,242,0.34)\",\n hair: \"rgba(255,255,255,0.09)\",\n fill: \"rgba(255,255,255,0.08)\",\n accent,\n }\n : {\n dark: false,\n bg: \"#ffffff\",\n ink: \"#141414\",\n muted: \"rgba(20,20,20,0.55)\",\n faint: \"rgba(20,20,20,0.32)\",\n hair: \"rgba(20,20,20,0.08)\",\n fill: \"rgba(20,20,20,0.05)\",\n accent,\n };\n\n const img = (i: number) => images[i % images.length];\n\n const rise = B.rise.map((at) =>\n spring({ frame: frame - at, fps, config: CARD }),\n );\n const risePrev = B.rise.map((at) =>\n spring({ frame: frame - 1 - at, fps, config: CARD }),\n );\n const fwd = spring({ frame: frame - B.forward, fps, config: HEAVY });\n const banner = spring({ frame: frame - B.banner, fps, config: CHIP });\n\n const scrollL = ramp(frame, B.scrollL, 96, MOVE) * 110;\n const f1 = spring({ frame: frame - B.flick1, fps, config: FLICK });\n const f2 = spring({ frame: frame - B.flick2, fps, config: FLICK });\n const f1p = spring({ frame: frame - 1 - B.flick1, fps, config: FLICK });\n const f2p = spring({ frame: frame - 1 - B.flick2, fps, config: FLICK });\n const scrollM = f1 * 250 + f2 * 236;\n const scrollMV = Math.abs(scrollM - (f1p * 250 + f2p * 236));\n const scrollR = ramp(frame, B.scrollR, 70, MOVE) * 60;\n\n const layout = portrait\n ? [\n { x: mix(-196, -226, fwd), y: 70, s: mix(1.1, 1.02, fwd), z: 0 },\n { x: 0, y: mix(0, -14, fwd), s: mix(1.42, 1.52, fwd), z: 2 },\n { x: mix(196, 226, fwd), y: 70, s: mix(1.1, 1.02, fwd), z: 1 },\n ]\n : [\n {\n x: mix(-330, -350, fwd),\n y: mix(0, 8, fwd),\n s: mix(1, 0.92, fwd),\n z: 0,\n },\n { x: 0, y: mix(0, -4, fwd), s: mix(1, 1.07, fwd), z: 2 },\n {\n x: mix(330, 350, fwd),\n y: mix(0, 8, fwd),\n s: mix(1, 0.92, fwd),\n z: 1,\n },\n ];\n const camPush = 1 + 0.02 * ramp(frame, 0, B.end, Easing.linear);\n\n const resolvedPreset: GshPresetId | undefined =\n ground ?? (dark ? \"velvet-hour\" : undefined);\n const resolvedParams: Partial<GradientParams> | undefined =\n groundParams ??\n (ground || dark\n ? undefined\n : {\n kind: \"mist\",\n background: \"#f3efe8\",\n colors: [\"#e9b8ff\", \"#ffd3a8\", \"#fff2b8\", \"#a7c4ff\"],\n });\n\n const navRow = (title: string, back = true) => (\n <div\n style={{\n height: 44,\n display: \"flex\",\n alignItems: \"center\",\n padding: \"0 16px\",\n fontSize: 16,\n color: t.ink,\n }}\n >\n <div style={{ width: 28 }}>\n {back ? (\n <svg viewBox=\"0 0 24 24\" width={22} height={22} aria-hidden>\n <path d=\"m15 5-7 7 7 7\" {...line(t.ink, 1.8)} />\n </svg>\n ) : null}\n </div>\n <span style={{ flex: 1, textAlign: \"center\" }}>{title}</span>\n <svg viewBox=\"0 0 24 24\" width={22} height={22} aria-hidden>\n <path d=\"M5 12h.01M12 12h.01M19 12h.01\" {...line(t.ink, 2.6)} />\n </svg>\n </div>\n );\n\n const profileScreen = (\n <>\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: 46,\n transform: `translateY(${-scrollL}px)`,\n }}\n >\n {navRow(handle)}\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 14,\n padding: \"10px 16px 0\",\n }}\n >\n <div\n style={{\n width: 76,\n height: 76,\n borderRadius: 38,\n padding: 3,\n background: `conic-gradient(from 200deg, ${accent}, #ffb36b, #e889b5, ${accent})`,\n flexShrink: 0,\n }}\n >\n <div\n style={{\n width: \"100%\",\n height: \"100%\",\n borderRadius: 35,\n border: `3px solid ${t.bg}`,\n overflow: \"hidden\",\n boxSizing: \"border-box\",\n }}\n >\n <Img\n src={img(6)}\n style={{ width: \"100%\", height: \"100%\", objectFit: \"cover\" }}\n />\n </div>\n </div>\n <div\n style={{\n display: \"flex\",\n flex: 1,\n justifyContent: \"space-between\",\n }}\n >\n {[\n [\"48\", \"projects\"],\n [\"21\", \"clients\"],\n [\"6\", \"awards\"],\n ].map(([v, l]) => (\n <div key={l} style={{ textAlign: \"center\" }}>\n <div style={{ fontSize: 18, color: t.ink }}>{v}</div>\n <div style={{ fontSize: 13, color: t.muted }}>{l}</div>\n </div>\n ))}\n </div>\n </div>\n <div style={{ padding: \"12px 16px 0\" }}>\n <div style={{ fontSize: 17, color: t.ink, letterSpacing: \"-0.01em\" }}>\n {name}\n </div>\n <div style={{ fontSize: 15, color: accent, marginTop: 1 }}>\n {role}\n </div>\n <div\n style={{\n fontSize: 13,\n color: t.muted,\n marginTop: 6,\n lineHeight: 1.4,\n }}\n >\n Launch films and product motion for small teams.\n </div>\n </div>\n <div style={{ display: \"flex\", gap: 6, padding: \"12px 16px 0\" }}>\n <div\n style={{\n flex: 1,\n height: 34,\n borderRadius: 10,\n background: accent,\n color: \"#fff\",\n fontSize: 14,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n Follow\n </div>\n <div\n style={{\n flex: 1,\n height: 34,\n borderRadius: 10,\n background: t.fill,\n color: t.ink,\n fontSize: 14,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n Message\n </div>\n </div>\n <div\n style={{\n display: \"flex\",\n justifyContent: \"space-around\",\n margin: \"14px 0 2px\",\n borderBottom: `1px solid ${t.hair}`,\n }}\n >\n {[0, 1, 2].map((i) => (\n <div\n key={i}\n style={{\n padding: \"8px 18px 9px\",\n borderBottom:\n i === 0 ? `1.5px solid ${t.ink}` : \"1.5px solid transparent\",\n marginBottom: -1,\n }}\n >\n <svg viewBox=\"0 0 24 24\" width={20} height={20} aria-hidden>\n <path\n d={\n i === 0\n ? \"M4 4h16v16H4zM4 9.5h16M4 14.5h16M9.5 4v16M14.5 4v16\"\n : i === 1\n ? \"M5 5h14v14H5zM10 9.5l5 2.5-5 2.5z\"\n : \"M12 12a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM5 20c.8-3.5 3.6-5.5 7-5.5s6.2 2 7 5.5\"\n }\n {...line(i === 0 ? t.ink : t.faint)}\n />\n </svg>\n </div>\n ))}\n </div>\n <div\n style={{\n display: \"grid\",\n gridTemplateColumns: \"1fr 1fr 1fr\",\n gap: 2,\n }}\n >\n {[0, 1, 2, 3, 4, 5, 7, 8, 2].map((ix, i) => (\n <div key={`${ix}-${i}`} style={{ height: 112, overflow: \"hidden\" }}>\n <Img\n src={img(ix)}\n style={{ width: \"100%\", height: \"100%\", objectFit: \"cover\" }}\n />\n </div>\n ))}\n </div>\n </div>\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n bottom: 0,\n height: 74,\n background: t.bg,\n borderTop: `1px solid ${t.hair}`,\n display: \"flex\",\n justifyContent: \"space-around\",\n paddingTop: 12,\n boxSizing: \"border-box\",\n }}\n >\n {[\n \"M4 10.5 12 4l8 6.5V20h-5v-5h-6v5H4z\",\n \"M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14ZM20 20l-4-4\",\n \"M5 5h14v14H5zM12 9v6M9 12h6\",\n \"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 \"M12 12a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM5 20c.8-3.5 3.6-5.5 7-5.5s6.2 2 7 5.5\",\n ].map((d, i) => (\n <svg key={d} viewBox=\"0 0 24 24\" width={24} height={24} aria-hidden>\n <path d={d} {...line(i === 4 ? t.ink : t.muted, 1.6)} />\n </svg>\n ))}\n </div>\n </>\n );\n\n const workScreen = (\n <>\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: 46,\n transform: `translateY(${-scrollM}px)`,\n filter:\n scrollMV > 3\n ? `blur(${Math.min(3, scrollMV * 0.12)}px)`\n : undefined,\n }}\n >\n <div\n style={{\n padding: \"6px 16px 0\",\n fontSize: 30,\n fontWeight: 300,\n color: t.ink,\n letterSpacing: \"-0.035em\",\n }}\n >\n Selected work\n </div>\n <div style={{ display: \"flex\", gap: 6, padding: \"12px 16px 14px\" }}>\n {[\"All\", \"Motion\", \"Web\", \"Sound\"].map((c, i) => (\n <span\n key={c}\n style={{\n height: 30,\n padding: \"0 12px\",\n borderRadius: 15,\n fontSize: 13,\n display: \"flex\",\n alignItems: \"center\",\n background: i === 0 ? t.ink : t.fill,\n color: i === 0 ? t.bg : t.ink,\n }}\n >\n {c}\n </span>\n ))}\n </div>\n {[\n [\"Launch film\", \"2026 · 0:42\"],\n [\"Brand motion kit\", \"2026 · 24 scenes\"],\n [\"App store preview\", \"2025 · 0:30\"],\n [\"Product teaser\", \"2025 · 0:15\"],\n [\"Keynote opener\", \"2025 · 1:10\"],\n ].map(([title, meta], i) => (\n <div key={title} style={{ padding: \"0 12px 14px\" }}>\n <div\n style={{\n position: \"relative\",\n height: 200,\n borderRadius: 20,\n overflow: \"hidden\",\n }}\n >\n <Img\n src={img(i * 2)}\n style={{\n width: \"100%\",\n height: \"100%\",\n objectFit: \"cover\",\n }}\n />\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background:\n \"linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.6) 100%)\",\n }}\n />\n <div\n style={{\n position: \"absolute\",\n left: 14,\n right: 14,\n bottom: 12,\n display: \"flex\",\n alignItems: \"flex-end\",\n }}\n >\n <div style={{ flex: 1 }}>\n <div style={{ fontSize: 17, color: \"#fff\" }}>{title}</div>\n <div\n style={{ fontSize: 13, color: \"rgba(255,255,255,0.72)\" }}\n >\n {meta}\n </div>\n </div>\n <div\n style={{\n width: 34,\n height: 34,\n borderRadius: 17,\n background: \"rgba(255,255,255,0.22)\",\n backdropFilter: \"blur(8px)\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <svg viewBox=\"0 0 24 24\" width={14} height={14} aria-hidden>\n <path d=\"M8 5.5v13l10-6.5z\" fill=\"#fff\" />\n </svg>\n </div>\n </div>\n </div>\n </div>\n ))}\n </div>\n <div\n style={{\n position: \"absolute\",\n left: 12,\n right: 12,\n top: 50,\n height: 64,\n borderRadius: 20,\n background: dark ? \"rgba(36,36,40,0.94)\" : \"rgba(255,255,255,0.96)\",\n border: `1px solid ${t.hair}`,\n boxShadow: \"0 12px 30px rgba(0,0,0,0.28)\",\n display: \"flex\",\n alignItems: \"center\",\n gap: 12,\n padding: \"0 14px\",\n zIndex: 7,\n opacity: frame >= B.banner ? Math.min(1, banner * 2) : 0,\n transform: `translateY(${mix(-90, 0, banner)}px) scale(${mix(0.9, 1, banner)})`,\n }}\n >\n <div\n style={{\n width: 36,\n height: 36,\n borderRadius: 10,\n background: accent,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flexShrink: 0,\n }}\n >\n <svg viewBox=\"0 0 24 24\" width={18} height={18} aria-hidden>\n <path d=\"m6 12.5 4 4 8-9\" {...line(\"#fff\", 2.2)} />\n </svg>\n </div>\n <div style={{ flex: 1, minWidth: 0 }}>\n <div style={{ fontSize: 14, color: t.ink }}>{liveLabel}</div>\n <div style={{ fontSize: 13, color: t.muted, whiteSpace: \"nowrap\" }}>\n {handle}.studio · now\n </div>\n </div>\n </div>\n <div\n style={{\n position: \"absolute\",\n left: SW / 2 - 28,\n bottom: 26,\n width: 56,\n height: 56,\n borderRadius: 28,\n background: dark ? \"#f5f4f2\" : \"#141414\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n boxShadow: \"0 10px 24px rgba(0,0,0,0.35)\",\n zIndex: 4,\n }}\n >\n <svg viewBox=\"0 0 24 24\" width={20} height={20} aria-hidden>\n <path d=\"M8 5.5v13l10-6.5z\" fill={dark ? \"#0c0c0e\" : \"#ffffff\"} />\n </svg>\n </div>\n </>\n );\n\n const aboutScreen = (\n <>\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: 46,\n transform: `translateY(${-scrollR}px)`,\n }}\n >\n {navRow(\"About\")}\n <div style={{ padding: \"18px 18px 0\" }}>\n <div style={{ fontSize: 13, color: accent, letterSpacing: \"0.02em\" }}>\n {name} · {role}\n </div>\n <div\n style={{\n fontSize: 30,\n fontWeight: 300,\n color: t.ink,\n letterSpacing: \"-0.035em\",\n lineHeight: 1.08,\n marginTop: 12,\n }}\n >\n {headline}{\" \"}\n <span\n style={{\n fontFamily: serif.fontFamily,\n fontStyle: \"italic\",\n fontWeight: 400,\n letterSpacing: \"-0.01em\",\n color: accent,\n }}\n >\n {accentWord}\n </span>\n </div>\n <div\n style={{\n fontSize: 13,\n color: t.muted,\n lineHeight: 1.5,\n marginTop: 14,\n }}\n >\n Eight years of launch films, product reveals and the small\n transitions that make an interface feel alive.\n </div>\n </div>\n <div\n style={{ margin: \"18px 18px 0\", borderTop: `1px solid ${t.hair}` }}\n >\n {skills.map((s, i) => (\n <div\n key={s}\n style={{\n height: 52,\n display: \"flex\",\n alignItems: \"center\",\n gap: 12,\n borderBottom: `1px solid ${t.hair}`,\n fontSize: 16,\n color: t.ink,\n }}\n >\n <svg viewBox=\"0 0 24 24\" width={20} height={20} aria-hidden>\n <path\n d={\n i % 3 === 0\n ? \"M5 5h14v14H5zM10 9.5l5 2.5-5 2.5z\"\n : i % 3 === 1\n ? \"M4 10v4M8 7v10M12 4v16M16 8v8M20 11v2\"\n : \"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM4 12h16M12 4c2.5 2.5 2.5 13.5 0 16M12 4c-2.5 2.5-2.5 13.5 0 16\"\n }\n {...line(t.muted)}\n />\n </svg>\n <span style={{ flex: 1 }}>{s}</span>\n <span style={{ fontSize: 13, color: t.faint }}>\n {[12, 7, 9][i % 3]} projects\n </span>\n <svg viewBox=\"0 0 24 24\" width={16} height={16} aria-hidden>\n <path d=\"m9 6 6 6-6 6\" {...line(t.faint)} />\n </svg>\n </div>\n ))}\n </div>\n </div>\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n bottom: 0,\n height: 110,\n background: `linear-gradient(180deg, transparent, ${t.bg} 40%)`,\n }}\n />\n <div\n style={{\n position: \"absolute\",\n left: 18,\n right: 18,\n bottom: 30,\n height: 54,\n display: \"flex\",\n alignItems: \"center\",\n gap: 12,\n }}\n >\n <div style={{ flex: 1 }}>\n <div style={{ fontSize: 15, color: t.ink }}>Open for projects</div>\n <div style={{ fontSize: 13, color: t.muted }}>\n Replies within a day\n </div>\n </div>\n <div\n style={{\n width: 54,\n height: 54,\n borderRadius: 27,\n background: accent,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n boxShadow: `inset 0 1px 0 rgba(255,255,255,0.3), 0 10px 24px color-mix(in oklab, ${accent} 45%, transparent)`,\n }}\n >\n <svg viewBox=\"0 0 24 24\" width={20} height={20} aria-hidden>\n <path d=\"M7 17 17 7M9 7h8v8\" {...line(\"#fff\", 1.8)} />\n </svg>\n </div>\n </div>\n </>\n );\n\n const screens = [profileScreen, workScreen, aboutScreen];\n\n return (\n <AbsoluteFill\n style={{ fontFamily: manrope.fontFamily, overflow: \"hidden\" }}\n >\n <GshGround\n preset={resolvedPreset}\n params={resolvedParams}\n timeOffset={2}\n timeScale={0.4}\n />\n <svg width={0} height={0} style={{ position: \"absolute\" }} aria-hidden>\n {rise.map((r, i) => (\n <filter\n key={B.rise[i]}\n id={`pt-rise-${i}`}\n x=\"-10%\"\n y=\"-10%\"\n width=\"120%\"\n height=\"120%\"\n >\n <feGaussianBlur\n stdDeviation={`0 ${Math.min(6, Math.abs(r - risePrev[i]) * PH * 0.06)}`}\n />\n </filter>\n ))}\n </svg>\n <div\n style={{\n position: \"absolute\",\n left: 0,\n top: 0,\n width: stageW,\n height: stageH,\n transform: `scale(${k})`,\n transformOrigin: \"0 0\",\n perspective: 2400,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: stageW / 2,\n top: stageH / 2,\n width: 0,\n height: 0,\n transformStyle: \"preserve-3d\",\n transform: `scale(${camPush}) rotateX(${4 - 2 * fwd}deg)`,\n }}\n >\n {[0, 2, 1].map((i) => {\n const L = layout[i];\n const r = rise[i];\n const side = i !== 1;\n const blurV = Math.abs(r - risePrev[i]) * PH * 0.06;\n const tilt = (i - 1) * mix(10, 0, Math.min(1, r));\n return (\n <div\n key={i}\n style={{\n position: \"absolute\",\n left: 0,\n top: 0,\n zIndex: L.z,\n transform: `translate(${L.x}px, ${L.y + mix(stageH * 0.85, 0, r)}px) rotateZ(${tilt}deg) rotateY(${(1 - i) * 6 * (side ? 1 - fwd * 0.4 : 0)}deg) scale(${L.s})`,\n filter:\n [\n blurV > 0.4 ? `url(#pt-rise-${i})` : \"\",\n side && fwd > 0.01\n ? `brightness(${mix(1, dark ? 0.62 : 0.9, fwd)}) blur(${fwd * 1.4}px)`\n : \"\",\n ]\n .join(\" \")\n .trim() || undefined,\n opacity: frame >= B.rise[i] ? 1 : 0,\n }}\n >\n <Phone t={t} shellDark={dark}>\n {screens[i]}\n </Phone>\n </div>\n );\n })}\n </div>\n </div>\n </AbsoluteFill>\n );\n}\n\nexport default PhoneTrio;\n",
"type": "registry:component",
"target": "components/remocn/phone-trio.tsx"
}
],
"type": "registry:component"
}