Product Showcase
An independent 26.7-second editorial product film with forest-green accents, original photography, seven editable demos, and geometric marks.
Source
components/kuchi/templates/launch-anything/assets.ts
1// Original AI-generated editorial plates, hosted on the Kuchi media CDN.2export const launchMedia = {3 "desk": "https://kuchi-media.kalarislabs.com/components/templates/launch-anything-desk.jpg",4 "horizon": "https://kuchi-media.kalarislabs.com/components/templates/launch-anything-horizon.jpg",5 "rocket": "https://kuchi-media.kalarislabs.com/components/templates/launch-anything-rocket.jpg",6 "earth": "https://kuchi-media.kalarislabs.com/components/templates/launch-anything-earth.jpg"7};
components/kuchi/templates/launch-anything/content.ts
1import { launchMedia } from "./assets";2import type { ShowcaseId } from "./motion";34export const launchContent = {5 opening: "Good",6 subject: "ideas",7 ready: "deserve a stage",8 next: "Let’s make",9 action: "them real",10 proof: "Your work.\nA clearer view.",11 industry: "Built around you",12 promise: "Made to be yours.",13 launch: "Begin",14 shoppers: "Small things. Well made.",15 builder: "Turn a brief into a workspace",16 builderPrompt: "Create a workspace for our next product release",17 trading: "Review once.\nMove forward.",18 loyalty: "A place for every idea",19 loyaltyPayoff: "Room for the next one",20 integration: "Bring your work together",21 integrations: ["Files", "Messages", "Calendar"],22 shopName: "Object Study",23 shopHeadline: "Everyday, considered.",24 shopDetail: "Useful objects. Quiet details.",25 shopAction: "Explore the objects",26 connections: "Connect your tools.\nKeep work moving.",27};2829export type LaunchContent = typeof launchContent;30export type LaunchMedia = typeof launchMedia;3132export type LaunchAnythingProps = {33 /** Editable closing label or URL. The default uses a reserved example domain. */34 brandUrl?: string;35 accentColor?: string;36 opening?: string;37 subject?: string;38 content?: Partial<LaunchContent>;39 media?: Partial<LaunchMedia>;40 /** Optional custom screen images, cropped to the laptop display. */41 screenImages?: Partial<Record<ShowcaseId, string>>;42 /** Custom brand marks for the floating proof grid. */43 logos?: string[];44 logoSrc?: string;45 audioSrc?: string;46 volume?: number;47};4849export function resolveLaunchProps(props: LaunchAnythingProps) {50 const integrations = props.content?.integrations?.filter((name) =>51 name.trim(),52 );53 return {54 brandUrl: props.brandUrl ?? "yourproduct.example",55 accent: props.accentColor ?? "#245744",56 content: {57 ...launchContent,58 ...props.content,59 ...(props.opening === undefined ? {} : { opening: props.opening }),60 ...(props.subject === undefined ? {} : { subject: props.subject }),61 integrations: integrations?.length62 ? integrations63 : launchContent.integrations,64 },65 media: { ...launchMedia, ...props.media },66 screenImages: props.screenImages ?? {},67 logos: props.logos?.filter((src) => src.trim()) ?? [],68 logoSrc: props.logoSrc,69 };70}7172export type LaunchScene = ReturnType<typeof resolveLaunchProps>;73export type SceneProps = { scene: LaunchScene; t: number };
components/kuchi/templates/launch-anything/index.tsx
1"use client";23import "@fontsource/manrope/latin-400.css";4import "@fontsource/manrope/latin-500.css";5import "@fontsource/manrope/latin-600.css";6import "@fontsource/manrope/latin-700.css";7import "@fontsource/manrope/latin-800.css";8import {9 AbsoluteFill,10 Audio,11 Sequence,12 useCurrentFrame,13 useVideoConfig,14} from "remotion";15import { type LaunchAnythingProps, resolveLaunchProps } from "./content";16import {17 LAUNCH_FPS,18 LAUNCH_FRAMES,19 LAUNCH_HEIGHT,20 LAUNCH_WIDTH,21 launchTimeline,22} from "./motion";23import { Action } from "./scenes/action";24import { Address, ClosingMark } from "./scenes/closing";25import { Industry } from "./scenes/industry";26import { Opening } from "./scenes/opening";27import { Portal } from "./scenes/portal";28import { Proof } from "./scenes/proof";29import { Showcase } from "./scenes/showcase";30import { Space } from "./scenes/space";3132export { launchMedia } from "./assets";33export type {34 LaunchAnythingProps,35 LaunchContent,36 LaunchMedia,37} from "./content";38export { launchContent } from "./content";39export {40 LAUNCH_FPS,41 LAUNCH_FRAMES,42 LAUNCH_HEIGHT,43 LAUNCH_WIDTH,44 launchTimeline,45 showcaseTimeline,46} from "./motion";4748const scenes = {49 opening: Opening,50 action: Action,51 portal: Portal,52 showcase: Showcase,53 proof: Proof,54 industry: Industry,55 space: Space,56 address: Address,57 mark: ClosingMark,58};5960export function LaunchAnything(props: LaunchAnythingProps) {61 const frame = useCurrentFrame();62 const { width, height, fps } = useVideoConfig();63 const scene = resolveLaunchProps(props);64 const scale = Math.min(width / 480, height / 270);65 const volume = Number.isFinite(props.volume)66 ? Math.min(1, Math.max(0, props.volume ?? 1))67 : 1;68 return (69 <AbsoluteFill70 name="Product Showcase"71 style={{72 background: "#122d24",73 color: "#fff",74 overflow: "hidden",75 fontFamily: "Manrope, sans-serif",76 WebkitFontSmoothing: "antialiased",77 }}78 >79 <div80 style={{81 position: "absolute",82 left: (width - 480 * scale) / 2,83 top: (height - 270 * scale) / 2,84 width: 480,85 height: 270,86 transform: `scale(${scale})`,87 transformOrigin: "0 0",88 overflow: "hidden",89 }}90 >91 {launchTimeline.map((shot) => {92 const Component = scenes[shot.id];93 return (94 <Sequence95 key={shot.id}96 name={shot.id}97 from={Math.round((shot.from / LAUNCH_FPS) * fps)}98 durationInFrames={99 Math.round((shot.to / LAUNCH_FPS) * fps) -100 Math.round((shot.from / LAUNCH_FPS) * fps)101 }102 layout="none"103 >104 <Component scene={scene} t={frame / fps} />105 </Sequence>106 );107 })}108 </div>109 {props.audioSrc?.trim() ? (110 <Audio src={props.audioSrc} volume={volume} />111 ) : null}112 </AbsoluteFill>113 );114}115116export const ProductShowcase = LaunchAnything;117export type ProductShowcaseProps = LaunchAnythingProps;118119export const launchAnythingConfig = {120 componentName: "ProductShowcase",121 importPath: "@/components/kuchi/templates/launch-anything",122 controls: {123 opening: {124 type: "text-content" as const,125 default: "Good",126 description: "First chrome word",127 },128 subject: {129 type: "text-content" as const,130 default: "ideas",131 description: "Second chrome word",132 },133 brandUrl: {134 type: "text-content" as const,135 default: "yourproduct.example",136 description: "Closing website address",137 },138 accentColor: {139 type: "color" as const,140 default: "#245744",141 description: "Product interface accent",142 },143 },144 durationInFrames: LAUNCH_FRAMES,145 fps: LAUNCH_FPS,146 compositionWidth: LAUNCH_WIDTH,147 compositionHeight: LAUNCH_HEIGHT,148};
components/kuchi/templates/launch-anything/motion.ts
1import { Easing, interpolate } from "remotion";23export const LAUNCH_FPS = 60;4export const LAUNCH_FRAMES = 1600;5export const LAUNCH_WIDTH = 1920;6export const LAUNCH_HEIGHT = 1080;78// Measured against the 799-frame, 30000/1001-fps reference. Bounds are exclusive.9export const launchTimeline = [10 { id: "opening", from: 0, to: 228 },11 { id: "action", from: 228, to: 354 },12 { id: "portal", from: 354, to: 440 },13 { id: "showcase", from: 440, to: 907 },14 { id: "proof", from: 907, to: 1021 },15 { id: "industry", from: 1021, to: 1213 },16 { id: "space", from: 1213, to: 1293 },17 { id: "address", from: 1293, to: 1423 },18 { id: "mark", from: 1423, to: LAUNCH_FRAMES },19] as const;2021export const showcaseTimeline = [22 { id: "dashboard", from: 440, to: 506 },23 { id: "shoppers", from: 506, to: 555 },24 { id: "exchange", from: 555, to: 621 },25 { id: "builder", from: 621, to: 675 },26 { id: "trading", from: 675, to: 741 },27 { id: "loyalty", from: 741, to: 841 },28 { id: "integrations", from: 841, to: 907 },29] as const;3031export type ShowcaseId = (typeof showcaseTimeline)[number]["id"];32export const clamp = (n: number) => Math.min(1, Math.max(0, n));33export const settle = Easing.bezier(0.16, 1, 0.3, 1);34export const smooth = Easing.bezier(0.65, 0, 0.25, 1);35export const ramp = (t: number, a: number, b: number) =>36 clamp((t - a) / (b - a));3738/** Shared geometry: the clicked button becomes the portal frame without a cut. */39export function actionFrame(t: number) {40 const enter = tween(t, 4.65, 5.05, 0, 1, smooth);41 const center = tween(t, 5.47, 5.83, 0, 1, smooth);42 const morph = tween(t, 5.83, 6.5, 0, 1, smooth);43 return {44 enter,45 center,46 morph,47 x: (600 - 253 * enter) * (1 - center) + 240 * center,48 y: 135,49 width: 210 + 240 * morph,50 height: 60 + 180 * morph,51 radius: 13 + 43 * morph,52 press: tween(t, 5.35, 5.47) - tween(t, 5.48, 5.65),53 };54}55export function tween(56 t: number,57 a: number,58 b: number,59 from = 0,60 to = 1,61 easing = settle,62) {63 return from + (to - from) * easing(ramp(t, a, b));64}65export function key(t: number, times: number[], values: number[]) {66 return interpolate(t, times, values, {67 extrapolateLeft: "clamp",68 extrapolateRight: "clamp",69 });70}71export function getShowcase(t: number) {72 const frame = Math.max(440, Math.min(906, Math.round(t * LAUNCH_FPS)));73 return (74 showcaseTimeline.find((shot) => frame >= shot.from && frame < shot.to) ??75 showcaseTimeline[0]76 );77}7879// Camera and screen are transformed as one layer, so the screen never drifts.80export function deskCamera(t: number) {81 return {82 scale: key(83 t,84 [7.333, 8, 9.25, 10.35, 11.25, 12.35, 13.3, 15.117],85 [1, 1.03, 1.3, 1.58, 1.85, 2.1, 2.26, 2.3],86 ),87 x: key(t, [7.333, 15.117], [0, -10]),88 y: key(t, [7.333, 15.117], [0, -22]),89 };90}
components/kuchi/templates/launch-anything/screens.tsx
1import { useId } from "react";2import { Img } from "remotion";3import type { SceneProps } from "./content";4import { clamp, getShowcase, key, tween } from "./motion";5import { LogoGlyph } from "./ui";67const surface = {8 position: "absolute" as const,9 inset: 0,10 overflow: "hidden" as const,11 background: "#fcfaf7",12 color: "#302921",13};1415function Dashboard({ scene, t }: SceneProps) {16 const p = tween(t, 7.33, 8.25);17 const id = useId();18 return (19 <div style={{ ...surface, fontSize: 9 }}>20 <div21 style={{22 position: "absolute",23 left: 0,24 top: 0,25 bottom: 0,26 width: 112,27 padding: 17,28 background: "#faf8f6",29 borderRight: "1px solid #e8e4df",30 }}31 >32 <div style={{ fontWeight: 700, fontSize: 14, marginBottom: 26 }}>33 ◈ Workroom34 </div>35 {[36 "Workspace",37 "Overview",38 "Milestones",39 "Projects",40 "Teammates",41 "Reports",42 "Settings",43 ].map((label, i) => (44 <div45 key={label}46 style={{47 padding: "10px 2px",48 color: i === 1 ? scene.accent : "#958b86",49 background: i === 1 ? "#e1e9dc" : undefined,50 borderRadius: 4,51 }}52 >53 {label}54 </div>55 ))}56 </div>57 <div style={{ position: "absolute", left: 134, top: 22, right: 20 }}>58 <div59 style={{60 display: "flex",61 justifyContent: "space-between",62 fontSize: 18,63 fontWeight: 600,64 }}65 >66 <span>Your week, in focus</span>67 <span style={{ fontSize: 9, color: "#94837a" }}>This month ▾</span>68 </div>69 <div style={{ display: "flex", gap: 12, marginTop: 24 }}>70 {[71 ["Tasks closed", "128"],72 ["Active projects", "12"],73 ["On track", "92%"],74 ].map(([label, value]) => (75 <div76 key={label}77 style={{78 flex: 1,79 padding: 13,80 border: "1px solid #e8e2dc",81 borderRadius: 7,82 }}83 >84 <div style={{ color: "#a7978e" }}>{label}</div>85 <div style={{ fontSize: 19, marginTop: 9 }}>{value}</div>86 <div style={{ color: "#6b9869", fontSize: 7, marginTop: 5 }}>87 Demo workspace · this month88 </div>89 </div>90 ))}91 </div>92 <div style={{ display: "flex", gap: 14, marginTop: 20 }}>93 <div94 style={{95 width: 285,96 padding: 12,97 border: "1px solid #e8e2dc",98 borderRadius: 7,99 }}100 >101 <b>Project momentum</b>102 <svg103 width="258"104 height="153"105 viewBox="0 0 258 153"106 role="img"107 aria-label="Completed tasks by week"108 >109 <defs>110 <linearGradient id={id} x2="0" y2="1">111 <stop stopColor={scene.accent} />112 <stop offset="1" stopColor="#b5c9ae" />113 </linearGradient>114 </defs>115 {[0, 1, 2, 3].map((n) => (116 <path key={n} d={`M0 ${20 + n * 35}H258`} stroke="#e8e3de" />117 ))}118 {[53, 89, 68, 104, 75, 113, 81, 131].map((h, i) => (119 <g key={i}>120 <rect121 x={i * 31 + 5}122 y={145 - h * p}123 width="10"124 height={h * p}125 rx="3"126 fill={`url(#${id})`}127 />128 <rect129 x={i * 31 + 17}130 y={145 - h * 0.67 * p}131 width="8"132 height={h * 0.67 * p}133 rx="3"134 fill="#d2b58e"135 />136 </g>137 ))}138 </svg>139 </div>140 <div141 style={{142 flex: 1,143 border: "1px solid #e8e2dc",144 padding: 11,145 borderRadius: 7,146 }}147 >148 <b>Recent activity</b>149 {[150 "Brief approved",151 "Review completed",152 "Project completed",153 "Files organized",154 "Milestone reached",155 ].map((label, n) => (156 <div157 key={label}158 style={{ display: "flex", gap: 6, marginTop: 18, fontSize: 8 }}159 >160 <span style={{ color: scene.accent }}>●</span>161 <span>162 {label}163 <small164 style={{ display: "block", color: "#b0a59e", marginTop: 4 }}165 >166 {n * 4 + 2} minutes ago167 </small>168 </span>169 </div>170 ))}171 </div>172 </div>173 </div>174 </div>175 );176}177178function Shoppers({ scene, t }: SceneProps) {179 const p = tween(t, 8.433, 9.1);180 return (181 <div style={{ ...surface, background: "#fdfbec" }}>182 <div183 style={{184 textAlign: "center",185 color: scene.accent,186 fontSize: 41,187 fontWeight: 800,188 letterSpacing: "-0.055em",189 paddingTop: 34,190 }}191 >192 {scene.content.shoppers}193 </div>194 {[195 [-80, 120, "#668d78"],196 [515, 280, "#b4916e"],197 [500, 85, "#d4c7a1"],198 [40, 310, "#a5b38e"],199 ].map(([x, y, color], i) => (200 <div201 key={i}202 style={{203 position: "absolute",204 left: Number(x) + Math.sin(t * 3 + i) * 15,205 top: Number(y),206 width: 50,207 height: 50,208 background: String(color),209 borderRadius: i % 2 ? "30%" : "4px",210 transform: `rotate(${i * 30 + t * 15}deg)`,211 boxShadow: "inset 0 4px 5px #ffffff70, 3px 6px 2px #0002",212 }}213 />214 ))}215 <div216 style={{217 position: "absolute",218 left: 198,219 top: 115,220 width: 235,221 height: 406,222 borderRadius: 38,223 border: "7px solid #293a2d",224 background: "#f6f1e7",225 transform: `translateY(${(1 - p) * 135}px) rotateY(${(1 - p) * 75}deg) rotateZ(${tween(t, 8.43, 9.2, 8, -4)}deg)`,226 overflow: "hidden",227 boxShadow: "10px 14px 25px #243b2424",228 }}229 >230 <div231 style={{232 width: 78,233 height: 18,234 borderRadius: 20,235 background: "#201c26",236 margin: "6px auto",237 }}238 />239 <div240 style={{241 padding: "8px 18px",242 display: "flex",243 justifyContent: "space-between",244 fontSize: 12,245 }}246 >247 <b>{scene.content.shopName}</b>248 <span>♡ ☰</span>249 </div>250 <div251 style={{252 height: 140,253 margin: "6px 10px",254 borderRadius: 11,255 background: "#153326",256 position: "relative",257 overflow: "hidden",258 display: "flex",259 alignItems: "end",260 padding: 12,261 color: "#fff",262 fontSize: 24,263 }}264 >265 <Img266 src={scene.media.rocket}267 style={{268 position: "absolute",269 inset: 0,270 width: "100%",271 height: "100%",272 objectFit: "cover",273 }}274 />275 <div276 style={{277 position: "absolute",278 inset: 0,279 background: "linear-gradient(0deg, #153326aa, transparent)",280 }}281 />282 <span style={{ position: "relative" }}>283 {scene.content.shopHeadline}284 </span>285 </div>286 <div style={{ padding: "12px 15px", fontSize: 13 }}>287 <b>{scene.content.shopDetail}</b>288 <p style={{ fontSize: 9, color: "#827c82" }}>289 A collection for slower mornings.290 </p>291 <div292 style={{293 background: scene.accent,294 color: "#fff",295 padding: 12,296 borderRadius: 7,297 textAlign: "center",298 }}299 >300 {scene.content.shopAction}301 </div>302 </div>303 </div>304 </div>305 );306}307308function Exchange({ scene, t }: SceneProps) {309 const p = tween(t, 9.25, 9.83);310 return (311 <div style={{ ...surface, background: "#122d24", color: "#fff" }}>312 <div313 style={{314 paddingTop: 58,315 fontSize: 22,316 lineHeight: 1.22,317 textAlign: "center",318 opacity: p,319 }}320 >321 <span style={{ whiteSpace: "pre-line" }}>322 {scene.content.connections}323 </span>324 </div>325 <div326 style={{327 position: "absolute",328 left: 270,329 top: 196,330 width: 104,331 height: 123,332 background: "linear-gradient(120deg,#e0e6cb,#7ba385 48%,#345b40)",333 clipPath:334 "polygon(0 0,75% 0,75% 25%,25% 25%,25% 75%,100% 75%,100% 100%,0 100%)",335 transform: `rotateY(${t * 30}deg)`,336 }}337 />338 {Array.from({ length: 12 }, (_, i) => {339 const angle = (i * Math.PI) / 6 + t * 0.3;340 return (341 <div342 key={i}343 style={{344 position: "absolute",345 left: 308 + Math.cos(angle) * 102 * p,346 top: 237 + Math.sin(angle) * 103 * p,347 width: 23,348 height: 23,349 borderRadius: "50%",350 display: "grid",351 placeItems: "center",352 color: "#d2dfbc",353 background: "#244a38",354 border: "1px solid #72937d",355 boxShadow: "0 0 12px #62835e36",356 fontSize: 14,357 }}358 >359 <LogoGlyph variant={i} size={14} />360 </div>361 );362 })}363 <div364 style={{365 position: "absolute",366 bottom: 0,367 width: "100%",368 height: 53,369 borderTop: "1px solid #33313b",370 background: "linear-gradient(#203d2d88, #12271c)",371 }}372 />373 </div>374 );375}376377function Builder({ scene, t }: SceneProps) {378 const prompt = scene.content.builderPrompt.slice(379 0,380 Math.floor(clamp((t - 10.35) / 0.55) * scene.content.builderPrompt.length),381 );382 return (383 <div style={surface}>384 <div385 style={{386 position: "absolute",387 inset: 0,388 display: "flex",389 flexDirection: "column",390 alignItems: "center",391 justifyContent: "center",392 gap: 27,393 }}394 >395 <div396 style={{ fontSize: 20, color: "#245744", letterSpacing: "-0.02em" }}397 >398 {scene.content.builder}399 </div>400 <div401 style={{402 border: "1px solid #ded9d3",403 borderRadius: 8,404 width: 565,405 height: 65,406 display: "flex",407 alignItems: "center",408 padding: 16,409 fontSize: 11,410 boxShadow: "0 5px 15px #38291604",411 }}412 >413 <span style={{ flex: 1 }}>414 {prompt}415 <span style={{ color: "#245744" }}>│</span>416 </span>417 <span418 style={{419 width: 21,420 height: 23,421 borderRadius: 5,422 background: "linear-gradient(130deg,#749876,#245744)",423 color: "#fff",424 display: "grid",425 placeItems: "center",426 }}427 >428 ↑429 </span>430 </div>431 </div>432 </div>433 );434}435436function Trading({ scene, t }: SceneProps) {437 return (438 <div style={{ ...surface, background: "#132a21", color: "#f4f1df" }}>439 <div440 style={{441 position: "absolute",442 left: -28,443 top: 35,444 width: 215,445 height: 336,446 background: "#08100f",447 opacity: 0.7,448 transform: "rotateY(28deg) rotateZ(-7deg)",449 overflow: "hidden",450 }}451 >452 <div style={{ padding: 12, fontSize: 10 }}>Review activity</div>453 {Array.from({ length: 25 }, (_, i) => (454 <div455 key={i}456 style={{457 marginTop: 6,458 height: 5,459 background: i < 11 ? "#7d7654" : "#135d4c",460 width: 35 + ((i * 17) % 160),461 }}462 />463 ))}464 </div>465 <div466 style={{467 position: "absolute",468 left: 158,469 top: 31,470 width: 217,471 height: 357,472 background: "linear-gradient(120deg,#1b382a,#152d23)",473 border: "1px solid #32312b",474 borderRadius: 8,475 padding: 16,476 boxShadow: "8px 0 15px #d5b77810",477 transform: `perspective(900px) rotateY(${tween(t, 11.25, 12.35, -12, 0)}deg)`,478 }}479 >480 <div style={{ fontSize: 10 }}>Draft Review Ready</div>481 <div style={{ height: 1, background: "#34312a", marginTop: 16 }} />482 <div style={{ fontSize: 9, color: "#aba694", marginTop: 15 }}>483 Project484 </div>485 <div style={{ fontSize: 13, marginTop: 8 }}>Autumn release ⌄</div>486 <div style={{ fontSize: 9, color: "#9f9d8c", marginTop: 22 }}>487 Review progress488 </div>489 <div style={{ fontSize: 22, marginTop: 9 }}>490 12 / 12491 <span style={{ fontSize: 10, float: "right", color: "#a09a81" }}>492 DONE493 </span>494 </div>495 <div style={{ display: "flex", marginTop: 18, gap: 6 }}>496 <span497 style={{498 flex: 1,499 background: "#008963",500 textAlign: "center",501 padding: 9,502 fontSize: 13,503 borderRadius: 4,504 }}505 >506 Approve507 </span>508 <span509 style={{510 flex: 1,511 background: "#705d41",512 textAlign: "center",513 padding: 9,514 fontSize: 13,515 borderRadius: 4,516 }}517 >518 Revise519 </span>520 </div>521 {[522 "Files reviewed",523 "Comments resolved",524 "Contributors",525 "Next milestone",526 ].map((label, i) => (527 <div528 key={label}529 style={{530 display: "flex",531 justifyContent: "space-between",532 marginTop: 18,533 fontSize: 8,534 color: "#8a877a",535 }}536 >537 <span>{label}</span>538 <span>539 {["12 files", "28 / 28", "4 people", "Ready to share"][i]}540 </span>541 </div>542 ))}543 </div>544 <div545 style={{546 position: "absolute",547 left: 395,548 top: 175,549 width: 222,550 whiteSpace: "pre-line",551 fontSize: 29,552 lineHeight: 1.14,553 letterSpacing: "-0.045em",554 opacity: tween(t, 11.25, 11.55),555 color: "#d3dfbd",556 }}557 >558 {scene.content.trading}559 </div>560 </div>561 );562}563564function Loyalty({ scene, t }: SceneProps) {565 const age = t - 12.35;566 const grow = tween(age, 0.68, 1.5, 0, 1);567 const id = useId();568 const cards = [-1, 1];569 return (570 <div style={{ ...surface, background: "#fffef9" }}>571 {cards.map((side) => (572 <div573 key={side}574 style={{575 position: "absolute",576 left: 285 + side * (164 + grow * 68),577 top: 160 + side * grow * 21,578 width: 177,579 height: 130,580 background: "#fffefb",581 borderRadius: 8,582 border: "1px solid #e0dce4",583 padding: 14,584 boxShadow: `${side * 24}px 0 20px ${scene.accent}35`,585 transform: `rotate(${side * grow * 14}deg) translateX(${tween(age, 0, 0.4, side * 140, -70)}px)`,586 fontSize: 10,587 }}588 >589 <b>◫ Project notes</b>590 <p>Collect ideas. Connect the details.</p>591 {[80, 106, 63].map((width, n) => (592 <div593 key={n}594 style={{ height: 3, width, background: "#d9d5d9", marginTop: 9 }}595 />596 ))}597 </div>598 ))}599 <svg600 viewBox="0 0 260 280"601 width={95 + grow * 230}602 height={104 + grow * 248}603 role="img"604 aria-label="Layered project cards"605 style={{606 position: "absolute",607 left: 265 - grow * 97,608 top: 173 - grow * 104,609 transform: `rotate(${key(age, [0, 0.65, 1.4, 1.66], [0, -10, 16, 4])}deg)`,610 }}611 >612 <defs>613 <linearGradient id={id} x1="0" x2="1" y1="0" y2="1">614 <stop stopColor="#92b195" />615 <stop offset="0.3" stopColor={scene.accent} />616 <stop offset="1" stopColor="#153b2a" />617 </linearGradient>618 </defs>619 <rect620 x="24"621 y="30"622 width="170"623 height="215"624 rx="10"625 fill="#c8d2b9"626 transform="rotate(-12 130 140)"627 />628 <rect629 x="54"630 y="20"631 width="170"632 height="215"633 rx="10"634 fill={`url(#${id})`}635 transform="rotate(8 130 140)"636 />637 <path638 d="M88 74h89M88 96h64M88 163h80M88 181h53"639 stroke="#e8efda"640 strokeWidth="8"641 strokeLinecap="round"642 />643 <path644 d="M90 122l13 13 29-31"645 fill="none"646 stroke="#d5dfaa"647 strokeWidth="8"648 strokeLinecap="round"649 strokeLinejoin="round"650 />651 </svg>652 {[653 [-1, 65],654 [1, 70],655 [-1, 317],656 ].map(([side, y], i) => (657 <div658 key={i}659 style={{660 position: "absolute",661 left: 302 + side * (205 + Math.sin(age * 3 + i) * 24),662 top: y,663 width: 26 + i * 5,664 height: 26 + i * 5,665 borderRadius: 5,666 background: i === 1 ? "#d3bb7b" : scene.accent,667 transform: `rotate(${age * 70 + i * 30}deg)`,668 opacity: tween(age, 0.1 + i * 0.1, 0.45 + i * 0.1),669 }}670 />671 ))}672 <div673 style={{674 position: "absolute",675 left: 0,676 right: 0,677 bottom: 21,678 textAlign: "center",679 }}680 >681 <span682 style={{683 background: "#554941bf",684 color: "#fff",685 fontSize: 14,686 padding: "3px 7px",687 }}688 >689 {age > 1.35 ? scene.content.loyaltyPayoff : scene.content.loyalty}690 </span>691 </div>692 </div>693 );694}695696function Integrations({ scene, t }: SceneProps) {697 const names = scene.content.integrations;698 const index = Math.min(699 names.length - 1,700 Math.floor(clamp((t - 14.017) / 1.1) * names.length),701 );702 const progress = (((t - 14.017) * names.length) / 1.1) % 1;703 return (704 <div705 style={{706 ...surface,707 display: "flex",708 alignItems: "center",709 justifyContent: "center",710 gap: 10,711 fontSize: 17,712 }}713 >714 <span>{scene.content.integration}</span>715 <span716 style={{717 width: 33,718 height: 33,719 display: "grid",720 placeItems: "center",721 borderRadius: "50%",722 background: index === 0 ? "#204732" : "#2b4938",723 color: index === 0 ? "#e6a749" : "white",724 transform: `scale(${tween(progress, 0, 0.3, 0.6, 1)})`,725 }}726 >727 <LogoGlyph variant={[2, 1, 6][index % 3]} size={22} />728 </span>729 <span730 style={{731 borderRadius: 5,732 color: "#fff",733 background: scene.accent,734 padding: "10px 13px",735 transform: `translateY(${tween(progress, 0, 0.3, 12, 0)}px)`,736 opacity: tween(progress, 0, 0.17),737 }}738 >739 {names[index]}740 </span>741 </div>742 );743}744745export function ShowcaseScreen(props: SceneProps) {746 switch (getShowcase(props.t).id) {747 case "dashboard":748 return <Dashboard {...props} />;749 case "shoppers":750 return <Shoppers {...props} />;751 case "exchange":752 return <Exchange {...props} />;753 case "builder":754 return <Builder {...props} />;755 case "trading":756 return <Trading {...props} />;757 case "loyalty":758 return <Loyalty {...props} />;759 case "integrations":760 return <Integrations {...props} />;761 }762}
components/kuchi/templates/launch-anything/ui.tsx
1import type { CSSProperties, ReactNode } from "react";2import { Img, Interactive } from "remotion";3import { clamp, tween } from "./motion";45export function Center({6 children,7 style,8}: {9 children: ReactNode;10 style?: CSSProperties;11}) {12 return (13 <div14 style={{15 position: "absolute",16 inset: 0,17 display: "flex",18 alignItems: "center",19 justifyContent: "center",20 ...style,21 }}22 >23 {children}24 </div>25 );26}2728export function Title({29 text,30 size = 44,31 style,32}: {33 text: string;34 size?: number;35 style?: CSSProperties;36}) {37 const longest = Math.max(...text.split("\n").map((line) => line.length), 1);38 return (39 <Interactive.Div40 name="Headline"41 style={{42 fontSize: Math.min(size, 720 / longest),43 fontWeight: 500,44 lineHeight: 1.13,45 letterSpacing: "-0.04em",46 wordSpacing: "0.025em",47 textAlign: "center",48 whiteSpace: "pre-line",49 ...style,50 }}51 >52 {text}53 </Interactive.Div>54 );55}5657export function BrandMark({58 size = 68,59 color = "currentColor",60 src,61}: {62 size?: number;63 color?: string;64 src?: string;65}) {66 if (src)67 return (68 <Img69 src={src}70 style={{ width: size, height: size * 1.25, objectFit: "contain" }}71 />72 );73 return (74 <svg75 width={size}76 height={size * 1.25}77 viewBox="0 0 100 125"78 aria-label="Product frame mark"79 role="img"80 >81 <path82 d="M12 12H78V28H28V78H12ZM38 42H88V108H22V92H72V58H38Z"83 fill={color}84 stroke={color}85 strokeWidth="4"86 strokeLinejoin="round"87 />88 </svg>89 );90}9192export function RevealCopy({93 text,94 t,95 start,96 size = 43,97 dark = false,98}: {99 text: string;100 t: number;101 start: number;102 size?: number;103 dark?: boolean;104}) {105 const amount = tween(t, start, start + 0.55);106 return (107 <Title108 text={text}109 size={size}110 style={{111 opacity: clamp((t - start) * 14),112 backgroundImage: `linear-gradient(105deg, ${dark ? "#060609" : "#fff"} ${amount * 140 - 35}%, #a0bea9 ${amount * 140 - 18}%, #497761 ${amount * 140}%, ${dark ? "#070707" : "#cedbcb"} ${amount * 140 + 26}%)`,113 backgroundClip: "text",114 WebkitBackgroundClip: "text",115 color: "transparent",116 transform: `translateY(${(1 - amount) * 6}px)`,117 filter: `blur(${(1 - amount) * 1.4}px)`,118 }}119 />120 );121}122123export function LogoGlyph({124 variant,125 size = 26,126 color = "currentColor",127}: {128 variant: number;129 size?: number;130 color?: string;131}) {132 const type = ((variant % 6) + 6) % 6;133 const paths = [134 "M5 5h21v8H13v13H5ZM19 19h16v16H19v-7h9v-9Z",135 "M4 4h8v8H4Zm12 0h8v8h-8Zm12 0h8v8h-8ZM4 16h8v8H4Zm12 0h8v8h-8ZM4 28h8v8H4Z",136 "M4 30V16a16 16 0 0 1 32 0v14h-7V16a9 9 0 0 0-18 0v14Z",137 "M4 4h12v12H4Zm20 20h12v12H24ZM9 20h5v9h6v5H9Zm11-11h14v11h-5v-6h-9Z",138 "M5 4h7v32H5Zm12 6h7v26h-7Zm12 6h7v20h-7Z",139 "M4 5h32v7H4Zm0 12h22v7H4Zm0 12h12v7H4Z",140 ];141 return (142 <svg width={size} height={size} viewBox="0 0 40 40" aria-hidden="true">143 <path d={paths[type]} fill={color} />144 </svg>145 );146}
components/kuchi/templates/launch-anything/scenes/opening.tsx
1import { Img, Sequence, useVideoConfig } from "remotion";2import { ShaderTextReveal } from "@/components/kuchi/shader-text-reveal";3import type { SceneProps } from "../content";4import { tween } from "../motion";5import { Center, Title } from "../ui";67export function Opening({ scene, t }: SceneProps) {8 const { fps } = useVideoConfig();9 return (10 <>11 <Sequence12 name="Opening — chrome reveal"13 durationInFrames={Math.round(fps)}14 >15 <div16 style={{17 position: "absolute",18 inset: 0,19 filter:20 "sepia(0.7) hue-rotate(65deg) saturate(0.65) brightness(1.35)",21 maskImage: `linear-gradient(125deg, transparent ${tween(t, 0.7, 1, -70, 105)}%, black ${tween(t, 0.7, 1, -45, 130)}%)`,22 }}23 >24 <ShaderTextReveal25 text={`${scene.content.opening}\n`}26 fontFamily="Manrope"27 fontWeight={500}28 fontSize={430}29 wordDuration={fps * 1.4}30 />31 </div>32 </Sequence>33 <Sequence34 name="Subject — chrome reveal"35 from={Math.round(fps)}36 durationInFrames={Math.round(fps * 1.5)}37 >38 <div39 style={{40 position: "absolute",41 inset: 0,42 filter:43 "sepia(0.7) hue-rotate(65deg) saturate(0.65) brightness(1.35)",44 }}45 >46 <ShaderTextReveal47 text={`${scene.content.subject}\n`}48 fontFamily="Manrope"49 fontWeight={500}50 fontSize={300}51 wordDuration={fps * 1.4}52 />53 </div>54 </Sequence>55 {t >= 2.5 ? (56 <>57 <Img58 src={scene.media.horizon}59 style={{60 position: "absolute",61 inset: 0,62 width: "100%",63 height: "100%",64 objectFit: "cover",65 opacity: tween(t, 2.5, 2.85),66 transform: `scale(${tween(t, 2.5, 3.8, 1.1, 1)})`,67 filter: "brightness(0.66) saturate(0.85) blur(0.4px)",68 }}69 />70 <Center>71 <Title72 text={scene.content.ready}73 size={57}74 style={{75 color: "#fff9ee",76 opacity: tween(t, 2.5, 2.7),77 filter: `blur(${tween(t, 2.5, 2.9, 7, 0)}px)`,78 textShadow: "0 0 3px #fff6",79 }}80 />81 </Center>82 </>83 ) : null}84 </>85 );86}
components/kuchi/templates/launch-anything/scenes/action.tsx
1import { useId } from "react";2import type { SceneProps } from "../content";3import { actionFrame, tween } from "../motion";4import { Center, RevealCopy } from "../ui";5import { ActionFrame, actionBackground } from "./action-frame";67export function Action({ scene, t }: SceneProps) {8 const id = useId();9 const shape = actionFrame(t);10 const travel = shape.enter;11 const press = shape.press;12 return (13 <div14 style={{15 position: "absolute",16 inset: 0,17 background: actionBackground,18 color: "#050608",19 }}20 >21 <div22 style={{23 position: "absolute",24 inset: 0,25 transform: `translateX(${-118 * travel}px)`,26 opacity: 1 - tween(t, 5.4, 5.65),27 }}28 >29 <Center>30 <RevealCopy31 text={scene.content.next}32 size={47 - 11 * travel}33 t={t}34 start={3.8}35 dark36 />37 </Center>38 </div>39 <ActionFrame scene={scene} t={t} />40 <div41 style={{42 position: "absolute",43 left: shape.x - 105,44 top: 105,45 width: 216,46 height: 61,47 opacity: travel,48 perspective: 600,49 }}50 >51 <svg52 role="img"53 aria-label="Click pointer"54 viewBox="0 0 60 72"55 width="46"56 height="55"57 style={{58 position: "absolute",59 left: 110,60 top: tween(t, 5.02, 5.35, 92, 34) + press * 5,61 opacity: tween(t, 5.02, 5.18) * (1 - tween(t, 5.48, 5.75)),62 filter: "drop-shadow(0 6px 4px #365a342a)",63 transform: `scale(${1 - press * 0.12}) rotate(-12deg)`,64 }}65 >66 <defs>67 <linearGradient id={id} x1="0" x2="1" y1="0" y2="1">68 <stop stopColor="#93af8f" />69 <stop offset="0.5" stopColor={scene.accent} />70 <stop offset="1" stopColor="#d3dfc2" />71 </linearGradient>72 </defs>73 <path74 d="M27 4Q30 0 33 4L57 57Q58 64 51 62L32 54 13 63Q5 66 9 56Z"75 fill={`url(#${id})`}76 stroke="#b3c6a4"77 strokeWidth="1"78 />79 </svg>80 </div>81 </div>82 );83}
components/kuchi/templates/launch-anything/scenes/portal.tsx
1import type { SceneProps } from "../content";2import { ActionFrame, actionBackground } from "./action-frame";3export function Portal(props: SceneProps) {4 return (5 <div6 style={{7 position: "absolute",8 inset: 0,9 background: actionBackground,10 overflow: "hidden",11 }}12 >13 <ActionFrame {...props} />14 </div>15 );16}
components/kuchi/templates/launch-anything/scenes/showcase.tsx
1import { Img } from "remotion";2import type { SceneProps } from "../content";3import { deskCamera, getShowcase, tween } from "../motion";4import { ShowcaseScreen } from "../screens";56export function Showcase({ scene, t }: SceneProps) {7 const camera = deskCamera(t);8 const custom = scene.screenImages[getShowcase(t).id];9 return (10 <div11 style={{12 position: "absolute",13 inset: 0,14 overflow: "hidden",15 background: "#e8dcc2",16 }}17 >18 <div19 style={{20 position: "absolute",21 inset: 0,22 transformOrigin: "52% 55%",23 transform: `translate(${camera.x}px, ${camera.y}px) scale(${camera.scale})`,24 }}25 >26 <Img27 src={scene.media.desk}28 style={{29 position: "absolute",30 inset: 0,31 width: "100%",32 height: "100%",33 objectFit: "fill",34 }}35 />36 {/* Code-native, unbranded laptop. The screen keeps the camera's existing focus geometry. */}37 <svg38 width="480"39 height="270"40 viewBox="0 0 480 270"41 aria-label="Product display"42 role="img"43 style={{ position: "absolute", inset: 0 }}44 >45 <ellipse46 cx="250"47 cy="208"48 rx="94"49 ry="7"50 fill="#2d241a"51 opacity="0.2"52 />53 <rect54 x="180.8"55 y="99.3"56 width="138.4"57 height="96"58 rx="5"59 fill="#202820"60 stroke="#778272"61 strokeWidth="0.7"62 />63 <circle cx="250" cy="102.5" r="0.6" fill="#6a7764" />64 <path65 d="M180.8 194.5H319.2L337 206H163Z"66 fill="#a6ab98"67 stroke="#666f5d"68 strokeWidth="0.5"69 />70 <path d="M190 197H310L318 202H182Z" fill="#4b5645" />71 <path d="M163 206H337L332 209H168Z" fill="#7e8875" />72 <path d="M234 203H265L268 205H231Z" fill="#d0d3bc" />73 </svg>74 <div75 style={{76 position: "absolute",77 left: (480 * 647) / 1672,78 top: (270 * 368) / 941,79 width: (480 * 447) / 1672,80 height: (270 * 291) / 941,81 clipPath: "polygon(0.8% 0, 99.2% 0, 100% 100%, 0 100%)",82 overflow: "hidden",83 background: "#fcfaf7",84 }}85 >86 {custom ? (87 <Img88 src={custom}89 style={{ width: "100%", height: "100%", objectFit: "cover" }}90 />91 ) : (92 <div93 style={{94 position: "absolute",95 width: 640,96 height: 420,97 transformOrigin: "0 0",98 transform: `scale(${(480 * 447) / 1672 / 640}, ${(270 * 291) / 941 / 420})`,99 }}100 >101 <ShowcaseScreen scene={scene} t={t} />102 </div>103 )}104 <div105 style={{106 position: "absolute",107 inset: 0,108 pointerEvents: "none",109 background:110 "linear-gradient(135deg,#ffc79906,transparent 55%,#99683206)",111 }}112 />113 </div>114 </div>115 <div116 style={{117 position: "absolute",118 inset: 0,119 border: `${tween(t, 7.333, 7.55, 12, 0)}px solid #f7f2e6`,120 borderRadius: tween(t, 7.333, 7.55, 36, 0),121 opacity: 1 - tween(t, 7.4, 7.6),122 pointerEvents: "none",123 }}124 />125 </div>126 );127}
components/kuchi/templates/launch-anything/scenes/proof.tsx
1import { Img } from "remotion";2import type { SceneProps } from "../content";3import { tween } from "../motion";4import { Center, LogoGlyph, Title } from "../ui";56// Fixed staggered field, clear at the headline's center. No runtime randomness.7const positions = [8 [26, -6],9 [107, 6],10 [190, -8],11 [282, 2],12 [371, -8],13 [455, 5],14 [43, 65],15 [114, 76],16 [188, 55],17 [253, 72],18 [317, 58],19 [393, 73],20 [465, 61],21 [34, 135],22 [443, 135],23 [35, 203],24 [109, 211],25 [183, 199],26 [253, 223],27 [315, 199],28 [387, 211],29 [459, 200],30 [28, 277],31 [118, 266],32 [198, 284],33 [286, 266],34 [375, 283],35 [468, 270],36];3738export function Proof({ scene, t }: SceneProps) {39 const age = t - 907 / 60;40 const reveal = tween(age, 0.06, 0.73);41 const zoom = tween(age, 0.13, 1.1, 1.43, 1);42 return (43 <div44 style={{45 position: "absolute",46 inset: 0,47 background: "linear-gradient(#f2ecdf,#faf6ec 65%,#eee8da)",48 color: "#17392b",49 overflow: "hidden",50 }}51 >52 <div53 style={{54 position: "absolute",55 inset: 0,56 transform: `scale(${zoom}) translateX(${(1 - reveal) * 340}px)`,57 transformOrigin: "50% 50%",58 }}59 >60 {positions.map(([x, y], i) => {61 const blur = [0.2, 1.3, 0, 0.7, 0.1, 1.7][i % 6];62 const src = scene.logos.length63 ? scene.logos[i % scene.logos.length]64 : undefined;65 return (66 <div67 key={i}68 style={{69 position: "absolute",70 left: x - 12,71 top: y - 12 + Math.sin(age * 0.7 + i) * 2,72 width: 27,73 height: 27,74 display: "grid",75 placeItems: "center",76 color: "#51735b",77 opacity: [0.73, 0.3, 0.58, 0.19, 0.4][i % 5] * reveal,78 filter: `blur(${blur}px)`,79 transform: `rotate(${Math.sin(i * 2.8) * 9}deg)`,80 background: i % 7 === 0 ? "#dce3cf" : undefined,81 borderRadius: 7,82 boxShadow: i % 7 === 0 ? "0 3px 12px #34492812" : undefined,83 }}84 >85 {src ? (86 <Img87 src={src}88 style={{ width: 27, height: 27, objectFit: "contain" }}89 />90 ) : (91 <LogoGlyph variant={i * 5 + 2} size={24} />92 )}93 </div>94 );95 })}96 <Center>97 <Title98 text={scene.content.proof}99 size={32}100 style={{101 fontWeight: 500,102 letterSpacing: "-0.033em",103 opacity: reveal,104 filter: `blur(${(1 - reveal) * 5}px)`,105 }}106 />107 </Center>108 </div>109 </div>110 );111}
components/kuchi/templates/launch-anything/scenes/industry.tsx
1import type { SceneProps } from "../content";2import { tween } from "../motion";3import { Center, RevealCopy } from "../ui";45export function Industry({ scene, t }: SceneProps) {6 const age = t - 1021 / 60;7 const second = t >= 18.58;8 const start = second ? 18.58 : 1021 / 60;9 return (10 <div11 style={{12 position: "absolute",13 inset: 0,14 background: "#122d24",15 color: "#f7f1e4",16 overflow: "hidden",17 }}18 >19 <svg20 viewBox="0 0 480 270"21 width="480"22 height="270"23 aria-hidden="true"24 style={{25 position: "absolute",26 inset: 0,27 transform: `rotate(${age * 2 - 3}deg) scale(1.12)`,28 }}29 >30 {[0, 1, 2, 3, 4, 5].map((i) => (31 <path32 key={i}33 d={`M${-70 + i * 21} 310V${90 - i * 22}Q${240} ${-140 - i * 24} ${550 - i * 21} ${90 - i * 22}V310`}34 fill="none"35 stroke={i % 2 ? "#b6c7ad" : "#688d73"}36 strokeWidth={0.7}37 opacity={0.12 + i * 0.04}38 />39 ))}40 </svg>41 <Center42 style={{43 transform: `perspective(700px) rotateY(${tween(t, start, start + 0.5, -8, 0)}deg) rotateZ(${tween(t, start, start + 0.55, 4, 0)}deg)`,44 }}45 >46 <RevealCopy47 text={second ? scene.content.promise : scene.content.industry}48 t={t}49 start={start}50 size={43}51 />52 </Center>53 </div>54 );55}
components/kuchi/templates/launch-anything/scenes/space.tsx
1import { Img } from "remotion";2import type { SceneProps } from "../content";3import { tween } from "../motion";4import { Center, Title } from "../ui";56// Three editorial cuts retain the original montage timing, with original plates.7export function Space({ scene, t }: SceneProps) {8 const first = t < 20.62;9 const inset = !first && t < 21.02;10 const age = t - (first ? 20.22 : inset ? 20.62 : 21.02);11 return (12 <div13 style={{14 position: "absolute",15 inset: 0,16 overflow: "hidden",17 background: "#eee8d9",18 }}19 >20 <Img21 src={first ? scene.media.rocket : scene.media.earth}22 style={{23 position: "absolute",24 inset: inset ? "20px 32px" : 0,25 width: inset ? 416 : "100%",26 height: inset ? 230 : "100%",27 objectFit: "cover",28 transform: `translateX(${tween(age, 0, 0.53, -3, 3)}px) scale(${tween(age, 0, 0.53, 1.07, 1.02)})`,29 filter: first ? "brightness(0.8)" : "brightness(0.68)",30 }}31 />32 <div33 style={{34 position: "absolute",35 inset: 18,36 border: "0.65px solid #f4f0e970",37 opacity: inset ? 0 : 0.8,38 }}39 />40 <Center>41 <Title42 text={scene.content.launch}43 size={92}44 style={{45 letterSpacing: "-0.05em",46 fontWeight: 400,47 color: "#f8f2e5",48 }}49 />50 </Center>51 </div>52 );53}
components/kuchi/templates/launch-anything/scenes/closing.tsx
1import type { SceneProps } from "../content";2import { clamp, smooth, tween } from "../motion";3import { BrandMark, Center, Title } from "../ui";45export function Address({ scene, t }: SceneProps) {6 const url = scene.brandUrl;7 const prefixLength = url8 .toLowerCase()9 .startsWith(scene.content.launch.toLowerCase())10 ? scene.content.launch.length11 : 0;12 const typing = clamp((t - 21.94) / 0.59);13 const text = url.slice(14 0,15 prefixLength + Math.floor((url.length - prefixLength) * typing),16 );17 const glow = tween(t, 22.15, 22.45) * (1 - tween(t, 22.6, 23.25));18 return (19 <Center style={{ background: "#122d24", color: "#fff9f3" }}>20 <Title21 text={text}22 size={tween(t, 21.55, 21.9, 43, 32, smooth)}23 style={{24 fontWeight: 400,25 letterSpacing: "-0.06em",26 color: glow > 0.5 ? "#d5e2bd" : "#fff9f3",27 textShadow: `0 0 ${glow * 5}px #fff, 0 0 ${glow * 20}px #72935c, 0 0 ${glow * 32}px #496b4d`,28 }}29 />30 </Center>31 );32}3334export function ClosingMark({ scene, t }: SceneProps) {35 return (36 <Center37 style={{38 background: "linear-gradient(#f4efdf,#faf5e9)",39 color: "#245744",40 }}41 >42 <div43 style={{44 transform: `scale(${tween(t, 23.717, 26.666, 1, 0.63, smooth)})`,45 }}46 >47 <BrandMark size={64} src={scene.logoSrc} />48 </div>49 </Center>50 );51}
components/kuchi/templates/launch-anything/scenes/action-frame.tsx
1import { Img } from "remotion";2import type { SceneProps } from "../content";3import { actionFrame, smooth, tween } from "../motion";45export const actionBackground = "linear-gradient(#f3edde, #faf6ec 75%)";67export function ActionFrame({ scene, t }: SceneProps) {8 const shape = actionFrame(t);9 const aperture = tween(t, 6.7, 7.33, 0, 1, smooth);10 return (11 <div12 style={{13 position: "absolute",14 left: shape.x - shape.width / 2,15 top: shape.y - shape.height / 2,16 width: shape.width,17 height: shape.height,18 borderRadius: shape.radius,19 opacity: shape.enter,20 transform: `scale(${1 - 0.07 * shape.press})`,21 overflow: "hidden",22 background:23 "linear-gradient(135deg, #fbf8ee 10%, #f5f1e5 36%, #d9dfc8 70%, #90a47f 100%)",24 boxShadow: "inset 1px 1px 2px #fff, 0 4px 18px #728b6415",25 }}26 >27 <div28 style={{29 position: "absolute",30 inset: 0,31 opacity: shape.morph,32 background:33 "linear-gradient(140deg, #8ca48d, #d1d8c3 35%, #f8f4ea 60%, #9ca78a)",34 }}35 />36 <div37 style={{38 position: "absolute",39 inset: 0,40 display: "flex",41 alignItems: "center",42 justifyContent: "center",43 color: "#070707",44 fontSize: Math.min(45 36,46 320 / Math.max(1, Array.from(scene.content.action).length),47 ),48 letterSpacing: "-0.045em",49 fontWeight: 500,50 whiteSpace: "nowrap",51 opacity: 1 - tween(t, 5.55, 5.83),52 }}53 >54 {scene.content.action}55 </div>56 <div57 style={{58 position: "absolute",59 inset: 38 * (1 - aperture) * shape.morph,60 borderRadius: 13 + 33 * shape.morph,61 border: `${22 * (1 - aperture) * shape.morph}px solid #fff`,62 borderRightWidth: 34 * (1 - aperture) * shape.morph,63 borderBottomWidth: 30 * (1 - aperture) * shape.morph,64 boxSizing: "border-box",65 opacity: shape.morph,66 overflow: "hidden",67 background:68 "linear-gradient(140deg, #f8f4ea 25%, #efecdf 46%, #d5d8c2 72%, #849b7b)",69 boxShadow: "inset 0 0 12px #ffffff9a",70 }}71 >72 <div73 style={{74 position: "absolute",75 inset: 0,76 background:77 "linear-gradient(120deg, #cbdac2 6%, #8ca887 27%, #245744 51%, #6b8b65 75%, #e2e4cf)",78 opacity: tween(t, 6.85, 7.07),79 }}80 />81 {t >= 7.08 ? (82 <Img83 src={scene.media.desk}84 style={{85 position: "absolute",86 inset: 0,87 width: "100%",88 height: "100%",89 objectFit: "cover",90 opacity: tween(t, 7.08, 7.32),91 transform: "scale(1.02)",92 }}93 />94 ) : null}95 </div>96 </div>97 );98}





