Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
some work
dev_wandryb164d56586c0
diff --git a/bun.lock b/bun.lockindex cdf85d5b..7b2b1c08 100644--- a/bun.lock+++ b/bun.lock@@ -13,6 +13,7 @@"@remotion/google-fonts": "4.0.473","@remotion/player": "4.0.473","@remotion/renderer": "4.0.473",+ "@remotion/transitions": "4.0.473","@shadcn/react": "^0.1.0","class-variance-authority": "^0.7.1","clsx": "^2.1.1",@@ -449,10 +450,14 @@"@remotion/media-utils": ["@remotion/[email protected]", "", { "dependencies": { "mediabunny": "1.45.0", "remotion": "4.0.473" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-f4Ip10pkawlUBTunE++DZ6J/TrPtKalkxoTx7qQGBlhz3BcWRK7AbEGouZtcAmkLFVxq80hpH/1cBFOMF6FVfA=="],+ "@remotion/paths": ["@remotion/[email protected]", "", {}, "sha512-K30GZKW4/s9eKAWW2Zy0Q3IZIpNom+fZTgEmUaai5FX/T4jLIWAws1o1fa1b/ee32cxj9uH5SD0DlqTHZrjO4A=="],+"@remotion/player": ["@remotion/[email protected]", "", { "dependencies": { "remotion": "4.0.473" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-giJ8cIQEdVxftpcX4m+9jWYCbIvpcdKRGVUc3ownxYEsJ30WUSP2+TuQ6aqqLXFAfwhY/SdBVLfopylh3BgMXA=="],"@remotion/renderer": ["@remotion/[email protected]", "", { "dependencies": { "@remotion/licensing": "4.0.473", "@remotion/streaming": "4.0.473", "execa": "5.1.1", "remotion": "4.0.473", "source-map": "0.8.0-beta.0", "ws": "8.20.1" }, "optionalDependencies": { "@remotion/compositor-darwin-arm64": "4.0.473", "@remotion/compositor-darwin-x64": "4.0.473", "@remotion/compositor-linux-arm64-gnu": "4.0.473", "@remotion/compositor-linux-arm64-musl": "4.0.473", "@remotion/compositor-linux-x64-gnu": "4.0.473", "@remotion/compositor-linux-x64-musl": "4.0.473", "@remotion/compositor-win32-x64-msvc": "4.0.473" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-WOOmT38O3ax78oDIE75FnsDi8eUMBKOdnqiXU3NeArNoA/xQZv7yDUgV3e1SxFaCHS7IbWHIATXUfVgS8TIXBA=="],+ "@remotion/shapes": ["@remotion/[email protected]", "", { "dependencies": { "@remotion/paths": "4.0.473" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-UbAtC+oTjREB9jl6vJ6/C0U3vXd1gyTNLz/695OwevINg5yS5+Bx2LrKKnsJLJ5VMiC3W1sZfTOJ7OcOlA+FSQ=="],+"@remotion/streaming": ["@remotion/[email protected]", "", {}, "sha512-JRXgqnzHbcaZU+LH3VK9KRNBHd7rhNnf34C3uUeFYFChRQhnmHWTSo7p/SDUhCpVh+hIHsS52xJz9JPwwy5gUw=="],"@remotion/studio": ["@remotion/[email protected]", "", { "dependencies": { "@jridgewell/trace-mapping": "0.3.31", "@remotion/media-utils": "4.0.473", "@remotion/player": "4.0.473", "@remotion/renderer": "4.0.473", "@remotion/studio-shared": "4.0.473", "@remotion/timeline-utils": "4.0.473", "@remotion/web-renderer": "4.0.473", "@remotion/zod-types": "4.0.473", "mediabunny": "1.45.0", "memfs": "3.4.3", "open": "8.4.2", "remotion": "4.0.473", "semver": "7.5.3", "zod": "4.3.6" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-d7FnevW0TGhoJovdLs/Mi8kmthj800QL5gSxDXlpoznymeT41CdRRgiQoXGM2f43r7WyoX0bvE2i9AxIogJoWg=="],@@ -461,6 +466,8 @@"@remotion/timeline-utils": ["@remotion/[email protected]", "", { "dependencies": { "mediabunny": "1.45.0" } }, "sha512-DrEvnOY97lBlMVUJkU997Ip70Z1hkggXVoiZZk7udTIpkrbhEfI4GrdOd/HOMCTtniepkGH8kXmk6Aqv99Q0uA=="],+ "@remotion/transitions": ["@remotion/[email protected]", "", { "dependencies": { "@remotion/paths": "4.0.473", "@remotion/shapes": "4.0.473", "remotion": "4.0.473" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-n7CGFGZCsSgRxbKAjfU2bpUqDz01vaDkdQzu6VOtpcqYN01NMR4lkZZzQNcsBky4H1+CZ3Oy+ubom4Qc5VH9tA=="],+"@remotion/web-renderer": ["@remotion/[email protected]", "", { "dependencies": { "@mediabunny/aac-encoder": "1.45.0", "@mediabunny/flac-encoder": "1.45.0", "@mediabunny/mp3-encoder": "1.45.0", "@remotion/licensing": "4.0.473", "mediabunny": "1.45.0", "remotion": "4.0.473" }, "peerDependencies": { "react": ">=18.0.0", "react-dom": ">=18.0.0" } }, "sha512-WTyFdBdqsmmqrMpW1k6Uhcze2z8tZvKc15BYu1FwmDgdQ1QeaAMgEsyp5qRLzKZ/000XafK4q8bUjdEQoudc8A=="],"@remotion/zod-types": ["@remotion/[email protected]", "", { "dependencies": { "remotion": "4.0.473" }, "peerDependencies": { "zod": "4.3.6" } }, "sha512-hAUla1gXVe6afzoRACiDp2L58pgGOfS5pxAG9wPHLv2Br16K6K/ToGZYLwxwugUxmZdMNPGOCkR3pWK5x7O5HQ=="],diff --git a/content/docs/meta.json b/content/docs/meta.jsonindex 8ebd6984..4064bb75 100644--- a/content/docs/meta.json+++ b/content/docs/meta.json@@ -10,6 +10,7 @@"ai","transitions","social",+ "templates","effects","compositions"]diff --git a/content/docs/templates/a1-product-demo.mdx b/content/docs/templates/a1-product-demo.mdxnew file mode 100644index 00000000..c3edc4d3--- /dev/null+++ b/content/docs/templates/a1-product-demo.mdx@@ -0,0 +1,183 @@+---+title: Product Demo+description: A full 45s product-demo clip — serif type acts, an orbiting app-icon cloud, product UIs, animated task cards, a focus chart, integrations, metric cards, and testimonials+---++<ComponentPreview name="a1-product-demo" />++A complete 1920x1080 product demo built as one seek-safe Remotion timeline (1356 frames at 30fps). Twelve acts play back to back over a warm cream canvas with serif display type and a yellow accent. A typed `ProductDemo` config path is also exported for building your own scene sequence.++## Installation++<InstallBlock name="a1-product-demo" />++## Usage++Render the built-in example straight away — it ships the default `Switchboard` config:++```tsx+// src/Root.tsx+import { Composition } from "remotion";+import {+ A1ProductDemo,+ DEFAULT_PRODUCT_DEMO_CONFIG,+ getProductDemoDuration,+} from "@/components/remocn/a1-product-demo";++const ProductDemoScene = () => (+ <A1ProductDemo accentColor="#6366F1" background="dynamic-grid" theme="dark" />+);++export const RemotionRoot = () => (+ <Composition+ id="ProductDemo"+ component={ProductDemoScene}+ durationInFrames={getProductDemoDuration(DEFAULT_PRODUCT_DEMO_CONFIG)}+ fps={30}+ width={1920}+ height={1080}+ />+);+```++### With your own config++Drive the template from a typed, serializable config. Add as many `feature-frame` scenes as you need — sides alternate, transitions adapt, and `getProductDemoDuration` keeps the composition length correct.++```tsx+// src/Root.tsx+import { Composition } from "remotion";+import {+ A1ProductDemo,+ getProductDemoDuration,+ type ProductDemoConfig,+} from "@/components/remocn/a1-product-demo";++const config: ProductDemoConfig = {+ meta: { fps: 30, width: 1920, height: 1080 },+ theme: {+ accent: "#6366F1",+ background: "#0B0B0F",+ foreground: "#FAFAFA",+ muted: "rgba(250,250,250,0.55)",+ fontFamily: "Geist",+ },+ scenes: [+ {+ type: "product-hero",+ durationInFrames: 150,+ content: { name: "Switchboard", pitch: "One inbox for every channel" },+ },+ {+ type: "feature-frame",+ durationInFrames: 180,+ content: { title: "Unified inbox", bullet: "Email, chat and SMS in one stream", side: "left" },+ },+ {+ type: "feature-frame",+ durationInFrames: 180,+ content: { title: "Auto routing", bullet: "Every message reaches the right person", side: "right" },+ },+ {+ type: "cta-scene",+ durationInFrames: 120,+ content: { line: "Try it free", domain: "switchboard.app" },+ },+ ],+};++const ProductDemoScene = () => <A1ProductDemo config={config} />;++export const RemotionRoot = () => (+ <Composition+ id="ProductDemo"+ component={ProductDemoScene}+ durationInFrames={getProductDemoDuration(config)}+ fps={30}+ width={1920}+ height={1080}+ />+);+```++## Chapters++The clip runs 1356 frames at 30fps (45.2s). Scrub the preview to each act:++<PropsTable+ rows={[+ { name: "Problem hook", type: "0 to 165", description: "Your team has tasks everywhere, projects scattered, Meet Flowith" },+ { name: "Positioning", type: "165 to 285", description: "AI-Powered Work Operating System resolves to the Flowith lockup" },+ { name: "Icon cloud", type: "285 to 435", description: "App icons orbit Flowith has all your, then resolve to in one place" },+ { name: "AI planning", type: "435 to 555", description: "A day-timeline planning UI cranes in" },+ { name: "Workflow", type: "555 to 645", description: "A stage-by-stage workflow node graph with a yellow AI Layer" },+ { name: "Features swap", type: "645 to 720", description: "Features designed to simplify, organize, facilitate your workflow" },+ { name: "Task cards", type: "720 to 870", description: "A task checklist wires into animated task detail cards" },+ { name: "Focus chart", type: "870 to 975", description: "A Focus Time 4h 25m bar-chart card" },+ { name: "Integrations", type: "975 to 1050", description: "App integration icons pop in" },+ { name: "Metric cards", type: "1050 to 1140", description: "Three green gradient metric cards rise in" },+ { name: "Social proof", type: "1140 to 1260", description: "Join 12,000+ people with three testimonial cards" },+ { name: "Logo outro", type: "1260 to 1356", description: "The Flowith lockup holds" },+ ]}+/>++## Props++<PropsTable+ rows={[+ {+ name: "config",+ type: "ProductDemoConfig",+ default: "DEFAULT_PRODUCT_DEMO_CONFIG",+ description: "Typed scene config { meta, theme, scenes[] }. Falls back to the built-in Switchboard example.",+ },+ {+ name: "accentColor",+ type: "string",+ default: "\"#6366F1\"",+ description: "Accent used on the feature marker and CTA domain — overrides config.theme.accent",+ },+ {+ name: "background",+ type: "\"dynamic-grid\" | \"solid\"",+ default: "\"dynamic-grid\"",+ description: "Background on the hero and CTA beats. Feature beats always use a solid surface so the snapshot reads cleanly.",+ },+ {+ name: "theme",+ type: "\"light\" | \"dark\"",+ default: "\"dark\"",+ description: "Resolves the background, foreground, and muted tokens",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Multiplier for the per-scene animation timing",+ },+ ]}+/>++### Scene shape++Each entry in `config.scenes` is one of three typed scenes:++<PropsTable+ rows={[+ {+ name: "product-hero",+ type: "{ name, pitch, entrance? }",+ description: "Hero wordmark + one-line pitch. entrance is kinetic-center-build (default) or per-character-rise.",+ },+ {+ name: "feature-frame",+ type: "{ title, bullet, side }",+ description: "Editorial split. side is left or right and mirrors the layout between beats.",+ },+ {+ name: "cta-scene",+ type: "{ line, domain }",+ description: "Closing call-to-action line and domain",+ },+ ]}+/>diff --git a/content/docs/templates/index.mdx b/content/docs/templates/index.mdxnew file mode 100644index 00000000..08c17671--- /dev/null+++ b/content/docs/templates/index.mdx@@ -0,0 +1,17 @@+---+title: Templates+description: Multi-scene video templates assembled from primitives with branded transitions+---++Full videos, not single animations. Each template is a thin `<TransitionSeries>` orchestrator that stitches typography primitives, backgrounds, and lightweight scene components into one branded clip. Content is a typed, serializable config — swap the data, keep the motion.++<ComponentCardGrid+ items={[+ {+ name: "ProductDemo",+ description: "Product hero, alternating editorial feature splits, and a CTA stitched into one 1920x1080 demo video",+ status: "stable",+ href: "/docs/templates/a1-product-demo",+ },+ ]}+/>diff --git a/content/docs/templates/meta.json b/content/docs/templates/meta.jsonnew file mode 100644index 00000000..f4d58ab9--- /dev/null+++ b/content/docs/templates/meta.json@@ -0,0 +1,8 @@+{+ "title": "Templates",+ "collapsible": false,+ "pages": [+ "index",+ "a1-product-demo"+ ]+}diff --git a/package.json b/package.jsonindex 8150630b..6de709ce 100644--- a/package.json+++ b/package.json@@ -23,6 +23,7 @@"@remotion/google-fonts": "4.0.473","@remotion/player": "4.0.473","@remotion/renderer": "4.0.473",+ "@remotion/transitions": "4.0.473","@shadcn/react": "^0.1.0","class-variance-authority": "^0.7.1","clsx": "^2.1.1",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 4c0b50d6..49752609 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -71,6 +71,8 @@ import { GitHubSponsors } from "@/registry/remocn/github-sponsors";import { githubSponsorsConfig } from "@/registry/remocn/github-sponsors/config";import { GitHubStars } from "@/registry/remocn/github-stars";import { githubStarsConfig } from "@/registry/remocn/github-stars/config";+import { A1ProductDemo } from "@/registry/remocn/a1-product-demo";+import { a1ProductDemoConfig } from "@/registry/remocn/a1-product-demo/config";import { LogoEnter } from "@/registry/remocn/logo-enter";import { logoEnterConfig } from "@/registry/remocn/logo-enter/config";import { GlassCodeBlock } from "@/registry/remocn/glass-code-block";@@ -411,6 +413,7 @@ const registry: Record<string, RegistryEntry> = {config: githubSponsorsConfig,},"github-stars": { Component: GitHubStars, config: githubStarsConfig },+ "a1-product-demo": { Component: A1ProductDemo, config: a1ProductDemoConfig },"logo-enter": { Component: LogoEnter, config: logoEnterConfig },"number-wheel": { Component: NumberWheel, config: numberWheelConfig },"rolling-number": { Component: RollingNumber, config: rollingNumberConfig },@@ -663,4 +666,16 @@ if (opencode) {};}+const a1ProductDemo = registry["a1-product-demo"];+if (a1ProductDemo) {+ a1ProductDemo.config.controls.speed = {+ type: "number",+ default: 1,+ min: 1,+ max: 4,+ step: 0.25,+ label: "Speed",+ };+}+export default registry;diff --git a/registry/remocn/a1-product-demo/__tests__/a1-product-demo.test.ts b/registry/remocn/a1-product-demo/__tests__/a1-product-demo.test.tsnew file mode 100644index 00000000..923f3c6d--- /dev/null+++ b/registry/remocn/a1-product-demo/__tests__/a1-product-demo.test.ts@@ -0,0 +1,91 @@+import { describe, expect, it } from "vitest";+import {+ getProductDemoDuration,+ planTransitionTiming,+} from "../duration";+import type { ProductDemoConfig } from "../foundation";++const exampleConfig: ProductDemoConfig = {+ meta: { fps: 30, width: 1920, height: 1080 },+ theme: {+ accent: "#6366F1",+ background: "#0B0B0F",+ foreground: "#FAFAFA",+ muted: "rgba(250,250,250,0.55)",+ },+ scenes: [+ {+ type: "product-hero",+ durationInFrames: 150,+ content: { name: "Switchboard", pitch: "One inbox for every channel" },+ },+ {+ type: "feature-frame",+ durationInFrames: 180,+ content: { title: "Unified inbox", bullet: "Email, chat and SMS", side: "left" },+ },+ {+ type: "feature-frame",+ durationInFrames: 180,+ content: { title: "Auto routing", bullet: "The right person", side: "right" },+ },+ {+ type: "cta-scene",+ durationInFrames: 120,+ content: { line: "Try it free", domain: "switchboard.app" },+ },+ ],+};++describe("getProductDemoDuration", () => {+ it("sums scene frames minus transition overlaps for the example config", () => {+ expect(getProductDemoDuration(exampleConfig)).toBe(570);+ });++ it("returns a single scene's duration when there are no transitions", () => {+ expect(+ getProductDemoDuration({+ ...exampleConfig,+ scenes: [exampleConfig.scenes[0]],+ }),+ ).toBe(150);+ });++ it("scales with additional feature scenes", () => {+ const withExtraFeature: ProductDemoConfig = {+ ...exampleConfig,+ scenes: [+ exampleConfig.scenes[0],+ exampleConfig.scenes[1],+ exampleConfig.scenes[2],+ {+ type: "feature-frame",+ durationInFrames: 180,+ content: { title: "Third feature", bullet: "One more", side: "left" },+ },+ exampleConfig.scenes[3],+ ],+ };+ expect(getProductDemoDuration(withExtraFeature)).toBe(570 + 180 - 18);+ });+});++describe("planTransitionTiming", () => {+ it("uses shared-axis-z spring 22f from hero to first feature", () => {+ expect(+ planTransitionTiming(exampleConfig.scenes[0], exampleConfig.scenes[1]),+ ).toEqual({ kind: "spring", durationInFrames: 22 });+ });++ it("uses spatial-push linear 18f between feature frames", () => {+ expect(+ planTransitionTiming(exampleConfig.scenes[1], exampleConfig.scenes[2]),+ ).toEqual({ kind: "linear", durationInFrames: 18 });+ });++ it("uses zoom-through spring 20f from feature to cta", () => {+ expect(+ planTransitionTiming(exampleConfig.scenes[2], exampleConfig.scenes[3]),+ ).toEqual({ kind: "spring", durationInFrames: 20 });+ });+});diff --git a/registry/remocn/a1-product-demo/acts/ai-planning.tsx b/registry/remocn/a1-product-demo/acts/ai-planning.tsxnew file mode 100644index 00000000..acd2af6b--- /dev/null+++ b/registry/remocn/a1-product-demo/acts/ai-planning.tsx@@ -0,0 +1,442 @@+"use client";++import { AbsoluteFill, Easing, interpolate, useCurrentFrame } from "remotion";+import {+ Camera,+ FLOW_BG,+ FLOW_BORDER,+ FLOW_INK,+ FLOW_MUTED,+ FLOW_YELLOW,+ FONT,+} from "../foundation";++const EASE = Easing.out(Easing.cubic);++const TIMES = ["9 AM", "10 AM", "11 AM", "12 PM", "1 PM", "2 PM", "3 PM", "4 PM"];++const CARD_W = 1200;+const PAD = 40;+const CONTENT_W = CARD_W - PAD * 2;+const AXIS_W = 60;+const GRID_W = CONTENT_W - AXIS_W;+const ROW_H = 50;+const GRID_H = ROW_H * (TIMES.length - 1);++const ACCENT_BAR = "#2F8F83";+const BLUE_INK = "#3B6FE0";+const BLUE_BG = "#E9F0FC";+const PILL_MUTED_BG = "#F1EFE6";+const AVATAR_A = "#D9A38C";+const AVATAR_B = "#8FA6CF";+const AVATAR_C = "#C9B36E";++function clampInterp(+ f: number,+ input: [number, number] | [number, number, number],+ output: [number, number] | [number, number, number],+ easing?: (n: number) => number,+) {+ return interpolate(f, input, output, {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing,+ });+}++function ExpandGlyph() {+ return (+ <div+ style={{+ width: 30,+ height: 30,+ borderRadius: 8,+ border: `1px solid ${FLOW_BORDER}`,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ <svg width={14} height={14} viewBox="0 0 14 14" fill="none">+ <title>Expand</title>+ <path+ d="M4.5 9.5L9.5 4.5M9.5 4.5H5.2M9.5 4.5V8.8"+ stroke={FLOW_MUTED}+ strokeWidth={1.4}+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ </div>+ );+}++function Avatar({ color, z }: { color: string; z: number }) {+ return (+ <div+ style={{+ width: 24,+ height: 24,+ borderRadius: 999,+ background: color,+ border: "2px solid #fff",+ marginLeft: -7,+ zIndex: z,+ }}+ />+ );+}++function Kebab() {+ return (+ <div+ style={{+ display: "flex",+ flexDirection: "column",+ gap: 3,+ marginLeft: 10,+ }}+ >+ {[0, 1, 2].map((i) => (+ <div+ key={i}+ style={{+ width: 3,+ height: 3,+ borderRadius: 999,+ background: FLOW_MUTED,+ }}+ />+ ))}+ </div>+ );+}++function TaskBlock({+ f,+ start,+ top,+ width,+ label,+ pillText,+ pillColor,+ pillBg,+ avatars,+ kebab = false,+}: {+ f: number;+ start: number;+ top: number;+ width: number;+ label: string;+ pillText: string;+ pillColor: string;+ pillBg: string;+ avatars: string[];+ kebab?: boolean;+}) {+ const p = clampInterp(f, [start, start + 18], [0, 1], EASE);+ return (+ <div+ style={{+ position: "absolute",+ left: 6,+ top,+ width,+ height: 40,+ display: "flex",+ alignItems: "center",+ background: "#fff",+ border: `1px solid ${FLOW_BORDER}`,+ borderRadius: 8,+ boxShadow: "0 6px 18px rgba(30,28,22,0.05)",+ paddingRight: 12,+ overflow: "hidden",+ opacity: p,+ transform: `translateX(${(1 - p) * -22}px)`,+ }}+ >+ <div style={{ width: 4, height: "100%", background: ACCENT_BAR }} />+ <span+ style={{+ fontSize: 15,+ fontWeight: 600,+ color: FLOW_INK,+ marginLeft: 14,+ whiteSpace: "nowrap",+ }}+ >+ {label}+ </span>+ <span+ style={{+ fontSize: 12.5,+ fontWeight: 500,+ color: pillColor,+ background: pillBg,+ padding: "3px 9px",+ borderRadius: 6,+ marginLeft: 12,+ whiteSpace: "nowrap",+ }}+ >+ {pillText}+ </span>+ <div+ style={{+ marginLeft: "auto",+ display: "flex",+ alignItems: "center",+ }}+ >+ <div style={{ display: "flex" }}>+ {avatars.map((c, i) => (+ <Avatar key={c} color={c} z={avatars.length - i} />+ ))}+ </div>+ {kebab ? <Kebab /> : null}+ </div>+ </div>+ );+}++function Cursor({ f }: { f: number }) {+ const appear = clampInterp(f, [90, 102], [0, 1], EASE);+ const x = clampInterp(f, [90, 116], [40, 6], EASE);+ const y = clampInterp(f, [90, 116], [34, 16], EASE);+ return (+ <svg+ width={22}+ height={24}+ viewBox="0 0 22 24"+ fill="none"+ style={{+ position: "absolute",+ left: GRID_W * 0.42 + x,+ top: ROW_H * 5 - 6 + y,+ opacity: appear,+ filter: "drop-shadow(0 2px 4px rgba(30,28,22,0.18))",+ }}+ >+ <title>Cursor</title>+ <path+ d="M3 2.5L17 12.5L10.2 13.6L13.4 20.2L10.6 21.5L7.4 14.9L3 19.2V2.5Z"+ fill="#fff"+ stroke={FLOW_INK}+ strokeWidth={1.3}+ strokeLinejoin="round"+ />+ </svg>+ );+}++export function AIPlanning({ speed = 1 }: { speed?: number }) {+ const f = useCurrentFrame() * speed;++ const craneScale = clampInterp(f, [0, 24], [1.04, 1], EASE);+ const craneY = clampInterp(f, [0, 24], [40, 0], EASE);+ const craneBlur = clampInterp(f, [0, 14, 24], [8, 3, 0]);++ const cardOpacity = clampInterp(f, [0, 12], [0, 1]);+ const headP = clampInterp(f, [10, 26], [0, 1], EASE);+ const titleP = clampInterp(f, [16, 32], [0, 1], EASE);+ const gridP = clampInterp(f, [26, 42], [0, 1], EASE);+ const markerP = clampInterp(f, [56, 74], [0, 1], EASE);++ const columns = 6;++ return (+ <AbsoluteFill style={{ background: FLOW_BG, fontFamily: FONT }}>+ <Camera scale={craneScale} y={craneY} blur={craneBlur}>+ <AbsoluteFill+ style={{ alignItems: "center", justifyContent: "center" }}+ >+ <div+ style={{+ width: CARD_W,+ background: "#fff",+ border: `1px solid ${FLOW_BORDER}`,+ borderRadius: 16,+ boxShadow: "0 26px 70px rgba(30,28,22,0.08)",+ padding: PAD,+ opacity: cardOpacity,+ }}+ >+ <div+ style={{+ display: "flex",+ alignItems: "center",+ justifyContent: "space-between",+ opacity: headP,+ transform: `translateY(${(1 - headP) * 8}px)`,+ }}+ >+ <span+ style={{+ display: "inline-flex",+ alignItems: "center",+ gap: 8,+ fontSize: 14,+ fontWeight: 500,+ color: FLOW_MUTED,+ background: PILL_MUTED_BG,+ padding: "6px 12px",+ borderRadius: 8,+ }}+ >+ <span style={{ fontSize: 13 }}>‹</span>+ AI Planning+ </span>+ <ExpandGlyph />+ </div>++ <div+ style={{+ fontSize: 30,+ fontWeight: 600,+ color: FLOW_INK,+ letterSpacing: "-0.01em",+ marginTop: 22,+ marginBottom: 26,+ opacity: titleP,+ transform: `translateY(${(1 - titleP) * 10}px)`,+ }}+ >+ Intelligently plan your entire day+ </div>++ <div+ style={{+ position: "relative",+ height: GRID_H + 10,+ paddingLeft: AXIS_W,+ }}+ >+ <div+ style={{+ position: "absolute",+ left: 0,+ top: 0,+ width: AXIS_W,+ height: GRID_H,+ }}+ >+ {TIMES.map((t, i) => (+ <span+ key={t}+ style={{+ position: "absolute",+ left: 0,+ top: i * ROW_H - 7,+ fontSize: 12,+ color: FLOW_MUTED,+ opacity: clampInterp(+ f,+ [28 + i * 2, 40 + i * 2],+ [0, 1],+ ),+ }}+ >+ {t}+ </span>+ ))}+ </div>++ <div+ style={{+ position: "absolute",+ left: AXIS_W,+ top: 0,+ width: GRID_W,+ height: GRID_H,+ }}+ >+ <div style={{ opacity: gridP }}>+ {TIMES.map((t, i) => (+ <div+ key={t}+ style={{+ position: "absolute",+ left: 0,+ top: i * ROW_H,+ width: "100%",+ height: 1,+ background: FLOW_BORDER,+ }}+ />+ ))}+ {Array.from({ length: columns }).map((_, i) => (+ <div+ key={i}+ style={{+ position: "absolute",+ top: 0,+ left: ((i + 1) * GRID_W) / (columns + 1),+ width: 1,+ height: GRID_H,+ background: FLOW_BORDER,+ opacity: 0.55,+ }}+ />+ ))}+ </div>++ <div+ style={{+ position: "absolute",+ left: GRID_W * 0.3,+ top: ROW_H * 1 + 4,+ width: 2,+ height: ROW_H - 6,+ background: FLOW_YELLOW,+ opacity: markerP,+ transform: `scaleY(${markerP})`,+ transformOrigin: "top",+ }}+ />+ <div+ style={{+ position: "absolute",+ left: GRID_W * 0.3 - 4,+ top: ROW_H * 1,+ width: 10,+ height: 10,+ borderRadius: 999,+ background: FLOW_YELLOW,+ opacity: markerP,+ }}+ />++ <TaskBlock+ f={f}+ start={40}+ top={ROW_H * 2 - 20}+ width={520}+ label="Competitor research"+ pillText="Research"+ pillColor={BLUE_INK}+ pillBg={BLUE_BG}+ avatars={[AVATAR_A, AVATAR_B]}+ />+ <TaskBlock+ f={f}+ start={54}+ top={ROW_H * 5 - 20}+ width={380}+ label="Dev handoff"+ pillText="Handoff"+ pillColor={FLOW_MUTED}+ pillBg={PILL_MUTED_BG}+ avatars={[AVATAR_C, AVATAR_B, AVATAR_A]}+ kebab+ />++ <Cursor f={f} />+ </div>+ </div>+ </div>+ </AbsoluteFill>+ </Camera>+ </AbsoluteFill>+ );+}diff --git a/registry/remocn/a1-product-demo/acts/features-swap.tsx b/registry/remocn/a1-product-demo/acts/features-swap.tsxnew file mode 100644index 00000000..3545b81c--- /dev/null+++ b/registry/remocn/a1-product-demo/acts/features-swap.tsx@@ -0,0 +1,91 @@+"use client";++import {+ AbsoluteFill,+ interpolate,+ useCurrentFrame,+} from "remotion";+import { FLOW_BG, FLOW_INK, FLOW_YELLOW, FONT_SERIF } from "../foundation";++const clamp = {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+} as const;++const VERBS = ["simplify", "organize", "facilitate"];+const PHASE = 24;+const SLOT_W = 256;+const FONT_SIZE = 56;++export function FeaturesSwap({ speed = 1 }: { speed?: number }) {+ const f = useCurrentFrame() * speed;++ const lineReveal = interpolate(f, [0, 14], [0, 1], clamp);+ const lineShift = interpolate(lineReveal, [0, 1], [18, 0]);++ return (+ <AbsoluteFill+ style={{+ backgroundColor: FLOW_BG,+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ <div+ style={{+ display: "flex",+ alignItems: "baseline",+ whiteSpace: "nowrap",+ fontFamily: FONT_SERIF,+ fontSize: FONT_SIZE,+ fontWeight: 400,+ color: FLOW_INK,+ opacity: lineReveal,+ transform: `translateY(${lineShift}px)`,+ }}+ >+ <span>Features designed to </span>+ <span+ style={{+ position: "relative",+ display: "inline-block",+ width: SLOT_W,+ height: "1em",+ }}+ >+ {VERBS.map((verb, i) => {+ const tIn = i * PHASE;+ const inProg = interpolate(f, [tIn, tIn + 10], [0, 1], clamp);+ const outProg =+ i < VERBS.length - 1+ ? interpolate(f, [tIn + PHASE, tIn + PHASE + 10], [0, 1], clamp)+ : 0;+ const opacity = inProg * (1 - outProg);+ const ty = (1 - inProg) * 28 + outProg * -28;+ const blur = (1 - inProg) * 8 + outProg * 8;+ return (+ <span+ key={verb}+ style={{+ position: "absolute",+ left: 0,+ right: 0,+ top: 0,+ textAlign: "center",+ color: FLOW_YELLOW,+ opacity,+ transform: `translateY(${ty}px)`,+ filter: blur > 0.05 ? `blur(${blur}px)` : undefined,+ willChange: "transform, filter, opacity",+ }}+ >+ {verb}+ </span>+ );+ })}+ </span>+ <span> your entire workflow</span>+ </div>+ </AbsoluteFill>+ );+}diff --git a/registry/remocn/a1-product-demo/acts/focus-analytics.tsx b/registry/remocn/a1-product-demo/acts/focus-analytics.tsxnew file mode 100644index 00000000..4bb73f2e--- /dev/null+++ b/registry/remocn/a1-product-demo/acts/focus-analytics.tsx@@ -0,0 +1,206 @@+"use client";++import {+ AbsoluteFill,+ interpolate,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";+import {+ FLOW_BG,+ FLOW_BORDER,+ FLOW_INK,+ FLOW_MUTED,+ FLOW_YELLOW,+ FONT,+} from "../foundation";++const BAR_HEIGHTS = [+ 0.34, 0.52, 0.41, 0.66, 0.48, 0.58, 0.39, 0.7, 0.5, 0.61, 0.45, 0.74, 0.55,+ 0.68, 0.43, 0.79, 0.6, 0.95, 0.86, 0.64, 0.49, 0.57, 0.42, 0.36,+];++const YELLOW_BARS = new Set([17, 18]);++export function FocusAnalytics({ speed = 1 }: { speed?: number }) {+ const f = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const pop = spring({+ frame: f - 4,+ fps,+ config: { damping: 16, stiffness: 130 },+ });+ const cardScale = interpolate(pop, [0, 1], [0.86, 1]);+ const cardOpacity = interpolate(f, [4, 14], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const johnPop = spring({+ frame: f - 16,+ fps,+ config: { damping: 15, stiffness: 160 },+ });+ const amyPop = spring({+ frame: f - 24,+ fps,+ config: { damping: 15, stiffness: 160 },+ });++ return (+ <AbsoluteFill+ style={{+ background: FLOW_BG,+ fontFamily: FONT,+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ <div+ style={{+ position: "relative",+ transform: `scale(${cardScale})`,+ opacity: cardOpacity,+ }}+ >+ <div+ style={{+ width: 760,+ padding: "44px 48px 40px",+ borderRadius: 16,+ background: "#FFFFFF",+ border: `4px solid ${FLOW_YELLOW}`,+ boxShadow:+ "0 0 0 1px rgba(242,210,0,0.35), 0 18px 50px rgba(30,28,22,0.08), 0 0 26px rgba(242,210,0,0.22)",+ }}+ >+ <div+ style={{+ display: "flex",+ alignItems: "flex-start",+ justifyContent: "space-between",+ }}+ >+ <span+ style={{+ fontSize: 26,+ fontWeight: 500,+ color: FLOW_MUTED,+ letterSpacing: "-0.01em",+ }}+ >+ Focus Time+ </span>+ <span+ style={{+ fontSize: 24,+ fontWeight: 600,+ color: "#3FA34D",+ }}+ >+ +18%+ </span>+ </div>++ <div+ style={{+ marginTop: 10,+ fontSize: 64,+ fontWeight: 700,+ color: FLOW_INK,+ letterSpacing: "-0.02em",+ }}+ >+ 4h 25m+ </div>++ <div+ style={{+ marginTop: 34,+ height: 180,+ display: "flex",+ alignItems: "flex-end",+ gap: 8,+ }}+ >+ {BAR_HEIGHTS.map((h, i) => {+ const grow = spring({+ frame: f - 14 - i * 2,+ fps,+ config: { damping: 18, stiffness: 150 },+ });+ const isYellow = YELLOW_BARS.has(i);+ return (+ <div+ key={i}+ style={{+ flex: 1,+ height: `${h * 100}%`,+ borderRadius: 5,+ transformOrigin: "bottom",+ transform: `scaleY(${grow})`,+ background: isYellow ? FLOW_YELLOW : "#ECE9DA",+ }}+ />+ );+ })}+ </div>+ </div>++ <div+ style={{+ position: "absolute",+ top: -22,+ right: 70,+ transform: `scale(${johnPop})`,+ transformOrigin: "center",+ }}+ >+ <AvatarChip name="John" color="#2B2A24" />+ </div>+ <div+ style={{+ position: "absolute",+ bottom: -22,+ right: -34,+ transform: `scale(${amyPop})`,+ transformOrigin: "center",+ }}+ >+ <AvatarChip name="Amy" color="#C98A2B" />+ </div>+ </div>+ </AbsoluteFill>+ );+}++function AvatarChip({ name, color }: { name: string; color: string }) {+ return (+ <div+ style={{+ display: "flex",+ alignItems: "center",+ gap: 9,+ padding: "8px 16px 8px 9px",+ borderRadius: 999,+ background: "#FFFFFF",+ border: `1px solid ${FLOW_BORDER}`,+ boxShadow: "0 6px 18px rgba(30,28,22,0.1)",+ }}+ >+ <span+ style={{+ width: 26,+ height: 26,+ borderRadius: 999,+ background: color,+ }}+ />+ <span style={{ fontSize: 21, fontWeight: 600, color: FLOW_INK }}>+ {name}+ </span>+ </div>+ );+}diff --git a/registry/remocn/a1-product-demo/acts/icon-cloud.tsx b/registry/remocn/a1-product-demo/acts/icon-cloud.tsxnew file mode 100644index 00000000..28868621--- /dev/null+++ b/registry/remocn/a1-product-demo/acts/icon-cloud.tsx@@ -0,0 +1,382 @@+"use client";++import {+ AbsoluteFill,+ Easing,+ interpolate,+ interpolateColors,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";+import {+ FLOW_BG,+ FLOW_BORDER,+ FLOW_INK,+ FLOW_MUTED,+ FLOW_YELLOW,+ FONT,+ FONT_SERIF,+} from "../foundation";++type ChipKind =+ | "docs"+ | "calendar"+ | "notes"+ | "automations"+ | "projects"+ | "ai"+ | "tasks"+ | "reports"+ | "time"+ | "goals";++type RawChip = {+ label: string;+ kind: ChipKind;+ color: string;+ dx: number;+ dy: number;+};++const RAW_CHIPS: RawChip[] = [+ { label: "Docs", kind: "docs", color: "#4C7DF0", dx: -560, dy: -150 },+ { label: "Calendar", kind: "calendar", color: "#E0583B", dx: -360, dy: -310 },+ { label: "Notes", kind: "notes", color: "#7C5CE0", dx: -60, dy: -344 },+ { label: "Projects", kind: "projects", color: "#3D55C0", dx: 220, dy: -320 },+ { label: "Tasks", kind: "tasks", color: "#3FA45A", dx: 560, dy: -150 },+ { label: "Goals", kind: "goals", color: "#D2487A", dx: 540, dy: 140 },+ { label: "Time Tracking", kind: "time", color: "#2E9CB0", dx: 280, dy: 282 },+ { label: "Reports", kind: "reports", color: "#D69A2A", dx: -40, dy: 304 },+ { label: "Automations", kind: "automations", color: "#2BA38C", dx: -330, dy: 250 },+ { label: "AI Assistant", kind: "ai", color: "#9A55D6", dx: -540, dy: 130 },+];++type Chip = RawChip & { sx: number; sy: number; delay: number; phase: number };++const CHIPS: Chip[] = RAW_CHIPS.map((c, i) => ({+ ...c,+ sx: c.dx * 2.05 + (((i * 53) % 7) - 3) * 26,+ sy: c.dy * 2.05 + (((i * 29) % 7) - 3) * 26,+ delay: i * 6,+ phase: (i * 0.9) % (Math.PI * 2),+}));++const LINE_WORDS = ["Flowith", "has", "all", "your"];++function StarLogo({ size }: { size: number }) {+ return (+ <span+ style={{+ display: "inline-flex",+ width: size,+ height: size,+ borderRadius: size * 0.24,+ background: FLOW_YELLOW,+ alignItems: "center",+ justifyContent: "center",+ flex: "0 0 auto",+ }}+ >+ <svg+ width={size * 0.6}+ height={size * 0.6}+ viewBox="0 0 24 24"+ fill="#FFFFFF"+ aria-hidden+ >+ <path d="M12 1.6 C 12.9 8.2 15.8 11.1 22.4 12 C 15.8 12.9 12.9 15.8 12 22.4 C 11.1 15.8 8.2 12.9 1.6 12 C 8.2 11.1 11.1 8.2 12 1.6 Z" />+ </svg>+ </span>+ );+}++function Glyph({ kind, color }: { kind: ChipKind; color: string }) {+ const s = 18;+ const common = {+ width: s,+ height: s,+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: color,+ strokeWidth: 2,+ strokeLinecap: "round" as const,+ strokeLinejoin: "round" as const,+ };+ switch (kind) {+ case "docs":+ return (+ <svg {...common}>+ <path d="M7 3h7l4 4v14H7z" />+ <path d="M14 3v4h4" />+ <path d="M9.5 13h6M9.5 16.5h6" />+ </svg>+ );+ case "calendar":+ return (+ <svg {...common}>+ <rect x="4" y="5" width="16" height="15" rx="2" />+ <path d="M4 9.5h16M8 3v4M16 3v4" />+ </svg>+ );+ case "notes":+ return (+ <svg {...common}>+ <rect x="5" y="4" width="14" height="16" rx="2" />+ <path d="M8.5 9h7M8.5 12.5h7M8.5 16h4" />+ </svg>+ );+ case "automations":+ return (+ <svg {...common} fill={color} stroke="none">+ <path d="M13 2 L5 13h5l-1 9 8-12h-5z" />+ </svg>+ );+ case "projects":+ return (+ <svg {...common}>+ <rect x="4" y="4" width="6.5" height="6.5" rx="1.5" />+ <rect x="13.5" y="4" width="6.5" height="6.5" rx="1.5" />+ <rect x="4" y="13.5" width="6.5" height="6.5" rx="1.5" />+ <rect x="13.5" y="13.5" width="6.5" height="6.5" rx="1.5" />+ </svg>+ );+ case "ai":+ return (+ <svg {...common} fill={color} stroke="none">+ <path d="M12 2 C 12.7 7 15 9.3 20 10 C 15 10.7 12.7 13 12 18 C 11.3 13 9 10.7 4 10 C 9 9.3 11.3 7 12 2 Z" />+ <circle cx="18.5" cy="18.5" r="2" />+ </svg>+ );+ case "tasks":+ return (+ <svg {...common}>+ <rect x="4" y="4" width="16" height="16" rx="3" />+ <path d="M8 12l3 3 5-6" />+ </svg>+ );+ case "reports":+ return (+ <svg {...common}>+ <path d="M5 20V11M12 20V5M19 20v-6" />+ <path d="M3.5 20h17" />+ </svg>+ );+ case "time":+ return (+ <svg {...common}>+ <circle cx="12" cy="12" r="8.5" />+ <path d="M12 7.5V12l3 2" />+ </svg>+ );+ case "goals":+ return (+ <svg {...common}>+ <circle cx="12" cy="12" r="8.5" />+ <circle cx="12" cy="12" r="4.5" />+ <circle cx="12" cy="12" r="1.2" fill={color} stroke="none" />+ </svg>+ );+ }+}++function ChipNode({+ chip,+ f,+ fps,+ converge,+}: {+ chip: Chip;+ f: number;+ fps: number;+ converge: number;+}) {+ const enter = spring({+ frame: f - chip.delay,+ fps,+ config: { damping: 18, stiffness: 90 },+ });++ const orbit = 0.05 * Math.sin(f / 45 + chip.phase);+ const cos = Math.cos(orbit);+ const sin = Math.sin(orbit);+ const ox = chip.dx * cos - chip.dy * sin;+ const oy = chip.dx * sin + chip.dy * cos;++ const ex = chip.sx + (ox - chip.sx) * enter;+ const ey = chip.sy + (oy - chip.sy) * enter;++ const x = ex * (1 - converge);+ const y = ey * (1 - converge);++ const blur = interpolate(enter, [0, 1], [6, 0]);+ const opacityIn = interpolate(f, [chip.delay, chip.delay + 12], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const opacityOut = interpolate(f, [96, 128], [1, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const scale = (0.86 + enter * 0.14) * (1 - converge * 0.32);++ return (+ <div+ style={{+ position: "absolute",+ left: `calc(50% + ${x}px)`,+ top: `calc(50% + ${y}px)`,+ transform: `translate(-50%, -50%) scale(${scale})`,+ opacity: opacityIn * opacityOut,+ filter: blur > 0.05 ? `blur(${blur}px)` : undefined,+ willChange: "transform, filter, opacity",+ }}+ >+ <div+ style={{+ display: "inline-flex",+ alignItems: "center",+ gap: 10,+ padding: "9px 18px 9px 14px",+ borderRadius: 999,+ background: "rgba(255,255,255,0.72)",+ border: `1px solid ${FLOW_BORDER}`,+ boxShadow: "0 6px 18px rgba(30,28,22,0.06)",+ }}+ >+ <Glyph kind={chip.kind} color={chip.color} />+ <span+ style={{+ fontFamily: FONT,+ fontSize: 24,+ fontWeight: 500,+ color: FLOW_INK,+ whiteSpace: "nowrap",+ }}+ >+ {chip.label}+ </span>+ </div>+ </div>+ );+}++function HeadWord({+ text,+ index,+ f,+ fps,+}: {+ text: string;+ index: number;+ f: number;+ fps: number;+}) {+ const reveal = spring({+ frame: f - index * 4,+ fps,+ config: { damping: 18, stiffness: 110 },+ });+ const ty = interpolate(reveal, [0, 1], [70, 0]);+ const blur = interpolate(reveal, [0, 1], [7, 0]);+ const color = interpolateColors(reveal, [0, 1], [FLOW_MUTED, FLOW_INK]);++ return (+ <span style={{ display: "inline-block", overflow: "hidden", paddingBottom: "0.06em" }}>+ <span+ style={{+ display: "inline-block",+ color,+ transform: `translateY(${ty}%)`,+ filter: blur > 0.05 ? `blur(${blur}px)` : undefined,+ willChange: "transform, filter",+ }}+ >+ {text}+ </span>+ </span>+ );+}++export function IconCloud({ speed = 1 }: { speed?: number }) {+ const f = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const converge = interpolate(f, [92, 138], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.cubic),+ });++ const lineAOpacity = interpolate(f, [90, 110], [1, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const lineBOpacity = interpolate(f, [102, 128], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const lineBReveal = spring({+ frame: f - 102,+ fps,+ config: { damping: 20, stiffness: 100 },+ });+ const lineBTy = interpolate(lineBReveal, [0, 1], [34, 0]);+ const lineBBlur = interpolate(lineBReveal, [0, 1], [8, 0]);++ return (+ <AbsoluteFill style={{ backgroundColor: FLOW_BG }}>+ <AbsoluteFill>+ {CHIPS.map((chip) => (+ <ChipNode+ key={chip.label}+ chip={chip}+ f={f}+ fps={fps}+ converge={converge}+ />+ ))}+ </AbsoluteFill>++ <AbsoluteFill style={{ alignItems: "center", justifyContent: "center" }}>+ <div+ style={{+ position: "absolute",+ opacity: lineAOpacity,+ display: "flex",+ flexDirection: "row",+ alignItems: "center",+ gap: "0.26em",+ fontFamily: FONT_SERIF,+ fontSize: 60,+ fontWeight: 400,+ letterSpacing: "-0.01em",+ willChange: "opacity",+ }}+ >+ <StarLogo size={48} />+ {LINE_WORDS.map((w, i) => (+ <HeadWord key={w} text={w} index={i} f={f} fps={fps} />+ ))}+ </div>++ <div+ style={{+ position: "absolute",+ opacity: lineBOpacity,+ transform: `translateY(${lineBTy}px)`,+ filter: lineBBlur > 0.05 ? `blur(${lineBBlur}px)` : undefined,+ fontFamily: FONT_SERIF,+ fontSize: 60,+ fontWeight: 400,+ letterSpacing: "-0.01em",+ color: FLOW_INK,+ willChange: "transform, filter, opacity",+ }}+ >+ in one place+ </div>+ </AbsoluteFill>+ </AbsoluteFill>+ );+}diff --git a/registry/remocn/a1-product-demo/acts/integrations.tsx b/registry/remocn/a1-product-demo/acts/integrations.tsxnew file mode 100644index 00000000..59dec897--- /dev/null+++ b/registry/remocn/a1-product-demo/acts/integrations.tsx@@ -0,0 +1,281 @@+"use client";++import {+ AbsoluteFill,+ interpolate,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";+import { FLOW_BG, FLOW_BORDER, FLOW_YELLOW, FONT } from "../foundation";++const ICONS = ["github", "figma", "flowith", "notion", "slack"] as const;++export function Integrations({ speed = 1 }: { speed?: number }) {+ const f = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const lineGrow = interpolate(f, [6, 28], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ return (+ <AbsoluteFill+ style={{+ background: FLOW_BG,+ fontFamily: FONT,+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ <div+ style={{+ position: "relative",+ display: "flex",+ alignItems: "center",+ gap: 56,+ }}+ >+ <div+ style={{+ position: "absolute",+ left: 40,+ right: 40,+ top: "50%",+ height: 2,+ background: FLOW_BORDER,+ transformOrigin: "center",+ transform: `translateY(-50%) scaleX(${lineGrow})`,+ }}+ />+ {ICONS.map((kind, i) => {+ const pop = spring({+ frame: f - 6 - i * 5,+ fps,+ config: { damping: 14, stiffness: 170 },+ });+ const center = kind === "flowith";+ const size = center ? 128 : 100;+ return (+ <div+ key={kind}+ style={{+ position: "relative",+ transform: `scale(${pop})`,+ transformOrigin: "center",+ }}+ >+ <Glyph kind={kind} size={size} />+ </div>+ );+ })}+ </div>+ </AbsoluteFill>+ );+}++function Glyph({+ kind,+ size,+}: {+ kind: (typeof ICONS)[number];+ size: number;+}) {+ if (kind === "github") return <GithubMark size={size} />;+ if (kind === "figma") return <FigmaMark size={size} />;+ if (kind === "flowith") return <FlowithMark size={size} />;+ if (kind === "notion") return <NotionMark size={size} />;+ return <SlackMark size={size} />;+}++function GithubMark({ size }: { size: number }) {+ return (+ <div+ style={{+ width: size,+ height: size,+ borderRadius: 999,+ background: "#161614",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ boxShadow: "0 8px 22px rgba(30,28,22,0.14)",+ }}+ >+ <svg+ width={size * 0.62}+ height={size * 0.62}+ viewBox="0 0 24 24"+ fill="none"+ >+ <path+ fill="#FFFFFF"+ d="M12 .5C5.37.5 0 5.78 0 12.29c0 5.2 3.44 9.61 8.21 11.17.6.11.82-.25.82-.56 0-.28-.01-1.01-.02-1.98-3.34.71-4.04-1.59-4.04-1.59-.55-1.37-1.34-1.73-1.34-1.73-1.09-.73.08-.72.08-.72 1.21.08 1.84 1.22 1.84 1.22 1.07 1.8 2.81 1.28 3.5.98.11-.76.42-1.28.76-1.57-2.67-.3-5.47-1.31-5.47-5.83 0-1.29.47-2.34 1.24-3.17-.12-.3-.54-1.52.12-3.16 0 0 1.01-.32 3.3 1.21A11.6 11.6 0 0 1 12 5.8c1.02 0 2.05.13 3.01.39 2.29-1.53 3.3-1.21 3.3-1.21.66 1.64.24 2.86.12 3.16.77.83 1.24 1.88 1.24 3.17 0 4.53-2.81 5.52-5.49 5.81.43.36.81 1.08.81 2.18 0 1.57-.01 2.84-.01 3.23 0 .31.22.68.83.56C20.56 21.9 24 17.49 24 12.29 24 5.78 18.63.5 12 .5z"+ />+ </svg>+ </div>+ );+}++function FigmaMark({ size }: { size: number }) {+ const w = size * 0.6;+ return (+ <div+ style={{+ width: size,+ height: size,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ <svg width={w} height={size * 0.9} viewBox="0 0 38 57" fill="none">+ <path+ fill="#1ABCFE"+ d="M19 28.5a9.5 9.5 0 1 1 19 0 9.5 9.5 0 0 1-19 0z"+ />+ <path+ fill="#0ACF83"+ d="M0 47.5A9.5 9.5 0 0 1 9.5 38H19v9.5a9.5 9.5 0 1 1-19 0z"+ />+ <path fill="#FF7262" d="M19 0v19h9.5a9.5 9.5 0 1 0 0-19H19z" />+ <path+ fill="#F24E1E"+ d="M0 9.5A9.5 9.5 0 0 0 9.5 19H19V0H9.5A9.5 9.5 0 0 0 0 9.5z"+ />+ <path+ fill="#A259FF"+ d="M0 28.5A9.5 9.5 0 0 0 9.5 38H19V19H9.5A9.5 9.5 0 0 0 0 28.5z"+ />+ </svg>+ </div>+ );+}++function FlowithMark({ size }: { size: number }) {+ return (+ <div+ style={{+ width: size,+ height: size,+ borderRadius: size * 0.26,+ background: FLOW_YELLOW,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ boxShadow: "0 10px 26px rgba(242,210,0,0.4)",+ }}+ >+ <svg+ width={size * 0.62}+ height={size * 0.62}+ viewBox="0 0 24 24"+ fill="none"+ >+ <path+ fill="#FFFFFF"+ d="M12 1.5 14 9.6 23 12 14 14.4 12 22.5 10 14.4 1 12 10 9.6 Z"+ />+ </svg>+ </div>+ );+}++function NotionMark({ size }: { size: number }) {+ return (+ <div+ style={{+ width: size,+ height: size,+ borderRadius: size * 0.2,+ background: "#161614",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ boxShadow: "0 8px 22px rgba(30,28,22,0.14)",+ }}+ >+ <span+ style={{+ fontSize: size * 0.52,+ fontWeight: 700,+ color: "#FFFFFF",+ fontFamily: "Georgia, 'Times New Roman', Times, serif",+ }}+ >+ N+ </span>+ </div>+ );+}++function SlackMark({ size }: { size: number }) {+ const bar = size * 0.2;+ const len = size * 0.46;+ const r = bar / 2;+ return (+ <div+ style={{+ width: size,+ height: size,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ <div+ style={{+ position: "relative",+ width: size * 0.6,+ height: size * 0.6,+ }}+ >+ <span+ style={{+ position: "absolute",+ top: 0,+ left: len - bar,+ width: bar,+ height: len,+ borderRadius: r,+ background: "#36C5F0",+ }}+ />+ <span+ style={{+ position: "absolute",+ top: len - bar,+ right: 0,+ width: len,+ height: bar,+ borderRadius: r,+ background: "#2EB67D",+ }}+ />+ <span+ style={{+ position: "absolute",+ bottom: 0,+ left: bar,+ width: bar,+ height: len,+ borderRadius: r,+ background: "#ECB22E",+ }}+ />+ <span+ style={{+ position: "absolute",+ bottom: len - bar,+ left: 0,+ width: len,+ height: bar,+ borderRadius: r,+ background: "#E01E5A",+ }}+ />+ </div>+ </div>+ );+}diff --git a/registry/remocn/a1-product-demo/acts/logo-outro.tsx b/registry/remocn/a1-product-demo/acts/logo-outro.tsxnew file mode 100644index 00000000..7f18c1a3--- /dev/null+++ b/registry/remocn/a1-product-demo/acts/logo-outro.tsx@@ -0,0 +1,89 @@+"use client";++import {+ AbsoluteFill,+ interpolate,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";+import { FLOW_BG, FLOW_INK, FLOW_YELLOW, FONT_SERIF } from "../foundation";++function FlowithLogo({ size }: { size: number }) {+ return (+ <div+ style={{+ width: size,+ height: size,+ backgroundColor: FLOW_YELLOW,+ borderRadius: size * 0.24,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ flexShrink: 0,+ }}+ >+ <svg+ width={size * 0.58}+ height={size * 0.58}+ viewBox="0 0 24 24"+ fill="white"+ >+ <path d="M12 2 C12 6.5 15.5 10 20 12 C15.5 14 12 17.5 12 22 C12 17.5 8.5 14 4 12 C8.5 10 12 6.5 12 2 Z" />+ </svg>+ </div>+ );+}++export function LogoOutro({ speed = 1 }: { speed?: number }) {+ const f = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const reveal = spring({+ frame: f - 4,+ fps,+ config: { damping: 22, stiffness: 90 },+ });+ const opacity = interpolate(f, [4, 24], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const scale = interpolate(reveal, [0, 1], [0.84, 1]);++ return (+ <AbsoluteFill+ style={{+ backgroundColor: FLOW_BG,+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ <div+ style={{+ display: "flex",+ flexDirection: "row",+ alignItems: "center",+ gap: 30,+ opacity,+ transform: `scale(${scale})`,+ transformOrigin: "center",+ willChange: "transform, opacity",+ }}+ >+ <FlowithLogo size={110} />+ <span+ style={{+ fontFamily: FONT_SERIF,+ fontSize: 92,+ fontWeight: 400,+ color: FLOW_INK,+ letterSpacing: "-0.01em",+ lineHeight: 1,+ }}+ >+ Flowith+ </span>+ </div>+ </AbsoluteFill>+ );+}diff --git a/registry/remocn/a1-product-demo/acts/metrics-cards.tsx b/registry/remocn/a1-product-demo/acts/metrics-cards.tsxnew file mode 100644index 00000000..8e6cbd28--- /dev/null+++ b/registry/remocn/a1-product-demo/acts/metrics-cards.tsx@@ -0,0 +1,152 @@+"use client";++import type { ReactNode } from "react";+import {+ AbsoluteFill,+ interpolate,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";+import {+ FLOW_BG,+ FLOW_GREEN_LOW,+ FLOW_GREEN_MID,+ FLOW_GREEN_TOP,+ FONT,+} from "../foundation";++const CARD_GRADIENT = `linear-gradient(160deg, ${FLOW_GREEN_TOP} 0%, ${FLOW_GREEN_MID} 55%, ${FLOW_GREEN_LOW} 100%)`;+const CARD_W = 360;+const CARD_H = 360;+const CARD_GAP = 48;++function Card({+ index,+ f,+ fps,+ children,+}: {+ index: number;+ f: number;+ fps: number;+ children: ReactNode;+}) {+ const enter = spring({+ frame: f - index * 8,+ fps,+ config: { damping: 18, stiffness: 110 },+ });+ const ty = interpolate(enter, [0, 1], [70, 0]);+ const scale = interpolate(enter, [0, 1], [0.9, 1]);+ const opacity = interpolate(enter, [0, 1], [0, 1]);++ return (+ <div+ style={{+ width: CARD_W,+ height: CARD_H,+ borderRadius: 18,+ background: CARD_GRADIENT,+ boxShadow: "0 24px 60px rgba(79, 107, 42, 0.22)",+ color: "#FFFFFF",+ padding: 40,+ display: "flex",+ flexDirection: "column",+ justifyContent: "space-between",+ opacity,+ transform: `translateY(${ty}px) scale(${scale})`,+ transformOrigin: "center bottom",+ willChange: "transform, opacity",+ }}+ >+ {children}+ </div>+ );+}++function Label({ children }: { children: ReactNode }) {+ return (+ <div+ style={{+ fontFamily: FONT,+ fontSize: 22,+ fontWeight: 600,+ lineHeight: 1.25,+ color: "rgba(255, 255, 255, 0.92)",+ maxWidth: 220,+ }}+ >+ {children}+ </div>+ );+}++export function MetricsCards({ speed = 1 }: { speed?: number }) {+ const f = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ return (+ <AbsoluteFill+ style={{+ backgroundColor: FLOW_BG,+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ <div style={{ display: "flex", flexDirection: "row", gap: CARD_GAP }}>+ <Card index={0} f={f} fps={fps}>+ <Label>AI-Powered Task Management</Label>+ <div+ style={{+ fontFamily: FONT,+ fontWeight: 700,+ display: "flex",+ alignItems: "flex-end",+ lineHeight: 1,+ }}+ >+ <span style={{ fontSize: 116 }}>87</span>+ <span style={{ fontSize: 56, marginBottom: 8 }}>%</span>+ </div>+ </Card>++ <Card index={1} f={f} fps={fps}>+ <Label>Smart Planning & Scheduling</Label>+ <div+ style={{+ fontFamily: FONT,+ fontWeight: 700,+ display: "flex",+ alignItems: "flex-end",+ lineHeight: 1,+ }}+ >+ <span style={{ fontSize: 116 }}>6.2</span>+ <span style={{ fontSize: 56, marginBottom: 8 }}>h</span>+ </div>+ </Card>++ <Card index={2} f={f} fps={fps}>+ <Label>Unified Team Workspace</Label>+ <div+ style={{+ display: "grid",+ gridTemplateColumns: "1fr 1fr",+ gap: "18px 28px",+ fontFamily: FONT,+ fontWeight: 700,+ fontSize: 64,+ lineHeight: 1,+ }}+ >+ <span>24</span>+ <span>3</span>+ <span>12</span>+ <span>68</span>+ </div>+ </Card>+ </div>+ </AbsoluteFill>+ );+}diff --git a/registry/remocn/a1-product-demo/acts/positioning.tsx b/registry/remocn/a1-product-demo/acts/positioning.tsxnew file mode 100644index 00000000..5dcb3c49--- /dev/null+++ b/registry/remocn/a1-product-demo/acts/positioning.tsx@@ -0,0 +1,179 @@+"use client";++import {+ AbsoluteFill,+ interpolate,+ interpolateColors,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";+import {+ FLOW_BG,+ FLOW_INK,+ FLOW_MUTED,+ FLOW_YELLOW,+ FONT_SERIF,+} from "../foundation";++function FlowithLogo({ size }: { size: number }) {+ return (+ <div+ style={{+ width: size,+ height: size,+ backgroundColor: FLOW_YELLOW,+ borderRadius: size * 0.24,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ flexShrink: 0,+ }}+ >+ <svg+ width={size * 0.58}+ height={size * 0.58}+ viewBox="0 0 24 24"+ fill="white"+ >+ <path d="M12 2 C12 6.5 15.5 10 20 12 C15.5 14 12 17.5 12 22 C12 17.5 8.5 14 4 12 C8.5 10 12 6.5 12 2 Z" />+ </svg>+ </div>+ );+}++const WORDS = ["AI-Powered", "Work", "Operating", "System"] as const;+const STAGGER = 10;++function WordReveal({+ word,+ index,+ f,+ fps,+}: {+ word: string;+ index: number;+ f: number;+ fps: number;+}) {+ const reveal = spring({+ frame: f - index * STAGGER,+ fps,+ config: { damping: 18, stiffness: 110 },+ });+ const ty = interpolate(reveal, [0, 1], [60, 0]);+ const blur = interpolate(reveal, [0, 1], [6, 0]);++ const isWork = word === "Work";+ const settle = isWork+ ? interpolate(f, [index * STAGGER + 6, index * STAGGER + 24], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ })+ : 1;+ const color = isWork+ ? interpolateColors(settle, [0, 1], [FLOW_MUTED, FLOW_INK])+ : FLOW_INK;++ return (+ <span style={{ display: "inline-block", overflow: "hidden", paddingBottom: "0.06em" }}>+ <span+ style={{+ display: "inline-block",+ color,+ transform: `translateY(${ty}%)`,+ filter: blur > 0.05 ? `blur(${blur}px)` : undefined,+ willChange: "transform, filter",+ }}+ >+ {word}+ </span>+ </span>+ );+}++export function Positioning({ speed = 1 }: { speed?: number }) {+ const f = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const headlineOpacity = interpolate(f, [55, 70], [1, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const lockupReveal = spring({+ frame: f - 70,+ fps,+ config: { damping: 22, stiffness: 95 },+ });+ const lockupOpacity = interpolate(f, [68, 84], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const lockupScale = interpolate(lockupReveal, [0, 1], [0.88, 1]);++ return (+ <AbsoluteFill style={{ backgroundColor: FLOW_BG }}>+ <AbsoluteFill+ style={{+ alignItems: "center",+ justifyContent: "center",+ opacity: headlineOpacity,+ willChange: "opacity",+ }}+ >+ <div+ style={{+ display: "flex",+ flexDirection: "row",+ alignItems: "baseline",+ gap: "0.28em",+ fontFamily: FONT_SERIF,+ fontSize: 80,+ fontWeight: 400,+ letterSpacing: "-0.01em",+ lineHeight: 1.1,+ }}+ >+ {WORDS.map((word, i) => (+ <WordReveal key={word} word={word} index={i} f={f} fps={fps} />+ ))}+ </div>+ </AbsoluteFill>++ <AbsoluteFill+ style={{+ alignItems: "center",+ justifyContent: "center",+ opacity: lockupOpacity,+ transform: `scale(${lockupScale})`,+ transformOrigin: "center",+ willChange: "transform, opacity",+ }}+ >+ <div+ style={{+ display: "flex",+ flexDirection: "row",+ alignItems: "center",+ gap: 24,+ }}+ >+ <FlowithLogo size={88} />+ <span+ style={{+ fontFamily: FONT_SERIF,+ fontSize: 76,+ fontWeight: 400,+ color: FLOW_INK,+ letterSpacing: "-0.01em",+ lineHeight: 1,+ }}+ >+ Flowith+ </span>+ </div>+ </AbsoluteFill>+ </AbsoluteFill>+ );+}diff --git a/registry/remocn/a1-product-demo/acts/problem-hook.tsx b/registry/remocn/a1-product-demo/acts/problem-hook.tsxnew file mode 100644index 00000000..1ce2ad6a--- /dev/null+++ b/registry/remocn/a1-product-demo/acts/problem-hook.tsx@@ -0,0 +1,270 @@+"use client";++import {+ AbsoluteFill,+ interpolate,+ interpolateColors,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";+import {+ FLOW_BG,+ FLOW_BORDER,+ FLOW_INK,+ FLOW_MUTED,+ FONT_SERIF,+} from "../foundation";++const clamp = {+ extrapolateLeft: "clamp" as const,+ extrapolateRight: "clamp" as const,+};++const LINE_1_WORDS = ["Your", "team", "has", "tasks", "everywhere"];+const STAGGER = 7;++function WordReveal({+ word,+ index,+ f,+ fps,+}: {+ word: string;+ index: number;+ f: number;+ fps: number;+}) {+ const reveal = spring({+ frame: f - index * STAGGER,+ fps,+ config: { damping: 18, stiffness: 110 },+ });+ const ty = interpolate(reveal, [0, 1], [100, 0]);+ const blur = interpolate(reveal, [0, 1], [6, 0]);+ const settle = interpolate(+ f,+ [index * STAGGER, index * STAGGER + 18],+ [0, 1],+ clamp,+ );+ const color = interpolateColors(settle, [0, 1], [FLOW_MUTED, FLOW_INK]);++ return (+ <span+ style={{+ display: "inline-block",+ overflow: "hidden",+ paddingBottom: "0.06em",+ }}+ >+ <span+ style={{+ display: "inline-block",+ color,+ transform: `translateY(${ty}%)`,+ filter: blur > 0.05 ? `blur(${blur}px)` : undefined,+ willChange: "transform, filter",+ }}+ >+ {word}+ </span>+ </span>+ );+}++function GridGlyph({ size, color }: { size: number; color: string }) {+ const pad = size * 0.12;+ const gap = size * 0.1;+ const cell = (size - 2 * pad - gap) / 2;+ const positions: [number, number][] = [+ [pad, pad],+ [pad + cell + gap, pad],+ [pad, pad + cell + gap],+ [pad + cell + gap, pad + cell + gap],+ ];+ return (+ <svg+ width={size}+ height={size}+ viewBox={`0 0 ${size} ${size}`}+ style={{ display: "block" }}+ >+ {positions.map(([x, y], i) => (+ <rect+ key={i}+ x={x}+ y={y}+ width={cell}+ height={cell}+ rx={cell * 0.2}+ fill={color}+ />+ ))}+ </svg>+ );+}++const SCATTER_CARDS = [+ { dx: -380, dy: -150, w: 110, h: 62 },+ { dx: 320, dy: -110, w: 88, h: 54 },+ { dx: -300, dy: 160, w: 120, h: 50 },+ { dx: 360, dy: 140, w: 84, h: 58 },+ { dx: 10, dy: -220, w: 100, h: 46 },+] as const;++export function ProblemHook({ speed = 1 }: { speed?: number }) {+ const f = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const beat1Opacity = interpolate(f, [0, 4, 40, 55], [0, 1, 1, 0], clamp);+ const beat2Opacity = interpolate(f, [50, 60, 100, 115], [0, 1, 1, 0], clamp);+ const beat3Opacity = interpolate(f, [113, 130], [0, 1], clamp);+ const beat3ty = interpolate(f, [113, 132], [16, 0], clamp);++ const line2Reveal = spring({+ frame: f - 52,+ fps,+ config: { damping: 18, stiffness: 110 },+ });+ const line2ty = interpolate(line2Reveal, [0, 1], [60, 0]);+ const line2blur = interpolate(line2Reveal, [0, 1], [6, 0]);++ const scatteredSettle = interpolate(f, [57, 76], [0, 1], clamp);+ const scatteredColor = interpolateColors(+ scatteredSettle,+ [0, 1],+ [FLOW_MUTED, FLOW_INK],+ );++ return (+ <AbsoluteFill style={{ backgroundColor: FLOW_BG }}>+ <AbsoluteFill+ style={{+ alignItems: "center",+ justifyContent: "center",+ opacity: beat1Opacity,+ willChange: "opacity",+ }}+ >+ <div+ style={{+ display: "flex",+ flexDirection: "row",+ flexWrap: "wrap",+ justifyContent: "center",+ alignItems: "baseline",+ gap: "0.26em",+ fontFamily: FONT_SERIF,+ fontSize: 96,+ fontWeight: 400,+ letterSpacing: "-0.01em",+ lineHeight: 1.1,+ maxWidth: 1400,+ }}+ >+ {LINE_1_WORDS.map((word, i) => (+ <WordReveal key={word} word={word} index={i} f={f} fps={fps} />+ ))}+ </div>+ </AbsoluteFill>++ <AbsoluteFill+ style={{+ alignItems: "center",+ justifyContent: "center",+ opacity: beat2Opacity,+ willChange: "opacity",+ }}+ >+ {SCATTER_CARDS.map((card, i) => {+ const cardDelay = 52 + i * 4;+ const sp = spring({+ frame: f - cardDelay,+ fps,+ config: { damping: 22, stiffness: 120 },+ });+ const cardOpacity = interpolate(+ f,+ [cardDelay, cardDelay + 8, 96, 112],+ [0, 0.55, 0.42, 0],+ clamp,+ );+ return (+ <div+ key={i}+ style={{+ position: "absolute",+ left: "50%",+ top: "50%",+ marginLeft: -card.w / 2,+ marginTop: -card.h / 2,+ transform: `translate(${sp * card.dx}px, ${sp * card.dy}px)`,+ width: card.w,+ height: card.h,+ borderRadius: 10,+ background: "#FFFFFF",+ border: `1.5px solid ${FLOW_BORDER}`,+ opacity: cardOpacity,+ boxShadow: "0 2px 8px rgba(0,0,0,0.05)",+ willChange: "transform, opacity",+ }}+ />+ );+ })}++ <div+ style={{+ display: "flex",+ flexDirection: "row",+ alignItems: "center",+ gap: "0.24em",+ fontFamily: FONT_SERIF,+ fontSize: 96,+ fontWeight: 400,+ letterSpacing: "-0.01em",+ position: "relative",+ zIndex: 1,+ transform: `translateY(${line2ty}%)`,+ filter: line2blur > 0.05 ? `blur(${line2blur}px)` : undefined,+ willChange: "transform, filter",+ }}+ >+ <span style={{ color: FLOW_INK }}>Projects</span>+ <span+ style={{+ display: "inline-flex",+ alignItems: "center",+ paddingBottom: "0.06em",+ }}+ >+ <GridGlyph size={56} color={FLOW_MUTED} />+ </span>+ <span style={{ color: scatteredColor }}>scattered</span>+ </div>+ </AbsoluteFill>++ <AbsoluteFill+ style={{+ alignItems: "center",+ justifyContent: "center",+ opacity: beat3Opacity,+ transform: `translateY(${beat3ty}px)`,+ willChange: "transform, opacity",+ }}+ >+ <span+ style={{+ fontFamily: FONT_SERIF,+ fontSize: 96,+ fontWeight: 400,+ letterSpacing: "-0.01em",+ color: FLOW_INK,+ }}+ >+ Meet Flowith+ </span>+ </AbsoluteFill>+ </AbsoluteFill>+ );+}diff --git a/registry/remocn/a1-product-demo/acts/social-proof.tsx b/registry/remocn/a1-product-demo/acts/social-proof.tsxnew file mode 100644index 00000000..1d47d29f--- /dev/null+++ b/registry/remocn/a1-product-demo/acts/social-proof.tsx@@ -0,0 +1,297 @@+"use client";++import {+ AbsoluteFill,+ interpolate,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";+import {+ FLOW_BG,+ FLOW_BORDER,+ FLOW_GREEN_MID,+ FLOW_GREEN_TOP,+ FLOW_INK,+ FLOW_MUTED,+ FLOW_YELLOW,+ FONT,+ FONT_SERIF,+} from "../foundation";++type Testimonial = {+ name: string;+ role: string;+ quote: string;+};++const TESTIMONIALS: Testimonial[] = [+ {+ name: "Lena R.",+ role: "Product Owner",+ quote:+ "I didn't realize how much mental energy I was wasting on organizing until I stopped doing it. Flowith just handles it.",+ },+ {+ name: "Tomas H.",+ role: "Design Agency Owner",+ quote:+ "Client projects, internal tasks, team docs - all connected. Our delivery time dropped by 20% in the first month.",+ },+ {+ name: "Priya S.",+ role: "Head of Marketing",+ quote:+ "It's the first tool that actually adapts to how I work instead of forcing me into a rigid structure.",+ },+];++function CornerTriangle({ corner }: { corner: "top" | "bottom" }) {+ const isTop = corner === "top";+ return (+ <div+ style={{+ position: "absolute",+ left: 0,+ top: isTop ? 0 : undefined,+ bottom: isTop ? undefined : 0,+ width: 0,+ height: 0,+ borderLeft: `120px solid ${FLOW_YELLOW}`,+ borderTop: isTop ? "120px solid transparent" : undefined,+ borderBottom: isTop ? undefined : "120px solid transparent",+ }}+ />+ );+}++function TestimonialCard({+ item,+ index,+ f,+ fps,+}: {+ item: Testimonial;+ index: number;+ f: number;+ fps: number;+}) {+ const enter = spring({+ frame: f - 28 - index * 9,+ fps,+ config: { damping: 18, stiffness: 110 },+ });+ const ty = interpolate(enter, [0, 1], [60, 0]);+ const opacity = interpolate(enter, [0, 1], [0, 1]);++ return (+ <div+ style={{+ width: 400,+ background: "#FFFFFF",+ border: `1px solid ${FLOW_BORDER}`,+ borderRadius: 14,+ boxShadow: "0 18px 44px rgba(30, 28, 22, 0.08)",+ padding: 32,+ display: "flex",+ flexDirection: "column",+ gap: 20,+ opacity,+ transform: `translateY(${ty}px)`,+ willChange: "transform, opacity",+ }}+ >+ <div style={{ display: "flex", alignItems: "center", gap: 14 }}>+ <div+ style={{+ width: 48,+ height: 48,+ borderRadius: "50%",+ background: `linear-gradient(150deg, ${FLOW_GREEN_TOP}, ${FLOW_GREEN_MID})`,+ flexShrink: 0,+ }}+ />+ <div style={{ display: "flex", flexDirection: "column", gap: 4 }}>+ <span+ style={{+ fontFamily: FONT,+ fontSize: 22,+ fontWeight: 700,+ color: FLOW_INK,+ }}+ >+ {item.name}+ </span>+ <span+ style={{ fontFamily: FONT, fontSize: 17, color: FLOW_MUTED }}+ >+ {item.role}+ </span>+ </div>+ </div>+ <p+ style={{+ margin: 0,+ fontFamily: FONT,+ fontSize: 20,+ lineHeight: 1.5,+ color: FLOW_INK,+ }}+ >+ {item.quote}+ </p>+ </div>+ );+}++export function SocialProof({ speed = 1 }: { speed?: number }) {+ const f = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const headEnter = spring({+ frame: f,+ fps,+ config: { damping: 20, stiffness: 110 },+ });+ const headTy = interpolate(headEnter, [0, 1], [40, 0]);+ const headOpacity = interpolate(headEnter, [0, 1], [0, 1]);++ const subOpacity = interpolate(f, [14, 30], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const barProgress = interpolate(f, [54, 110], [0.12, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ return (+ <AbsoluteFill+ style={{+ backgroundColor: FLOW_BG,+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ <CornerTriangle corner="top" />+ <CornerTriangle corner="bottom" />++ <div+ style={{+ display: "flex",+ flexDirection: "column",+ alignItems: "center",+ gap: 56,+ width: "100%",+ maxWidth: 1400,+ }}+ >+ <div+ style={{+ display: "flex",+ flexDirection: "column",+ alignItems: "center",+ opacity: headOpacity,+ transform: `translateY(${headTy}px)`,+ willChange: "transform, opacity",+ }}+ >+ <span+ style={{+ fontFamily: FONT_SERIF,+ fontSize: 80,+ fontWeight: 700,+ color: FLOW_YELLOW,+ lineHeight: 0.7,+ marginBottom: 8,+ }}+ >+ “+ </span>+ <h2+ style={{+ margin: 0,+ fontFamily: FONT_SERIF,+ fontSize: 58,+ fontWeight: 600,+ color: FLOW_INK,+ textAlign: "center",+ lineHeight: 1.15,+ }}+ >+ Join 12,000+ people who found their flow+ </h2>+ <p+ style={{+ margin: "20px 0 0",+ fontFamily: FONT,+ fontSize: 24,+ color: FLOW_MUTED,+ textAlign: "center",+ opacity: subOpacity,+ maxWidth: 760,+ }}+ >+ Freelancers, agencies, and growing teams switched to Flowith and+ never looked back.+ </p>+ </div>++ <div style={{ display: "flex", flexDirection: "row", gap: 40 }}>+ {TESTIMONIALS.map((item, i) => (+ <TestimonialCard+ key={item.name}+ item={item}+ index={i}+ f={f}+ fps={fps}+ />+ ))}+ </div>++ <div+ style={{+ display: "flex",+ flexDirection: "column",+ alignItems: "center",+ gap: 24,+ width: 1240,+ }}+ >+ <div+ style={{+ width: "100%",+ height: 5,+ borderRadius: 999,+ background: FLOW_BORDER,+ overflow: "hidden",+ }}+ >+ <div+ style={{+ width: `${barProgress * 100}%`,+ height: "100%",+ borderRadius: 999,+ background: `linear-gradient(90deg, ${FLOW_GREEN_TOP}, ${FLOW_GREEN_MID})`,+ }}+ />+ </div>+ <div style={{ display: "flex", flexDirection: "row", gap: 12 }}>+ {[0, 1, 2].map((i) => (+ <div+ key={i}+ style={{+ width: 10,+ height: 10,+ borderRadius: "50%",+ background: i === 0 ? FLOW_GREEN_MID : FLOW_BORDER,+ }}+ />+ ))}+ </div>+ </div>+ </div>+ </AbsoluteFill>+ );+}diff --git a/registry/remocn/a1-product-demo/acts/task-mgmt.tsx b/registry/remocn/a1-product-demo/acts/task-mgmt.tsxnew file mode 100644index 00000000..f9ac6231--- /dev/null+++ b/registry/remocn/a1-product-demo/acts/task-mgmt.tsx@@ -0,0 +1,401 @@+"use client";++import {+ AbsoluteFill,+ interpolate,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";+import {+ FLOW_BG,+ FLOW_BORDER,+ FLOW_INK,+ FLOW_MUTED,+ FLOW_YELLOW,+ FONT,+} from "../foundation";++type ChecklistRow = { label: string; highlighted?: boolean };++const CHECKLIST: ChecklistRow[] = [+ { label: "AI Workflow Setup" },+ { label: "Product Metrics Audit", highlighted: true },+ { label: "Content Calendar Prep" },+];++type DetailRow = { label: string; value: string };++const CARD_A_ROWS: DetailRow[] = [+ { label: "Deadline", value: "Jun 12, 2026" },+ { label: "Priority", value: "High" },+ { label: "Status", value: "In Progress" },+ { label: "Assignee", value: "Daniel Kim" },+];++const CARD_B_ROWS: DetailRow[] = [+ { label: "Deadline", value: "Jun 26, 2026" },+ { label: "Priority", value: "High" },+ { label: "Status", value: "In Progress" },+ { label: "Assignee", value: "John Kim" },+];++const CARD_SHADOW = "0 18px 44px rgba(30, 28, 22, 0.10)";++function FlagIcon({ color }: { color: string }) {+ return (+ <svg width={22} height={22} viewBox="0 0 24 24" fill="none" aria-hidden>+ <path+ d="M6 3v18"+ stroke={color}+ strokeWidth={2}+ strokeLinecap="round"+ />+ <path+ d="M6 4h11l-2.2 3.3L17 11H6V4Z"+ fill={color}+ />+ </svg>+ );+}++function CheckIcon({ color }: { color: string }) {+ return (+ <svg width={22} height={22} viewBox="0 0 24 24" fill="none" aria-hidden>+ <rect+ x={3}+ y={3}+ width={18}+ height={18}+ rx={5}+ stroke={color}+ strokeWidth={2}+ />+ <path+ d="m7.5 12.2 3 3L17 9"+ stroke={color}+ strokeWidth={2}+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ );+}++function DocIcon({ color }: { color: string }) {+ return (+ <svg width={22} height={22} viewBox="0 0 24 24" fill="none" aria-hidden>+ <path+ d="M7 3h7l4 4v14H7V3Z"+ stroke={color}+ strokeWidth={2}+ strokeLinejoin="round"+ />+ <path+ d="M14 3v4h4M10 13h6M10 17h6"+ stroke={color}+ strokeWidth={2}+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ );+}++function Dots({ color }: { color: string }) {+ return (+ <svg width={22} height={22} viewBox="0 0 24 24" aria-hidden>+ <circle cx={6} cy={12} r={1.7} fill={color} />+ <circle cx={12} cy={12} r={1.7} fill={color} />+ <circle cx={18} cy={12} r={1.7} fill={color} />+ </svg>+ );+}++function ChecklistPill({+ row,+ index,+ f,+ fps,+}: {+ row: ChecklistRow;+ index: number;+ f: number;+ fps: number;+}) {+ const reveal = spring({+ frame: f - index * 6,+ fps,+ config: { damping: 18, stiffness: 130 },+ });+ const tx = interpolate(reveal, [0, 1], [-28, 0]);+ const opacity = interpolate(reveal, [0, 1], [0, 1]);++ return (+ <div+ style={{+ display: "flex",+ alignItems: "center",+ gap: 16,+ height: 86,+ padding: "0 26px",+ borderRadius: 14,+ background: row.highlighted ? FLOW_YELLOW : "#FFFFFF",+ border: `1px solid ${row.highlighted ? FLOW_YELLOW : FLOW_BORDER}`,+ boxShadow: row.highlighted+ ? "0 14px 34px rgba(242, 210, 0, 0.30)"+ : "0 8px 22px rgba(30, 28, 22, 0.06)",+ transform: `translateX(${tx}px)`,+ opacity,+ willChange: "transform, opacity",+ }}+ >+ <FlagIcon color={row.highlighted ? FLOW_INK : FLOW_MUTED} />+ <span+ style={{+ fontFamily: FONT,+ fontSize: 30,+ fontWeight: row.highlighted ? 600 : 500,+ color: row.highlighted ? FLOW_INK : "#6F6B5C",+ letterSpacing: "-0.01em",+ }}+ >+ {row.label}+ </span>+ </div>+ );+}++function DetailCard({+ title,+ rows,+ icon,+ reveal,+ width,+}: {+ title: string;+ rows: DetailRow[];+ icon: "check" | "doc";+ reveal: number;+ width: number;+}) {+ const ty = interpolate(reveal, [0, 1], [26, 0]);+ const scale = interpolate(reveal, [0, 1], [0.96, 1]);+ const opacity = interpolate(reveal, [0, 1], [0, 1]);++ return (+ <div+ style={{+ width,+ background: "#FFFFFF",+ border: `1px solid ${FLOW_BORDER}`,+ borderRadius: 14,+ boxShadow: CARD_SHADOW,+ padding: "22px 26px 18px",+ transform: `translateY(${ty}px) scale(${scale})`,+ opacity,+ transformOrigin: "left top",+ willChange: "transform, opacity",+ }}+ >+ <div+ style={{+ display: "flex",+ alignItems: "center",+ gap: 14,+ paddingBottom: 16,+ borderBottom: `1px solid ${FLOW_BORDER}`,+ }}+ >+ {icon === "check" ? (+ <CheckIcon color={FLOW_INK} />+ ) : (+ <DocIcon color={FLOW_INK} />+ )}+ <span+ style={{+ flex: 1,+ fontFamily: FONT,+ fontSize: 26,+ fontWeight: 600,+ color: FLOW_INK,+ letterSpacing: "-0.01em",+ }}+ >+ {title}+ </span>+ <Dots color={FLOW_MUTED} />+ </div>+ <div style={{ paddingTop: 14 }}>+ {rows.map((r) => (+ <div+ key={r.label}+ style={{+ display: "flex",+ alignItems: "center",+ justifyContent: "space-between",+ padding: "9px 0",+ }}+ >+ <span+ style={{+ fontFamily: FONT,+ fontSize: 22,+ fontWeight: 500,+ color: FLOW_MUTED,+ }}+ >+ {r.label}+ </span>+ <span+ style={{+ fontFamily: FONT,+ fontSize: 22,+ fontWeight: 600,+ color: FLOW_INK,+ }}+ >+ {r.value}+ </span>+ </div>+ ))}+ </div>+ </div>+ );+}++function Cursor({ x, y, opacity }: { x: number; y: number; opacity: number }) {+ return (+ <svg+ width={34}+ height={34}+ viewBox="0 0 24 24"+ style={{+ position: "absolute",+ left: x,+ top: y,+ opacity,+ filter: "drop-shadow(0 3px 5px rgba(30,28,22,0.25))",+ willChange: "left, top",+ }}+ aria-hidden+ >+ <path+ d="M5 3l14 7-6.2 1.9L9.4 18 5 3Z"+ fill={FLOW_INK}+ stroke="#FFFFFF"+ strokeWidth={1.4}+ strokeLinejoin="round"+ />+ </svg>+ );+}++export function TaskMgmt({ speed = 1 }: { speed?: number }) {+ const f = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const cardAReveal = spring({+ frame: f - 42,+ fps,+ config: { damping: 18, stiffness: 120 },+ });+ const cardBReveal = spring({+ frame: f - 80,+ fps,+ config: { damping: 18, stiffness: 120 },+ });++ const conn1 = interpolate(f, [28, 54], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const conn2 = interpolate(f, [70, 96], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ const cursorX = interpolate(f, [26, 60, 96, 132], [664, 1010, 1396, 1396], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const cursorY = interpolate(f, [26, 60, 96, 132], [552, 452, 612, 612], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ const cursorOpacity = interpolate(f, [20, 30, 138, 150], [0, 1, 1, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ return (+ <AbsoluteFill style={{ background: FLOW_BG }}>+ <svg+ width="100%"+ height="100%"+ viewBox="0 0 1920 1080"+ style={{ position: "absolute", inset: 0 }}+ aria-hidden+ >+ <path+ d="M630 540 C 722 540, 736 444, 820 444"+ fill="none"+ stroke={FLOW_YELLOW}+ strokeWidth={3}+ strokeLinecap="round"+ pathLength={1}+ strokeDasharray={1}+ strokeDashoffset={1 - conn1}+ />+ <path+ d="M1200 504 C 1252 504, 1248 596, 1300 596"+ fill="none"+ stroke={FLOW_YELLOW}+ strokeWidth={3}+ strokeLinecap="round"+ pathLength={1}+ strokeDasharray={1}+ strokeDashoffset={1 - conn2}+ />+ </svg>++ <div+ style={{+ position: "absolute",+ left: 150,+ top: 387,+ width: 480,+ display: "flex",+ flexDirection: "column",+ gap: 24,+ }}+ >+ {CHECKLIST.map((row, i) => (+ <ChecklistPill key={row.label} row={row} index={i} f={f} fps={fps} />+ ))}+ </div>++ <div style={{ position: "absolute", left: 820, top: 344 }}>+ <DetailCard+ title="Landing Page Revisions"+ rows={CARD_A_ROWS}+ icon="check"+ reveal={cardAReveal}+ width={380}+ />+ </div>++ <div style={{ position: "absolute", left: 1300, top: 484 }}>+ <DetailCard+ title="Mobile UX Updates"+ rows={CARD_B_ROWS}+ icon="doc"+ reveal={cardBReveal}+ width={380}+ />+ </div>++ <Cursor x={cursorX} y={cursorY} opacity={cursorOpacity} />+ </AbsoluteFill>+ );+}diff --git a/registry/remocn/a1-product-demo/acts/workflow-auto.tsx b/registry/remocn/a1-product-demo/acts/workflow-auto.tsxnew file mode 100644index 00000000..ff61975e--- /dev/null+++ b/registry/remocn/a1-product-demo/acts/workflow-auto.tsx@@ -0,0 +1,214 @@+"use client";++import {+ AbsoluteFill,+ interpolate,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";+import {+ FLOW_BG,+ FLOW_BORDER,+ FLOW_INK,+ FLOW_MUTED,+ FLOW_YELLOW,+ FONT,+} from "../foundation";++const clamp = {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+} as const;++type NodeSpec = {+ key: string;+ label: string;+ count?: string;+ x: number;+ y: number;+ delay: number;+ yellow?: boolean;+};++const AI_X = 960;+const AI_Y = 560;+const TOP_Y = 384;+const BOTTOM_Y = 744;++const NODES: NodeSpec[] = [+ { key: "todo", label: "To do", count: "8", x: 660, y: TOP_Y, delay: 0 },+ {+ key: "progress",+ label: "In Progress",+ count: "5",+ x: 960,+ y: TOP_Y,+ delay: 5,+ },+ { key: "done", label: "Done", count: "14", x: 1260, y: TOP_Y, delay: 10 },+ { key: "ai", label: "AI Layer", x: AI_X, y: AI_Y, delay: 16, yellow: true },+ { key: "deadlines", label: "Deadlines", x: 792, y: BOTTOM_Y, delay: 22 },+ { key: "deps", label: "Dependencies", x: 1128, y: BOTTOM_Y, delay: 27 },+];++type Connector = { key: string; x1: number; y1: number; x2: number; y2: number; delay: number };++const CONNECTORS: Connector[] = [+ { key: "c-todo", x1: 660, y1: TOP_Y, x2: AI_X, y2: AI_Y, delay: 34 },+ { key: "c-progress", x1: 960, y1: TOP_Y, x2: AI_X, y2: AI_Y, delay: 37 },+ { key: "c-done", x1: 1260, y1: TOP_Y, x2: AI_X, y2: AI_Y, delay: 40 },+ { key: "c-dead", x1: AI_X, y1: AI_Y, x2: 792, y2: BOTTOM_Y, delay: 44 },+ { key: "c-deps", x1: AI_X, y1: AI_Y, x2: 1128, y2: BOTTOM_Y, delay: 47 },+];++function Sparkle({ size = 18, color = FLOW_YELLOW }: { size?: number; color?: string }) {+ return (+ <svg width={size} height={size} viewBox="0 0 24 24" aria-hidden>+ <path+ d="M12 2 C12.8 8.4 15.6 11.2 22 12 C15.6 12.8 12.8 15.6 12 22 C11.2 15.6 8.4 12.8 2 12 C8.4 11.2 11.2 8.4 12 2 Z"+ fill={color}+ />+ </svg>+ );+}++function GraphNode({ spec }: { spec: NodeSpec }) {+ return (+ <div+ style={{+ background: spec.yellow ? FLOW_YELLOW : "#FFFFFF",+ border: `1px solid ${spec.yellow ? FLOW_YELLOW : FLOW_BORDER}`,+ borderRadius: 12,+ padding: spec.yellow ? "14px 28px" : "12px 22px",+ boxShadow: spec.yellow+ ? "0 12px 30px rgba(242,210,0,0.28)"+ : "0 8px 22px rgba(30,28,22,0.06)",+ display: "flex",+ alignItems: "center",+ gap: 10,+ whiteSpace: "nowrap",+ fontFamily: FONT,+ }}+ >+ {spec.yellow ? <Sparkle size={20} color={FLOW_INK} /> : null}+ <span+ style={{+ color: FLOW_INK,+ fontSize: spec.yellow ? 26 : 24,+ fontWeight: spec.yellow ? 700 : 600,+ }}+ >+ {spec.label}+ </span>+ {spec.count ? (+ <span style={{ color: FLOW_MUTED, fontSize: 20, fontWeight: 500 }}>+ ×{spec.count}+ </span>+ ) : null}+ </div>+ );+}++export function WorkflowAuto({ speed = 1 }: { speed?: number }) {+ const f = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const headerReveal = interpolate(f, [0, 12], [0, 1], clamp);+ const headerShift = interpolate(headerReveal, [0, 1], [16, 0]);++ return (+ <AbsoluteFill style={{ backgroundColor: FLOW_BG, fontFamily: FONT }}>+ <div+ style={{+ position: "absolute",+ top: 150,+ left: 0,+ right: 0,+ display: "flex",+ flexDirection: "column",+ alignItems: "center",+ gap: 18,+ opacity: headerReveal,+ transform: `translateY(${headerShift}px)`,+ }}+ >+ <div style={{ display: "flex", alignItems: "center", gap: 10 }}>+ <Sparkle size={18} />+ <span+ style={{+ color: FLOW_MUTED,+ fontSize: 22,+ fontWeight: 500,+ letterSpacing: "0.01em",+ }}+ >+ Workflow AI+ </span>+ </div>+ <h2+ style={{+ margin: 0,+ color: FLOW_INK,+ fontSize: 44,+ fontWeight: 600,+ letterSpacing: "-0.01em",+ }}+ >+ Work flows automatically, stage by stage+ </h2>+ </div>++ <svg+ width={1920}+ height={1080}+ viewBox="0 0 1920 1080"+ style={{ position: "absolute", inset: 0 }}+ aria-hidden+ >+ {CONNECTORS.map((c) => {+ const p = interpolate(f, [c.delay, c.delay + 14], [0, 1], clamp);+ return (+ <line+ key={c.key}+ x1={c.x1}+ y1={c.y1}+ x2={c.x2}+ y2={c.y2}+ stroke="rgba(30,28,22,0.16)"+ strokeWidth={2}+ strokeLinecap="round"+ pathLength={1}+ strokeDasharray={1}+ strokeDashoffset={1 - p}+ />+ );+ })}+ </svg>++ {NODES.map((spec) => {+ const pop = spring({+ frame: f - spec.delay,+ fps,+ config: { damping: 14, stiffness: 150 },+ });+ const scale = interpolate(pop, [0, 1], [0.6, 1]);+ return (+ <div+ key={spec.key}+ style={{+ position: "absolute",+ left: spec.x,+ top: spec.y,+ transform: `translate(-50%, -50%) scale(${scale})`,+ transformOrigin: "center",+ opacity: pop,+ }}+ >+ <GraphNode spec={spec} />+ </div>+ );+ })}+ </AbsoluteFill>+ );+}diff --git a/registry/remocn/a1-product-demo/config.ts b/registry/remocn/a1-product-demo/config.tsnew file mode 100644index 00000000..5d87b1e6--- /dev/null+++ b/registry/remocn/a1-product-demo/config.ts@@ -0,0 +1,12 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";+import { FLOWITH_DURATION } from "./flowith-demo";++export const a1ProductDemoConfig: ComponentConfig = {+ componentName: "A1ProductDemo",+ importPath: "@/components/remocn/a1-product-demo",+ controls: {},+ durationInFrames: FLOWITH_DURATION,+ fps: FPS,+ compositionWidth: 1920,+ compositionHeight: 1080,+};diff --git a/registry/remocn/a1-product-demo/duration.ts b/registry/remocn/a1-product-demo/duration.tsnew file mode 100644index 00000000..78a0f8b4--- /dev/null+++ b/registry/remocn/a1-product-demo/duration.ts@@ -0,0 +1,36 @@+import type {+ ProductDemoConfig,+ ProductDemoScene,+ SceneTiming,+} from "./foundation";++export function planTransitionTiming(+ from: ProductDemoScene,+ to: ProductDemoScene,+): SceneTiming {+ if (from.type === "product-hero" && to.type === "feature-frame") {+ return { kind: "spring", durationInFrames: 22 };+ }+ if (from.type === "feature-frame" && to.type === "feature-frame") {+ return { kind: "linear", durationInFrames: 18 };+ }+ if (from.type === "feature-frame" && to.type === "cta-scene") {+ return { kind: "spring", durationInFrames: 20 };+ }+ return { kind: "spring", durationInFrames: 18 };+}++export function getProductDemoDuration(config: ProductDemoConfig): number {+ const total = config.scenes.reduce(+ (sum, scene) => sum + scene.durationInFrames,+ 0,+ );+ let overlap = 0;+ for (let i = 0; i < config.scenes.length - 1; i++) {+ overlap += planTransitionTiming(+ config.scenes[i],+ config.scenes[i + 1],+ ).durationInFrames;+ }+ return total - overlap;+}diff --git a/registry/remocn/a1-product-demo/example.ts b/registry/remocn/a1-product-demo/example.tsnew file mode 100644index 00000000..4c7ce418--- /dev/null+++ b/registry/remocn/a1-product-demo/example.ts@@ -0,0 +1,3 @@+import { DEFAULT_PRODUCT_DEMO_CONFIG, type ProductDemoConfig } from "./index";++export const a1ProductDemoExample: ProductDemoConfig = DEFAULT_PRODUCT_DEMO_CONFIG;diff --git a/registry/remocn/a1-product-demo/feature-frame.tsx b/registry/remocn/a1-product-demo/feature-frame.tsxnew file mode 100644index 00000000..6a111fdd--- /dev/null+++ b/registry/remocn/a1-product-demo/feature-frame.tsx@@ -0,0 +1,226 @@+"use client";++import type { ReactNode } from "react";+import {+ AbsoluteFill,+ Easing,+ interpolate,+ useCurrentFrame,+} from "remotion";+import type { TemplateTheme } from "./foundation";+import { UiSnapshotCard } from "./ui-snapshot-card";++export interface FeatureFrameProps {+ title: string;+ bullet: string;+ side: "left" | "right";+ frame: ReactNode;+ accent: string;+ theme: TemplateTheme;+ header?: string;+ speed?: number;+}++const EASE = Easing.bezier(0.22, 1, 0.36, 1);++export function FeatureFrame({+ title,+ bullet,+ side,+ frame,+ accent,+ theme,+ header,+ speed = 1,+}: FeatureFrameProps) {+ const f = useCurrentFrame() * speed;++ const cardOpacity = interpolate(f, [0, 22], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: EASE,+ });+ const cardScale = interpolate(f, [0, 22], [0.965, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: EASE,+ });+ const cardShift = interpolate(f, [0, 22], [side === "left" ? -28 : 28, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: EASE,+ });++ const card = (+ <div+ style={{+ flex: "0 0 46%",+ display: "flex",+ opacity: cardOpacity,+ transform: `translateX(${cardShift}px) scale(${cardScale})`,+ }}+ >+ <UiSnapshotCard+ header={header}+ borderColor={`${theme.foreground}1f`}+ style={{ flex: 1, minHeight: 520 }}+ >+ {frame}+ </UiSnapshotCard>+ </div>+ );++ const text = (+ <div+ style={{+ flex: "0 0 44%",+ display: "flex",+ flexDirection: "column",+ justifyContent: "center",+ gap: 26,+ }}+ >+ <TitleBlock title={title} accent={accent} color={theme.foreground} f={f} />+ <BulletLine bullet={bullet} color={theme.muted} f={f} />+ </div>+ );++ return (+ <AbsoluteFill+ style={{+ flexDirection: "row",+ alignItems: "center",+ justifyContent: "space-between",+ gap: 88,+ padding: "0 132px",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ {side === "left" ? (+ <>+ {card}+ {text}+ </>+ ) : (+ <>+ {text}+ {card}+ </>+ )}+ </AbsoluteFill>+ );+}++function TitleBlock({+ title,+ accent,+ color,+ f,+}: {+ title: string;+ accent: string;+ color: string;+ f: number;+}) {+ const words = title.split(" ");+ const stagger = 4;+ const underline = interpolate(f, [22, 44], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: EASE,+ });++ return (+ <div style={{ position: "relative", display: "inline-block" }}>+ <h2+ style={{+ margin: 0,+ fontSize: 64,+ fontWeight: 600,+ lineHeight: 1.05,+ letterSpacing: "-0.03em",+ color,+ }}+ >+ {words.map((word, i) => {+ const local = f - i * stagger;+ const opacity = interpolate(local, [0, 14], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: EASE,+ });+ const y = interpolate(local, [0, 14], [22, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: EASE,+ });+ return (+ <span+ key={`${word}-${i}`}+ style={{+ display: "inline-block",+ marginRight: "0.26em",+ opacity,+ transform: `translateY(${y}px)`,+ }}+ >+ {word}+ </span>+ );+ })}+ </h2>+ <span+ style={{+ position: "absolute",+ left: 0,+ bottom: -10,+ height: 5,+ width: "44%",+ borderRadius: 3,+ background: accent,+ transformOrigin: "left center",+ transform: `scaleX(${underline})`,+ }}+ />+ </div>+ );+}++function BulletLine({+ bullet,+ color,+ f,+}: {+ bullet: string;+ color: string;+ f: number;+}) {+ const opacity = interpolate(f, [16, 34], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: EASE,+ });+ const y = interpolate(f, [16, 34], [18, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: EASE,+ });++ return (+ <p+ style={{+ margin: 0,+ fontSize: 30,+ fontWeight: 400,+ lineHeight: 1.4,+ letterSpacing: "-0.01em",+ color,+ opacity,+ transform: `translateY(${y}px)`,+ }}+ >+ {bullet}+ </p>+ );+}diff --git a/registry/remocn/a1-product-demo/flowith-demo.tsx b/registry/remocn/a1-product-demo/flowith-demo.tsxnew file mode 100644index 00000000..30d117fe--- /dev/null+++ b/registry/remocn/a1-product-demo/flowith-demo.tsx@@ -0,0 +1,63 @@+"use client";++import { AbsoluteFill, Series } from "remotion";+import { AIPlanning } from "./acts/ai-planning";+import { FeaturesSwap } from "./acts/features-swap";+import { FocusAnalytics } from "./acts/focus-analytics";+import { IconCloud } from "./acts/icon-cloud";+import { Integrations } from "./acts/integrations";+import { LogoOutro } from "./acts/logo-outro";+import { MetricsCards } from "./acts/metrics-cards";+import { ProblemHook } from "./acts/problem-hook";+import { Positioning } from "./acts/positioning";+import { SocialProof } from "./acts/social-proof";+import { TaskMgmt } from "./acts/task-mgmt";+import { WorkflowAuto } from "./acts/workflow-auto";+import { FLOW_BG } from "./foundation";++export const FLOWITH_DURATION = 1356;++export function FlowithDemo({ speed = 1 }: { speed?: number }) {+ return (+ <AbsoluteFill style={{ background: FLOW_BG }}>+ <Series>+ <Series.Sequence durationInFrames={165}>+ <ProblemHook speed={speed} />+ </Series.Sequence>+ <Series.Sequence durationInFrames={120}>+ <Positioning speed={speed} />+ </Series.Sequence>+ <Series.Sequence durationInFrames={150}>+ <IconCloud speed={speed} />+ </Series.Sequence>+ <Series.Sequence durationInFrames={120}>+ <AIPlanning speed={speed} />+ </Series.Sequence>+ <Series.Sequence durationInFrames={90}>+ <WorkflowAuto speed={speed} />+ </Series.Sequence>+ <Series.Sequence durationInFrames={75}>+ <FeaturesSwap speed={speed} />+ </Series.Sequence>+ <Series.Sequence durationInFrames={150}>+ <TaskMgmt speed={speed} />+ </Series.Sequence>+ <Series.Sequence durationInFrames={105}>+ <FocusAnalytics speed={speed} />+ </Series.Sequence>+ <Series.Sequence durationInFrames={75}>+ <Integrations speed={speed} />+ </Series.Sequence>+ <Series.Sequence durationInFrames={90}>+ <MetricsCards speed={speed} />+ </Series.Sequence>+ <Series.Sequence durationInFrames={120}>+ <SocialProof speed={speed} />+ </Series.Sequence>+ <Series.Sequence durationInFrames={96}>+ <LogoOutro speed={speed} />+ </Series.Sequence>+ </Series>+ </AbsoluteFill>+ );+}diff --git a/registry/remocn/a1-product-demo/foundation.tsx b/registry/remocn/a1-product-demo/foundation.tsxnew file mode 100644index 00000000..b11f79a8--- /dev/null+++ b/registry/remocn/a1-product-demo/foundation.tsx@@ -0,0 +1,310 @@+"use client";++import {+ linearTiming,+ springTiming,+ type TransitionPresentation,+ type TransitionPresentationComponentProps,+} from "@remotion/transitions";+import type { FC, ReactNode } from "react";+import {+ AbsoluteFill,+ Easing,+ interpolate,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";+import { MaskRevealUp } from "@/components/remocn/mask-reveal-up";++export interface TemplateMeta {+ fps: number;+ width: number;+ height: number;+}++export interface TemplateTheme {+ accent: string;+ background: string;+ foreground: string;+ muted: string;+ fontFamily?: string;+}++export type SceneTiming = {+ kind: "spring" | "linear";+ durationInFrames: number;+};++export interface ProductHeroContent {+ name: string;+ pitch: string;+ entrance?: "kinetic-center-build" | "per-character-rise";+}++export interface FeatureFrameContent {+ title: string;+ bullet: string;+ side: "left" | "right";+}++export interface CtaContent {+ line: string;+ domain: string;+}++export type ProductDemoScene =+ | {+ type: "product-hero";+ durationInFrames: number;+ content: ProductHeroContent;+ }+ | {+ type: "feature-frame";+ durationInFrames: number;+ content: FeatureFrameContent;+ }+ | { type: "cta-scene"; durationInFrames: number; content: CtaContent };++export interface ProductDemoConfig {+ meta: TemplateMeta;+ theme: TemplateTheme;+ scenes: ProductDemoScene[];+}++export const CAMERA_TRAVEL_EASE = Easing.out(Easing.cubic);+export const CAMERA_SPRING = { damping: 18, stiffness: 140 } as const;++export const FONT =+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";+export const ACCENT = "#FF5C39";+export const TEXT = "#161616";+export const MUTED = "#8A8A8A";+export const BORDER = "#ECECEC";+export const BG_LIGHT = "#FBFBFA";+export const BG_BLACK = "#0A0A0A";+export const BG_SLACK = "#DCE7FB";+export const GREEN = "#15A34A";+export const ICON_BG = "#0E0E0E";+export const AURORA_BLUE = "#B9CCFF";+export const AURORA_PEACH = "#FFC3B0";++export const FONT_SERIF = "Georgia, 'Times New Roman', Times, serif";+export const FLOW_BG = "#FAF8EC";+export const FLOW_INK = "#1E1C16";+export const FLOW_MUTED = "#B6B2A2";+export const FLOW_BORDER = "#E8E5D6";+export const FLOW_YELLOW = "#F2D200";+export const FLOW_GREEN_TOP = "#4F6B2A";+export const FLOW_GREEN_MID = "#8DA03E";+export const FLOW_GREEN_LOW = "#C5C86A";++export interface CameraProps {+ x?: number;+ y?: number;+ scale?: number;+ blur?: number;+ children: ReactNode;+}++export function Camera({+ x = 0,+ y = 0,+ scale = 1,+ blur = 0,+ children,+}: CameraProps) {+ return (+ <AbsoluteFill+ style={{+ transform: `translate(${x}px, ${y}px) scale(${scale})`,+ transformOrigin: "center",+ filter: blur > 0.01 ? `blur(${blur}px)` : undefined,+ willChange: "transform, filter",+ }}+ >+ {children}+ </AbsoluteFill>+ );+}++export function resolveTiming(timing: SceneTiming) {+ return timing.kind === "spring"+ ? springTiming({+ durationInFrames: timing.durationInFrames,+ config: { damping: 200 },+ })+ : linearTiming({ durationInFrames: timing.durationInFrames });+}++type CameraCraneUpProps = Record<string, never>;++const CameraCraneUpPresentation: FC<+ TransitionPresentationComponentProps<CameraCraneUpProps>+> = ({ children, presentationProgress, presentationDirection }) => {+ const p = presentationProgress;+ const blur = interpolate(p, [0, 0.5, 1], [0, 7, 0]);+ const translateY =+ presentationDirection === "exiting" ? -p * 100 : (1 - p) * 100;++ return (+ <AbsoluteFill+ style={{+ transform: `translateY(${translateY}%)`,+ filter: `blur(${blur}px)`,+ willChange: "transform, filter",+ }}+ >+ {children}+ </AbsoluteFill>+ );+};++export function cameraCraneUp(): TransitionPresentation<CameraCraneUpProps> {+ return { component: CameraCraneUpPresentation, props: {} };+}++type SpatialPushProps = { direction: "up" | "down" | "left" | "right" };++const SpatialPushPresentation: FC<+ TransitionPresentationComponentProps<SpatialPushProps>+> = ({ children, presentationProgress, presentationDirection, passedProps }) => {+ const p = presentationProgress;+ const { direction } = passedProps;+ const blur = interpolate(p, [0, 0.5, 1], [0, 5, 0]);++ if (presentationDirection === "exiting") {+ const scale = interpolate(p, [0, 1], [1, 0.92]);+ const brightness = interpolate(p, [0, 1], [1, 0.55]);+ return (+ <AbsoluteFill+ style={{+ transform: `scale(${scale})`,+ filter: `brightness(${brightness}) blur(${blur}px)`,+ willChange: "transform, filter",+ }}+ >+ {children}+ </AbsoluteFill>+ );+ }++ const axis = direction === "up" || direction === "down" ? "Y" : "X";+ const sign = direction === "up" || direction === "left" ? 1 : -1;+ const offset = sign * (1 - p) * 100;++ return (+ <AbsoluteFill+ style={{+ transform: `translate${axis}(${offset}%)`,+ filter: `blur(${blur}px)`,+ willChange: "transform, filter",+ }}+ >+ {children}+ </AbsoluteFill>+ );+};++export function spatialPush(+ props: SpatialPushProps,+): TransitionPresentation<SpatialPushProps> {+ return { component: SpatialPushPresentation, props };+}++export interface CtaSceneProps {+ line: string;+ domain: string;+ theme: TemplateTheme;+ speed?: number;+}++export function CtaScene({ line, domain, theme, speed = 1 }: CtaSceneProps) {+ return (+ <AbsoluteFill style={{ alignItems: "center", justifyContent: "center" }}>+ <div+ style={{+ position: "relative",+ width: "100%",+ maxWidth: 1400,+ height: 300,+ }}+ >+ <div+ style={{ position: "absolute", left: 0, right: 0, top: 24, height: 150 }}+ >+ <MaskRevealUp+ text={line}+ color={theme.foreground}+ fontSize={88}+ fontWeight={600}+ speed={speed}+ />+ </div>+ <div+ style={{+ position: "absolute",+ left: 0,+ right: 0,+ bottom: 24,+ height: 70,+ }}+ >+ <CtaDomain domain={domain} accent={theme.accent} speed={speed} />+ </div>+ </div>+ </AbsoluteFill>+ );+}++function CtaDomain({+ domain,+ accent,+ speed,+}: {+ domain: string;+ accent: string;+ speed: number;+}) {+ const frame = useCurrentFrame() * speed;+ const { fps } = useVideoConfig();++ const settle = spring({+ frame: frame - 28,+ fps,+ config: { damping: 18, stiffness: 90 },+ });+ const letterSpacing = `${interpolate(settle, [0, 1], [0.4, -0.01])}em`;+ const blur = interpolate(settle, [0, 1], [10, 0]);+ const opacity = interpolate(frame, [28, 42], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ <span+ style={{+ fontSize: 38,+ fontWeight: 500,+ color: accent,+ letterSpacing,+ opacity,+ filter: `blur(${blur}px)`,+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ {domain}+ </span>+ </div>+ );+}diff --git a/registry/remocn/a1-product-demo/index.tsx b/registry/remocn/a1-product-demo/index.tsxnew file mode 100644index 00000000..7bbdb160--- /dev/null+++ b/registry/remocn/a1-product-demo/index.tsx@@ -0,0 +1,340 @@+"use client";++import { TransitionSeries } from "@remotion/transitions";+import type { ReactNode } from "react";+import { AbsoluteFill, interpolate, useCurrentFrame } from "remotion";+import { DynamicGrid } from "@/components/remocn/dynamic-grid";+import { FlowithDemo } from "./flowith-demo";+import { planTransitionTiming } from "./duration";+import { FeatureFrame } from "./feature-frame";+import {+ CtaScene,+ cameraCraneUp,+ type ProductDemoConfig,+ type ProductDemoScene,+ type TemplateTheme,+ resolveTiming,+ spatialPush,+} from "./foundation";+import { ProductHero } from "./product-hero";++export { getProductDemoDuration } from "./duration";+export type {+ ProductDemoConfig,+ ProductDemoScene,+ TemplateTheme,+} from "./foundation";++export type BackgroundMode = "dynamic-grid" | "solid";++export interface A1ProductDemoProps {+ accentColor?: string;+ background?: BackgroundMode;+ theme?: "light" | "dark";+ speed?: number;+ config?: ProductDemoConfig;+}++const THEME_TOKENS = {+ dark: {+ background: "#0B0B0F",+ foreground: "#FAFAFA",+ muted: "rgba(250,250,250,0.55)",+ },+ light: {+ background: "#FFFFFF",+ foreground: "#0B0B0F",+ muted: "rgba(11,11,15,0.55)",+ },+} as const;++export const DEFAULT_PRODUCT_DEMO_CONFIG: ProductDemoConfig = {+ meta: { fps: 30, width: 1920, height: 1080 },+ theme: {+ accent: "#6366F1",+ background: "#0B0B0F",+ foreground: "#FAFAFA",+ muted: "rgba(250,250,250,0.55)",+ fontFamily: "Geist",+ },+ scenes: [+ {+ type: "product-hero",+ durationInFrames: 150,+ content: {+ name: "Switchboard",+ pitch: "One inbox for every channel",+ },+ },+ {+ type: "feature-frame",+ durationInFrames: 180,+ content: {+ title: "Unified inbox",+ bullet: "Email, chat and SMS in one stream",+ side: "left",+ },+ },+ {+ type: "feature-frame",+ durationInFrames: 180,+ content: {+ title: "Auto routing",+ bullet: "Every message reaches the right person",+ side: "right",+ },+ },+ {+ type: "cta-scene",+ durationInFrames: 120,+ content: { line: "Try it free", domain: "switchboard.app" },+ },+ ],+};++function planPresentation(from: ProductDemoScene, to: ProductDemoScene) {+ if (from.type === "feature-frame" && to.type === "feature-frame") {+ const direction = to.content.side === "right" ? "left" : "right";+ return spatialPush({ direction });+ }+ return cameraCraneUp();+}++function SceneBackground({+ scene,+ theme,+ background,+}: {+ scene: ProductDemoScene;+ theme: TemplateTheme;+ background: BackgroundMode;+}) {+ const grid =+ background === "dynamic-grid" &&+ (scene.type === "product-hero" || scene.type === "cta-scene");++ if (grid) {+ return (+ <AbsoluteFill>+ <DynamicGrid+ cellSize={56}+ background={theme.background}+ lineColor={`${theme.foreground}12`}+ direction="diagonal"+ />+ </AbsoluteFill>+ );+ }++ return <AbsoluteFill style={{ background: theme.background }} />;+}++const SNAPSHOT_START = 20;+const SNAPSHOT_STAGGER = 4;++function SnapshotLine({+ width,+ strong,+ order,+ theme,+ f,+}: {+ width: string;+ strong?: boolean;+ order: number;+ theme: TemplateTheme;+ f: number;+}) {+ const start = SNAPSHOT_START + order * SNAPSHOT_STAGGER;+ const p = interpolate(f, [start, start + 12], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });+ return (+ <div+ style={{+ height: 16,+ width,+ borderRadius: 6,+ background: strong ? `${theme.foreground}30` : `${theme.foreground}16`,+ opacity: p,+ transform: `scaleX(${interpolate(p, [0, 1], [0.6, 1])})`,+ transformOrigin: "left center",+ }}+ />+ );+}++function DefaultSnapshot({+ theme,+ speed = 1,+}: {+ theme: TemplateTheme;+ speed?: number;+}) {+ const f = useCurrentFrame() * speed;+ const sidebar: Array<[string, boolean?]> = [+ ["70%", true],+ ["90%"],+ ["80%"],+ ["60%"],+ ["85%"],+ ];+ const main: Array<[string, boolean?]> = [+ ["40%", true],+ ["100%"],+ ["95%"],+ ["88%"],+ ["70%"],+ ];++ return (+ <div style={{ display: "flex", gap: 22, height: "100%" }}>+ <div+ style={{+ flex: "0 0 30%",+ display: "flex",+ flexDirection: "column",+ gap: 16,+ paddingRight: 22,+ borderRight: `1px solid ${theme.foreground}14`,+ }}+ >+ {sidebar.map(([width, strong], i) => (+ <SnapshotLine+ key={`s-${i}`}+ width={width}+ strong={strong}+ order={i}+ theme={theme}+ f={f}+ />+ ))}+ </div>+ <div+ style={{ flex: 1, display: "flex", flexDirection: "column", gap: 18 }}+ >+ {main.map(([width, strong], i) => (+ <SnapshotLine+ key={`m-${i}`}+ width={width}+ strong={strong}+ order={i + 2}+ theme={theme}+ f={f}+ />+ ))}+ </div>+ </div>+ );+}++export function ProductDemo({+ config,+ background = "dynamic-grid",+ speed = 1,+}: {+ config: ProductDemoConfig;+ background?: BackgroundMode;+ speed?: number;+}) {+ const { theme, scenes } = config;++ const nodes: ReactNode[] = [];+ scenes.forEach((scene, index) => {+ nodes.push(+ <TransitionSeries.Sequence+ key={`scene-${index}`}+ durationInFrames={scene.durationInFrames}+ >+ <SceneBackground scene={scene} theme={theme} background={background} />+ <SceneContent scene={scene} theme={theme} speed={speed} />+ </TransitionSeries.Sequence>,+ );++ const next = scenes[index + 1];+ if (next) {+ nodes.push(+ <TransitionSeries.Transition+ key={`transition-${index}`}+ presentation={planPresentation(scene, next)}+ timing={resolveTiming(planTransitionTiming(scene, next))}+ />,+ );+ }+ });++ return (+ <AbsoluteFill style={{ background: theme.background }}>+ <TransitionSeries>{nodes}</TransitionSeries>+ </AbsoluteFill>+ );+}++function SceneContent({+ scene,+ theme,+ speed,+}: {+ scene: ProductDemoScene;+ theme: TemplateTheme;+ speed: number;+}) {+ if (scene.type === "product-hero") {+ return <ProductHero content={scene.content} theme={theme} speed={speed} />;+ }+ if (scene.type === "feature-frame") {+ return (+ <FeatureFrame+ title={scene.content.title}+ bullet={scene.content.bullet}+ side={scene.content.side}+ accent={theme.accent}+ theme={theme}+ header=""+ frame={<DefaultSnapshot theme={theme} speed={speed} />}+ speed={speed}+ />+ );+ }+ return (+ <CtaScene+ line={scene.content.line}+ domain={scene.content.domain}+ theme={theme}+ speed={speed}+ />+ );+}++export function A1ProductDemo({+ accentColor,+ background = "dynamic-grid",+ theme = "dark",+ speed = 1,+ config,+}: A1ProductDemoProps) {+ if (!config) {+ return <FlowithDemo speed={speed} />;+ }++ const tokens = THEME_TOKENS[theme];+ const resolvedConfig: ProductDemoConfig = {+ ...config,+ theme: {+ accent: accentColor ?? config.theme.accent,+ background: tokens.background,+ foreground: tokens.foreground,+ muted: tokens.muted,+ fontFamily: config.theme.fontFamily,+ },+ };++ return (+ <ProductDemo+ config={resolvedConfig}+ background={background}+ speed={speed}+ />+ );+}diff --git a/registry/remocn/a1-product-demo/product-hero.tsx b/registry/remocn/a1-product-demo/product-hero.tsxnew file mode 100644index 00000000..06df5a4e--- /dev/null+++ b/registry/remocn/a1-product-demo/product-hero.tsx@@ -0,0 +1,80 @@+"use client";++import { AbsoluteFill, interpolate, Sequence, useCurrentFrame } from "remotion";+import { SoftBlurIn } from "@/components/remocn/soft-blur-in";+import { Camera, CAMERA_TRAVEL_EASE } from "./foundation";+import type { ProductHeroContent, TemplateTheme } from "./foundation";++export interface ProductHeroProps {+ content: ProductHeroContent;+ theme: TemplateTheme;+ speed?: number;+}++const PITCH_DELAY = 30;+const TRAVEL = 16;++export function ProductHero({ content, theme, speed = 1 }: ProductHeroProps) {+ const f = useCurrentFrame() * speed;+ const vertical = content.entrance === "per-character-rise";++ const travel = interpolate(f, [0, TRAVEL], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: CAMERA_TRAVEL_EASE,+ });+ const scale = interpolate(travel, [0, 1], [6.5, 1]);+ const pan = interpolate(travel, [0, 1], [120, 0]);+ const blur = interpolate(f, [0, 10, TRAVEL], [16, 6, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ });++ return (+ <AbsoluteFill>+ <Camera+ scale={scale}+ x={vertical ? 0 : -pan}+ y={vertical ? pan : 0}+ blur={blur}+ >+ <AbsoluteFill+ style={{ alignItems: "center", justifyContent: "center" }}+ >+ <span+ style={{+ fontSize: 128,+ fontWeight: 600,+ color: theme.foreground,+ letterSpacing: "-0.04em",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ {content.name}+ </span>+ </AbsoluteFill>+ </Camera>++ <Sequence from={PITCH_DELAY} layout="none">+ <AbsoluteFill+ style={{+ alignItems: "center",+ justifyContent: "center",+ paddingTop: 200,+ }}+ >+ <div style={{ position: "relative", width: "100%", height: 56 }}>+ <SoftBlurIn+ text={content.pitch}+ color={theme.muted}+ fontSize={34}+ fontWeight={500}+ speed={speed}+ />+ </div>+ </AbsoluteFill>+ </Sequence>+ </AbsoluteFill>+ );+}diff --git a/registry/remocn/a1-product-demo/ui-snapshot-card.tsx b/registry/remocn/a1-product-demo/ui-snapshot-card.tsxnew file mode 100644index 00000000..6991cbc4--- /dev/null+++ b/registry/remocn/a1-product-demo/ui-snapshot-card.tsx@@ -0,0 +1,71 @@+"use client";++import type { CSSProperties, ReactNode } from "react";++export interface UiSnapshotCardProps {+ header?: string;+ children: ReactNode;+ radius?: number;+ borderColor?: string;+ style?: CSSProperties;+}++export function UiSnapshotCard({+ header,+ children,+ radius = 18,+ borderColor = "rgba(255,255,255,0.12)",+ style,+}: UiSnapshotCardProps) {+ return (+ <div+ style={{+ display: "flex",+ flexDirection: "column",+ overflow: "hidden",+ borderRadius: radius,+ border: `1px solid ${borderColor}`,+ background: "transparent",+ ...style,+ }}+ >+ {header !== undefined ? (+ <div+ style={{+ display: "flex",+ alignItems: "center",+ gap: 8,+ padding: "14px 18px",+ borderBottom: `1px solid ${borderColor}`,+ }}+ >+ <span style={dotStyle} />+ <span style={dotStyle} />+ <span style={dotStyle} />+ {header.length > 0 ? (+ <span+ style={{+ marginLeft: 12,+ fontSize: 15,+ fontWeight: 500,+ color: "rgba(255,255,255,0.45)",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ {header}+ </span>+ ) : null}+ </div>+ ) : null}+ <div style={{ position: "relative", flex: 1, padding: 22 }}>{children}</div>+ </div>+ );+}++const dotStyle: CSSProperties = {+ width: 11,+ height: 11,+ borderRadius: "50%",+ background: "rgba(255,255,255,0.18)",+};diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex fa13fc6b..da0677ee 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -1095,6 +1095,123 @@}]},+ {+ "name": "a1-product-demo",+ "type": "registry:component",+ "title": "Product Demo",+ "description": "Full 45s product demo (Flowith): serif type acts, an orbiting app-icon cloud, AI planning and workflow UIs, animated task cards, a focus-time chart, integrations, green metric cards, and testimonials, stitched as one 1920x1080 clip.",+ "dependencies": [+ "remotion",+ "@remotion/transitions"+ ],+ "registryDependencies": [+ "@remocn/soft-blur-in",+ "@remocn/mask-reveal-up",+ "@remocn/dynamic-grid"+ ],+ "files": [+ {+ "path": "a1-product-demo/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/index.tsx"+ },+ {+ "path": "a1-product-demo/flowith-demo.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/flowith-demo.tsx"+ },+ {+ "path": "a1-product-demo/acts/problem-hook.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/acts/problem-hook.tsx"+ },+ {+ "path": "a1-product-demo/acts/positioning.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/acts/positioning.tsx"+ },+ {+ "path": "a1-product-demo/acts/icon-cloud.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/acts/icon-cloud.tsx"+ },+ {+ "path": "a1-product-demo/acts/ai-planning.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/acts/ai-planning.tsx"+ },+ {+ "path": "a1-product-demo/acts/workflow-auto.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/acts/workflow-auto.tsx"+ },+ {+ "path": "a1-product-demo/acts/features-swap.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/acts/features-swap.tsx"+ },+ {+ "path": "a1-product-demo/acts/task-mgmt.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/acts/task-mgmt.tsx"+ },+ {+ "path": "a1-product-demo/acts/focus-analytics.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/acts/focus-analytics.tsx"+ },+ {+ "path": "a1-product-demo/acts/integrations.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/acts/integrations.tsx"+ },+ {+ "path": "a1-product-demo/acts/metrics-cards.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/acts/metrics-cards.tsx"+ },+ {+ "path": "a1-product-demo/acts/social-proof.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/acts/social-proof.tsx"+ },+ {+ "path": "a1-product-demo/acts/logo-outro.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/acts/logo-outro.tsx"+ },+ {+ "path": "a1-product-demo/foundation.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/foundation.tsx"+ },+ {+ "path": "a1-product-demo/duration.ts",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/duration.ts"+ },+ {+ "path": "a1-product-demo/product-hero.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/product-hero.tsx"+ },+ {+ "path": "a1-product-demo/feature-frame.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/feature-frame.tsx"+ },+ {+ "path": "a1-product-demo/ui-snapshot-card.tsx",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/ui-snapshot-card.tsx"+ },+ {+ "path": "a1-product-demo/example.ts",+ "type": "registry:component",+ "target": "components/remocn/a1-product-demo/example.ts"+ }+ ]+ },{"name": "number-wheel","type": "registry:component",diff --git a/tsconfig.json b/tsconfig.jsonindex 719bf9e9..ca6fea9d 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -85,6 +85,33 @@"@/components/remocn/blur-out-up": ["./registry/remocn/blur-out-up/index.tsx",],+ "@/components/remocn/kinetic-center-build": [+ "./registry/remocn/kinetic-center-build/index.tsx",+ ],+ "@/components/remocn/per-character-rise": [+ "./registry/remocn/per-character-rise/index.tsx",+ ],+ "@/components/remocn/per-word-crossfade": [+ "./registry/remocn/per-word-crossfade/index.tsx",+ ],+ "@/components/remocn/staggered-fade-up": [+ "./registry/remocn/staggered-fade-up/index.tsx",+ ],+ "@/components/remocn/marker-highlight": [+ "./registry/remocn/marker-highlight/index.tsx",+ ],+ "@/components/remocn/micro-scale-fade": [+ "./registry/remocn/micro-scale-fade/index.tsx",+ ],+ "@/components/remocn/mask-reveal-up": [+ "./registry/remocn/mask-reveal-up/index.tsx",+ ],+ "@/components/remocn/tracking-in": [+ "./registry/remocn/tracking-in/index.tsx",+ ],+ "@/components/remocn/dynamic-grid": [+ "./registry/remocn/dynamic-grid/index.tsx",+ ],"@/components/remocn/*": ["./registry/remocn-ui/*/index.tsx"],"@/*": ["./*"],},