Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: remove ugly animations

dev_wandry147c12ddacbc
diff --git a/content/docs/components.mdx b/content/docs/components.mdx
index e720a1ec..a05649a4 100644
--- a/content/docs/components.mdx
+++ b/content/docs/components.mdx
@@ -75,12 +75,6 @@ Text effects, reveals, and kinetic type.
status: "stable",
href: "/docs/typography/typewriter",
},
- {
- name: "TextFadeReplace",
- description: "Cross-fades between two strings on the same line. Includes a Strikethrough variant.",
- status: "stable",
- href: "/docs/typography/text-fade-replace",
- },
{
name: "SlotMachineRoll",
description: "Numbers and characters roll into place like a casino reel",
@@ -142,12 +136,6 @@ Foundational micro-interactions and reusable building blocks.
status: "stable",
href: "/docs/primitives/spring-pop-in",
},
- {
- name: "PulsingIndicator",
- description: "Continuous sine-driven pulse for loading or activity states",
- status: "stable",
- href: "/docs/primitives/pulsing-indicator",
- },
{
name: "SuccessConfetti",
description: "Deterministic particle burst from a chosen origin point",
@@ -161,12 +149,6 @@ Foundational micro-interactions and reusable building blocks.
<ComponentCardGrid
items={[
- {
- name: "CursorFlow",
- description: "Realistic mouse that arcs along Bezier paths and clicks targets that dip in response. Includes a SimulatedCursor variant.",
- status: "stable",
- href: "/docs/primitives/cursor-flow",
- },
{
name: "BoundingBoxSelector",
description: "Figma-style selection rectangle that snaps around a target",
@@ -253,25 +235,6 @@ Pre-assembled interface elements: code editors, layouts, charts, and workflow vi
]}
/>
-### Layouts
-
-<ComponentCardGrid
- items={[
- {
- name: "StaggeredBentoGrid",
- description: "Bento grid where cards cascade in with per-cell sequences",
- status: "stable",
- href: "/docs/ui-blocks/staggered-bento-grid",
- },
- {
- name: "DynamicSplitScreen",
- description: "Two-column split where one panel shrinks and the other expands into view",
- status: "stable",
- href: "/docs/ui-blocks/dynamic-split-screen",
- },
- ]}
-/>
-
### Data & System
<ComponentCardGrid
@@ -336,12 +299,6 @@ Scene transitions, camera moves, and stylized wipes.
status: "stable",
href: "/docs/transitions/device-mockup-zoom",
},
- {
- name: "MorphingModal",
- description: "Card lifts off a grid and expands into a full-screen modal",
- status: "stable",
- href: "/docs/transitions/morphing-modal",
- },
]}
/>
@@ -465,12 +422,6 @@ Full scenes built by composing primitives and UI blocks.
status: "stable",
href: "/docs/compositions/dashboard-populate",
},
- {
- name: "PipelineJourney",
- description: "Kanban ticket flies between columns, triggering events on landing",
- status: "stable",
- href: "/docs/compositions/pipeline-journey",
- },
{
name: "PricingTierFocus",
description: "Three pricing cards where the focused tier rises and brightens while siblings dim and blur",
diff --git a/content/docs/compositions/changelog-bite.mdx b/content/docs/compositions/changelog-bite.mdx
deleted file mode 100644
index 3121bf83..00000000
--- a/content/docs/compositions/changelog-bite.mdx
+++ /dev/null
@@ -1,54 +0,0 @@
----
-title: Changelog Bite
-description: Seamlessly looping square card showing a before/after diff with a frosted glass wipe and a pulsing New pill
----
-
-<ComponentPreview name="changelog-bite" />
-
-## Installation
-
-<InstallBlock name="changelog-bite" />
-
-## Usage
-
-```tsx
-// src/Root.tsx
-import { Composition } from "remotion";
-import { ChangelogBite } from "@/components/remocn/changelog-bite";
-
-const Bite = () => (
- <ChangelogBite
- label="New"
- title="Inline diff view"
- accent="#FFB38E"
- />
-);
-
-export const RemotionRoot = () => (
- <Composition
- id="ChangelogBite"
- component={Bite}
- durationInFrames={150}
- fps={30}
- width={1080}
- height={1080}
- />
-);
-```
-
-## Props
-
-<PropsTable
- rows={[
- { name: "label", type: "string", default: '"New"', description: "Text shown inside the pulsing pill" },
- { name: "title", type: "string", default: '"Inline diff view"', description: "Caption rendered above the diff stage" },
- { name: "oldContent", type: "ReactNode", description: "Custom before content. Defaults to a simple code panel." },
- { name: "newContent", type: "ReactNode", description: "Custom after content. Defaults to a polished code panel." },
- { name: "format", type: '"square" | "portrait"', default: '"square"', description: "Aspect ratio of the inner card. Set the matching `compositionWidth/compositionHeight` on your <Composition>." },
- { name: "background", type: "string", default: '"#141318"', description: "Stage background color" },
- { name: "cardBackground", type: "string", default: '"rgba(20, 19, 24, 0.92)"', description: "Card fill color" },
- { name: "accent", type: "string", default: '"#FFB38E"', description: "Accent color for the pill, seam, and badges" },
- { name: "speed", type: "number", default: "1", description: "Playback speed multiplier" },
- { name: "className", type: "string", description: "Optional className for the outer container" },
- ]}
-/>
diff --git a/content/docs/compositions/index.mdx b/content/docs/compositions/index.mdx
index 10744b82..faf8c2b9 100644
--- a/content/docs/compositions/index.mdx
+++ b/content/docs/compositions/index.mdx
@@ -71,12 +71,6 @@ Higher-level templates that combine multiple primitives, UI blocks, and transiti
status: "stable",
href: "/docs/compositions/dashboard-populate",
},
- {
- name: "PipelineJourney",
- description: "Kanban ticket flies between columns, triggering events on landing",
- status: "stable",
- href: "/docs/compositions/pipeline-journey",
- },
{
name: "PricingTierFocus",
description: "Three pricing cards where the focused tier rises and brightens while siblings dim and blur",
diff --git a/content/docs/compositions/meta.json b/content/docs/compositions/meta.json
index 61dcb651..ba75094a 100644
--- a/content/docs/compositions/meta.json
+++ b/content/docs/compositions/meta.json
@@ -11,10 +11,6 @@
"live-code-compilation",
"terminal-to-browser-deploy",
"dashboard-populate",
- "pipeline-journey",
- "pricing-tier-focus",
- "product-launch-trailer",
- "changelog-bite",
- "visual-docs-snippet"
+ "pricing-tier-focus"
]
}
diff --git a/content/docs/compositions/pipeline-journey.mdx b/content/docs/compositions/pipeline-journey.mdx
deleted file mode 100644
index 2f745d1c..00000000
--- a/content/docs/compositions/pipeline-journey.mdx
+++ /dev/null
@@ -1,63 +0,0 @@
----
-title: Pipeline Journey
-description: A Kanban ticket flies between columns, triggering events along the way
----
-
-<ComponentPreview name="pipeline-journey" />
-
-## Installation
-
-<InstallBlock name="pipeline-journey" />
-
-## Usage
-
-```tsx
-// src/Root.tsx
-import { Composition } from "remotion";
-import { PipelineJourney } from "@/components/remocn/pipeline-journey";
-
-const PipelineJourneyScene = () => (
- <PipelineJourney cardLabel="Build pipeline" accentColor="#22c55e" />
-);
-
-export const RemotionRoot = () => (
- <Composition
- id="PipelineJourney"
- component={PipelineJourneyScene}
- durationInFrames={200}
- fps={30}
- width={1280}
- height={720}
- />
-);
-```
-
-## Props
-
-<PropsTable
- rows={[
- {
- name: "cardLabel",
- type: "string",
- default: '"Build pipeline"',
- description: "Title shown on the flying ticket",
- },
- {
- name: "accentColor",
- type: "string",
- default: '"#22c55e"',
- description: "Color of the ticket border, status dot and confetti accent",
- },
- {
- name: "speed",
- type: "number",
- default: "1",
- description: "Multiplier applied to the current frame",
- },
- {
- name: "className",
- type: "string",
- description: "Optional className for the outer container",
- },
- ]}
-/>
diff --git a/content/docs/compositions/product-launch-trailer.mdx b/content/docs/compositions/product-launch-trailer.mdx
deleted file mode 100644
index 77a2e4fb..00000000
--- a/content/docs/compositions/product-launch-trailer.mdx
+++ /dev/null
@@ -1,53 +0,0 @@
----
-title: Product Launch Trailer
-description: Cinematic Product Hunt teaser with logo pulse, zoom-through, 3D bento fly-over, and a confetti version drop
----
-
-<ComponentPreview name="product-launch-trailer" />
-
-## Installation
-
-<InstallBlock name="product-launch-trailer" />
-
-## Usage
-
-```tsx
-// src/Root.tsx
-import { Composition } from "remotion";
-import { ProductLaunchTrailer } from "@/components/remocn/product-launch-trailer";
-
-const Trailer = () => (
- <ProductLaunchTrailer
- logoLabel="R"
- productName="Remocn"
- versionLabel="v1.0 is live"
- />
-);
-
-export const RemotionRoot = () => (
- <Composition
- id="ProductLaunchTrailer"
- component={Trailer}
- durationInFrames={240}
- fps={30}
- width={1280}
- height={720}
- />
-);
-```
-
-## Props
-
-<PropsTable
- rows={[
- { name: "logoLabel", type: "string", default: '"R"', description: "Single-character mark shown inside the centered logo squircle" },
- { name: "productName", type: "string", default: '"Remocn"', description: "Subtitle rendered below the logo while it pulses" },
- { name: "versionLabel", type: "string", default: '"v1.0 is live"', description: "Headline that drops in during the outro" },
- { name: "accentPeach", type: "string", default: '"#FFB38E"', description: "Peach accent for bento card shadows and confetti" },
- { name: "accentLavender", type: "string", default: '"#D4B3FF"', description: "Lavender accent for the logo glow and code block border" },
- { name: "accentMint", type: "string", default: '"#A1EEBD"', description: "Mint accent for traffic lights and confetti" },
- { name: "background", type: "string", default: '"#141318"', description: "Stage background color" },
- { name: "speed", type: "number", default: "1", description: "Playback speed multiplier" },
- { name: "className", type: "string", description: "Optional className for the outer container" },
- ]}
-/>
diff --git a/content/docs/compositions/visual-docs-snippet.mdx b/content/docs/compositions/visual-docs-snippet.mdx
deleted file mode 100644
index 7e56d8a1..00000000
--- a/content/docs/compositions/visual-docs-snippet.mdx
+++ /dev/null
@@ -1,54 +0,0 @@
----
-title: Visual Docs Snippet
-description: Calm tutorial flow, virtual cursor arcs to a button, clicks, and a bounding box plus tooltip explain what just happened
----
-
-<ComponentPreview name="visual-docs-snippet" />
-
-## Installation
-
-<InstallBlock name="visual-docs-snippet" />
-
-## Usage
-
-```tsx
-// src/Root.tsx
-import { Composition } from "remotion";
-import { VisualDocsSnippet } from "@/components/remocn/visual-docs-snippet";
-
-const Snippet = () => (
- <VisualDocsSnippet
- tooltipTitle="Generate runs"
- tooltipBody="Click to start a new generation. The job will appear in the sidebar."
- buttonLabel="Generate"
- />
-);
-
-export const RemotionRoot = () => (
- <Composition
- id="VisualDocsSnippet"
- component={Snippet}
- durationInFrames={210}
- fps={30}
- width={1280}
- height={720}
- />
-);
-```
-
-## Props
-
-<PropsTable
- rows={[
- { name: "cursorStart", type: "{ x: number; y: number }", default: "{ x: 980, y: 560 }", description: "Where the cursor begins, in absolute frame coordinates" },
- { name: "cursorTarget", type: "{ x: number; y: number }", default: "{ x: 640, y: 360 }", description: "Where the cursor lands and clicks" },
- { name: "clickFrame", type: "number", default: "110", description: "Frame at which the click fires. All later anchors (bounding box, tooltip, settle) derive from this." },
- { name: "tooltipTitle", type: "string", default: '"Generate runs"', description: "Tooltip heading shown to the right of the bounding box" },
- { name: "tooltipBody", type: "string", default: '"Click to start a new generation…"', description: "Tooltip body copy" },
- { name: "buttonLabel", type: "string", default: '"Generate"', description: "Label inside the CTA button" },
- { name: "accent", type: "string", default: '"#FFB38E"', description: "Peach accent color used for the bounding box, tooltip border, and ripple" },
- { name: "background", type: "string", default: '"#141318"', description: "Stage background color" },
- { name: "speed", type: "number", default: "1", description: "Playback speed multiplier" },
- { name: "className", type: "string", description: "Optional className for the outer container" },
- ]}
-/>
diff --git a/content/docs/primitives/brush-stroke-simulator.mdx b/content/docs/primitives/brush-stroke-simulator.mdx
deleted file mode 100644
index 66b6813c..00000000
--- a/content/docs/primitives/brush-stroke-simulator.mdx
+++ /dev/null
@@ -1,102 +0,0 @@
----
-title: Brush Stroke Simulator
-description: A simulated fingertip drags a blur brush across an image, revealing a pixelated overlay along its trail
----
-
-<ComponentPreview name="brush-stroke-simulator" />
-
-## Installation
-
-<InstallBlock name="brush-stroke-simulator" />
-
-## Usage
-
-```tsx
-// src/Root.tsx
-import { Composition } from "remotion";
-import { BrushStrokeSimulator } from "@/components/remocn/brush-stroke-simulator";
-
-const BrushScene = () => (
- <BrushStrokeSimulator
- brushSize={70}
- sweepDuration={150}
- />
-);
-
-export const RemotionRoot = () => (
- <Composition
- id="BrushStrokeSimulator"
- component={BrushScene}
- durationInFrames={180}
- fps={30}
- width={1280}
- height={720}
- />
-);
-```
-
-## Props
-
-<PropsTable
- rows={[
- {
- name: "brushSize",
- type: "number",
- default: "70",
- description: "Diameter of the cursor and width of the reveal stroke in pixels",
- },
- {
- name: "cursorColor",
- type: "string",
- default: "\"rgba(255,255,255,0.45)\"",
- description: "Fill color of the semi-transparent fingertip circle",
- },
- {
- name: "background",
- type: "string",
- default: "\"#0a0a0a\"",
- description: "Page background behind the simulated portrait",
- },
- {
- name: "baseColorA",
- type: "string",
- default: "\"#f4a261\"",
- description: "Highlight tint of the simulated portrait beneath the overlay",
- },
- {
- name: "baseColorB",
- type: "string",
- default: "\"#e76f51\"",
- description: "Shadow tint of the simulated portrait beneath the overlay",
- },
- {
- name: "overlayColor",
- type: "string",
- default: "\"#1f1f23\"",
- description: "Base color of the pixelated overlay that the brush reveals",
- },
- {
- name: "startFrame",
- type: "number",
- default: "12",
- description: "Frame at which the brushing motion begins. Earlier frames hold the unbrushed scene.",
- },
- {
- name: "sweepDuration",
- type: "number",
- default: "150",
- description: "How many frames the brush takes to traverse the full waypoint chain",
- },
- {
- name: "speed",
- type: "number",
- default: "1",
- description: "Playback speed multiplier applied to the internal frame counter",
- },
- {
- name: "className",
- type: "string",
- description: "Optional className passed to the root container",
- },
- ]}
-/>
diff --git a/content/docs/primitives/cursor-flow.mdx b/content/docs/primitives/cursor-flow.mdx
deleted file mode 100644
index d68d17a7..00000000
--- a/content/docs/primitives/cursor-flow.mdx
+++ /dev/null
@@ -1,158 +0,0 @@
----
-title: Cursor Flow
-description: A realistic mouse that arcs along cubic Bezier paths, pauses, and clicks targets that dip in response
----
-
-<ComponentPreview name="cursor-flow" />
-
-## Installation
-
-<InstallBlock name="cursor-flow" />
-
-## Usage
-
-```tsx
-// src/Root.tsx
-import { Composition } from "remotion";
-import { CursorFlow } from "@/components/remocn/cursor-flow";
-
-const CursorFlowScene = () => (
- <CursorFlow
- waypoints={[
- { x: 200, y: 180 },
- { x: 540, y: 240, click: true, label: "Generate" },
- { x: 880, y: 360, hold: 8 },
- { x: 1040, y: 520, click: true, label: "Publish" },
- ]}
- />
-);
-
-export const RemotionRoot = () => (
- <Composition
- id="CursorFlow"
- component={CursorFlowScene}
- durationInFrames={180}
- fps={30}
- width={1280}
- height={720}
- />
-);
-```
-
-## Props
-
-<PropsTable
- rows={[
- {
- name: "waypoints",
- type: "CursorWaypoint[]",
- description: "Ordered list of points the cursor visits. Each waypoint has `x`, `y`, and optional `hold`, `click`, and `label`.",
- },
- {
- name: "cursorColor",
- type: "string",
- default: "\"#fafafa\"",
- description: "Cursor SVG fill color",
- },
- {
- name: "cursorSize",
- type: "number",
- default: "28",
- description: "Cursor SVG side length in pixels",
- },
- {
- name: "segmentDuration",
- type: "number",
- default: "36",
- description: "Frames spent traversing one segment between two waypoints",
- },
- {
- name: "background",
- type: "string",
- default: "\"#0a0a0a\"",
- description: "Page background color",
- },
- {
- name: "showTargets",
- type: "boolean",
- default: "true",
- description: "Render the click target chips at clickable waypoints",
- },
- {
- name: "speed",
- type: "number",
- default: "1",
- description: "Playback speed multiplier",
- },
- {
- name: "className",
- type: "string",
- description: "Optional className passed to the root container",
- },
- ]}
-/>
-
-## Variant: Simulated Cursor
-
-A simpler primitive that renders a macOS-style cursor (inline SVG, no external assets) and moves it between a list of points on straight lines. Each waypoint can hold for a configurable number of frames and optionally trigger a click animation: a brief scale dip plus an expanding SVG ripple. Use this when you don't need the realistic Bezier-arc trajectory of `CursorFlow`.
-
-<ComponentPreview name="simulated-cursor" />
-
-### Installation
-
-<InstallBlock name="simulated-cursor" />
-
-### Usage
-
-```tsx
-import { SimulatedCursor } from "@/components/remocn/simulated-cursor";
-
-<SimulatedCursor
- points={[
- { x: 200, y: 150, hold: 20 },
- { x: 800, y: 360, hold: 25, click: true },
- { x: 1050, y: 560, hold: 20 },
- ]}
- color="#ffffff"
-/>
-```
-
-### Props
-
-<PropsTable
- rows={[
- {
- name: "points",
- type: "Array<{ x: number; y: number; hold?: number; click?: boolean }>",
- default: "3 sample waypoints",
- description: "Cursor waypoints in pixel coordinates. hold = frames to pause at the point, click = trigger click ripple.",
- },
- {
- name: "color",
- type: "string",
- default: "\"#ffffff\"",
- description: "Cursor fill color. The cursor always has a thin black outline for contrast.",
- },
- {
- name: "size",
- type: "number",
- default: "32",
- description: "Cursor size in pixels (SVG width and height)",
- },
- {
- name: "background",
- type: "string",
- default: "\"#0a0a0a\"",
- description: "Background color of the frame the cursor lives in",
- },
- {
- name: "className",
- type: "string",
- description: "Optional className passed to the outer container",
- },
- ]}
-/>
-
-<Note title="Inline SVG, no assets">
- The cursor is drawn as inline SVG, so you don't need to copy anything into `public/`. Drop the component into any composition and it just works.
-</Note>
diff --git a/content/docs/primitives/index.mdx b/content/docs/primitives/index.mdx
index 9c59f13d..c40e897b 100644
--- a/content/docs/primitives/index.mdx
+++ b/content/docs/primitives/index.mdx
@@ -15,12 +15,6 @@ The smallest reusable units in remocn: pop-ins, pulses, cursors, and notificatio
status: "stable",
href: "/docs/primitives/spring-pop-in",
},
- {
- name: "PulsingIndicator",
- description: "Continuous sine-driven pulse for loading or activity states",
- status: "stable",
- href: "/docs/primitives/pulsing-indicator",
- },
{
name: "SuccessConfetti",
description: "Deterministic particle burst from a chosen origin point",
@@ -34,12 +28,6 @@ The smallest reusable units in remocn: pop-ins, pulses, cursors, and notificatio
<ComponentCardGrid
items={[
- {
- name: "CursorFlow",
- description: "Realistic mouse that arcs along Bezier paths and clicks targets that dip in response. Includes a SimulatedCursor variant.",
- status: "stable",
- href: "/docs/primitives/cursor-flow",
- },
{
name: "BoundingBoxSelector",
description: "Figma-style selection rectangle that snaps around a target",
diff --git a/content/docs/primitives/meta.json b/content/docs/primitives/meta.json
index be45311f..55083ead 100644
--- a/content/docs/primitives/meta.json
+++ b/content/docs/primitives/meta.json
@@ -4,10 +4,7 @@
"pages": [
"index",
"spring-pop-in",
- "pulsing-indicator",
"success-confetti",
- "cursor-flow",
- "brush-stroke-simulator",
"bounding-box-selector",
"toast-notification"
]
diff --git a/content/docs/primitives/pulsing-indicator.mdx b/content/docs/primitives/pulsing-indicator.mdx
deleted file mode 100644
index 42b7cfe6..00000000
--- a/content/docs/primitives/pulsing-indicator.mdx
+++ /dev/null
@@ -1,69 +0,0 @@
----
-title: Pulsing Indicator
-description: Continuous pulsing dot for loading and "live" states
----
-
-<ComponentPreview name="pulsing-indicator" />
-
-## Installation
-
-<InstallBlock name="pulsing-indicator" />
-
-## Usage
-
-```tsx
-// src/Root.tsx
-import { Composition } from "remotion";
-import { PulsingIndicator } from "@/components/remocn/pulsing-indicator";
-
-const PulsingIndicatorScene = () => (
- <PulsingIndicator color="#22c55e" size={16} speed={8} />
-);
-
-export const RemotionRoot = () => (
- <Composition
- id="PulsingIndicator"
- component={PulsingIndicatorScene}
- durationInFrames={120}
- fps={30}
- width={1280}
- height={720}
- />
-);
-```
-
-## Props
-
-<PropsTable
- rows={[
- {
- name: "color",
- type: "string",
- default: "\"#22c55e\"",
- description: "Dot and ring color",
- },
- {
- name: "size",
- type: "number",
- default: "16",
- description: "Dot diameter in pixels. The ring expands beyond this.",
- },
- {
- name: "speed",
- type: "number",
- default: "8",
- description: "Lower = faster pulse. The value is the frame divisor inside Math.sin.",
- },
- {
- name: "background",
- type: "string",
- default: "\"white\"",
- description: "Background color of the surrounding container",
- },
- {
- name: "className",
- type: "string",
- description: "Optional className passed to the outer container",
- },
- ]}
-/>
diff --git a/content/docs/transitions/index.mdx b/content/docs/transitions/index.mdx
index 9fe227e1..de8084d1 100644
--- a/content/docs/transitions/index.mdx
+++ b/content/docs/transitions/index.mdx
@@ -21,12 +21,6 @@ Wipes, slides, zooms, and camera moves between scenes. Group your scenes inside
status: "stable",
href: "/docs/transitions/device-mockup-zoom",
},
- {
- name: "MorphingModal",
- description: "Card lifts off a grid and expands into a full-screen modal",
- status: "stable",
- href: "/docs/transitions/morphing-modal",
- },
]}
/>
diff --git a/content/docs/transitions/meta.json b/content/docs/transitions/meta.json
index 44e74fdc..372834f2 100644
--- a/content/docs/transitions/meta.json
+++ b/content/docs/transitions/meta.json
@@ -5,10 +5,8 @@
"index",
"zoom-through-transition",
"device-mockup-zoom",
- "morphing-modal",
"image-expand-to-fullscreen",
"directional-wipe",
- "swipe-transition-wipe",
"spatial-push",
"frosted-glass-wipe",
"grid-pixelate-wipe",
diff --git a/content/docs/transitions/morphing-modal.mdx b/content/docs/transitions/morphing-modal.mdx
deleted file mode 100644
index c915fee8..00000000
--- a/content/docs/transitions/morphing-modal.mdx
+++ /dev/null
@@ -1,140 +0,0 @@
----
-title: Morphing Modal
-description: A bento card lifts off the grid and blooms into a full-screen modal driven by a single heavy spring
----
-
-<ComponentPreview name="morphing-modal" />
-
-## Installation
-
-<InstallBlock name="morphing-modal" />
-
-## Usage
-
-```tsx
-// src/Root.tsx
-import { Composition } from "remotion";
-import { MorphingModal } from "@/components/remocn/morphing-modal";
-
-const MorphingModalScene = () => (
- <MorphingModal
- from={{ left: 460, top: 260, width: 360, height: 200 }}
- to={{ left: 80, top: 60, width: 1120, height: 600 }}
- morphAt={30}
- />
-);
-
-export const RemotionRoot = () => (
- <Composition
- id="MorphingModal"
- component={MorphingModalScene}
- durationInFrames={180}
- fps={30}
- width={1280}
- height={720}
- />
-);
-```
-
-## Props
-
-<PropsTable
- rows={[
- {
- name: "from",
- type: "{ top, left, width, height }",
- description: "Source rect of the card before it blooms",
- },
- {
- name: "to",
- type: "{ top, left, width, height }",
- description: "Target rect of the modal. Defaults to a near-fullscreen sheet.",
- },
- {
- name: "borderRadiusFrom",
- type: "number",
- default: "24",
- description: "Border radius of the source card in pixels",
- },
- {
- name: "borderRadiusTo",
- type: "number",
- default: "0",
- description: "Border radius of the modal in pixels",
- },
- {
- name: "morphAt",
- type: "number",
- default: "30",
- description: "Frame at which the morph spring fires",
- },
- {
- name: "background",
- type: "string",
- default: "\"#050505\"",
- description: "Page background color",
- },
- {
- name: "cardColor",
- type: "string",
- default: "\"#0a0a0a\"",
- description: "Card / modal surface color",
- },
- {
- name: "textColor",
- type: "string",
- default: "\"#fafafa\"",
- description: "Heading color in source and modal",
- },
- {
- name: "mutedColor",
- type: "string",
- default: "\"#71717a\"",
- description: "Body copy color",
- },
- {
- name: "sourceTitle",
- type: "string",
- default: "\"Compose video\"",
- description: "Heading shown on the source card",
- },
- {
- name: "sourceBody",
- type: "string",
- default: "\"Click to start a new project\"",
- description: "Body copy shown on the source card",
- },
- {
- name: "modalTitle",
- type: "string",
- default: "\"New project\"",
- description: "Heading shown after the morph completes",
- },
- {
- name: "modalBody",
- type: "string",
- description: "Body copy shown after the morph completes",
- },
- {
- name: "source",
- type: "ReactNode",
- description: "Override the default source card content",
- },
- {
- name: "modal",
- type: "ReactNode",
- description: "Override the default modal content",
- },
- {
- name: "speed",
- type: "number",
- default: "1",
- description: "Playback speed multiplier",
- },
- {
- name: "className",
- type: "string",
- description: "Optional className passed to the root container",
- },
- ]}
-/>
diff --git a/content/docs/transitions/swipe-transition-wipe.mdx b/content/docs/transitions/swipe-transition-wipe.mdx
deleted file mode 100644
index c0789f86..00000000
--- a/content/docs/transitions/swipe-transition-wipe.mdx
+++ /dev/null
@@ -1,132 +0,0 @@
----
-title: Swipe Transition Wipe
-description: A mobile-style swipe transition where the outgoing scene flicks off-screen and the new one slides in beside it, with a parallax background and a darkening trail
----
-
-<ComponentPreview name="swipe-transition-wipe" />
-
-## Installation
-
-<InstallBlock name="swipe-transition-wipe" />
-
-## Usage
-
-```tsx
-// src/Root.tsx
-import { Composition } from "remotion";
-import { SwipeTransitionWipe } from "@/components/remocn/swipe-transition-wipe";
-
-const SwipeScene = () => (
- <SwipeTransitionWipe
- direction="left"
- swipeAt={30}
- labelA="Before"
- labelB="After"
- />
-);
-
-export const RemotionRoot = () => (
- <Composition
- id="SwipeTransitionWipe"
- component={SwipeScene}
- durationInFrames={180}
- fps={30}
- width={1280}
- height={720}
- />
-);
-```
-
-## Props
-
-<PropsTable
- rows={[
- {
- name: "sceneA",
- type: "ReactNode",
- description: "Override the first (outgoing) scene's content",
- },
- {
- name: "sceneB",
- type: "ReactNode",
- description: "Override the second (incoming) scene's content",
- },
- {
- name: "labelA",
- type: "string",
- default: "\"First\"",
- description: "Label rendered on the default scene A gradient",
- },
- {
- name: "labelB",
- type: "string",
- default: "\"Second\"",
- description: "Label rendered on the default scene B gradient",
- },
- {
- name: "colorA1",
- type: "string",
- default: "\"#0ea5e9\"",
- description: "First gradient stop for scene A",
- },
- {
- name: "colorA2",
- type: "string",
- default: "\"#1e3a8a\"",
- description: "Second gradient stop for scene A",
- },
- {
- name: "colorB1",
- type: "string",
- default: "\"#f97316\"",
- description: "First gradient stop for scene B",
- },
- {
- name: "colorB2",
- type: "string",
- default: "\"#9333ea\"",
- description: "Second gradient stop for scene B",
- },
- {
- name: "background",
- type: "string",
- default: "\"#050505\"",
- description: "Stage background behind the parallax layer",
- },
- {
- name: "direction",
- type: "\"left\" | \"right\"",
- default: "\"left\"",
- description: "Which way the outgoing scene flicks off the screen",
- },
- {
- name: "swipeAt",
- type: "number",
- default: "30",
- description: "Frame at which the swipe spring fires",
- },
- {
- name: "parallaxFactor",
- type: "number",
- default: "0.6",
- description: "How much slower the background moves vs the foreground (0 = locked, 1 = matched)",
- },
- {
- name: "dimStrength",
- type: "number",
- default: "0.4",
- description: "Maximum opacity of the darkening overlay applied to the outgoing scene",
- },
- {
- name: "speed",
- type: "number",
- default: "1",
- description: "Playback speed multiplier",
- },
- {
- name: "className",
- type: "string",
- description: "Optional className passed to the root container",
- },
- ]}
-/>
diff --git a/content/docs/typography/index.mdx b/content/docs/typography/index.mdx
index dbc047df..b6a67493 100644
--- a/content/docs/typography/index.mdx
+++ b/content/docs/typography/index.mdx
@@ -71,12 +71,6 @@ Every way text can move, fade, glitch, or stretch across the screen. From quiet
status: "stable",
href: "/docs/typography/typewriter",
},
- {
- name: "TextFadeReplace",
- description: "Cross-fades between two strings on the same line. Includes a Strikethrough variant.",
- status: "stable",
- href: "/docs/typography/text-fade-replace",
- },
{
name: "SlotMachineRoll",
description: "Numbers and characters roll into place like a casino reel",
diff --git a/content/docs/typography/meta.json b/content/docs/typography/meta.json
index f0e0fb8b..55ece159 100644
--- a/content/docs/typography/meta.json
+++ b/content/docs/typography/meta.json
@@ -11,7 +11,6 @@
"marker-highlight",
"shimmer-sweep",
"typewriter",
- "text-fade-replace",
"slot-machine-roll",
"infinite-marquee",
"perspective-marquee",
diff --git a/content/docs/typography/text-fade-replace.mdx b/content/docs/typography/text-fade-replace.mdx
deleted file mode 100644
index 59c1d0cb..00000000
--- a/content/docs/typography/text-fade-replace.mdx
+++ /dev/null
@@ -1,150 +0,0 @@
----
-title: Text Fade Replace
-description: Cross-fade between two strings on the same line without layout shift
----
-
-<ComponentPreview name="text-fade-replace" />
-
-## Installation
-
-<InstallBlock name="text-fade-replace" />
-
-## Usage
-
-```tsx
-// src/Root.tsx
-import { Composition } from "remotion";
-import { TextFadeReplace } from "@/components/remocn/text-fade-replace";
-
-const TextFadeReplaceScene = () => (
- <TextFadeReplace from="Before" to="After" fontSize={72} />
-);
-
-export const RemotionRoot = () => (
- <Composition
- id="TextFadeReplace"
- component={TextFadeReplaceScene}
- durationInFrames={90}
- fps={30}
- width={1280}
- height={720}
- />
-);
-```
-
-## Props
-
-<PropsTable
- rows={[
- {
- name: "from",
- type: "string",
- required: true,
- description: "Initial text shown at the start of the composition",
- },
- {
- name: "to",
- type: "string",
- required: true,
- description: "Replacement text shown at the end of the composition",
- },
- {
- name: "fontSize",
- type: "number",
- default: "48",
- description: "Font size in pixels",
- },
- {
- name: "fontWeight",
- type: "number",
- default: "600",
- description: "CSS font-weight",
- },
- {
- name: "color",
- type: "string",
- default: "\"#171717\"",
- description: "Text color for both strings",
- },
- {
- name: "className",
- type: "string",
- description: "Optional className passed to both spans",
- },
- ]}
-/>
-
-## Variant: Strikethrough Replace
-
-A companion primitive that animates a strikethrough line growing left-to-right across the `from` text, then cross-fades to the `to` text. Useful for "old way / new way" comparisons.
-
-<ComponentPreview name="strikethrough-replace" />
-
-### Installation
-
-<InstallBlock name="strikethrough-replace" />
-
-### Usage
-
-```tsx
-import { StrikethroughReplace } from "@/components/remocn/strikethrough-replace";
-
-<StrikethroughReplace
- from="Slow setup"
- to="Instant setup"
- lineColor="#ff5e3a"
- fontSize={72}
-/>
-```
-
-### Props
-
-<PropsTable
- rows={[
- {
- name: "from",
- type: "string",
- required: true,
- description: "Original text that gets struck through",
- },
- {
- name: "to",
- type: "string",
- required: true,
- description: "Replacement text that fades in",
- },
- {
- name: "lineColor",
- type: "string",
- default: "\"#ff5e3a\"",
- description: "Color of the strikethrough bar",
- },
- {
- name: "fontSize",
- type: "number",
- default: "48",
- description: "Font size in pixels",
- },
- {
- name: "fontWeight",
- type: "number",
- default: "600",
- description: "CSS font-weight",
- },
- {
- name: "color",
- type: "string",
- default: "\"#171717\"",
- description: "Text color for both strings",
- },
- {
- name: "className",
- type: "string",
- description: "Optional className passed to the underlying spans",
- },
- ]}
-/>
-
-<Note title="Three phases">
- The animation runs in three phases tied to `durationInFrames`: draw the strike line (0-40%), cross-fade to the new text (40-60%), then hold (60-100%).
-</Note>
diff --git a/content/docs/ui-blocks/ai-generate-overlay.mdx b/content/docs/ui-blocks/ai-generate-overlay.mdx
deleted file mode 100644
index f5756f11..00000000
--- a/content/docs/ui-blocks/ai-generate-overlay.mdx
+++ /dev/null
@@ -1,130 +0,0 @@
----
-title: AI Generate Overlay
-description: A "thinking" overlay for AI-driven UI, where the source image blurs out under a shimmering dot grid while a glassy pill pulses, then the new image fades in on top
----
-
-<ComponentPreview name="ai-generate-overlay" />
-
-## Installation
-
-<InstallBlock name="ai-generate-overlay" />
-
-## Usage
-
-```tsx
-// src/Root.tsx
-import { Composition } from "remotion";
-import { AIGenerateOverlay } from "@/components/remocn/ai-generate-overlay";
-
-const AIGenerateOverlayScene = () => (
- <AIGenerateOverlay
- maxBlur={20}
- blurStartFrame={20}
- blurPeakFrame={40}
- revealStartFrame={110}
- pillText="Generating…"
- accent="#a78bfa"
- />
-);
-
-export const RemotionRoot = () => (
- <Composition
- id="AIGenerateOverlay"
- component={AIGenerateOverlayScene}
- durationInFrames={180}
- fps={30}
- width={1280}
- height={720}
- />
-);
-```
-
-## Props
-
-<PropsTable
- rows={[
- {
- name: "maxBlur",
- type: "number",
- default: "20",
- description: "Peak blur radius in pixels applied to the source image",
- },
- {
- name: "blurStartFrame",
- type: "number",
- default: "20",
- description: "Frame at which the blur ramp and dot grid begin",
- },
- {
- name: "blurPeakFrame",
- type: "number",
- default: "40",
- description: "Frame at which the blur reaches `maxBlur` and the dot grid is fully on",
- },
- {
- name: "revealStartFrame",
- type: "number",
- default: "110",
- description: "Frame at which the spring-driven generated-image fade-in fires",
- },
- {
- name: "pillText",
- type: "string",
- default: "\"Generating…\"",
- description: "Label shown inside the centered glass pill. Trailing dots animate automatically.",
- },
- {
- name: "accent",
- type: "string",
- default: "\"#a78bfa\"",
- description: "Accent color used for the pill's status dot and glow shadow",
- },
- {
- name: "background",
- type: "string",
- default: "\"#050505\"",
- description: "Page background visible behind both image layers",
- },
- {
- name: "sourceImageBg",
- type: "string",
- default: "warm linear-gradient",
- description: "CSS background for the source (\"original\") image layer. Pass any gradient or color.",
- },
- {
- name: "generatedImageBg",
- type: "string",
- default: "cool radial+linear",
- description: "CSS background for the generated image layer that fades in",
- },
- {
- name: "dotColor",
- type: "string",
- default: "\"#ffffff\"",
- description: "Fill color of the SVG dot grid",
- },
- {
- name: "dotSize",
- type: "number",
- default: "1.2",
- description: "Radius of each dot in the grid",
- },
- {
- name: "dotSpacing",
- type: "number",
- default: "20",
- description: "Pattern tile size that controls the spacing between dots",
- },
- {
- name: "speed",
- type: "number",
- default: "1",
- description: "Playback speed multiplier for all timing values",
- },
- {
- name: "className",
- type: "string",
- description: "Optional className passed to the root container",
- },
- ]}
-/>
diff --git a/content/docs/ui-blocks/dynamic-split-screen.mdx b/content/docs/ui-blocks/dynamic-split-screen.mdx
deleted file mode 100644
index d560d2cf..00000000
--- a/content/docs/ui-blocks/dynamic-split-screen.mdx
+++ /dev/null
@@ -1,74 +0,0 @@
----
-title: Dynamic Split Screen
-description: Cinematic two-column split where one panel shrinks and the other expands into view
----
-
-<ComponentPreview name="chat-to-preview-layout" />
-
-## Installation
-
-<InstallBlock name="chat-to-preview-layout" />
-
-## Usage
-
-```tsx
-// src/Root.tsx
-import { Composition } from "remotion";
-import { ChatToPreviewLayout } from "@/components/remocn/chat-to-preview-layout";
-
-const ChatToPreviewLayoutScene = () => (
- <ChatToPreviewLayout
- chat={<MyChat />
-);
-
-export const RemotionRoot = () => (
- <Composition
- id="ChatToPreviewLayout"
- component={ChatToPreviewLayoutScene}
- durationInFrames={120}
- fps={30}
- width={1280}
- height={720}
- />
-);
-```
-
-## Props
-
-<PropsTable
- rows={[
- {
- name: "chat",
- type: "ReactNode",
- description: "The chat panel. Falls back to a sample chat mockup.",
- },
- {
- name: "preview",
- type: "ReactNode",
- description: "The preview panel. Falls back to a sample landing page mockup.",
- },
- {
- name: "startChatRatio",
- type: "number",
- default: "0.5",
- description: "Initial fraction of width given to the chat panel (0..1)",
- },
- {
- name: "endChatRatio",
- type: "number",
- default: "0.25",
- description: "Final fraction of width given to the chat panel (0..1)",
- },
- {
- name: "background",
- type: "string",
- default: '"#0a0a0a"',
- description: "Outer background color",
- },
- {
- name: "className",
- type: "string",
- description: "Optional className for the outer container",
- },
- ]}
-/>
diff --git a/content/docs/ui-blocks/index.mdx b/content/docs/ui-blocks/index.mdx
index fdbbaf68..6f441c84 100644
--- a/content/docs/ui-blocks/index.mdx
+++ b/content/docs/ui-blocks/index.mdx
@@ -36,25 +36,6 @@ Larger blocks built from primitives, the actual surfaces your viewers will recog
]}
/>
-## Layouts
-
-<ComponentCardGrid
- items={[
- {
- name: "StaggeredBentoGrid",
- description: "Bento grid where cards cascade in with per-cell sequences",
- status: "stable",
- href: "/docs/ui-blocks/staggered-bento-grid",
- },
- {
- name: "DynamicSplitScreen",
- description: "Two-column split where one panel shrinks and the other expands into view",
- status: "stable",
- href: "/docs/ui-blocks/dynamic-split-screen",
- },
- ]}
-/>
-
## Data & System
<ComponentCardGrid
diff --git a/content/docs/ui-blocks/meta.json b/content/docs/ui-blocks/meta.json
index dafbfefa..88e5641d 100644
--- a/content/docs/ui-blocks/meta.json
+++ b/content/docs/ui-blocks/meta.json
@@ -7,9 +7,6 @@
"terminal-simulator",
"code-accordion",
"code-diff-wipe",
- "staggered-bento-grid",
- "dynamic-split-screen",
- "ai-generate-overlay",
"tool-menu-slide-in",
"animated-line-chart",
"animated-bar-chart",
diff --git a/content/docs/ui-blocks/staggered-bento-grid.mdx b/content/docs/ui-blocks/staggered-bento-grid.mdx
deleted file mode 100644
index 5aa94881..00000000
--- a/content/docs/ui-blocks/staggered-bento-grid.mdx
+++ /dev/null
@@ -1,88 +0,0 @@
----
-title: Staggered Bento Grid
-description: Cards pop into a bento grid one after another with a spring
----
-
-<ComponentPreview name="staggered-bento-grid" />
-
-## Installation
-
-<InstallBlock name="staggered-bento-grid" />
-
-## Usage
-
-```tsx
-// src/Root.tsx
-import { Composition } from "remotion";
-import { StaggeredBentoGrid } from "@/components/remocn/staggered-bento-grid";
-
-const StaggeredBentoGridScene = () => (
- <StaggeredBentoGrid
- staggerDelay={8}
- columns={3}
- items={[
- { title: "Fast", body: "Built on Remotion", span: 2 },
- { title: "Animated", body: "Spring physics" },
- ]}
- />
-);
-
-export const RemotionRoot = () => (
- <Composition
- id="StaggeredBentoGrid"
- component={StaggeredBentoGridScene}
- durationInFrames={120}
- fps={30}
- width={1280}
- height={720}
- />
-);
-```
-
-## Props
-
-<PropsTable
- rows={[
- {
- name: "items",
- type: "Array<{ title: string; body?: string; span?: 1 | 2 }>",
- default: "6 sample cards",
- description: "Cards to render in the grid",
- },
- {
- name: "staggerDelay",
- type: "number",
- default: "8",
- description: "Frames between each card's entrance",
- },
- {
- name: "columns",
- type: "number",
- default: "3",
- description: "Number of grid columns",
- },
- {
- name: "background",
- type: "string",
- default: '"#0a0a0a"',
- description: "Outer background color",
- },
- {
- name: "cardColor",
- type: "string",
- default: '"#1a1a1a"',
- description: "Card background color",
- },
- {
- name: "textColor",
- type: "string",
- default: '"white"',
- description: "Card text color",
- },
- {
- name: "className",
- type: "string",
- description: "Optional className for the outer container",
- },
- ]}
-/>
diff --git a/public/r/ai-generate-overlay.json b/public/r/ai-generate-overlay.json
deleted file mode 100644
index 52bb6cef..00000000
--- a/public/r/ai-generate-overlay.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
- "name": "ai-generate-overlay",
- "title": "AI Generate Overlay",
- "description": "Source image blurs under a shimmering dot grid and a pulsing 'Generating…' pill before a new image fades in.",
- "dependencies": [
- "remotion"
- ],
- "files": [
- {
- "path": "registry/remocn/ai-generate-overlay/index.tsx",
- "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface AIGenerateOverlayProps {\n maxBlur?: number;\n blurStartFrame?: number;\n blurPeakFrame?: number;\n revealStartFrame?: number;\n pillText?: string;\n accent?: string;\n background?: string;\n sourceImageBg?: string;\n generatedImageBg?: string;\n dotColor?: string;\n dotSize?: number;\n dotSpacing?: number;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nconst DEFAULT_SOURCE_BG =\n \"linear-gradient(135deg, #6b3a1a 0%, #d4a574 50%, #8b4513 100%)\";\n\nconst DEFAULT_GENERATED_BG =\n \"radial-gradient(ellipse at center, #d4a574 0%, #8b4513 22%, #2a1a10 42%), linear-gradient(180deg, #1a1410 0%, #0a0806 50%, #1a1410 100%)\";\n\nexport function AIGenerateOverlay({\n maxBlur = 20,\n blurStartFrame = 20,\n blurPeakFrame = 40,\n revealStartFrame = 110,\n pillText = \"Generating…\",\n accent = \"#a78bfa\",\n background = \"#050505\",\n sourceImageBg = DEFAULT_SOURCE_BG,\n generatedImageBg = DEFAULT_GENERATED_BG,\n dotColor = \"#ffffff\",\n dotSize = 1.2,\n dotSpacing = 20,\n speed = 1,\n className,\n}: AIGenerateOverlayProps) {\n const rawFrame = useCurrentFrame();\n const frame = rawFrame * speed;\n const { fps, durationInFrames } = useVideoConfig();\n\n // Phase 1 → 2: blur ramps up over [blurStartFrame, blurPeakFrame]\n const blur = interpolate(\n frame,\n [blurStartFrame, blurPeakFrame],\n [0, maxBlur],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n // Dot grid opacity follows blur, plus a subtle sine shimmer.\n const gridBaseOpacity = interpolate(\n frame,\n [blurStartFrame, blurPeakFrame],\n [0, 0.4],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n const gridShimmer = Math.sin(frame / 6) * 0.05;\n const gridOpacity = Math.max(0, gridBaseOpacity + gridShimmer);\n\n // Generated image fade-in from revealStartFrame.\n const reveal = spring({\n frame: frame - revealStartFrame,\n fps,\n config: { mass: 1, damping: 22, stiffness: 90 },\n });\n const generatedOpacity = interpolate(reveal, [0, 1], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n // Pill is visible during phases 2-3, fades out as the new image fades in.\n const pillIn = interpolate(frame, [blurStartFrame, blurPeakFrame], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const pillOut = interpolate(generatedOpacity, [0, 0.6], [1, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const pillOpacity = pillIn * pillOut;\n const pillScale = 1 + Math.sin(frame / 8) * 0.02;\n const pillGlow = 0.35 + Math.sin(frame / 8) * 0.15;\n\n // Detached dot count animation for the pill text — three trailing dots.\n const dotPhase = Math.floor(frame / 10) % 4;\n const animatedPillText =\n pillText.replace(/[…\\.]+$/, \"\") + \".\".repeat(dotPhase);\n\n // Typed unused-suppression: keep durationInFrames referenced for IDEs.\n void durationInFrames;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n fontFamily: FONT_FAMILY,\n overflow: \"hidden\",\n }}\n >\n {/* Source (\"painting\") layer — blurs out as AI thinks. */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: sourceImageBg,\n filter: `blur(${blur}px)`,\n // Slight scale to hide the blur edge feathering at the viewport border.\n transform: \"scale(1.06)\",\n }}\n />\n\n {/* Generated image layer — fades in over the blurred source. */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: generatedImageBg,\n opacity: generatedOpacity,\n }}\n />\n\n {/* Dot grid overlay — pure SVG pattern with animated opacity + shimmer. */}\n <svg\n style={{\n position: \"absolute\",\n inset: 0,\n width: \"100%\",\n height: \"100%\",\n opacity: gridOpacity * (1 - generatedOpacity),\n pointerEvents: \"none\",\n mixBlendMode: \"screen\",\n }}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <defs>\n <pattern\n id=\"ai-generate-overlay-dots\"\n width={dotSpacing}\n height={dotSpacing}\n patternUnits=\"userSpaceOnUse\"\n >\n <circle\n cx={dotSpacing / 2}\n cy={dotSpacing / 2}\n r={dotSize}\n fill={dotColor}\n />\n </pattern>\n </defs>\n <rect\n width=\"100%\"\n height=\"100%\"\n fill=\"url(#ai-generate-overlay-dots)\"\n />\n </svg>\n\n {/* \"Generating…\" pill */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n pointerEvents: \"none\",\n opacity: pillOpacity,\n }}\n >\n <div\n style={{\n display: \"inline-flex\",\n alignItems: \"center\",\n gap: 12,\n padding: \"14px 24px\",\n borderRadius: 999,\n background: \"rgba(10, 10, 10, 0.55)\",\n color: \"#fafafa\",\n fontSize: 18,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n border: \"1px solid rgba(255,255,255,0.12)\",\n backdropFilter: \"blur(10px)\",\n WebkitBackdropFilter: \"blur(10px)\",\n boxShadow: `0 0 0 1px rgba(255,255,255,0.04), 0 0 40px ${hexWithAlpha(\n accent,\n pillGlow,\n )}, 0 12px 40px rgba(0,0,0,0.45)`,\n transform: `scale(${pillScale})`,\n }}\n >\n <span\n style={{\n width: 8,\n height: 8,\n borderRadius: 999,\n background: accent,\n boxShadow: `0 0 12px ${hexWithAlpha(accent, 0.9)}`,\n }}\n />\n {animatedPillText}\n </div>\n </div>\n </div>\n );\n}\n\n// Convert a #rrggbb to rgba(r, g, b, a). Falls back to the original string if\n// not a 6-digit hex (so users can pass a CSS color name and still get *some*\n// glow, just without alpha).\nfunction hexWithAlpha(hex: string, alpha: number): string {\n const m = /^#([0-9a-f]{6})$/i.exec(hex);\n if (!m) return hex;\n const int = parseInt(m[1], 16);\n const r = (int >> 16) & 255;\n const g = (int >> 8) & 255;\n const b = int & 255;\n return `rgba(${r}, ${g}, ${b}, ${alpha})`;\n}\n",
- "type": "registry:component",
- "target": "components/remocn/ai-generate-overlay.tsx"
- }
- ],
- "type": "registry:component"
-}
\ No newline at end of file
diff --git a/public/r/browser-flow.json b/public/r/browser-flow.json
index d4f10e59..cb7a1254 100644
--- a/public/r/browser-flow.json
+++ b/public/r/browser-flow.json
@@ -9,7 +9,7 @@
"files": [
{
"path": "registry/remocn/browser-flow/index.tsx",
- "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface BrowserFlowProps {\n url?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\nconst MONO_FAMILY =\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace\";\n\nfunction MacDots({ size = 12 }: { size?: number }) {\n return (\n <div style={{ display: \"flex\", gap: 8, alignItems: \"center\" }}>\n {[\"#ff5f57\", \"#febc2e\", \"#28c840\"].map((c) => (\n <div\n key={c}\n style={{\n width: size,\n height: size,\n borderRadius: \"50%\",\n background: c,\n opacity: 0.85,\n }}\n />\n ))}\n </div>\n );\n}\n\nfunction CursorSVG() {\n return (\n <svg width=\"22\" height=\"28\" viewBox=\"0 0 22 28\" fill=\"none\">\n <path\n d=\"M2 2L2 22L7 17.5L10.5 25L13.5 23.5L10 16L17 16L2 2Z\"\n fill=\"white\"\n stroke=\"black\"\n strokeWidth=\"1.5\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction easeInOut(t: number) {\n return t < 0.5 ? 2 * t * t : 1 - (-2 * t + 2) ** 2 / 2;\n}\n\nexport function BrowserFlow({\n url = \"remocn.dev\",\n speed = 1,\n className,\n}: BrowserFlowProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n // ── Browser dimensions ────────────────────────────\n const browserWidth = 1100;\n const browserHeight = 620;\n const chromeHeight = 56;\n const browserLeft = (1280 - browserWidth) / 2;\n const browserTop = (720 - browserHeight) / 2;\n\n // ── URL typing (frames 0..40) ─────────────────────\n const typingProgress = interpolate(frame, [4, 38], [0, url.length], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const typedChars = Math.floor(typingProgress);\n const typedUrl = url.slice(0, typedChars);\n const showCaret = frame < 50 && Math.floor(frame / 12) % 2 === 0;\n\n // Autocomplete suggestion appears once a few chars typed\n const showSuggestion = typedChars >= 2 && frame < 48;\n const suggestion = url;\n\n // ── Progress bar ──────────────────────────────────\n // 40..50: 0 -> 15\n // 50..65: hold at 15\n // 65..85: 15 -> 100\n // 85..95: fade out\n let progress = 0;\n if (frame < 40) progress = 0;\n else if (frame < 50)\n progress = interpolate(frame, [40, 50], [0, 15], {\n extrapolateRight: \"clamp\",\n });\n else if (frame < 65) progress = 15;\n else if (frame < 85)\n progress = interpolate(frame, [65, 85], [15, 100], {\n extrapolateRight: \"clamp\",\n });\n else progress = 100;\n\n const progressOpacity =\n frame < 40\n ? 0\n : frame < 85\n ? 1\n : interpolate(frame, [85, 95], [1, 0], {\n extrapolateRight: \"clamp\",\n });\n\n // ── Page render ───────────────────────────────────\n const pageStart = 95;\n const pageOpacity = interpolate(frame, [pageStart, pageStart + 12], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n // ── Page scroll & cursor motion ───────────────────\n const scrollStart = 115;\n const scrollEnd = 230;\n const scrollT = interpolate(frame, [scrollStart, scrollEnd], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const scrollEased = easeInOut(scrollT);\n const maxScroll = 600;\n const scrollY = scrollEased * maxScroll;\n\n // Cursor path: starts off the address bar area, moves down toward CTA inside viewport\n // Coordinates relative to the full 1280x720 frame.\n const cursorStartX = browserLeft + 380;\n const cursorStartY = browserTop + chromeHeight + 60;\n const cursorEndX = browserLeft + browserWidth / 2;\n const cursorEndY = browserTop + chromeHeight + 380;\n\n const cursorT = interpolate(frame, [pageStart + 5, scrollEnd], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const cursorEased = easeInOut(cursorT);\n // arc bias on Y for organic feel\n const arcOffset = Math.sin(cursorEased * Math.PI) * 30;\n const cursorX =\n cursorStartX + (cursorEndX - cursorStartX) * cursorEased + arcOffset * 0.6;\n const cursorY =\n cursorStartY + (cursorEndY - cursorStartY) * cursorEased - arcOffset;\n\n // Click animation near the end\n const clickFrame = scrollEnd + 4;\n const clickSpring = spring({\n frame: frame - clickFrame,\n fps,\n config: { mass: 0.4, damping: 12, stiffness: 220 },\n durationInFrames: 18,\n });\n const cursorClickScale = interpolate(clickSpring, [0, 0.4, 1], [1, 0.85, 1], {\n extrapolateRight: \"clamp\",\n });\n const buttonClickScale =\n frame >= clickFrame\n ? interpolate(clickSpring, [0, 0.4, 1], [1, 0.98, 1], {\n extrapolateRight: \"clamp\",\n })\n : 1;\n\n // Address bar focus state (highlighted while typing)\n const addressFocused = frame < 50;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n background:\n \"radial-gradient(ellipse at center, #11141c 0%, #050505 75%)\",\n fontFamily: FONT_FAMILY,\n }}\n >\n {/* Browser window */}\n <div\n style={{\n position: \"absolute\",\n left: browserLeft,\n top: browserTop,\n width: browserWidth,\n height: browserHeight,\n borderRadius: 16,\n overflow: \"hidden\",\n background: \"#0a0a0c\",\n border: \"1px solid rgba(255,255,255,0.08)\",\n boxShadow:\n \"0 50px 120px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06)\",\n }}\n >\n {/* Chrome */}\n <div\n style={{\n position: \"relative\",\n height: chromeHeight,\n display: \"flex\",\n alignItems: \"center\",\n gap: 14,\n paddingLeft: 18,\n paddingRight: 18,\n background: \"rgba(20,20,24,0.95)\",\n borderBottom: \"1px solid rgba(255,255,255,0.06)\",\n }}\n >\n <MacDots />\n {/* nav arrows */}\n <div\n style={{\n display: \"flex\",\n gap: 6,\n marginLeft: 8,\n color: \"rgba(255,255,255,0.35)\",\n fontSize: 16,\n }}\n >\n <span>‹</span>\n <span>›</span>\n </div>\n {/* address bar */}\n <div\n style={{\n flex: 1,\n position: \"relative\",\n height: 32,\n borderRadius: 16,\n background: addressFocused\n ? \"rgba(255,255,255,0.08)\"\n : \"rgba(255,255,255,0.05)\",\n border: `1px solid ${\n addressFocused\n ? \"rgba(120,160,255,0.45)\"\n : \"rgba(255,255,255,0.07)\"\n }`,\n display: \"flex\",\n alignItems: \"center\",\n paddingLeft: 14,\n paddingRight: 14,\n fontFamily: MONO_FAMILY,\n fontSize: 13,\n color: \"rgba(255,255,255,0.85)\",\n boxShadow: addressFocused\n ? \"0 0 0 3px rgba(120,160,255,0.12)\"\n : \"none\",\n }}\n >\n <span style={{ color: \"rgba(255,255,255,0.4)\", marginRight: 8 }}>\n ⌕\n </span>\n <span>{typedUrl}</span>\n {showCaret && (\n <span\n style={{\n display: \"inline-block\",\n width: 1.5,\n height: 16,\n background: \"rgba(255,255,255,0.85)\",\n marginLeft: 1,\n }}\n />\n )}\n\n {/* Autocomplete suggestion dropdown */}\n {showSuggestion && (\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: \"calc(100% + 6px)\",\n background: \"rgba(22,22,26,0.98)\",\n border: \"1px solid rgba(255,255,255,0.08)\",\n borderRadius: 10,\n padding: \"10px 14px\",\n fontFamily: MONO_FAMILY,\n fontSize: 13,\n color: \"rgba(255,255,255,0.85)\",\n display: \"flex\",\n alignItems: \"center\",\n gap: 10,\n boxShadow: \"0 20px 50px rgba(0,0,0,0.5)\",\n zIndex: 10,\n }}\n >\n <span style={{ color: \"rgba(255,255,255,0.4)\" }}>↗</span>\n <span>\n <span style={{ color: \"white\" }}>{typedUrl}</span>\n <span style={{ color: \"rgba(255,255,255,0.4)\" }}>\n {suggestion.slice(typedChars)}\n </span>\n </span>\n </div>\n )}\n </div>\n <div style={{ width: 60 }} />\n\n {/* Progress bar */}\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n bottom: 0,\n height: 2,\n opacity: progressOpacity,\n }}\n >\n <div\n style={{\n width: `${progress}%`,\n height: \"100%\",\n background: \"linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%)\",\n boxShadow: \"0 0 8px rgba(96,165,250,0.6)\",\n }}\n />\n </div>\n </div>\n\n {/* Page viewport */}\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: chromeHeight,\n bottom: 0,\n overflow: \"hidden\",\n background: \"#0a0a0c\",\n opacity: pageOpacity,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: 0,\n transform: `translateY(${-scrollY}px)`,\n willChange: \"transform\",\n }}\n >\n {/* Header */}\n <div\n style={{\n height: 68,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n padding: \"0 60px\",\n borderBottom: \"1px solid rgba(255,255,255,0.05)\",\n }}\n >\n <div\n style={{\n fontWeight: 700,\n fontSize: 18,\n color: \"white\",\n letterSpacing: \"-0.02em\",\n }}\n >\n remocn\n </div>\n <div\n style={{\n display: \"flex\",\n gap: 28,\n fontSize: 14,\n color: \"rgba(255,255,255,0.65)\",\n }}\n >\n <span>Components</span>\n <span>Docs</span>\n <span>GitHub</span>\n </div>\n </div>\n\n {/* Hero */}\n <div\n style={{\n padding: \"100px 60px 80px\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: 24,\n alignItems: \"center\",\n textAlign: \"center\",\n }}\n >\n <div\n style={{\n fontSize: 13,\n color: \"rgba(120,160,255,0.85)\",\n fontWeight: 500,\n letterSpacing: \"0.02em\",\n }}\n >\n shadcn registry for Remotion\n </div>\n <div\n style={{\n fontSize: 64,\n fontWeight: 700,\n letterSpacing: \"-0.04em\",\n color: \"white\",\n lineHeight: 1.05,\n maxWidth: 720,\n }}\n >\n Production-ready video blocks.\n </div>\n <div\n style={{\n fontSize: 17,\n color: \"rgba(255,255,255,0.6)\",\n maxWidth: 520,\n lineHeight: 1.5,\n }}\n >\n Drop-in animations, transitions, and backgrounds for Remotion.\n Own your code.\n </div>\n\n {/* CTA — clicked at the end */}\n <button\n type=\"button\"\n style={{\n marginTop: 12,\n padding: \"16px 32px\",\n borderRadius: 12,\n background: \"white\",\n color: \"#0a0a0c\",\n fontFamily: FONT_FAMILY,\n fontSize: 15,\n fontWeight: 600,\n border: \"none\",\n transform: `scale(${buttonClickScale})`,\n boxShadow:\n frame >= clickFrame\n ? \"0 0 0 6px rgba(255,255,255,0.08)\"\n : \"0 10px 30px rgba(255,255,255,0.1)\",\n willChange: \"transform\",\n }}\n >\n Browse components →\n </button>\n </div>\n\n {/* Sections */}\n {[\n { title: \"Typography\", color: \"#3b82f6\" },\n { title: \"Backgrounds\", color: \"#a855f7\" },\n { title: \"Transitions\", color: \"#22c55e\" },\n ].map((s) => (\n <div\n key={s.title}\n style={{\n margin: \"40px 60px\",\n padding: \"40px\",\n borderRadius: 16,\n background:\n \"linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%)\",\n border: \"1px solid rgba(255,255,255,0.06)\",\n display: \"flex\",\n alignItems: \"center\",\n gap: 28,\n }}\n >\n <div\n style={{\n width: 64,\n height: 64,\n borderRadius: 14,\n background: `${s.color}22`,\n border: `1px solid ${s.color}55`,\n }}\n />\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n gap: 6,\n }}\n >\n <div\n style={{\n fontSize: 22,\n fontWeight: 600,\n color: \"white\",\n letterSpacing: \"-0.02em\",\n }}\n >\n {s.title}\n </div>\n <div\n style={{\n fontSize: 14,\n color: \"rgba(255,255,255,0.55)\",\n }}\n >\n Hand-tuned primitives, copied straight into your project.\n </div>\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n\n {/* Virtual cursor */}\n {frame >= pageStart && (\n <div\n style={{\n position: \"absolute\",\n left: cursorX,\n top: cursorY,\n transform: `scale(${cursorClickScale})`,\n transformOrigin: \"top left\",\n zIndex: 9999,\n filter: \"drop-shadow(0 4px 8px rgba(0,0,0,0.5))\",\n willChange: \"transform\",\n }}\n >\n <CursorSVG />\n </div>\n )}\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface BrowserFlowProps {\n url?: string;\n speed?: number;\n className?: string;\n /**\n * CSS background for the scene behind the browser window. Accepts any\n * `background` shorthand value (color, gradient, `url(...)`, or a layered\n * combination). Defaults to the dark radial gradient.\n */\n background?: string;\n}\n\nconst DEFAULT_BACKGROUND =\n \"radial-gradient(ellipse at center, #11141c 0%, #050505 75%)\";\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\nconst MONO_FAMILY =\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace\";\n\nfunction MacDots({ size = 12 }: { size?: number }) {\n return (\n <div style={{ display: \"flex\", gap: 8, alignItems: \"center\" }}>\n {[\"#ff5f57\", \"#febc2e\", \"#28c840\"].map((c) => (\n <div\n key={c}\n style={{\n width: size,\n height: size,\n borderRadius: \"50%\",\n background: c,\n opacity: 0.85,\n }}\n />\n ))}\n </div>\n );\n}\n\nfunction CursorSVG() {\n return (\n <svg width=\"22\" height=\"28\" viewBox=\"0 0 22 28\" fill=\"none\">\n <path\n d=\"M2 2L2 22L7 17.5L10.5 25L13.5 23.5L10 16L17 16L2 2Z\"\n fill=\"white\"\n stroke=\"black\"\n strokeWidth=\"1.5\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction easeInOut(t: number) {\n return t < 0.5 ? 2 * t * t : 1 - (-2 * t + 2) ** 2 / 2;\n}\n\nexport function BrowserFlow({\n url = \"remocn.dev\",\n speed = 1,\n className,\n background = DEFAULT_BACKGROUND,\n}: BrowserFlowProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n // ── Browser dimensions ────────────────────────────\n const browserWidth = 1100;\n const browserHeight = 620;\n const chromeHeight = 56;\n const browserLeft = (1280 - browserWidth) / 2;\n const browserTop = (720 - browserHeight) / 2;\n\n // ── URL typing (frames 0..40) ─────────────────────\n const typingProgress = interpolate(frame, [4, 38], [0, url.length], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const typedChars = Math.floor(typingProgress);\n const typedUrl = url.slice(0, typedChars);\n const showCaret = frame < 50 && Math.floor(frame / 12) % 2 === 0;\n\n // Autocomplete suggestion appears once a few chars typed\n const showSuggestion = typedChars >= 2 && frame < 48;\n const suggestion = url;\n\n // ── Progress bar ──────────────────────────────────\n // 40..50: 0 -> 15\n // 50..65: hold at 15\n // 65..85: 15 -> 100\n // 85..95: fade out\n let progress = 0;\n if (frame < 40) progress = 0;\n else if (frame < 50)\n progress = interpolate(frame, [40, 50], [0, 15], {\n extrapolateRight: \"clamp\",\n });\n else if (frame < 65) progress = 15;\n else if (frame < 85)\n progress = interpolate(frame, [65, 85], [15, 100], {\n extrapolateRight: \"clamp\",\n });\n else progress = 100;\n\n const progressOpacity =\n frame < 40\n ? 0\n : frame < 85\n ? 1\n : interpolate(frame, [85, 95], [1, 0], {\n extrapolateRight: \"clamp\",\n });\n\n // ── Page render ───────────────────────────────────\n const pageStart = 95;\n const pageOpacity = interpolate(frame, [pageStart, pageStart + 12], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n // ── Page scroll & cursor motion ───────────────────\n const scrollStart = 115;\n const scrollEnd = 230;\n const scrollT = interpolate(frame, [scrollStart, scrollEnd], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const scrollEased = easeInOut(scrollT);\n const maxScroll = 600;\n const scrollY = scrollEased * maxScroll;\n\n // Cursor path: starts off the address bar area, moves down toward CTA inside viewport\n // Coordinates relative to the full 1280x720 frame.\n const cursorStartX = browserLeft + 380;\n const cursorStartY = browserTop + chromeHeight + 60;\n const cursorEndX = browserLeft + browserWidth / 2;\n const cursorEndY = browserTop + chromeHeight + 380;\n\n const cursorT = interpolate(frame, [pageStart + 5, scrollEnd], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const cursorEased = easeInOut(cursorT);\n // arc bias on Y for organic feel\n const arcOffset = Math.sin(cursorEased * Math.PI) * 30;\n const cursorX =\n cursorStartX + (cursorEndX - cursorStartX) * cursorEased + arcOffset * 0.6;\n const cursorY =\n cursorStartY + (cursorEndY - cursorStartY) * cursorEased - arcOffset;\n\n // Click animation near the end\n const clickFrame = scrollEnd + 4;\n const clickSpring = spring({\n frame: frame - clickFrame,\n fps,\n config: { mass: 0.4, damping: 12, stiffness: 220 },\n durationInFrames: 18,\n });\n const cursorClickScale = interpolate(clickSpring, [0, 0.4, 1], [1, 0.85, 1], {\n extrapolateRight: \"clamp\",\n });\n const buttonClickScale =\n frame >= clickFrame\n ? interpolate(clickSpring, [0, 0.4, 1], [1, 0.98, 1], {\n extrapolateRight: \"clamp\",\n })\n : 1;\n\n // Address bar focus state (highlighted while typing)\n const addressFocused = frame < 50;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n background,\n fontFamily: FONT_FAMILY,\n }}\n >\n {/* Browser window */}\n <div\n style={{\n position: \"absolute\",\n left: browserLeft,\n top: browserTop,\n width: browserWidth,\n height: browserHeight,\n borderRadius: 16,\n overflow: \"hidden\",\n background: \"#0a0a0c\",\n border: \"1px solid rgba(255,255,255,0.08)\",\n boxShadow:\n \"0 50px 120px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06)\",\n }}\n >\n {/* Chrome */}\n <div\n style={{\n position: \"relative\",\n height: chromeHeight,\n display: \"flex\",\n alignItems: \"center\",\n gap: 14,\n paddingLeft: 18,\n paddingRight: 18,\n background: \"rgba(20,20,24,0.95)\",\n borderBottom: \"1px solid rgba(255,255,255,0.06)\",\n }}\n >\n <MacDots />\n {/* nav arrows */}\n <div\n style={{\n display: \"flex\",\n gap: 6,\n marginLeft: 8,\n color: \"rgba(255,255,255,0.35)\",\n fontSize: 16,\n }}\n >\n <span>‹</span>\n <span>›</span>\n </div>\n {/* address bar */}\n <div\n style={{\n flex: 1,\n position: \"relative\",\n height: 32,\n borderRadius: 16,\n background: addressFocused\n ? \"rgba(255,255,255,0.08)\"\n : \"rgba(255,255,255,0.05)\",\n border: `1px solid ${\n addressFocused\n ? \"rgba(120,160,255,0.45)\"\n : \"rgba(255,255,255,0.07)\"\n }`,\n display: \"flex\",\n alignItems: \"center\",\n paddingLeft: 14,\n paddingRight: 14,\n fontFamily: MONO_FAMILY,\n fontSize: 13,\n color: \"rgba(255,255,255,0.85)\",\n boxShadow: addressFocused\n ? \"0 0 0 3px rgba(120,160,255,0.12)\"\n : \"none\",\n }}\n >\n <span style={{ color: \"rgba(255,255,255,0.4)\", marginRight: 8 }}>\n ⌕\n </span>\n <span>{typedUrl}</span>\n {showCaret && (\n <span\n style={{\n display: \"inline-block\",\n width: 1.5,\n height: 16,\n background: \"rgba(255,255,255,0.85)\",\n marginLeft: 1,\n }}\n />\n )}\n\n {/* Autocomplete suggestion dropdown */}\n {showSuggestion && (\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: \"calc(100% + 6px)\",\n background: \"rgba(22,22,26,0.98)\",\n border: \"1px solid rgba(255,255,255,0.08)\",\n borderRadius: 10,\n padding: \"10px 14px\",\n fontFamily: MONO_FAMILY,\n fontSize: 13,\n color: \"rgba(255,255,255,0.85)\",\n display: \"flex\",\n alignItems: \"center\",\n gap: 10,\n boxShadow: \"0 20px 50px rgba(0,0,0,0.5)\",\n zIndex: 10,\n }}\n >\n <span style={{ color: \"rgba(255,255,255,0.4)\" }}>↗</span>\n <span>\n <span style={{ color: \"white\" }}>{typedUrl}</span>\n <span style={{ color: \"rgba(255,255,255,0.4)\" }}>\n {suggestion.slice(typedChars)}\n </span>\n </span>\n </div>\n )}\n </div>\n <div style={{ width: 60 }} />\n\n {/* Progress bar */}\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n bottom: 0,\n height: 2,\n opacity: progressOpacity,\n }}\n >\n <div\n style={{\n width: `${progress}%`,\n height: \"100%\",\n background: \"linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%)\",\n boxShadow: \"0 0 8px rgba(96,165,250,0.6)\",\n }}\n />\n </div>\n </div>\n\n {/* Page viewport */}\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: chromeHeight,\n bottom: 0,\n overflow: \"hidden\",\n background: \"#0a0a0c\",\n opacity: pageOpacity,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: 0,\n transform: `translateY(${-scrollY}px)`,\n willChange: \"transform\",\n }}\n >\n {/* Header */}\n <div\n style={{\n height: 68,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n padding: \"0 60px\",\n borderBottom: \"1px solid rgba(255,255,255,0.05)\",\n }}\n >\n <div\n style={{\n fontWeight: 700,\n fontSize: 18,\n color: \"white\",\n letterSpacing: \"-0.02em\",\n }}\n >\n remocn\n </div>\n <div\n style={{\n display: \"flex\",\n gap: 28,\n fontSize: 14,\n color: \"rgba(255,255,255,0.65)\",\n }}\n >\n <span>Components</span>\n <span>Docs</span>\n <span>GitHub</span>\n </div>\n </div>\n\n {/* Hero */}\n <div\n style={{\n padding: \"100px 60px 80px\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: 24,\n alignItems: \"center\",\n textAlign: \"center\",\n }}\n >\n <div\n style={{\n fontSize: 13,\n color: \"rgba(120,160,255,0.85)\",\n fontWeight: 500,\n letterSpacing: \"0.02em\",\n }}\n >\n shadcn registry for Remotion\n </div>\n <div\n style={{\n fontSize: 64,\n fontWeight: 700,\n letterSpacing: \"-0.04em\",\n color: \"white\",\n lineHeight: 1.05,\n maxWidth: 720,\n }}\n >\n Production-ready video blocks.\n </div>\n <div\n style={{\n fontSize: 17,\n color: \"rgba(255,255,255,0.6)\",\n maxWidth: 520,\n lineHeight: 1.5,\n }}\n >\n Drop-in animations, transitions, and backgrounds for Remotion.\n Own your code.\n </div>\n\n {/* CTA — clicked at the end */}\n <button\n type=\"button\"\n style={{\n marginTop: 12,\n padding: \"16px 32px\",\n borderRadius: 12,\n background: \"white\",\n color: \"#0a0a0c\",\n fontFamily: FONT_FAMILY,\n fontSize: 15,\n fontWeight: 600,\n border: \"none\",\n transform: `scale(${buttonClickScale})`,\n boxShadow:\n frame >= clickFrame\n ? \"0 0 0 6px rgba(255,255,255,0.08)\"\n : \"0 10px 30px rgba(255,255,255,0.1)\",\n willChange: \"transform\",\n }}\n >\n Browse components →\n </button>\n </div>\n\n {/* Sections */}\n {[\n { title: \"Typography\", color: \"#3b82f6\" },\n { title: \"Backgrounds\", color: \"#a855f7\" },\n { title: \"Transitions\", color: \"#22c55e\" },\n ].map((s) => (\n <div\n key={s.title}\n style={{\n margin: \"40px 60px\",\n padding: \"40px\",\n borderRadius: 16,\n background:\n \"linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%)\",\n border: \"1px solid rgba(255,255,255,0.06)\",\n display: \"flex\",\n alignItems: \"center\",\n gap: 28,\n }}\n >\n <div\n style={{\n width: 64,\n height: 64,\n borderRadius: 14,\n background: `${s.color}22`,\n border: `1px solid ${s.color}55`,\n }}\n />\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n gap: 6,\n }}\n >\n <div\n style={{\n fontSize: 22,\n fontWeight: 600,\n color: \"white\",\n letterSpacing: \"-0.02em\",\n }}\n >\n {s.title}\n </div>\n <div\n style={{\n fontSize: 14,\n color: \"rgba(255,255,255,0.55)\",\n }}\n >\n Hand-tuned primitives, copied straight into your project.\n </div>\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n\n {/* Virtual cursor */}\n {frame >= pageStart && (\n <div\n style={{\n position: \"absolute\",\n left: cursorX,\n top: cursorY,\n transform: `scale(${cursorClickScale})`,\n transformOrigin: \"top left\",\n zIndex: 9999,\n filter: \"drop-shadow(0 4px 8px rgba(0,0,0,0.5))\",\n willChange: \"transform\",\n }}\n >\n <CursorSVG />\n </div>\n )}\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/browser-flow.tsx"
}
diff --git a/public/r/brush-stroke-simulator.json b/public/r/brush-stroke-simulator.json
deleted file mode 100644
index f66a7146..00000000
--- a/public/r/brush-stroke-simulator.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
- "name": "brush-stroke-simulator",
- "title": "Brush Stroke Simulator",
- "description": "A simulated finger brushes across an image, revealing a pixelated layer along its bezier path.",
- "dependencies": [
- "remotion"
- ],
- "files": [
- {
- "path": "registry/remocn/brush-stroke-simulator/index.tsx",
- "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface BrushStrokeSimulatorProps {\n /** Brush stroke width in pixels. */\n brushSize?: number;\n /** Cursor fill color (semi-transparent). */\n cursorColor?: string;\n /** Outer page background. */\n background?: string;\n /** Primary tint of the simulated portrait base. */\n baseColorA?: string;\n /** Secondary tint of the simulated portrait base. */\n baseColorB?: string;\n /** Tint of the obscured / pixelated overlay. */\n overlayColor?: string;\n /** Frame at which the brushing motion begins. */\n startFrame?: number;\n /** How many frames the brush takes to complete its sweep. */\n sweepDuration?: number;\n /** Playback speed multiplier. */\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nconst STAGE_W = 1280;\nconst STAGE_H = 720;\n\n/**\n * Two faces' worth of waypoints — sweeps left face, lifts, sweeps right face.\n * Y values cluster around the upper-middle of the frame so it reads like\n * brushing across the eyes/cheeks of a portrait.\n */\nconst WAYPOINTS: { x: number; y: number; press: boolean }[] = [\n { x: 280, y: 280, press: true },\n { x: 460, y: 260, press: true },\n { x: 460, y: 360, press: true },\n { x: 280, y: 380, press: true },\n // Lift between faces\n { x: 640, y: 220, press: false },\n // Right face\n { x: 820, y: 280, press: true },\n { x: 1000, y: 260, press: true },\n { x: 1000, y: 360, press: true },\n { x: 820, y: 380, press: true },\n];\n\nfunction cubicBezier(\n t: number,\n p0: { x: number; y: number },\n p1: { x: number; y: number },\n p2: { x: number; y: number },\n p3: { x: number; y: number },\n) {\n const u = 1 - t;\n const tt = t * t;\n const uu = u * u;\n const uuu = uu * u;\n const ttt = tt * t;\n return {\n x: uuu * p0.x + 3 * uu * t * p1.x + 3 * u * tt * p2.x + ttt * p3.x,\n y: uuu * p0.y + 3 * uu * t * p1.y + 3 * u * tt * p2.y + ttt * p3.y,\n };\n}\n\nfunction easeInOut(t: number) {\n return t < 0.5 ? 2 * t * t : 1 - Math.pow(-2 * t + 2, 2) / 2;\n}\n\nfunction controlsFor(\n a: { x: number; y: number },\n b: { x: number; y: number },\n index: number,\n) {\n const dx = b.x - a.x;\n const dy = b.y - a.y;\n const len = Math.hypot(dx, dy) || 1;\n const sign = index % 2 === 0 ? 1 : -1;\n const px = (-dy / len) * (len * 0.18) * sign;\n const py = (dx / len) * (len * 0.18) * sign;\n return [\n { x: a.x + dx / 3 + px, y: a.y + dy / 3 + py },\n { x: a.x + (2 * dx) / 3 + px, y: a.y + (2 * dy) / 3 + py },\n ];\n}\n\n/**\n * Walks the bezier path up to the given progress (0..1) and returns:\n * - the active position\n * - whether the brush is currently \"pressed\" (between two press waypoints)\n * - a sampled trail of every position visited so far (for the reveal mask)\n */\nfunction sampleBrushPath(progress: number) {\n const segments = WAYPOINTS.length - 1;\n const samplesPerSegment = 14;\n const totalSamples = segments * samplesPerSegment;\n const reachedSamples = Math.max(\n 1,\n Math.min(totalSamples, Math.floor(progress * totalSamples)),\n );\n\n const trail: { x: number; y: number; press: boolean }[] = [];\n let pos = { x: WAYPOINTS[0].x, y: WAYPOINTS[0].y };\n let pressed = WAYPOINTS[0].press;\n\n for (let i = 0; i < reachedSamples; i++) {\n const segIdx = Math.min(segments - 1, Math.floor(i / samplesPerSegment));\n const localT = (i % samplesPerSegment) / samplesPerSegment;\n const a = WAYPOINTS[segIdx];\n const b = WAYPOINTS[segIdx + 1];\n const [c1, c2] = controlsFor(a, b, segIdx);\n const t = easeInOut(localT);\n pos = cubicBezier(t, a, c1, c2, b);\n pressed = a.press && b.press;\n trail.push({ x: pos.x, y: pos.y, press: pressed });\n }\n\n return { pos, pressed, trail };\n}\n\nexport function BrushStrokeSimulator({\n brushSize = 70,\n cursorColor = \"rgba(255,255,255,0.45)\",\n background = \"#0a0a0a\",\n baseColorA = \"#f4a261\",\n baseColorB = \"#e76f51\",\n overlayColor = \"#1f1f23\",\n startFrame = 12,\n sweepDuration = 150,\n speed = 1,\n className,\n}: BrushStrokeSimulatorProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const localFrame = Math.max(0, frame - startFrame);\n const progress = Math.min(1, localFrame / sweepDuration);\n\n const { pos, pressed, trail } = sampleBrushPath(progress);\n\n // Press scale: cursor shrinks slightly while pressing onto the surface.\n const pressTarget = pressed ? 0.86 : 1;\n const pressSpring = spring({\n frame: localFrame,\n fps,\n config: { damping: 18, stiffness: 220, mass: 0.6 },\n });\n const cursorScale = interpolate(pressSpring, [0, 1], [1, pressTarget]);\n\n // Build SVG path d-attribute from the accumulated trail.\n const maskPathD =\n trail.length === 0\n ? \"\"\n : trail\n .map((p, i) => `${i === 0 ? \"M\" : \"L\"} ${p.x.toFixed(2)} ${p.y.toFixed(2)}`)\n .join(\" \");\n\n // Tiny intro fade so the scene \"lands\" before the brush starts.\n const introOpacity = interpolate(frame, [0, 8], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n background,\n fontFamily: FONT_FAMILY,\n opacity: introOpacity,\n }}\n >\n {/* Sharp base layer — fake portrait built from radial gradients */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: `\n radial-gradient(circle at 27% 45%, ${baseColorA} 0%, transparent 28%),\n radial-gradient(circle at 67% 45%, ${baseColorA} 0%, transparent 28%),\n radial-gradient(circle at 47% 70%, ${baseColorB} 0%, transparent 55%),\n linear-gradient(160deg, #2a1a14 0%, #1a0f0a 100%)\n `,\n }}\n />\n\n {/* Eye / detail dots so the unbrushed area reads as \"faces\" */}\n <FaceDots />\n\n {/* Pixelated overlay — the layer the brush \"reveals\" through the mask */}\n <svg\n width=\"100%\"\n height=\"100%\"\n viewBox={`0 0 ${STAGE_W} ${STAGE_H}`}\n style={{ position: \"absolute\", inset: 0, pointerEvents: \"none\" }}\n >\n <defs>\n <mask id=\"brush-reveal-mask\" maskUnits=\"userSpaceOnUse\">\n <rect width={STAGE_W} height={STAGE_H} fill=\"white\" />\n {maskPathD && (\n <path\n d={maskPathD}\n stroke=\"black\"\n strokeWidth={brushSize}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n fill=\"none\"\n />\n )}\n </mask>\n <pattern\n id=\"pixel-overlay\"\n x=\"0\"\n y=\"0\"\n width=\"32\"\n height=\"32\"\n patternUnits=\"userSpaceOnUse\"\n >\n <rect width=\"32\" height=\"32\" fill={overlayColor} />\n <rect width=\"16\" height=\"16\" fill=\"rgba(255,255,255,0.04)\" />\n <rect x=\"16\" y=\"16\" width=\"16\" height=\"16\" fill=\"rgba(0,0,0,0.25)\" />\n </pattern>\n </defs>\n <rect\n width={STAGE_W}\n height={STAGE_H}\n fill=\"url(#pixel-overlay)\"\n mask=\"url(#brush-reveal-mask)\"\n />\n </svg>\n\n {/* Cursor / fingertip */}\n <div\n style={{\n position: \"absolute\",\n left: pos.x - brushSize / 2,\n top: pos.y - brushSize / 2,\n width: brushSize,\n height: brushSize,\n borderRadius: \"50%\",\n background: cursorColor,\n border: \"1.5px solid rgba(255,255,255,0.85)\",\n boxShadow:\n \"0 8px 24px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.15)\",\n transform: `scale(${cursorScale})`,\n transformOrigin: \"center\",\n pointerEvents: \"none\",\n zIndex: 9999,\n }}\n />\n </div>\n );\n}\n\nfunction FaceDots() {\n return (\n <svg\n width=\"100%\"\n height=\"100%\"\n viewBox={`0 0 ${STAGE_W} ${STAGE_H}`}\n style={{ position: \"absolute\", inset: 0, pointerEvents: \"none\" }}\n >\n {/* Left face */}\n <circle cx=\"320\" cy=\"300\" r=\"10\" fill=\"rgba(0,0,0,0.55)\" />\n <circle cx=\"420\" cy=\"300\" r=\"10\" fill=\"rgba(0,0,0,0.55)\" />\n <path\n d=\"M310 360 Q370 390 430 360\"\n stroke=\"rgba(0,0,0,0.55)\"\n strokeWidth=\"6\"\n fill=\"none\"\n strokeLinecap=\"round\"\n />\n {/* Right face */}\n <circle cx=\"860\" cy=\"300\" r=\"10\" fill=\"rgba(0,0,0,0.55)\" />\n <circle cx=\"960\" cy=\"300\" r=\"10\" fill=\"rgba(0,0,0,0.55)\" />\n <path\n d=\"M850 360 Q910 390 970 360\"\n stroke=\"rgba(0,0,0,0.55)\"\n strokeWidth=\"6\"\n fill=\"none\"\n strokeLinecap=\"round\"\n />\n </svg>\n );\n}\n",
- "type": "registry:component",
- "target": "components/remocn/brush-stroke-simulator.tsx"
- }
- ],
- "type": "registry:component"
-}
\ No newline at end of file
diff --git a/public/r/changelog-bite.json b/public/r/changelog-bite.json
deleted file mode 100644
index e90f2c1c..00000000
--- a/public/r/changelog-bite.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
- "name": "changelog-bite",
- "title": "Changelog Bite",
- "description": "Seamlessly looping square card showing a before/after diff with a frosted glass wipe and a pulsing New pill.",
- "dependencies": [
- "remotion"
- ],
- "files": [
- {
- "path": "registry/remocn/changelog-bite/index.tsx",
- "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport {\n AbsoluteFill,\n Easing,\n interpolate,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface ChangelogBiteProps {\n label?: string;\n title?: string;\n oldContent?: ReactNode;\n newContent?: ReactNode;\n format?: \"square\" | \"portrait\";\n background?: string;\n cardBackground?: string;\n accent?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\nconst MONO_FAMILY =\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace\";\n\nconst SOFT = Easing.bezier(0.16, 1, 0.3, 1);\n\nexport function ChangelogBite({\n label = \"New\",\n title = \"Inline diff view\",\n oldContent,\n newContent,\n format = \"square\",\n background = \"#141318\",\n cardBackground = \"rgba(20, 19, 24, 0.92)\",\n accent = \"#FFB38E\",\n speed = 1,\n className,\n}: ChangelogBiteProps) {\n const frame = useCurrentFrame() * speed;\n const { fps, durationInFrames } = useVideoConfig();\n\n // ── Card scale/opacity envelope (loop seam) ─────────────────────────────\n // First 10 frames: 0.95 → 1.0, 0 → 1\n // Last 15 frames: 1.0 → 0.95, 1 → 0\n // The match means a flat-cut from final to first frame is invisible.\n const enterT = interpolate(frame, [0, 10], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: SOFT,\n });\n const exitT = interpolate(\n frame,\n [durationInFrames - 15, durationInFrames - 1],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\", easing: SOFT },\n );\n const cardScale = 0.95 + enterT * 0.05 - exitT * 0.05;\n const cardOpacity = enterT * (1 - exitT);\n\n // ── Wipe progress (frosted glass + clip) ────────────────────────────────\n const wipe = spring({\n frame: frame - 60,\n fps,\n config: { damping: 18, mass: 0.9, stiffness: 90 },\n durationInFrames: 50,\n });\n const wipePct = wipe * 100;\n\n // ── Aspect-driven inner card sizing ─────────────────────────────────────\n const isSquare = format === \"square\";\n const cardWidth = isSquare ? 880 : 880;\n const cardHeight = isSquare ? 880 : 1100;\n\n const oldNode = oldContent ?? <DefaultOldPanel accent={accent} />;\n const newNode = newContent ?? <DefaultNewPanel accent={accent} />;\n\n return (\n <AbsoluteFill\n className={className}\n style={{\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontFamily: FONT_FAMILY,\n }}\n >\n <div\n style={{\n width: cardWidth,\n height: cardHeight,\n borderRadius: 56,\n background: cardBackground,\n border: `1px solid ${accent}33`,\n boxShadow: `0 30px 120px ${accent}22, 0 0 0 1px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.06)`,\n opacity: cardOpacity,\n transform: `scale(${cardScale})`,\n transformOrigin: \"center\",\n willChange: \"transform, opacity\",\n padding: 56,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 28,\n position: \"relative\",\n overflow: \"hidden\",\n }}\n >\n {/* Header row: title + New pill */}\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n }}\n >\n <div\n style={{\n color: \"rgba(255,255,255,0.55)\",\n fontSize: 22,\n letterSpacing: \"0.02em\",\n }}\n >\n {title}\n </div>\n <PulsingPill label={label} color={accent} speed={speed} />\n </div>\n\n {/* Diff stage */}\n <div\n style={{\n position: \"relative\",\n flex: 1,\n borderRadius: 32,\n overflow: \"hidden\",\n background: \"rgba(8,7,12,0.6)\",\n border: \"1px solid rgba(255,255,255,0.05)\",\n }}\n >\n {/* New (bottom layer) */}\n <div style={{ position: \"absolute\", inset: 0 }}>{newNode}</div>\n\n {/* Old (top layer, clipped left-to-right) */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n clipPath: `inset(0 ${wipePct}% 0 0)`,\n willChange: \"clip-path\",\n }}\n >\n {oldNode}\n </div>\n\n {/* Frosted glass shutter sweeping over the seam */}\n {wipePct > 0 && wipePct < 100 && (\n <div\n style={{\n position: \"absolute\",\n top: 0,\n bottom: 0,\n left: `calc(${wipePct}% - 60px)`,\n width: 120,\n background:\n \"linear-gradient(90deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.0) 100%)\",\n backdropFilter: \"blur(18px)\",\n WebkitBackdropFilter: \"blur(18px)\",\n pointerEvents: \"none\",\n }}\n />\n )}\n\n {/* Subtle accent seam line */}\n {wipePct > 0 && wipePct < 100 && (\n <div\n style={{\n position: \"absolute\",\n top: 0,\n bottom: 0,\n left: `${wipePct}%`,\n width: 1.5,\n background: accent,\n opacity: 0.55,\n boxShadow: `0 0 18px ${accent}aa`,\n pointerEvents: \"none\",\n }}\n />\n )}\n </div>\n\n {/* Footer caption — labels swap mid-wipe */}\n <div\n style={{\n display: \"flex\",\n justifyContent: \"space-between\",\n color: \"rgba(255,255,255,0.4)\",\n fontSize: 16,\n fontFamily: MONO_FAMILY,\n }}\n >\n <span style={{ opacity: 1 - wipe }}>before</span>\n <span style={{ opacity: wipe }}>after</span>\n </div>\n </div>\n </AbsoluteFill>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Default content */\n/* -------------------------------------------------------------------------- */\n\nfunction DefaultOldPanel({ accent }: { accent: string }) {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: \"#0a090e\",\n padding: \"44px 52px\",\n fontFamily: MONO_FAMILY,\n color: \"#71717a\",\n fontSize: 22,\n lineHeight: 1.55,\n whiteSpace: \"pre\",\n }}\n >\n <div>{\"function diff(a, b) {\"}</div>\n <div>{\" if (a === b) return null;\"}</div>\n <div>{\" return {\"}</div>\n <div>{\" before: a,\"}</div>\n <div>{\" after: b,\"}</div>\n <div>{\" };\"}</div>\n <div>{\"}\"}</div>\n <div\n style={{\n marginTop: 24,\n display: \"inline-block\",\n padding: \"6px 14px\",\n borderRadius: 999,\n background: \"rgba(239,68,68,0.12)\",\n border: \"1px solid rgba(239,68,68,0.35)\",\n color: \"#ef4444\",\n fontSize: 13,\n letterSpacing: \"0.12em\",\n fontWeight: 700,\n }}\n >\n BEFORE\n </div>\n {/* swallow lint */}\n <span style={{ display: \"none\" }}>{accent}</span>\n </div>\n );\n}\n\nfunction DefaultNewPanel({ accent }: { accent: string }) {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background:\n \"radial-gradient(ellipse at 50% 30%, rgba(255,179,142,0.10) 0%, rgba(10,9,14,1) 70%)\",\n padding: \"44px 52px\",\n fontFamily: MONO_FAMILY,\n color: \"#e4e4e7\",\n fontSize: 22,\n lineHeight: 1.55,\n whiteSpace: \"pre\",\n }}\n >\n <div>\n <span style={{ color: \"#c4b5fd\" }}>function</span>{\" \"}\n <span style={{ color: \"#fcd34d\" }}>diff</span>\n {\"(a, b) {\"}\n </div>\n <div>\n {\" return \"}\n <span style={{ color: \"#86efac\" }}>visualDiff</span>\n {\"(a, b);\"}\n </div>\n <div>{\"}\"}</div>\n <div\n style={{\n marginTop: 24,\n display: \"inline-block\",\n padding: \"6px 14px\",\n borderRadius: 999,\n background: `${accent}1a`,\n border: `1px solid ${accent}55`,\n color: accent,\n fontSize: 13,\n letterSpacing: \"0.12em\",\n fontWeight: 700,\n }}\n >\n AFTER\n </div>\n </div>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Pulsing pill */\n/* -------------------------------------------------------------------------- */\n\nfunction PulsingPill({\n label,\n color,\n speed,\n}: {\n label: string;\n color: string;\n speed: number;\n}) {\n const frame = useCurrentFrame() * speed;\n const wave = (Math.sin(frame / 8) + 1) / 2;\n const dotScale = 0.92 + wave * 0.16;\n const ringPhase = (frame % 60) / 60;\n const ringScale = 1 + ringPhase * 1.6;\n const ringOpacity = (1 - ringPhase) * 0.6;\n\n return (\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 12,\n padding: \"10px 18px 10px 14px\",\n borderRadius: 999,\n background: `${color}1a`,\n border: `1px solid ${color}55`,\n color,\n fontSize: 16,\n fontWeight: 600,\n letterSpacing: \"0.02em\",\n }}\n >\n <div style={{ position: \"relative\", width: 12, height: 12 }}>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n borderRadius: \"50%\",\n background: color,\n opacity: ringOpacity,\n transform: `scale(${ringScale})`,\n }}\n />\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n borderRadius: \"50%\",\n background: color,\n transform: `scale(${dotScale})`,\n }}\n />\n </div>\n {label}\n </div>\n );\n}\n",
- "type": "registry:component",
- "target": "components/remocn/changelog-bite.tsx"
- }
- ],
- "type": "registry:component"
-}
\ No newline at end of file
diff --git a/public/r/cursor-flow.json b/public/r/cursor-flow.json
deleted file mode 100644
index 63a95eab..00000000
--- a/public/r/cursor-flow.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
- "name": "cursor-flow",
- "title": "Cursor Flow",
- "description": "A realistic mouse that arcs along cubic Bezier paths, pauses, and clicks targets that dip in response.",
- "dependencies": [
- "remotion"
- ],
- "files": [
- {
- "path": "registry/remocn/cursor-flow/index.tsx",
- "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface CursorWaypoint {\n x: number;\n y: number;\n /** If set, the cursor will pause here for this many frames before moving on. */\n hold?: number;\n /** If true, a click animation will fire when the cursor reaches this point. */\n click?: boolean;\n /** Optional label rendered next to the click target. */\n label?: string;\n}\n\nexport interface CursorFlowProps {\n waypoints?: CursorWaypoint[];\n cursorColor?: string;\n cursorSize?: number;\n segmentDuration?: number;\n background?: string;\n showTargets?: boolean;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nconst DEFAULT_WAYPOINTS: CursorWaypoint[] = [\n { x: 200, y: 180 },\n { x: 540, y: 240, click: true, label: \"Generate\" },\n { x: 880, y: 360, hold: 8 },\n { x: 1040, y: 520, click: true, label: \"Publish\" },\n];\n\n/**\n * Cubic Bezier evaluator. Two control points are derived per segment so the\n * trajectory always has a \"belly\" — straight lines between two points are\n * specifically the look we want to avoid.\n */\nfunction cubicBezier(\n t: number,\n p0: { x: number; y: number },\n p1: { x: number; y: number },\n p2: { x: number; y: number },\n p3: { x: number; y: number },\n) {\n const u = 1 - t;\n const tt = t * t;\n const uu = u * u;\n const uuu = uu * u;\n const ttt = tt * t;\n return {\n x: uuu * p0.x + 3 * uu * t * p1.x + 3 * u * tt * p2.x + ttt * p3.x,\n y: uuu * p0.y + 3 * uu * t * p1.y + 3 * u * tt * p2.y + ttt * p3.y,\n };\n}\n\n/** Apple-flavoured ease for in-segment motion: slow start, slow end. */\nfunction easeInOut(t: number) {\n return t < 0.5 ? 2 * t * t : 1 - Math.pow(-2 * t + 2, 2) / 2;\n}\n\n/** Per-segment control points: midpoint perpendicular offset gives a natural arc. */\nfunction controlsFor(\n a: { x: number; y: number },\n b: { x: number; y: number },\n index: number,\n) {\n const dx = b.x - a.x;\n const dy = b.y - a.y;\n const len = Math.hypot(dx, dy) || 1;\n // Perpendicular unit vector. Alternate sign per segment so the path snakes\n // instead of always bulging the same way.\n const sign = index % 2 === 0 ? 1 : -1;\n const px = (-dy / len) * (len * 0.18) * sign;\n const py = (dx / len) * (len * 0.18) * sign;\n // Place control points at 1/3 and 2/3 along the chord, offset perpendicular.\n return [\n { x: a.x + dx / 3 + px, y: a.y + dy / 3 + py },\n { x: a.x + (2 * dx) / 3 + px, y: a.y + (2 * dy) / 3 + py },\n ];\n}\n\nexport function CursorFlow({\n waypoints = DEFAULT_WAYPOINTS,\n cursorColor = \"#fafafa\",\n cursorSize = 28,\n segmentDuration = 36,\n background = \"#0a0a0a\",\n showTargets = true,\n speed = 1,\n className,\n}: CursorFlowProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n // Build the timeline: each segment is segmentDuration frames, with optional\n // hold time at each waypoint.\n type SegmentTiming = {\n startFrame: number;\n endFrame: number;\n holdEnd: number;\n };\n const timings: SegmentTiming[] = [];\n let cursorFrame = 0;\n for (let i = 0; i < waypoints.length - 1; i++) {\n const start = cursorFrame;\n const end = start + segmentDuration;\n const holdEnd = end + (waypoints[i + 1].hold ?? 0);\n timings.push({ startFrame: start, endFrame: end, holdEnd });\n cursorFrame = holdEnd;\n }\n\n // Find the active segment.\n let pos = { x: waypoints[0].x, y: waypoints[0].y };\n let activeWaypointIndex = 0;\n for (let i = 0; i < timings.length; i++) {\n const { startFrame, endFrame, holdEnd } = timings[i];\n if (frame >= startFrame && frame < endFrame) {\n const t = easeInOut((frame - startFrame) / segmentDuration);\n const a = waypoints[i];\n const b = waypoints[i + 1];\n const [c1, c2] = controlsFor(a, b, i);\n pos = cubicBezier(t, a, c1, c2, b);\n activeWaypointIndex = i;\n break;\n } else if (frame >= endFrame && frame < holdEnd) {\n pos = { x: waypoints[i + 1].x, y: waypoints[i + 1].y };\n activeWaypointIndex = i + 1;\n break;\n } else if (frame >= holdEnd) {\n pos = { x: waypoints[i + 1].x, y: waypoints[i + 1].y };\n activeWaypointIndex = i + 1;\n }\n }\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n fontFamily: FONT_FAMILY,\n }}\n >\n {/* Click targets */}\n {showTargets &&\n waypoints.map((wp, i) => {\n if (!wp.click) return null;\n // Find when the cursor reaches this waypoint and trigger the press scale.\n const timing = timings[i - 1];\n const arrivalFrame = timing ? timing.endFrame : 0;\n return (\n <ClickTarget\n key={i}\n x={wp.x}\n y={wp.y}\n label={wp.label}\n arrivalFrame={arrivalFrame}\n currentFrame={frame}\n fps={fps}\n />\n );\n })}\n\n {/* Cursor */}\n <Cursor\n x={pos.x}\n y={pos.y}\n size={cursorSize}\n color={cursorColor}\n currentFrame={frame}\n fps={fps}\n clickFrames={timings\n .map((t, i) => (waypoints[i + 1].click ? t.endFrame : -1))\n .filter((f) => f >= 0)}\n />\n\n {/* Cursor active marker just for context — small dot at active waypoint */}\n <div\n style={{\n position: \"absolute\",\n width: 6,\n height: 6,\n left: waypoints[activeWaypointIndex].x - 3,\n top: waypoints[activeWaypointIndex].y - 3,\n borderRadius: \"50%\",\n background: \"rgba(255,255,255,0.04)\",\n pointerEvents: \"none\",\n }}\n />\n </div>\n );\n}\n\nfunction Cursor({\n x,\n y,\n size,\n color,\n currentFrame,\n fps,\n clickFrames,\n}: {\n x: number;\n y: number;\n size: number;\n color: string;\n currentFrame: number;\n fps: number;\n clickFrames: number[];\n}) {\n // Find nearest click moment within ±4 frames; press scale if so.\n let scale = 1;\n for (const cf of clickFrames) {\n const delta = currentFrame - cf;\n if (delta >= 0 && delta <= 4) {\n // 4-frame hard press: 1 → 0.85 → 1\n const press = spring({\n frame: delta,\n fps,\n config: { damping: 22, stiffness: 320, mass: 0.5 },\n });\n scale = interpolate(press, [0, 1], [0.85, 1]);\n break;\n }\n }\n\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n style={{\n position: \"absolute\",\n left: x,\n top: y,\n transform: `scale(${scale})`,\n transformOrigin: \"0 0\",\n zIndex: 9999,\n filter: \"drop-shadow(0 4px 12px rgba(0,0,0,0.6))\",\n pointerEvents: \"none\",\n }}\n >\n <path\n d=\"M3 2 L3 18 L7 14 L10 21 L13 20 L10 13 L17 13 Z\"\n fill={color}\n stroke=\"#0a0a0a\"\n strokeWidth=\"1.2\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction ClickTarget({\n x,\n y,\n label,\n arrivalFrame,\n currentFrame,\n fps,\n}: {\n x: number;\n y: number;\n label?: string;\n arrivalFrame: number;\n currentFrame: number;\n fps: number;\n}) {\n // Synced press: when the cursor scales to 0.85, the target dips to 0.98.\n const delta = currentFrame - arrivalFrame;\n let pressScale = 1;\n if (delta >= 0 && delta <= 6) {\n const t = spring({\n frame: delta,\n fps,\n config: { damping: 18, stiffness: 280 },\n });\n pressScale = interpolate(t, [0, 1], [0.98, 1]);\n }\n\n return (\n <div\n style={{\n position: \"absolute\",\n left: x - 70,\n top: y - 22,\n transform: `scale(${pressScale})`,\n transformOrigin: \"center\",\n padding: \"10px 18px\",\n borderRadius: 10,\n background: \"#fafafa\",\n color: \"#0a0a0a\",\n fontSize: 14,\n fontWeight: 600,\n boxShadow: \"0 12px 30px rgba(0,0,0,0.4)\",\n pointerEvents: \"none\",\n }}\n >\n {label ?? \"Click\"}\n </div>\n );\n}\n",
- "type": "registry:component",
- "target": "components/remocn/cursor-flow.tsx"
- }
- ],
- "type": "registry:component"
-}
\ No newline at end of file
diff --git a/public/r/github-stars.json b/public/r/github-stars.json
new file mode 100644
index 00000000..9bd670cc
--- /dev/null
+++ b/public/r/github-stars.json
@@ -0,0 +1,20 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "github-stars",
+ "title": "GitHub Stars",
+ "description": "Inertial fly-through of a repo's stargazers with a synced count-up odometer that locks on the total. Horizontal 16:9 or vertical 9:16.",
+ "dependencies": [
+ "remotion",
+ "date-fns",
+ "@remotion/google-fonts"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/github-stars/index.tsx",
+ "content": "\"use client\";\n\nimport { format, parseISO } from \"date-fns\";\nimport type React from \"react\";\nimport { useState } from \"react\";\nimport { loadFont as loadSans } from \"@remotion/google-fonts/Manrope\";\nimport { loadFont as loadMono } from \"@remotion/google-fonts/JetBrainsMono\";\nimport {\n AbsoluteFill,\n Easing,\n Img,\n interpolate,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface Stargazer {\n login: string;\n avatarUrl: string;\n /** ISO date string, e.g. \"2021-03-04\" */\n starredAt: string;\n}\n\nexport interface GitHubStarsProps {\n repo?: string;\n totalStars?: number;\n stargazers?: Stargazer[];\n orientation?: \"horizontal\" | \"vertical\";\n accentColor?: string;\n speed?: number;\n theme?: \"light\" | \"dark\";\n}\n\n/**\n * Built-in mock stargazers so the composition renders immediately from defaults\n * (own-your-code: no external data needed after `shadcn add`). Real low-id GitHub\n * avatar URLs are CORS-ok, so the docs preview shows round photos.\n */\nexport const SAMPLE_STARGAZERS: Stargazer[] = [\n {\n login: \"mojombo\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/1?v=4\",\n starredAt: \"2021-03-04\",\n },\n {\n login: \"defunkt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/2?v=4\",\n starredAt: \"2021-06-12\",\n },\n {\n login: \"pjhyett\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/3?v=4\",\n starredAt: \"2021-09-21\",\n },\n {\n login: \"wycats\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/4?v=4\",\n starredAt: \"2021-12-08\",\n },\n {\n login: \"ezmobius\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/14?v=4\",\n starredAt: \"2022-03-17\",\n },\n {\n login: \"ivey\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/18?v=4\",\n starredAt: \"2022-06-29\",\n },\n {\n login: \"evanphx\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/25?v=4\",\n starredAt: \"2022-09-14\",\n },\n {\n login: \"vanpelt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/26?v=4\",\n starredAt: \"2022-12-23\",\n },\n {\n login: \"wayneeseguin\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/28?v=4\",\n starredAt: \"2023-03-09\",\n },\n {\n login: \"brynary\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/30?v=4\",\n starredAt: \"2023-07-19\",\n },\n {\n login: \"kevinclark\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/31?v=4\",\n starredAt: \"2023-11-02\",\n },\n {\n login: \"technoweenie\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/21?v=4\",\n starredAt: \"2024-02-15\",\n },\n {\n login: \"mojombo\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/1?v=4\",\n starredAt: \"2021-03-04\",\n },\n {\n login: \"defunkt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/2?v=4\",\n starredAt: \"2021-06-12\",\n },\n {\n login: \"pjhyett\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/3?v=4\",\n starredAt: \"2021-09-21\",\n },\n {\n login: \"wycats\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/4?v=4\",\n starredAt: \"2021-12-08\",\n },\n {\n login: \"ezmobius\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/14?v=4\",\n starredAt: \"2022-03-17\",\n },\n {\n login: \"ivey\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/18?v=4\",\n starredAt: \"2022-06-29\",\n },\n {\n login: \"evanphx\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/25?v=4\",\n starredAt: \"2022-09-14\",\n },\n {\n login: \"vanpelt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/26?v=4\",\n starredAt: \"2022-12-23\",\n },\n {\n login: \"wayneeseguin\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/28?v=4\",\n starredAt: \"2023-03-09\",\n },\n {\n login: \"brynary\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/30?v=4\",\n starredAt: \"2023-07-19\",\n },\n {\n login: \"kevinclark\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/31?v=4\",\n starredAt: \"2023-11-02\",\n },\n {\n login: \"technoweenie\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/21?v=4\",\n starredAt: \"2024-02-15\",\n },\n {\n login: \"mojombo\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/1?v=4\",\n starredAt: \"2021-03-04\",\n },\n {\n login: \"defunkt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/2?v=4\",\n starredAt: \"2021-06-12\",\n },\n {\n login: \"pjhyett\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/3?v=4\",\n starredAt: \"2021-09-21\",\n },\n {\n login: \"wycats\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/4?v=4\",\n starredAt: \"2021-12-08\",\n },\n {\n login: \"ezmobius\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/14?v=4\",\n starredAt: \"2022-03-17\",\n },\n {\n login: \"ivey\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/18?v=4\",\n starredAt: \"2022-06-29\",\n },\n {\n login: \"evanphx\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/25?v=4\",\n starredAt: \"2022-09-14\",\n },\n {\n login: \"vanpelt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/26?v=4\",\n starredAt: \"2022-12-23\",\n },\n {\n login: \"wayneeseguin\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/28?v=4\",\n starredAt: \"2023-03-09\",\n },\n {\n login: \"brynary\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/30?v=4\",\n starredAt: \"2023-07-19\",\n },\n {\n login: \"kevinclark\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/31?v=4\",\n starredAt: \"2023-11-02\",\n },\n {\n login: \"technoweenie\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/21?v=4\",\n starredAt: \"2024-02-15\",\n },\n {\n login: \"mojombo\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/1?v=4\",\n starredAt: \"2021-03-04\",\n },\n {\n login: \"defunkt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/2?v=4\",\n starredAt: \"2021-06-12\",\n },\n {\n login: \"pjhyett\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/3?v=4\",\n starredAt: \"2021-09-21\",\n },\n {\n login: \"wycats\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/4?v=4\",\n starredAt: \"2021-12-08\",\n },\n {\n login: \"ezmobius\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/14?v=4\",\n starredAt: \"2022-03-17\",\n },\n {\n login: \"ivey\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/18?v=4\",\n starredAt: \"2022-06-29\",\n },\n {\n login: \"evanphx\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/25?v=4\",\n starredAt: \"2022-09-14\",\n },\n {\n login: \"vanpelt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/26?v=4\",\n starredAt: \"2022-12-23\",\n },\n {\n login: \"wayneeseguin\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/28?v=4\",\n starredAt: \"2023-03-09\",\n },\n {\n login: \"brynary\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/30?v=4\",\n starredAt: \"2023-07-19\",\n },\n {\n login: \"kevinclark\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/31?v=4\",\n starredAt: \"2023-11-02\",\n },\n {\n login: \"technoweenie\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/21?v=4\",\n starredAt: \"2024-02-15\",\n },\n {\n login: \"mojombo\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/1?v=4\",\n starredAt: \"2021-03-04\",\n },\n {\n login: \"defunkt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/2?v=4\",\n starredAt: \"2021-06-12\",\n },\n {\n login: \"pjhyett\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/3?v=4\",\n starredAt: \"2021-09-21\",\n },\n {\n login: \"wycats\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/4?v=4\",\n starredAt: \"2021-12-08\",\n },\n {\n login: \"ezmobius\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/14?v=4\",\n starredAt: \"2022-03-17\",\n },\n {\n login: \"ivey\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/18?v=4\",\n starredAt: \"2022-06-29\",\n },\n {\n login: \"evanphx\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/25?v=4\",\n starredAt: \"2022-09-14\",\n },\n {\n login: \"vanpelt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/26?v=4\",\n starredAt: \"2022-12-23\",\n },\n {\n login: \"wayneeseguin\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/28?v=4\",\n starredAt: \"2023-03-09\",\n },\n {\n login: \"brynary\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/30?v=4\",\n starredAt: \"2023-07-19\",\n },\n {\n login: \"kevinclark\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/31?v=4\",\n starredAt: \"2023-11-02\",\n },\n {\n login: \"technoweenie\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/21?v=4\",\n starredAt: \"2024-02-15\",\n },\n {\n login: \"mojombo\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/1?v=4\",\n starredAt: \"2021-03-04\",\n },\n {\n login: \"defunkt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/2?v=4\",\n starredAt: \"2021-06-12\",\n },\n {\n login: \"pjhyett\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/3?v=4\",\n starredAt: \"2021-09-21\",\n },\n {\n login: \"wycats\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/4?v=4\",\n starredAt: \"2021-12-08\",\n },\n {\n login: \"ezmobius\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/14?v=4\",\n starredAt: \"2022-03-17\",\n },\n {\n login: \"ivey\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/18?v=4\",\n starredAt: \"2022-06-29\",\n },\n {\n login: \"evanphx\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/25?v=4\",\n starredAt: \"2022-09-14\",\n },\n {\n login: \"vanpelt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/26?v=4\",\n starredAt: \"2022-12-23\",\n },\n {\n login: \"wayneeseguin\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/28?v=4\",\n starredAt: \"2023-03-09\",\n },\n {\n login: \"brynary\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/30?v=4\",\n starredAt: \"2023-07-19\",\n },\n {\n login: \"kevinclark\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/31?v=4\",\n starredAt: \"2023-11-02\",\n },\n {\n login: \"technoweenie\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/21?v=4\",\n starredAt: \"2024-02-15\",\n },\n {\n login: \"mojombo\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/1?v=4\",\n starredAt: \"2021-03-04\",\n },\n {\n login: \"defunkt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/2?v=4\",\n starredAt: \"2021-06-12\",\n },\n {\n login: \"pjhyett\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/3?v=4\",\n starredAt: \"2021-09-21\",\n },\n {\n login: \"wycats\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/4?v=4\",\n starredAt: \"2021-12-08\",\n },\n {\n login: \"ezmobius\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/14?v=4\",\n starredAt: \"2022-03-17\",\n },\n {\n login: \"ivey\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/18?v=4\",\n starredAt: \"2022-06-29\",\n },\n {\n login: \"evanphx\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/25?v=4\",\n starredAt: \"2022-09-14\",\n },\n {\n login: \"vanpelt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/26?v=4\",\n starredAt: \"2022-12-23\",\n },\n {\n login: \"wayneeseguin\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/28?v=4\",\n starredAt: \"2023-03-09\",\n },\n {\n login: \"brynary\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/30?v=4\",\n starredAt: \"2023-07-19\",\n },\n {\n login: \"kevinclark\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/31?v=4\",\n starredAt: \"2023-11-02\",\n },\n {\n login: \"technoweenie\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/21?v=4\",\n starredAt: \"2024-02-15\",\n },\n {\n login: \"mojombo\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/1?v=4\",\n starredAt: \"2021-03-04\",\n },\n {\n login: \"defunkt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/2?v=4\",\n starredAt: \"2021-06-12\",\n },\n {\n login: \"pjhyett\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/3?v=4\",\n starredAt: \"2021-09-21\",\n },\n {\n login: \"wycats\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/4?v=4\",\n starredAt: \"2021-12-08\",\n },\n {\n login: \"ezmobius\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/14?v=4\",\n starredAt: \"2022-03-17\",\n },\n {\n login: \"ivey\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/18?v=4\",\n starredAt: \"2022-06-29\",\n },\n {\n login: \"evanphx\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/25?v=4\",\n starredAt: \"2022-09-14\",\n },\n {\n login: \"vanpelt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/26?v=4\",\n starredAt: \"2022-12-23\",\n },\n {\n login: \"wayneeseguin\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/28?v=4\",\n starredAt: \"2023-03-09\",\n },\n {\n login: \"brynary\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/30?v=4\",\n starredAt: \"2023-07-19\",\n },\n {\n login: \"kevinclark\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/31?v=4\",\n starredAt: \"2023-11-02\",\n },\n {\n login: \"technoweenie\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/21?v=4\",\n starredAt: \"2024-02-15\",\n },\n {\n login: \"mojombo\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/1?v=4\",\n starredAt: \"2021-03-04\",\n },\n {\n login: \"defunkt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/2?v=4\",\n starredAt: \"2021-06-12\",\n },\n {\n login: \"pjhyett\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/3?v=4\",\n starredAt: \"2021-09-21\",\n },\n {\n login: \"wycats\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/4?v=4\",\n starredAt: \"2021-12-08\",\n },\n {\n login: \"ezmobius\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/14?v=4\",\n starredAt: \"2022-03-17\",\n },\n {\n login: \"ivey\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/18?v=4\",\n starredAt: \"2022-06-29\",\n },\n {\n login: \"evanphx\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/25?v=4\",\n starredAt: \"2022-09-14\",\n },\n {\n login: \"vanpelt\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/26?v=4\",\n starredAt: \"2022-12-23\",\n },\n {\n login: \"wayneeseguin\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/28?v=4\",\n starredAt: \"2023-03-09\",\n },\n {\n login: \"brynary\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/30?v=4\",\n starredAt: \"2023-07-19\",\n },\n {\n login: \"kevinclark\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/31?v=4\",\n starredAt: \"2023-11-02\",\n },\n {\n login: \"technoweenie\",\n avatarUrl: \"https://avatars.githubusercontent.com/u/21?v=4\",\n starredAt: \"2024-02-15\",\n },\n];\n\n// Load fonts INSIDE the composition (via @remotion/google-fonts, which waits for\n// the font with delayRender before rendering frames). Server renders run in a\n// bare headless Chromium with no app CSS / `--font-*` vars, so without this the\n// MP4 falls back to the default sans-serif. Manrope for UI text, JetBrains Mono\n// for the numeric star counter (odometer).\nconst { fontFamily: SANS_FAMILY } = loadSans();\nconst { fontFamily: MONO_FAMILY } = loadMono();\n\nconst FONT_FAMILY = SANS_FAMILY;\n\ninterface Theme {\n bg: string;\n bgSubtle: string;\n fg: string;\n fgMuted: string;\n border: string;\n}\n\nconst THEMES: Record<\"light\" | \"dark\", Theme> = {\n light: {\n bg: \"#ffffff\",\n bgSubtle: \"#fafafa\",\n fg: \"#171717\",\n fgMuted: \"#737373\",\n border: \"#ededed\",\n },\n dark: {\n bg: \"#0a0a0a\",\n bgSubtle: \"#111113\",\n fg: \"#fafafa\",\n fgMuted: \"#a1a1aa\",\n border: \"#262626\",\n },\n};\n\n// --- Pure helpers (unit-tested) -------------------------------------------\n\n/**\n * Clamp a stargazer list to at most `max` evenly-sampled keyframe rows while\n * always preserving the first and last entry. Safety net for callers that pass\n * a huge array straight into the composition.\n */\nexport function downsampleStargazers(\n stargazers: Stargazer[],\n max = 60,\n): Stargazer[] {\n const len = stargazers.length;\n if (len <= max) return stargazers;\n if (max <= 1) return len ? [stargazers[0]] : [];\n const out: Stargazer[] = [];\n for (let i = 0; i < max; i++) {\n out.push(stargazers[Math.round((i * (len - 1)) / (max - 1))]);\n }\n return out;\n}\n\nconst MAX_ELASTIC_OVERSHOOT = 0.0658; // Easing.elastic(1) peak−1 (true ≈0.0657267), rounded UP for use as a safety bound\nconst SCROLL_OVERSHOOT = 1 + MAX_ELASTIC_OVERSHOOT; // ≈1.0658\nconst MASK_SOLID_FRACTION = 0.88; // bottom fade mask is solid until 88% of viewport height\n\n/** Monotonic counter ramp — mirrors the reference StarCount easing. Drives the\n * odometer, which must stay monotonic or the digit wheels roll backward. */\nexport function computeCounterProgress({\n frame,\n speed = 1,\n durationInFrames,\n}: {\n frame: number;\n speed?: number;\n durationInFrames: number;\n}): number {\n return interpolate(frame * speed, [0, durationInFrames], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.bezier(0.5, 1, 0.5, 1),\n });\n}\n\n/** Elastic scroll ramp — mirrors the reference avatar slide. NON-monotonic:\n * overshoots to ~SCROLL_OVERSHOOT near t≈0.63 and settles to exactly 1 at t=1.\n * Drives only scrollY (never the odometer). */\nexport function computeScrollProgress({\n frame,\n speed = 1,\n durationInFrames,\n}: {\n frame: number;\n speed?: number;\n durationInFrames: number;\n}): number {\n return interpolate(frame * speed, [0, durationInFrames], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.elastic(1),\n });\n}\n\n/** Empty rows appended below the last stargazer so the elastic recoil never\n * lifts real content off the mask-solid zone, revealing a void. Single source\n * of truth shared with isScrollContained so the two cannot drift. */\nexport function computeSpacerRows({\n N,\n rowH,\n viewportH,\n visibleRows,\n}: {\n N: number;\n rowH: number;\n viewportH: number;\n visibleRows: number;\n}): number {\n const D = Math.max(0, (N - visibleRows + 1) * rowH);\n const needPx =\n MASK_SOLID_FRACTION * viewportH - N * rowH + SCROLL_OVERSHOOT * D;\n return Math.max(0, Math.ceil(needPx / rowH));\n}\n\n/** True when, at the elastic overshoot peak, content still fills the mask-solid\n * zone (no void revealed). True by construction given computeSpacerRows. */\nexport function isScrollContained({\n N,\n rowH,\n viewportH,\n visibleRows,\n}: {\n N: number;\n rowH: number;\n viewportH: number;\n visibleRows: number;\n}): boolean {\n const D = Math.max(0, (N - visibleRows + 1) * rowH);\n const spacerPx =\n computeSpacerRows({ N, rowH, viewportH, visibleRows }) * rowH;\n return (\n N * rowH + spacerPx - SCROLL_OVERSHOOT * D >=\n MASK_SOLID_FRACTION * viewportH\n );\n}\n\n/** The running counter value for a given scroll progress. Locks at totalStars. */\nexport function getStarCount(\n scrollProgress: number,\n totalStars: number,\n): number {\n return Math.round(scrollProgress * totalStars);\n}\n\nconst WHEEL_ROLL_START = 0.9;\n\nexport function computeWheel(current: number, place: number): number {\n if (current <= 0) return 0;\n if (place === 0) return current % 10;\n\n const v = current / 10 ** place;\n const digit = Math.floor(v) % 10;\n const frac = v - Math.floor(v);\n if (frac <= WHEEL_ROLL_START) return digit;\n\n const raw = (frac - WHEEL_ROLL_START) / (1 - WHEEL_ROLL_START);\n const eased = raw * raw * (3 - 2 * raw); // smoothstep: 0→0, 1→1\n return digit + eased;\n}\n\n// --- Sub-components --------------------------------------------------------\n\nfunction StarGlyph({ size, fill }: { size: number; fill: string }) {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n width={size}\n height={size}\n color={fill}\n fill={fill}\n stroke={fill}\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <title>Stars</title>\n <path d=\"M13.7276 3.44418L15.4874 6.99288C15.7274 7.48687 16.3673 7.9607 16.9073 8.05143L20.0969 8.58575C22.1367 8.92853 22.6167 10.4206 21.1468 11.8925L18.6671 14.3927C18.2471 14.8161 18.0172 15.6327 18.1471 16.2175L18.8571 19.3125C19.417 21.7623 18.1271 22.71 15.9774 21.4296L12.9877 19.6452C12.4478 19.3226 11.5579 19.3226 11.0079 19.6452L8.01827 21.4296C5.8785 22.71 4.57865 21.7522 5.13859 19.3125L5.84851 16.2175C5.97849 15.6327 5.74852 14.8161 5.32856 14.3927L2.84884 11.8925C1.389 10.4206 1.85895 8.92853 3.89872 8.58575L7.08837 8.05143C7.61831 7.9607 8.25824 7.48687 8.49821 6.99288L10.258 3.44418C11.2179 1.51861 12.7777 1.51861 13.7276 3.44418Z\"></path>\n </svg>\n );\n}\n\nfunction Avatar({\n login,\n avatarUrl,\n size,\n theme,\n}: {\n login: string;\n avatarUrl: string;\n size: number;\n theme: Theme;\n}) {\n const [errored, setErrored] = useState(false);\n const ringStyle = {\n width: size,\n height: size,\n borderRadius: 9999,\n border: `1px solid ${theme.border}`,\n flexShrink: 0,\n } as const;\n\n if (errored || !avatarUrl) {\n return (\n <div\n style={{\n ...ringStyle,\n background: theme.bgSubtle,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: theme.fgMuted,\n fontSize: size * 0.42,\n fontWeight: 600,\n }}\n >\n {login.charAt(0).toUpperCase()}\n </div>\n );\n }\n\n return (\n <Img\n src={avatarUrl}\n crossOrigin=\"anonymous\"\n onError={() => setErrored(true)}\n style={{ ...ringStyle, objectFit: \"cover\" }}\n />\n );\n}\n\nfunction DigitColumn({\n value,\n fontSize,\n}: {\n /** continuous wheel value in [0, 10) */\n value: number;\n fontSize: number;\n}) {\n const cellHeight = fontSize * 1.1;\n return (\n <span\n style={{\n display: \"inline-block\",\n overflow: \"hidden\",\n height: cellHeight,\n width: \"0.62em\",\n verticalAlign: \"top\",\n textAlign: \"center\",\n }}\n >\n <span\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n transform: `translateY(${-value * cellHeight}px)`,\n }}\n >\n {[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0].map((d, i) => (\n <span\n key={i}\n style={{ height: cellHeight, lineHeight: `${cellHeight}px` }}\n >\n {d}\n </span>\n ))}\n </span>\n </span>\n );\n}\n\nfunction Odometer({\n current,\n fontSize,\n color,\n mutedColor,\n}: {\n /** continuous running total (float) */\n current: number;\n fontSize: number;\n color: string;\n mutedColor: string;\n}) {\n const intVal = Math.max(0, Math.round(current));\n const formatted = intVal.toLocaleString(\"en-US\");\n\n // Walk right→left so each digit knows its decimal place; drive each wheel\n // continuously from `current` (higher places roll slower → mechanical feel).\n const cells: React.ReactNode[] = [];\n let place = 0;\n for (let i = formatted.length - 1; i >= 0; i--) {\n const ch = formatted[i];\n if (ch === \",\") {\n cells.unshift(\n <span\n key={`c${i}`}\n style={{\n display: \"inline-block\",\n width: \"0.32em\",\n color: \"currentColor\",\n fontSize: \"0.85em\",\n textAlign: \"center\",\n }}\n >\n ,\n </span>,\n );\n } else {\n const wheel = computeWheel(current, place);\n cells.unshift(\n <DigitColumn key={`d${i}`} value={wheel} fontSize={fontSize} />,\n );\n place++;\n }\n }\n\n return (\n <div\n style={{\n display: \"flex\",\n alignItems: \"baseline\",\n fontSize,\n fontWeight: 800,\n color,\n fontFamily: MONO_FAMILY,\n fontVariantNumeric: \"tabular-nums\",\n letterSpacing: \"-0.03em\",\n lineHeight: 1,\n }}\n >\n {cells}\n </div>\n );\n}\n\ninterface RowProps {\n stargazer: Stargazer;\n index: number;\n rowH: number;\n avatarSize: number;\n loginSize: number;\n dateFormat: string;\n accent: string;\n theme: Theme;\n isActive: boolean;\n settle: number;\n showSeparator: boolean;\n opacity: number;\n}\n\nfunction Row({\n stargazer,\n index,\n rowH,\n avatarSize,\n loginSize,\n dateFormat,\n accent,\n theme,\n isActive,\n settle,\n showSeparator,\n opacity,\n}: RowProps) {\n let dateLabel = stargazer.starredAt;\n try {\n dateLabel = format(parseISO(stargazer.starredAt), dateFormat);\n } catch {\n // leave the raw string if it isn't a valid ISO date\n }\n\n return (\n <div\n style={{\n position: \"relative\",\n height: rowH,\n display: \"flex\",\n alignItems: \"center\",\n paddingLeft: 24,\n paddingRight: 24,\n background: \"transparent\",\n opacity,\n boxSizing: \"border-box\",\n borderBottom:\n showSeparator && !isActive ? `1px solid ${theme.border}` : \"none\",\n }}\n >\n {isActive && (\n <>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: theme.bgSubtle,\n opacity: settle,\n }}\n />\n <div\n style={{\n position: \"absolute\",\n left: 0,\n top: 0,\n bottom: 0,\n width: 2,\n background: accent,\n opacity: settle,\n }}\n />\n </>\n )}\n <div\n style={{\n position: \"relative\",\n display: \"flex\",\n alignItems: \"center\",\n width: \"100%\",\n }}\n >\n <Avatar\n login={stargazer.login}\n avatarUrl={stargazer.avatarUrl}\n size={avatarSize}\n theme={theme}\n />\n <div style={{ marginLeft: 20, minWidth: 0, flex: 1 }}>\n <div\n style={{\n fontSize: loginSize,\n fontWeight: 600,\n color: theme.fg,\n fontFamily: FONT_FAMILY,\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n lineHeight: 1.2,\n }}\n >\n {stargazer.login}\n </div>\n <div\n style={{\n fontSize: 18,\n fontWeight: 400,\n color: theme.fgMuted,\n fontFamily: FONT_FAMILY,\n lineHeight: 1.3,\n }}\n >\n {dateLabel}\n </div>\n </div>\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 8,\n color: theme.fgMuted,\n fontFamily: MONO_FAMILY,\n fontSize: 18,\n fontVariantNumeric: \"tabular-nums\",\n flexShrink: 0,\n }}\n >\n <StarGlyph size={20} fill={accent} />\n <span>#{index + 1}</span>\n </div>\n </div>\n </div>\n );\n}\n\n// --- Main composition ------------------------------------------------------\n\nexport function GitHubStars({\n repo = \"remotion-dev/remotion\",\n totalStars = 24813,\n stargazers = SAMPLE_STARGAZERS,\n orientation = \"horizontal\",\n accentColor = \"#ffbb00\",\n speed = 1,\n theme = \"light\",\n}: GitHubStarsProps) {\n const frame = useCurrentFrame();\n const { durationInFrames, width, height } = useVideoConfig();\n const t = THEMES[theme] ?? THEMES.light;\n const isVertical = orientation === \"vertical\";\n\n // Render at the native reference size for the orientation, then scale to fit\n // the actual canvas — keeps proportions at any resolution and letterboxes a\n // vertical layout cleanly inside a horizontal preview canvas.\n const refW = isVertical ? 720 : 1280;\n const refH = isVertical ? 1280 : 720;\n const stageScale = Math.min(width / refW, height / refH);\n\n const rows = downsampleStargazers(stargazers);\n const N = rows.length;\n\n // Progress drivers: monotonic counter ramp + non-monotonic elastic scroll.\n const counterProgress = computeCounterProgress({\n frame,\n speed,\n durationInFrames,\n });\n const pScroll = computeScrollProgress({ frame, speed, durationInFrames });\n const p = Math.max(0, Math.min(1, (frame * speed) / durationInFrames));\n\n const current = counterProgress * totalStars;\n\n // List viewport geometry (in reference px).\n const rowH = isVertical ? 96 : 88;\n const avatarSize = isVertical ? 60 : 56;\n const loginSize = isVertical ? 30 : 28;\n const dateFormat = isVertical ? \"MMM yyyy\" : \"MMM d, yyyy\";\n\n const viewport = isVertical\n ? { x: 48, y: 320, w: 624, h: 888, radius: 28 }\n : { x: 560, y: 60, w: 640, h: 600, radius: 24 };\n\n const visibleRows = Math.floor(viewport.h / rowH);\n const D = Math.max(0, (N - visibleRows + 1) * rowH);\n const scrollY = -pScroll * D;\n\n const spacerRows = computeSpacerRows({\n N,\n rowH,\n viewportH: viewport.h,\n visibleRows,\n });\n const spacerPx = spacerRows * rowH;\n\n const settle = interpolate(p, [0.92, 1], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n // Counter zone type scale.\n const counterSize = isVertical ? 96 : 120;\n const starSize = isVertical ? 56 : 64;\n const underlineMax = isVertical ? 200 : 240;\n const underlineWidth = counterProgress * underlineMax;\n\n const fadeMask =\n \"linear-gradient(to bottom, transparent 0, black 12%, black 88%, transparent 100%)\";\n\n const listViewport = (\n <div\n style={{\n position: \"absolute\",\n left: viewport.x,\n top: viewport.y,\n width: viewport.w,\n height: viewport.h,\n overflow: \"hidden\",\n borderRadius: viewport.radius,\n border: `1px solid ${t.border}`,\n background: t.bg,\n WebkitMaskImage: fadeMask,\n maskImage: fadeMask,\n }}\n >\n <div\n style={{\n transform: `translateY(${scrollY}px)`,\n willChange: \"transform\",\n }}\n >\n {rows.map((sg, i) => (\n <Row\n key={`${sg.login}-${i}`}\n stargazer={sg}\n index={i}\n rowH={rowH}\n avatarSize={avatarSize}\n loginSize={loginSize}\n dateFormat={dateFormat}\n accent={accentColor}\n theme={t}\n isActive={i === N - 1}\n settle={settle}\n showSeparator={i < N - 1}\n opacity={1}\n />\n ))}\n {spacerPx > 0 && (\n <div style={{ height: spacerPx }} aria-hidden=\"true\" />\n )}\n </div>\n </div>\n );\n\n const underline = (\n <div\n style={{\n height: 4,\n width: underlineWidth,\n background: accentColor,\n borderRadius: 2,\n }}\n />\n );\n\n const repoSlug = (\n <div\n style={{\n fontSize: isVertical ? 20 : 24,\n fontWeight: 500,\n color: t.fgMuted,\n fontFamily: FONT_FAMILY,\n maxWidth: isVertical ? 600 : 392,\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n }}\n >\n {repo}\n </div>\n );\n\n const counterZone = isVertical ? (\n <div\n style={{\n position: \"absolute\",\n left: 0,\n top: 0,\n width: refW,\n height: 300,\n paddingTop: 72,\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n gap: 14,\n }}\n >\n <div style={{ display: \"flex\", alignItems: \"center\", gap: 20 }}>\n <StarGlyph size={starSize} fill={accentColor} />\n <Odometer\n current={current}\n fontSize={counterSize}\n color={t.fg}\n mutedColor={t.fgMuted}\n />\n </div>\n {underline}\n <div\n style={{\n display: \"flex\",\n fontSize: 20,\n fontWeight: 500,\n color: t.fgMuted,\n fontFamily: FONT_FAMILY,\n }}\n >\n <span>{repo}</span>\n </div>\n </div>\n ) : (\n <div\n style={{\n position: \"absolute\",\n left: 80,\n top: 0,\n width: 392,\n height: refH,\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"center\",\n alignItems: \"flex-start\",\n }}\n >\n <StarGlyph size={starSize} fill={accentColor} />\n <div style={{ height: 20 }} />\n <Odometer\n current={current}\n fontSize={counterSize}\n color={t.fg}\n mutedColor={t.fgMuted}\n />\n <div style={{ height: 16 }} />\n {underline}\n <div style={{ height: 20 }} />\n\n {repoSlug}\n </div>\n );\n\n return (\n <AbsoluteFill style={{ background: t.bg }}>\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n width: refW,\n height: refH,\n transform: `translate(-50%, -50%) scale(${stageScale})`,\n }}\n >\n {counterZone}\n {listViewport}\n </div>\n </AbsoluteFill>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/github-stars.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/morphing-modal.json b/public/r/morphing-modal.json
deleted file mode 100644
index 81e2cee0..00000000
--- a/public/r/morphing-modal.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
- "name": "morphing-modal",
- "title": "Morphing Modal",
- "description": "A bento card lifts off the grid and blooms into a full-screen modal driven by a single heavy spring.",
- "dependencies": [
- "remotion"
- ],
- "files": [
- {
- "path": "registry/remocn/morphing-modal/index.tsx",
- "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface MorphingModalRect {\n top: number;\n left: number;\n width: number;\n height: number;\n}\n\nexport interface MorphingModalProps {\n from?: MorphingModalRect;\n to?: MorphingModalRect;\n borderRadiusFrom?: number;\n borderRadiusTo?: number;\n morphAt?: number;\n background?: string;\n cardColor?: string;\n textColor?: string;\n mutedColor?: string;\n sourceTitle?: string;\n sourceBody?: string;\n modalTitle?: string;\n modalBody?: string;\n source?: ReactNode;\n modal?: ReactNode;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nconst VIEWPORT_W = 1280;\nconst VIEWPORT_H = 720;\n\nconst DEFAULT_FROM: MorphingModalRect = {\n left: 460,\n top: 260,\n width: 360,\n height: 200,\n};\n\nconst DEFAULT_TO: MorphingModalRect = {\n left: 80,\n top: 60,\n width: VIEWPORT_W - 160,\n height: VIEWPORT_H - 120,\n};\n\nexport function MorphingModal({\n from = DEFAULT_FROM,\n to = DEFAULT_TO,\n borderRadiusFrom = 24,\n borderRadiusTo = 0,\n morphAt = 30,\n background = \"#050505\",\n cardColor = \"#0a0a0a\",\n textColor = \"#fafafa\",\n mutedColor = \"#71717a\",\n sourceTitle = \"Compose video\",\n sourceBody = \"Click to start a new project\",\n modalTitle = \"New project\",\n modalBody = \"Pick a template, drop your assets, and ship a 30s video in under five minutes. Everything renders deterministically — no flicker, no flaky frames.\",\n source,\n modal,\n speed = 1,\n className,\n}: MorphingModalProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n // ONE heavy spring drives all 5 morph properties at once. High mass +\n // low stiffness so the modal \"blooms\" instead of jumping.\n const morph = spring({\n frame: frame - morphAt,\n fps,\n config: { mass: 1.5, damping: 22, stiffness: 110 },\n });\n\n const left = interpolate(morph, [0, 1], [from.left, to.left]);\n const top = interpolate(morph, [0, 1], [from.top, to.top]);\n const width = interpolate(morph, [0, 1], [from.width, to.width]);\n const height = interpolate(morph, [0, 1], [from.height, to.height]);\n const radius = interpolate(morph, [0, 1], [borderRadiusFrom, borderRadiusTo]);\n\n // Backdrop fades in alongside the morph spring.\n const backdropAlpha = interpolate(morph, [0, 1], [0, 0.8]);\n\n // Source content vanishes in the FIRST third of the morph.\n const sourceOpacity = interpolate(morph, [0, 0.33], [1, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n // Modal content arrives in the LAST third with a translateY offset.\n const modalOpacity = interpolate(morph, [0.66, 1], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const modalTy = interpolate(morph, [0.66, 1], [20, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n fontFamily: FONT_FAMILY,\n overflow: \"hidden\",\n }}\n >\n {/* Backdrop dim layer */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: `rgba(0, 0, 0, ${backdropAlpha})`,\n pointerEvents: \"none\",\n }}\n />\n\n {/* Suggestion of a bento grid behind so the morph reads as\n \"card lifting off\". Very low contrast. */}\n <BackgroundGrid />\n\n {/* The morphing card */}\n <div\n style={{\n position: \"absolute\",\n left,\n top,\n width,\n height,\n background: cardColor,\n borderRadius: radius,\n boxShadow:\n \"0 60px 140px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.06)\",\n overflow: \"hidden\",\n }}\n >\n {/* Source layer (fades out first) */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n padding: 28,\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"flex-end\",\n gap: 6,\n opacity: sourceOpacity,\n }}\n >\n {source ?? (\n <>\n <div\n style={{\n fontSize: 20,\n fontWeight: 700,\n color: textColor,\n letterSpacing: \"-0.01em\",\n }}\n >\n {sourceTitle}\n </div>\n <div style={{ fontSize: 14, color: mutedColor }}>\n {sourceBody}\n </div>\n </>\n )}\n </div>\n\n {/* Modal layer (arrives last with translateY) */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n padding: 64,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 24,\n opacity: modalOpacity,\n transform: `translateY(${modalTy}px)`,\n }}\n >\n {modal ?? (\n <>\n <div\n style={{\n fontSize: 56,\n fontWeight: 700,\n color: textColor,\n letterSpacing: \"-0.03em\",\n lineHeight: 1.05,\n }}\n >\n {modalTitle}\n </div>\n <div\n style={{\n fontSize: 20,\n lineHeight: 1.55,\n color: mutedColor,\n maxWidth: 720,\n }}\n >\n {modalBody}\n </div>\n <div\n style={{\n marginTop: 12,\n display: \"inline-flex\",\n alignSelf: \"flex-start\",\n background: textColor,\n color: cardColor,\n padding: \"12px 22px\",\n borderRadius: 12,\n fontSize: 16,\n fontWeight: 600,\n }}\n >\n Get started\n </div>\n </>\n )}\n </div>\n </div>\n </div>\n );\n}\n\nfunction BackgroundGrid() {\n // Decorative bento background — 3x2 cards, very low contrast.\n const cells = [\n { x: 80, y: 60, w: 360, h: 200 },\n { x: 460, y: 60, w: 360, h: 200 },\n { x: 840, y: 60, w: 360, h: 200 },\n { x: 80, y: 460, w: 360, h: 200 },\n { x: 840, y: 460, w: 360, h: 200 },\n ];\n return (\n <>\n {cells.map((c, i) => (\n <div\n key={i}\n style={{\n position: \"absolute\",\n left: c.x,\n top: c.y,\n width: c.w,\n height: c.h,\n background: \"#0a0a0a\",\n borderRadius: 24,\n border: \"1px solid rgba(255,255,255,0.04)\",\n }}\n />\n ))}\n </>\n );\n}\n",
- "type": "registry:component",
- "target": "components/remocn/morphing-modal.tsx"
- }
- ],
- "type": "registry:component"
-}
\ No newline at end of file
diff --git a/public/r/pipeline-journey.json b/public/r/pipeline-journey.json
deleted file mode 100644
index 5bd92ddd..00000000
--- a/public/r/pipeline-journey.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
- "name": "pipeline-journey",
- "title": "Pipeline Journey",
- "description": "A Kanban ticket arcs across columns triggering landings and a final confetti burst.",
- "dependencies": [
- "remotion"
- ],
- "files": [
- {
- "path": "registry/remocn/pipeline-journey/index.tsx",
- "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface PipelineJourneyProps {\n cardLabel?: string;\n accentColor?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\nconst MONO_FAMILY =\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace\";\n\nconst COLUMNS = [\n { id: \"todo\", title: \"Todo\", count: 3 },\n { id: \"in_progress\", title: \"In Progress\", count: 2 },\n { id: \"done\", title: \"Done\", count: 4 },\n];\n\nconst COL_WIDTH = 320;\nconst COL_GAP = 40;\nconst BOARD_TOP = 120;\nconst BOARD_LEFT = 120;\nconst CARD_W = 280;\nconst CARD_H = 88;\n\nfunction colCenter(index: number) {\n const x = BOARD_LEFT + index * (COL_WIDTH + COL_GAP) + COL_WIDTH / 2;\n const y = BOARD_TOP + 90;\n return { x, y };\n}\n\nfunction pseudoRandom(i: number) {\n const v = Math.sin(i * 12.9898) * 43758.5453;\n return v - Math.floor(v);\n}\n\nfunction PlaceholderCard({ opacity = 1 }: { opacity?: number }) {\n return (\n <div\n style={{\n width: CARD_W,\n height: CARD_H,\n borderRadius: 12,\n background: \"rgba(255,255,255,0.04)\",\n border: \"1px solid rgba(255,255,255,0.08)\",\n marginBottom: 12,\n padding: 14,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 10,\n opacity,\n }}\n >\n <div\n style={{\n width: \"70%\",\n height: 10,\n borderRadius: 4,\n background: \"rgba(255,255,255,0.12)\",\n }}\n />\n <div\n style={{\n width: \"45%\",\n height: 8,\n borderRadius: 4,\n background: \"rgba(255,255,255,0.08)\",\n }}\n />\n <div style={{ flex: 1 }} />\n <div\n style={{\n width: 28,\n height: 28,\n borderRadius: 999,\n background: \"rgba(255,255,255,0.12)\",\n }}\n />\n </div>\n );\n}\n\nexport function PipelineJourney({\n cardLabel = \"Build pipeline\",\n accentColor = \"#22c55e\",\n speed = 1,\n className,\n}: PipelineJourneyProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n // Phases\n const flight1Start = 30;\n const flight1End = 70;\n const waitEnd = 110;\n const flight2Start = 110;\n const flight2End = 150;\n const confettiStart = 150;\n\n const todoCenter = colCenter(0);\n const progCenter = colCenter(1);\n const doneCenter = colCenter(2);\n\n // Card position interpolation\n let cx: number;\n let cy: number;\n let rotZ = 0;\n let scaleBoost = 1;\n let shadowAlpha = 0.25;\n let shadowBlur = 20;\n\n if (frame < flight1Start) {\n cx = todoCenter.x;\n cy = todoCenter.y;\n } else if (frame < flight1End) {\n const p = (frame - flight1Start) / (flight1End - flight1Start);\n cx = interpolate(p, [0, 1], [todoCenter.x, progCenter.x]);\n // arc\n const arc = Math.sin(p * Math.PI) * 80;\n cy = interpolate(p, [0, 1], [todoCenter.y, progCenter.y]) - arc;\n rotZ = Math.sin(p * Math.PI) * 3;\n scaleBoost = 1 + Math.sin(p * Math.PI) * 0.15;\n shadowAlpha = 0.25 + Math.sin(p * Math.PI) * 0.4;\n shadowBlur = 20 + Math.sin(p * Math.PI) * 60;\n } else if (frame < flight2Start) {\n cx = progCenter.x;\n cy = progCenter.y;\n } else if (frame < flight2End) {\n const p = (frame - flight2Start) / (flight2End - flight2Start);\n cx = interpolate(p, [0, 1], [progCenter.x, doneCenter.x]);\n const arc = Math.sin(p * Math.PI) * 80;\n cy = interpolate(p, [0, 1], [progCenter.y, doneCenter.y]) - arc;\n rotZ = Math.sin(p * Math.PI) * 3;\n scaleBoost = 1 + Math.sin(p * Math.PI) * 0.15;\n shadowAlpha = 0.25 + Math.sin(p * Math.PI) * 0.4;\n shadowBlur = 20 + Math.sin(p * Math.PI) * 60;\n } else {\n cx = doneCenter.x;\n cy = doneCenter.y;\n }\n\n // Landing micro-spring on each arrival\n const land1 = spring({\n frame: frame - flight1End,\n fps,\n config: { damping: 10, stiffness: 180, mass: 0.7 },\n durationInFrames: 18,\n });\n const land2 = spring({\n frame: frame - flight2End,\n fps,\n config: { damping: 10, stiffness: 180, mass: 0.7 },\n durationInFrames: 18,\n });\n\n let landingScale = 1;\n if (frame >= flight1End && frame < flight2Start) {\n landingScale = interpolate(land1, [0, 1], [0.92, 1]);\n } else if (frame >= flight2End) {\n landingScale = interpolate(land2, [0, 1], [0.92, 1]);\n }\n\n // Column flash on landing\n const progFlash = interpolate(\n frame,\n [flight1End, flight1End + 4, flight1End + 18],\n [0, 1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n const doneFlash = interpolate(\n frame,\n [flight2End, flight2End + 4, flight2End + 18],\n [0, 1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n // Timer visibility (during in_progress wait)\n const timerOpacity = interpolate(\n frame,\n [flight1End + 4, flight1End + 12, waitEnd - 8, waitEnd],\n [0, 1, 1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n const timerSecs = Math.floor(\n interpolate(frame, [flight1End, waitEnd], [0, 42], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n }),\n );\n\n // Confetti particles\n const PARTICLE_COUNT = 36;\n const confettiFrame = frame - confettiStart;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background: \"#09090b\",\n fontFamily: FONT_FAMILY,\n color: \"white\",\n overflow: \"hidden\",\n }}\n >\n {/* Subtle grid bg */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n backgroundImage:\n \"linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px)\",\n backgroundSize: \"40px 40px\",\n }}\n />\n\n {/* Title */}\n <div\n style={{\n position: \"absolute\",\n top: 48,\n left: BOARD_LEFT,\n fontSize: 24,\n fontWeight: 600,\n letterSpacing: \"-0.02em\",\n }}\n >\n Sprint board\n </div>\n\n {/* Columns */}\n {COLUMNS.map((col, i) => {\n const flash =\n col.id === \"in_progress\"\n ? progFlash\n : col.id === \"done\"\n ? doneFlash\n : 0;\n return (\n <div\n key={col.id}\n style={{\n position: \"absolute\",\n top: BOARD_TOP,\n left: BOARD_LEFT + i * (COL_WIDTH + COL_GAP),\n width: COL_WIDTH,\n height: 480,\n borderRadius: 16,\n background: `rgba(255,255,255,${0.02 + flash * 0.08})`,\n border: `1px solid rgba(255,255,255,${0.06 + flash * 0.2})`,\n padding: 20,\n transition: \"none\",\n }}\n >\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n marginBottom: 18,\n }}\n >\n <div style={{ fontSize: 14, fontWeight: 600, opacity: 0.85 }}>\n {col.title}\n </div>\n <div\n style={{\n fontSize: 12,\n fontFamily: MONO_FAMILY,\n opacity: 0.5,\n padding: \"2px 8px\",\n borderRadius: 999,\n background: \"rgba(255,255,255,0.06)\",\n }}\n >\n {col.count}\n </div>\n </div>\n {Array.from({ length: col.count }).map((_, k) => (\n <PlaceholderCard key={k} opacity={0.55 + ((k * 13) % 30) / 100} />\n ))}\n </div>\n );\n })}\n\n {/* Flying card */}\n <div\n style={{\n position: \"absolute\",\n left: cx - CARD_W / 2,\n top: cy - CARD_H / 2,\n width: CARD_W,\n height: CARD_H,\n borderRadius: 14,\n background: \"#18181b\",\n border: `1px solid ${accentColor}`,\n boxShadow: `0 ${shadowBlur / 2}px ${shadowBlur}px rgba(0,0,0,${shadowAlpha}), 0 0 0 1px rgba(255,255,255,0.04) inset`,\n transform: `rotate(${rotZ}deg) scale(${scaleBoost * landingScale})`,\n transformOrigin: \"center center\",\n padding: 16,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 10,\n willChange: \"transform\",\n }}\n >\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n }}\n >\n <div\n style={{\n fontFamily: MONO_FAMILY,\n fontSize: 11,\n opacity: 0.5,\n }}\n >\n REMO-128\n </div>\n <div\n style={{\n width: 8,\n height: 8,\n borderRadius: 999,\n background: accentColor,\n boxShadow: `0 0 12px ${accentColor}`,\n }}\n />\n </div>\n <div\n style={{\n fontSize: 16,\n fontWeight: 600,\n letterSpacing: \"-0.01em\",\n }}\n >\n {cardLabel}\n </div>\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n marginTop: \"auto\",\n }}\n >\n <div\n style={{\n fontFamily: MONO_FAMILY,\n fontSize: 12,\n opacity: timerOpacity,\n color: accentColor,\n }}\n >\n 00:{String(timerSecs).padStart(2, \"0\")}\n </div>\n <div\n style={{\n fontSize: 11,\n opacity: 0.4,\n }}\n >\n assignee\n </div>\n </div>\n </div>\n\n {/* Confetti */}\n {confettiFrame > 0 &&\n Array.from({ length: PARTICLE_COUNT }).map((_, i) => {\n const angle = pseudoRandom(i + 1) * Math.PI * 2;\n const dist = 60 + pseudoRandom(i + 99) * 220;\n const drift = pseudoRandom(i + 7) * 40 - 20;\n const sizeR = pseudoRandom(i + 3);\n const size = 6 + sizeR * 8;\n const colorPick = pseudoRandom(i + 5);\n const color =\n colorPick < 0.33\n ? accentColor\n : colorPick < 0.66\n ? \"#fbbf24\"\n : \"#60a5fa\";\n const lifespan = 50;\n const t = Math.min(confettiFrame / lifespan, 1);\n const eased = 1 - (1 - t) * (1 - t);\n const px = doneCenter.x + Math.cos(angle) * dist * eased + drift * t;\n const py =\n doneCenter.y +\n Math.sin(angle) * dist * eased +\n // gravity\n t * t * 220;\n const opacity = interpolate(t, [0, 0.7, 1], [1, 1, 0]);\n const rot = pseudoRandom(i + 11) * 360 + confettiFrame * 12;\n return (\n <div\n key={i}\n style={{\n position: \"absolute\",\n left: px - size / 2,\n top: py - size / 2,\n width: size,\n height: size * 0.6,\n background: color,\n borderRadius: 2,\n opacity,\n transform: `rotate(${rot}deg)`,\n willChange: \"transform\",\n }}\n />\n );\n })}\n </div>\n );\n}\n",
- "type": "registry:component",
- "target": "components/remocn/pipeline-journey.tsx"
- }
- ],
- "type": "registry:component"
-}
\ No newline at end of file
diff --git a/public/r/product-launch-trailer.json b/public/r/product-launch-trailer.json
deleted file mode 100644
index f33294df..00000000
--- a/public/r/product-launch-trailer.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
- "name": "product-launch-trailer",
- "title": "Product Launch Trailer",
- "description": "Cinematic Product Hunt teaser: pulsing logo, zoom-through transition, 3D bento fly-over, and a confetti version drop.",
- "dependencies": [
- "remotion"
- ],
- "files": [
- {
- "path": "registry/remocn/product-launch-trailer/index.tsx",
- "content": "\"use client\";\n\nimport {\n AbsoluteFill,\n Easing,\n interpolate,\n random,\n Sequence,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface ProductLaunchTrailerProps {\n logoLabel?: string;\n productName?: string;\n versionLabel?: string;\n accentPeach?: string;\n accentLavender?: string;\n accentMint?: string;\n background?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\nconst MONO_FAMILY =\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace\";\n\n// Soft \"Tactile\" easing — used for every camera move and reveal.\nconst SOFT = Easing.bezier(0.16, 1, 0.3, 1);\n\n// Sequence anchors (frames). All later math is derived from these so the\n// trailer is easy to retime in one place.\nconst T = {\n pulseStart: 0,\n pulseEnd: 50,\n zoomStart: 38,\n zoomEnd: 78,\n shellStart: 70,\n flyStart: 110,\n flyEnd: 200,\n outroStart: 190,\n outroEnd: 240,\n};\n\nexport function ProductLaunchTrailer({\n logoLabel = \"R\",\n productName = \"Remocn\",\n versionLabel = \"v1.0 is live\",\n accentPeach = \"#FFB38E\",\n accentLavender = \"#D4B3FF\",\n accentMint = \"#A1EEBD\",\n background = \"#141318\",\n speed = 1,\n className,\n}: ProductLaunchTrailerProps) {\n return (\n <AbsoluteFill className={className} style={{ background }}>\n {/* TODO(audio): TransitionWhoosh @ frame ~38, SuccessChime @ frame ~200 */}\n\n <Sequence from={T.pulseStart} durationInFrames={T.zoomEnd - T.pulseStart}>\n <PulseLogo\n label={logoLabel}\n name={productName}\n accentLavender={accentLavender}\n background={background}\n speed={speed}\n />\n </Sequence>\n\n <Sequence from={T.shellStart} durationInFrames={T.outroEnd - T.shellStart}>\n <AppShellFlyover\n accentPeach={accentPeach}\n accentLavender={accentLavender}\n accentMint={accentMint}\n background={background}\n speed={speed}\n flyStartLocal={T.flyStart - T.shellStart}\n flyEndLocal={T.flyEnd - T.shellStart}\n outroStartLocal={T.outroStart - T.shellStart}\n />\n </Sequence>\n\n <Sequence\n from={T.outroStart}\n durationInFrames={T.outroEnd - T.outroStart + 1}\n >\n <Outro\n versionLabel={versionLabel}\n accentMint={accentMint}\n accentPeach={accentPeach}\n accentLavender={accentLavender}\n speed={speed}\n />\n </Sequence>\n </AbsoluteFill>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Phase 1 */\n/* -------------------------------------------------------------------------- */\n\nfunction PulseLogo({\n label,\n name,\n accentLavender,\n background,\n speed,\n}: {\n label: string;\n name: string;\n accentLavender: string;\n background: string;\n speed: number;\n}) {\n const frame = useCurrentFrame() * speed;\n const localDuration = T.zoomEnd - T.pulseStart;\n\n // Soft pulse — sin wave on a slow period, modulating both glow and scale.\n const pulse = (Math.sin(frame / 6) + 1) / 2; // 0..1\n\n // After pulseEnd we hand off to the zoom transition: scale up + fade out.\n const zoomLocal = Math.max(0, frame - (T.zoomStart - T.pulseStart));\n const zoomDuration = T.zoomEnd - T.zoomStart;\n const zoom = interpolate(zoomLocal, [0, zoomDuration], [1, 14], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.bezier(0.7, 0, 0.84, 0),\n });\n const fade = interpolate(zoomLocal, [zoomDuration * 0.5, zoomDuration], [1, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const baseScale = 0.96 + pulse * 0.04;\n const glowAlpha = 0.35 + pulse * 0.4;\n\n const labelOpacity = interpolate(frame, [4, 18], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n return (\n <AbsoluteFill\n style={{\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <div\n style={{\n transform: `scale(${zoom * baseScale})`,\n opacity: fade,\n willChange: \"transform, opacity\",\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n gap: 28,\n }}\n >\n {/* Logo squircle */}\n <div\n style={{\n width: 200,\n height: 200,\n borderRadius: 56,\n background:\n \"linear-gradient(160deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 100%)\",\n border: `1px solid ${accentLavender}55`,\n boxShadow: `0 0 ${60 + pulse * 80}px ${accentLavender}${toHex(\n glowAlpha,\n )}, inset 0 1px 0 rgba(255,255,255,0.12)`,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 112,\n fontWeight: 700,\n letterSpacing: \"-0.06em\",\n }}\n >\n {label}\n </div>\n\n {/* Product name */}\n <div\n style={{\n opacity: labelOpacity,\n color: \"rgba(255,255,255,0.92)\",\n fontFamily: FONT_FAMILY,\n fontSize: 28,\n fontWeight: 500,\n letterSpacing: \"0.02em\",\n }}\n >\n {name}\n </div>\n </div>\n {/* swallow lint: localDuration kept for reference */}\n <span style={{ display: \"none\" }}>{localDuration}</span>\n </AbsoluteFill>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Phase 2 */\n/* -------------------------------------------------------------------------- */\n\nfunction AppShellFlyover({\n accentPeach,\n accentLavender,\n accentMint,\n background,\n speed,\n flyStartLocal,\n flyEndLocal,\n outroStartLocal,\n}: {\n accentPeach: string;\n accentLavender: string;\n accentMint: string;\n background: string;\n speed: number;\n flyStartLocal: number;\n flyEndLocal: number;\n outroStartLocal: number;\n}) {\n const frame = useCurrentFrame() * speed;\n\n // Shell fade-in — comes in right after the zoom punches through.\n const enter = interpolate(frame, [0, 14], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: SOFT,\n });\n\n // 3D camera fly-over: rx, ry, tz, scale all interpolated with the soft bezier.\n const flyT = interpolate(frame, [flyStartLocal, flyEndLocal], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: SOFT,\n });\n // Outro pull-back blends the camera away.\n const outroT = interpolate(\n frame,\n [outroStartLocal, outroStartLocal + 30],\n [0, 1],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: SOFT,\n },\n );\n\n const rx = interpolate(flyT, [0, 1], [0, -8]) * (1 - outroT);\n const ry = interpolate(flyT, [0, 1], [-6, 6]) * (1 - outroT);\n const tz =\n interpolate(flyT, [0, 1], [-220, 80]) * (1 - outroT) +\n outroT * -360;\n const scaleBoost =\n interpolate(flyT, [0, 1], [0.92, 1.04]) * (1 - outroT) + outroT * 0.84;\n\n // Drop-shadow blur grows when the camera hovers above the cards (tz > 0).\n const shadowBlur = Math.max(20, 28 + tz * 0.4);\n const shadowOpacity = 0.35 + Math.max(0, tz / 180) * 0.35;\n\n return (\n <AbsoluteFill\n style={{\n background,\n opacity: enter,\n perspective: 2000,\n perspectiveOrigin: \"50% 45%\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transformStyle: \"preserve-3d\",\n transform: `rotateX(${rx}deg) rotateY(${ry}deg) translateZ(${tz}px) scale(${scaleBoost})`,\n willChange: \"transform\",\n }}\n >\n {/* Faint border to suggest the app frame */}\n <div\n style={{\n position: \"absolute\",\n inset: 40,\n borderRadius: 24,\n border: `1px solid ${accentLavender}1f`,\n background:\n \"linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%)\",\n }}\n />\n\n {/* Glass code block on the left */}\n <div\n style={{\n position: \"absolute\",\n left: 80,\n top: 110,\n width: 520,\n height: 500,\n transform: \"translateZ(20px)\",\n filter: `drop-shadow(0 22px ${shadowBlur}px ${accentLavender}${toHex(\n shadowOpacity,\n )})`,\n }}\n >\n <FauxCodeBlock accentLavender={accentLavender} accentMint={accentMint} />\n </div>\n\n {/* Bento grid on the right */}\n <div\n style={{\n position: \"absolute\",\n right: 80,\n top: 110,\n width: 540,\n height: 500,\n transform: \"translateZ(40px)\",\n filter: `drop-shadow(0 22px ${shadowBlur}px ${accentPeach}${toHex(\n shadowOpacity,\n )})`,\n }}\n >\n <FauxBentoGrid\n accentPeach={accentPeach}\n accentLavender={accentLavender}\n accentMint={accentMint}\n speed={speed}\n />\n </div>\n </div>\n </AbsoluteFill>\n );\n}\n\nfunction FauxCodeBlock({\n accentLavender,\n accentMint,\n}: {\n accentLavender: string;\n accentMint: string;\n}) {\n const frame = useCurrentFrame();\n const lines = [\n { t: \"import { Trailer } from 'remocn'\", c: \"#c4b5fd\" },\n { t: \"\", c: \"\" },\n { t: \"export const Scene = () => (\", c: \"#e4e4e7\" },\n { t: \" <Trailer\", c: \"#e4e4e7\" },\n { t: ` label=\"v1.0\"`, c: \"#86efac\" },\n { t: ` accent=\"lavender\"`, c: \"#fcd34d\" },\n { t: \" />\", c: \"#e4e4e7\" },\n { t: \")\", c: \"#e4e4e7\" },\n ];\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n borderRadius: 20,\n background: \"rgba(20,19,24,0.78)\",\n backdropFilter: \"blur(18px)\",\n WebkitBackdropFilter: \"blur(18px)\",\n border: `1px solid ${accentLavender}33`,\n overflow: \"hidden\",\n fontFamily: MONO_FAMILY,\n }}\n >\n {/* Title bar */}\n <div\n style={{\n height: 38,\n display: \"flex\",\n alignItems: \"center\",\n gap: 8,\n padding: \"0 16px\",\n borderBottom: \"1px solid rgba(255,255,255,0.06)\",\n }}\n >\n {[\"#FFB38E\", \"#FCD34D\", accentMint].map((c) => (\n <div\n key={c}\n style={{\n width: 10,\n height: 10,\n borderRadius: \"50%\",\n background: c,\n opacity: 0.85,\n }}\n />\n ))}\n <span\n style={{\n marginLeft: 12,\n color: \"rgba(255,255,255,0.45)\",\n fontSize: 12,\n }}\n >\n scene.tsx\n </span>\n </div>\n\n {/* Code lines, staggered in */}\n <div style={{ padding: \"20px 22px\", display: \"flex\", flexDirection: \"column\", gap: 6 }}>\n {lines.map((line, i) => {\n const local = frame - 14 - i * 5;\n const o = interpolate(local, [0, 10], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const x = interpolate(local, [0, 10], [12, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n return (\n <div\n key={i}\n style={{\n display: \"flex\",\n gap: 14,\n opacity: o,\n transform: `translateX(${x}px)`,\n fontSize: 15,\n lineHeight: \"22px\",\n }}\n >\n <span style={{ color: \"#3f3f46\", width: 18, textAlign: \"right\" }}>\n {i + 1}\n </span>\n <span style={{ color: line.c || \"#e4e4e7\", whiteSpace: \"pre\" }}>\n {line.t || \" \"}\n </span>\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n\nfunction FauxBentoGrid({\n accentPeach,\n accentLavender,\n accentMint,\n speed,\n}: {\n accentPeach: string;\n accentLavender: string;\n accentMint: string;\n speed: number;\n}) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const cards: Array<{ title: string; body: string; tint: string; span: 1 | 2 }> = [\n { title: \"Animations\", body: \"Spring-tuned\", tint: accentLavender, span: 2 },\n { title: \"Transitions\", body: \"Cinematic\", tint: accentPeach, span: 1 },\n { title: \"Backgrounds\", body: \"Volumetric\", tint: accentMint, span: 1 },\n { title: \"Compositions\", body: \"Production-ready\", tint: accentLavender, span: 2 },\n ];\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"grid\",\n gridTemplateColumns: \"1fr 1fr\",\n gap: 16,\n }}\n >\n {cards.map((c, i) => {\n const progress = spring({\n frame: frame - 30 - i * 8,\n fps,\n config: { damping: 14, stiffness: 110, mass: 0.7 },\n durationInFrames: 28,\n });\n return (\n <div\n key={c.title}\n style={{\n gridColumn: c.span === 2 ? \"span 2\" : \"span 1\",\n minHeight: 110,\n padding: 22,\n borderRadius: 18,\n background:\n \"linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%)\",\n border: `1px solid ${c.tint}33`,\n boxShadow: `inset 0 1px 0 rgba(255,255,255,0.06)`,\n opacity: progress,\n transform: `translateY(${(1 - progress) * 18}px) scale(${\n 0.92 + progress * 0.08\n })`,\n transformOrigin: \"center\",\n willChange: \"transform, opacity\",\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"flex-end\",\n }}\n >\n <div\n style={{\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 22,\n fontWeight: 600,\n letterSpacing: \"-0.02em\",\n }}\n >\n {c.title}\n </div>\n <div\n style={{\n color: `${c.tint}cc`,\n fontFamily: FONT_FAMILY,\n fontSize: 13,\n marginTop: 2,\n }}\n >\n {c.body}\n </div>\n </div>\n );\n })}\n </div>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Phase 3 */\n/* -------------------------------------------------------------------------- */\n\nfunction Outro({\n versionLabel,\n accentMint,\n accentPeach,\n accentLavender,\n speed,\n}: {\n versionLabel: string;\n accentMint: string;\n accentPeach: string;\n accentLavender: string;\n speed: number;\n}) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n // Heading drops in with a soft spring.\n const drop = spring({\n frame: frame - 6,\n fps,\n config: { damping: 14, stiffness: 110, mass: 0.7 },\n durationInFrames: 28,\n });\n const headingY = interpolate(drop, [0, 1], [-40, 0]);\n const headingOpacity = interpolate(drop, [0, 1], [0, 1]);\n\n // Confetti — lightweight inline burst (no SuccessConfetti import to avoid\n // its full-frame background).\n const particles = Array.from({ length: 70 }, (_, i) => {\n const angle = random(`pl:${i}:a`) * Math.PI * 2;\n const v = 9 + random(`pl:${i}:v`) * 9;\n const sz = 5 + random(`pl:${i}:s`) * 7;\n const f = Math.max(0, frame - 14 - Math.floor(random(`pl:${i}:d`) * 6));\n const cx = 640 + Math.cos(angle) * v * f;\n const cy = 280 + Math.sin(angle) * v * f + 0.4 * f * f;\n const colors = [accentMint, accentPeach, accentLavender, \"#FCD34D\"];\n const color = colors[Math.floor(random(`pl:${i}:c`) * colors.length)];\n const opacity = interpolate(f, [0, 4, 38, 50], [0, 1, 1, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n return { cx, cy, sz, color, opacity, key: i };\n });\n\n return (\n <AbsoluteFill style={{ pointerEvents: \"none\" }}>\n {/* Confetti layer */}\n <svg\n width={1280}\n height={720}\n viewBox=\"0 0 1280 720\"\n style={{ position: \"absolute\", inset: 0 }}\n >\n {particles.map((p) => (\n <rect\n key={p.key}\n x={p.cx - p.sz / 2}\n y={p.cy - p.sz / 2}\n width={p.sz}\n height={p.sz * 0.55}\n rx={1}\n fill={p.color}\n opacity={p.opacity}\n />\n ))}\n </svg>\n\n {/* Heading */}\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: 240,\n textAlign: \"center\",\n transform: `translateY(${headingY}px)`,\n opacity: headingOpacity,\n willChange: \"transform, opacity\",\n }}\n >\n <div\n style={{\n fontFamily: FONT_FAMILY,\n fontSize: 96,\n fontWeight: 700,\n letterSpacing: \"-0.04em\",\n color: \"white\",\n textShadow: `0 0 60px ${accentMint}55`,\n }}\n >\n {versionLabel}\n </div>\n </div>\n </AbsoluteFill>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Helpers */\n/* -------------------------------------------------------------------------- */\n\nfunction toHex(alpha: number) {\n const clamped = Math.max(0, Math.min(1, alpha));\n return Math.round(clamped * 255)\n .toString(16)\n .padStart(2, \"0\");\n}\n",
- "type": "registry:component",
- "target": "components/remocn/product-launch-trailer.tsx"
- }
- ],
- "type": "registry:component"
-}
\ No newline at end of file
diff --git a/public/r/pulsing-indicator.json b/public/r/pulsing-indicator.json
deleted file mode 100644
index e3fe9d33..00000000
--- a/public/r/pulsing-indicator.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
- "name": "pulsing-indicator",
- "title": "Pulsing Indicator",
- "description": "Continuous pulsing dot with ping ring for loading or live states.",
- "dependencies": [
- "remotion"
- ],
- "files": [
- {
- "path": "registry/remocn/pulsing-indicator/index.tsx",
- "content": "\"use client\";\n\nimport { useCurrentFrame } from \"remotion\";\n\nexport interface PulsingIndicatorProps {\n color?: string;\n size?: number;\n /** Wavelength of the base pulse, in frames. Higher = longer one cycle. */\n period?: number;\n /** Playback speed multiplier (1 = normal, 2 = twice as fast). */\n speed?: number;\n background?: string;\n className?: string;\n}\n\nexport function PulsingIndicator({\n color = \"#22c55e\",\n size = 16,\n period = 8,\n speed = 1,\n background = \"white\",\n className,\n}: PulsingIndicatorProps) {\n const frame = useCurrentFrame() * speed;\n\n // Inner dot pulse: 0..1 normalized\n const wave = Math.sin(frame / period) * 0.5 + 0.5;\n const dotScale = 0.9 + wave * 0.2;\n const dotOpacity = 0.6 + wave * 0.4;\n\n // Outer ring \"ping\": phase from 0..1 looping\n const ringPeriod = period * Math.PI * 2;\n const phase = (frame % ringPeriod) / ringPeriod;\n const ringScale = 1 + phase * 1.6;\n const ringOpacity = (1 - phase) * 0.7;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background,\n }}\n >\n <div\n style={{\n position: \"relative\",\n width: size,\n height: size,\n }}\n >\n {/* Ping ring */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n borderRadius: \"50%\",\n background: color,\n opacity: ringOpacity,\n transform: `scale(${ringScale})`,\n transformOrigin: \"center\",\n willChange: \"transform, opacity\",\n }}\n />\n {/* Solid dot */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n borderRadius: \"50%\",\n background: color,\n opacity: dotOpacity,\n transform: `scale(${dotScale})`,\n transformOrigin: \"center\",\n willChange: \"transform, opacity\",\n }}\n />\n </div>\n </div>\n );\n}\n",
- "type": "registry:component",
- "target": "components/remocn/pulsing-indicator.tsx"
- }
- ],
- "type": "registry:component"
-}
\ No newline at end of file
diff --git a/public/r/registry.json b/public/r/registry.json
index a0fcd5c4..33577044 100644
--- a/public/r/registry.json
+++ b/public/r/registry.json
@@ -45,20 +45,6 @@
}
]
},
- {
- "name": "text-fade-replace",
- "type": "registry:component",
- "title": "Text Fade Replace",
- "description": "Cross-fades between two strings on the same line without layout shift.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/text-fade-replace/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/text-fade-replace.tsx"
- }
- ]
- },
{
"name": "strikethrough-replace",
"type": "registry:component",
@@ -255,20 +241,6 @@
}
]
},
- {
- "name": "pulsing-indicator",
- "type": "registry:component",
- "title": "Pulsing Indicator",
- "description": "Continuous pulsing dot with ping ring for loading or live states.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/pulsing-indicator/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/pulsing-indicator.tsx"
- }
- ]
- },
{
"name": "directional-wipe",
"type": "registry:component",
@@ -311,20 +283,6 @@
}
]
},
- {
- "name": "staggered-bento-grid",
- "type": "registry:component",
- "title": "Staggered Bento Grid",
- "description": "Cards pop into a bento grid one after another with a spring.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/staggered-bento-grid/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/staggered-bento-grid.tsx"
- }
- ]
- },
{
"name": "chat-to-preview-layout",
"type": "registry:component",
@@ -451,20 +409,6 @@
}
]
},
- {
- "name": "morphing-modal",
- "type": "registry:component",
- "title": "Morphing Modal",
- "description": "A bento card lifts off the grid and blooms into a full-screen modal driven by a single heavy spring.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/morphing-modal/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/morphing-modal.tsx"
- }
- ]
- },
{
"name": "data-flow-pipes",
"type": "registry:component",
@@ -479,20 +423,6 @@
}
]
},
- {
- "name": "cursor-flow",
- "type": "registry:component",
- "title": "Cursor Flow",
- "description": "A realistic mouse that arcs along cubic Bezier paths, pauses, and clicks targets that dip in response.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/cursor-flow/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/cursor-flow.tsx"
- }
- ]
- },
{
"name": "code-accordion",
"type": "registry:component",
@@ -703,20 +633,6 @@
}
]
},
- {
- "name": "pipeline-journey",
- "type": "registry:component",
- "title": "Pipeline Journey",
- "description": "A Kanban ticket arcs across columns triggering landings and a final confetti burst.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/pipeline-journey/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/pipeline-journey.tsx"
- }
- ]
- },
{
"name": "dashboard-populate",
"type": "registry:component",
@@ -787,34 +703,6 @@
}
]
},
- {
- "name": "brush-stroke-simulator",
- "type": "registry:component",
- "title": "Brush Stroke Simulator",
- "description": "A simulated finger brushes across an image, revealing a pixelated layer along its bezier path.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/brush-stroke-simulator/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/brush-stroke-simulator.tsx"
- }
- ]
- },
- {
- "name": "ai-generate-overlay",
- "type": "registry:component",
- "title": "AI Generate Overlay",
- "description": "Source image blurs under a shimmering dot grid and a pulsing 'Generating…' pill before a new image fades in.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/ai-generate-overlay/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/ai-generate-overlay.tsx"
- }
- ]
- },
{
"name": "tool-menu-slide-in",
"type": "registry:component",
@@ -844,58 +732,16 @@
]
},
{
- "name": "swipe-transition-wipe",
- "type": "registry:component",
- "title": "Swipe Transition Wipe",
- "description": "Two scenes laid out side-by-side flick across the screen with a parallax background and a darkening outgoing layer.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/swipe-transition-wipe/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/swipe-transition-wipe.tsx"
- }
- ]
- },
- {
- "name": "product-launch-trailer",
+ "name": "github-stars",
"type": "registry:component",
- "title": "Product Launch Trailer",
- "description": "Cinematic Product Hunt teaser: pulsing logo, zoom-through transition, 3D bento fly-over, and a confetti version drop.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/product-launch-trailer/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/product-launch-trailer.tsx"
- }
- ]
- },
- {
- "name": "changelog-bite",
- "type": "registry:component",
- "title": "Changelog Bite",
- "description": "Seamlessly looping square card showing a before/after diff with a frosted glass wipe and a pulsing New pill.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/changelog-bite/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/changelog-bite.tsx"
- }
- ]
- },
- {
- "name": "visual-docs-snippet",
- "type": "registry:component",
- "title": "Visual Docs Snippet",
- "description": "Calm tutorial flow: a virtual cursor arcs to a button, clicks, and a bounding box plus tooltip explain what just happened.",
- "dependencies": ["remotion"],
+ "title": "GitHub Stars",
+ "description": "Inertial fly-through of a repo's stargazers with a synced count-up odometer that locks on the total. Horizontal 16:9 or vertical 9:16.",
+ "dependencies": ["remotion", "date-fns", "@remotion/google-fonts"],
"files": [
{
- "path": "registry/remocn/visual-docs-snippet/index.tsx",
+ "path": "registry/remocn/github-stars/index.tsx",
"type": "registry:component",
- "target": "components/remocn/visual-docs-snippet.tsx"
+ "target": "components/remocn/github-stars.tsx"
}
]
}
diff --git a/public/r/staggered-bento-grid.json b/public/r/staggered-bento-grid.json
deleted file mode 100644
index bce85104..00000000
--- a/public/r/staggered-bento-grid.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
- "name": "staggered-bento-grid",
- "title": "Staggered Bento Grid",
- "description": "Cards pop into a bento grid one after another with a spring.",
- "dependencies": [
- "remotion"
- ],
- "files": [
- {
- "path": "registry/remocn/staggered-bento-grid/index.tsx",
- "content": "\"use client\";\n\nimport { Sequence, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface BentoItem {\n title: string;\n body?: string;\n span?: 1 | 2;\n}\n\nexport interface StaggeredBentoGridProps {\n items?: BentoItem[];\n staggerDelay?: number;\n columns?: number;\n background?: string;\n cardColor?: string;\n textColor?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nconst DEFAULT_ITEMS: BentoItem[] = [\n { title: \"Fast\", body: \"Built on Remotion\", span: 2 },\n { title: \"Animated\", body: \"Spring physics\" },\n { title: \"Composable\", body: \"Drop-in blocks\" },\n { title: \"Themed\", body: \"Tailwind ready\" },\n { title: \"Typed\", body: \"First-class TS\" },\n { title: \"Open\", body: \"MIT licensed\", span: 2 },\n { title: \"Tiny\", body: \"Zero runtime cost\" },\n];\n\nfunction Card({\n item,\n cardColor,\n textColor,\n speed,\n}: {\n item: BentoItem;\n cardColor: string;\n textColor: string;\n speed: number;\n}) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const progress = spring({\n frame,\n fps,\n durationInFrames: Math.round(0.6 * fps),\n config: { damping: 12 },\n });\n\n return (\n <div\n style={{\n gridColumn: `span ${item.span ?? 1}`,\n background: cardColor,\n borderRadius: 16,\n padding: 24,\n opacity: progress,\n transform: `scale(${0.85 + progress * 0.15})`,\n transformOrigin: \"center center\",\n willChange: \"transform, opacity\",\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"flex-end\",\n minHeight: 140,\n border: \"1px solid rgba(255,255,255,0.08)\",\n }}\n >\n <div\n style={{\n color: textColor,\n fontFamily: FONT_FAMILY,\n fontSize: 28,\n fontWeight: 700,\n letterSpacing: \"-0.03em\",\n marginBottom: 4,\n }}\n >\n {item.title}\n </div>\n {item.body ? (\n <div\n style={{\n color: textColor,\n opacity: 0.6,\n fontFamily: FONT_FAMILY,\n fontSize: 16,\n fontWeight: 400,\n }}\n >\n {item.body}\n </div>\n ) : null}\n </div>\n );\n}\n\nexport function StaggeredBentoGrid({\n items = DEFAULT_ITEMS,\n staggerDelay = 8,\n columns = 3,\n background = \"#0a0a0a\",\n cardColor = \"#1a1a1a\",\n textColor = \"white\",\n speed = 1,\n className,\n}: StaggeredBentoGridProps) {\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n padding: 64,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <div\n style={{\n display: \"grid\",\n gridTemplateColumns: `repeat(${columns}, 1fr)`,\n gap: 20,\n width: \"100%\",\n maxWidth: 1100,\n }}\n >\n {items.map((item, index) => (\n <Sequence\n key={index}\n from={Math.round((index * staggerDelay) / speed)}\n layout=\"none\"\n >\n <Card\n item={item}\n cardColor={cardColor}\n textColor={textColor}\n speed={speed}\n />\n </Sequence>\n ))}\n </div>\n </div>\n );\n}\n",
- "type": "registry:component",
- "target": "components/remocn/staggered-bento-grid.tsx"
- }
- ],
- "type": "registry:component"
-}
\ No newline at end of file
diff --git a/public/r/swipe-transition-wipe.json b/public/r/swipe-transition-wipe.json
deleted file mode 100644
index 47b79dab..00000000
--- a/public/r/swipe-transition-wipe.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
- "name": "swipe-transition-wipe",
- "title": "Swipe Transition Wipe",
- "description": "Two scenes laid out side-by-side flick across the screen with a parallax background and a darkening outgoing layer.",
- "dependencies": [
- "remotion"
- ],
- "files": [
- {
- "path": "registry/remocn/swipe-transition-wipe/index.tsx",
- "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface SwipeTransitionWipeProps {\n sceneA?: ReactNode;\n sceneB?: ReactNode;\n labelA?: string;\n labelB?: string;\n colorA1?: string;\n colorA2?: string;\n colorB1?: string;\n colorB2?: string;\n background?: string;\n direction?: \"left\" | \"right\";\n swipeAt?: number;\n parallaxFactor?: number;\n dimStrength?: number;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction DefaultScene({\n label,\n c1,\n c2,\n}: {\n label: string;\n c1: string;\n c2: string;\n}) {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: `linear-gradient(135deg, ${c1} 0%, ${c2} 100%)`,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 128,\n fontWeight: 700,\n letterSpacing: \"-0.05em\",\n textShadow: \"0 8px 40px rgba(0,0,0,0.35)\",\n }}\n >\n {label}\n </div>\n );\n}\n\nfunction ParallaxBackground({ background }: { background: string }) {\n // Doubled-width dot grid layer so parallax translation never reveals an edge.\n const dots: Array<{ x: number; y: number }> = [];\n const cols = 40;\n const rows = 12;\n const gapX = 64;\n const gapY = 64;\n for (let r = 0; r < rows; r++) {\n for (let c = 0; c < cols; c++) {\n dots.push({ x: c * gapX + 32, y: r * gapY + 32 });\n }\n }\n return (\n <div\n style={{\n position: \"absolute\",\n top: 0,\n left: 0,\n width: \"200%\",\n height: \"100%\",\n background,\n }}\n >\n <svg\n width=\"100%\"\n height=\"100%\"\n style={{ position: \"absolute\", inset: 0 }}\n >\n {dots.map((d, i) => (\n <circle\n key={i}\n cx={d.x}\n cy={d.y}\n r={2}\n fill=\"rgba(255,255,255,0.08)\"\n />\n ))}\n </svg>\n </div>\n );\n}\n\nexport function SwipeTransitionWipe({\n sceneA,\n sceneB,\n labelA = \"First\",\n labelB = \"Second\",\n colorA1 = \"#0ea5e9\",\n colorA2 = \"#1e3a8a\",\n colorB1 = \"#f97316\",\n colorB2 = \"#9333ea\",\n background = \"#050505\",\n direction = \"left\",\n swipeAt = 30,\n parallaxFactor = 0.6,\n dimStrength = 0.4,\n speed = 1,\n className,\n}: SwipeTransitionWipeProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n // A snappy spring with a touch of overshoot — feels like a flick.\n const swipe = spring({\n frame: frame - swipeAt,\n fps,\n config: { mass: 1, damping: 22, stiffness: 140 },\n durationInFrames: 50,\n });\n\n // direction: \"left\" → outgoing slides left (translateX negative).\n // direction: \"right\" → outgoing slides right (translateX positive).\n const sign = direction === \"left\" ? -1 : 1;\n\n // Foreground slider: 0% → -100% (or +100%) of its own width.\n const foregroundTx = swipe * 100 * sign;\n\n // Parallax background moves at parallaxFactor of foreground speed.\n // Layer is 200% wide so it can travel up to 50% in either direction.\n const backgroundTx = swipe * 50 * sign * parallaxFactor;\n\n // Outgoing scene gets darker as it leaves.\n const dimAlpha = interpolate(swipe, [0, 1], [0, dimStrength], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const sceneAContent = sceneA ?? (\n <DefaultScene label={labelA} c1={colorA1} c2={colorA2} />\n );\n const sceneBContent = sceneB ?? (\n <DefaultScene label={labelB} c1={colorB1} c2={colorB2} />\n );\n\n // Order children so the incoming scene sits next to the outgoing one\n // in the swipe direction. For \"left\" swipes the new scene must be to\n // the right; for \"right\" swipes it must be to the left.\n const orderedScenes =\n direction === \"left\"\n ? [sceneAContent, sceneBContent]\n : [sceneBContent, sceneAContent];\n\n // For \"right\" swipes the slider needs to start at -100% so that scene A\n // is centered on stage initially.\n const baseOffset = direction === \"left\" ? 0 : -100;\n const sliderTx = baseOffset + foregroundTx;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n background,\n }}\n >\n {/* Parallax background layer */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: `translateX(${backgroundTx}%)`,\n willChange: \"transform\",\n }}\n >\n <ParallaxBackground background={background} />\n </div>\n\n {/* Foreground slider — two scenes laid out side by side */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n width: \"200%\",\n transform: `translateX(${sliderTx}%)`,\n willChange: \"transform\",\n }}\n >\n {orderedScenes.map((scene, i) => {\n // The \"outgoing\" scene is whichever one started centered.\n const isOutgoing =\n (direction === \"left\" && i === 0) ||\n (direction === \"right\" && i === 1);\n return (\n <div\n key={i}\n style={{\n position: \"relative\",\n width: \"50%\",\n flexShrink: 0,\n overflow: \"hidden\",\n }}\n >\n {scene}\n {isOutgoing && (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: `rgba(0,0,0,${dimAlpha})`,\n pointerEvents: \"none\",\n }}\n />\n )}\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n",
- "type": "registry:component",
- "target": "components/remocn/swipe-transition-wipe.tsx"
- }
- ],
- "type": "registry:component"
-}
\ No newline at end of file
diff --git a/public/r/terminal-simulator.json b/public/r/terminal-simulator.json
index 983d09d7..920c4e9e 100644
--- a/public/r/terminal-simulator.json
+++ b/public/r/terminal-simulator.json
@@ -9,7 +9,7 @@
"files": [
{
"path": "registry/remocn/terminal-simulator/index.tsx",
- "content": "\"use client\";\n\nimport {\n Sequence,\n interpolate,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport type TerminalLineType = \"command\" | \"log\" | \"success\" | \"error\";\n\nexport interface TerminalLine {\n text: string;\n type: TerminalLineType;\n delay?: number;\n /**\n * Extra freeze-frame pause AFTER this line finishes typing, in frames.\n * Use this to build dramatic tension before the next batch of logs.\n * If omitted, lines whose text ends in \"...\" auto-freeze for 18 frames.\n */\n pause?: number;\n}\n\nexport interface TerminalSimulatorProps {\n lines?: TerminalLine[];\n prompt?: string;\n title?: string;\n background?: string;\n chromeColor?: string;\n fontSize?: number;\n /**\n * Reveal speed. Despite the name, the reveal is now CHUNKED — each\n * `1 / charsPerFrame` frames bumps the cursor by `chunkSize` characters,\n * so output appears in bursts instead of dripping char-by-char.\n */\n charsPerFrame?: number;\n /** Characters revealed per step. */\n chunkSize?: number;\n speed?: number;\n className?: string;\n}\n\nconst DEFAULT_LINES: TerminalLine[] = [\n { text: \"npm run build\", type: \"command\", delay: 0 },\n { text: \"Resolving dependencies...\", type: \"log\", delay: 6 },\n { text: \"> [email protected] build\", type: \"log\", delay: 4 },\n { text: \"> next build\", type: \"log\", delay: 4 },\n { text: \"Compiling...\", type: \"log\", delay: 12 },\n { text: \"Compiled successfully in 4.2s\", type: \"success\", delay: 14 },\n { text: \"Generating static pages (24/24)\", type: \"log\", delay: 10 },\n { text: \"Build completed without errors\", type: \"success\", delay: 12 },\n];\n\nconst TYPE_COLORS: Record<TerminalLineType, string> = {\n command: \"#fafafa\",\n log: \"#a1a1aa\",\n success: \"#22c55e\",\n error: \"#ef4444\",\n};\n\n/** Auto freeze-frame heuristic: any line ending in \"...\" holds the camera. */\nfunction autoPause(line: TerminalLine): number {\n if (line.pause !== undefined) return line.pause;\n if (line.text.trimEnd().endsWith(\"...\")) return 18;\n return 0;\n}\n\nexport function TerminalSimulator({\n lines = DEFAULT_LINES,\n prompt = \"$\",\n title = \"~/projects/remocn\",\n background = \"#0a0a0a\",\n chromeColor = \"#1a1a1a\",\n fontSize = 18,\n charsPerFrame = 1,\n chunkSize = 4,\n speed = 1,\n className,\n}: TerminalSimulatorProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const lineHeight = Math.round(fontSize * 1.6);\n const visibleLines = 8;\n const windowWidth = 900;\n const windowHeight = 480;\n\n // Compute cumulative start frames for each line, including auto/explicit\n // pauses AFTER a line finishes typing.\n const starts: number[] = [];\n let acc = 10;\n for (let i = 0; i < lines.length; i++) {\n const delay = lines[i].delay ?? 8;\n acc += delay;\n starts.push(acc);\n // Approximate typing duration (in frames) for chunked output.\n const typingFrames = Math.ceil(\n lines[i].text.length / (chunkSize * charsPerFrame),\n );\n acc += typingFrames + autoPause(lines[i]);\n }\n\n // STEP-FUNCTION scroll. Each overflowing line snaps the buffer up by\n // exactly one lineHeight on the frame it begins. No interpolation, no\n // easing — terminals do not glide.\n let translateY = 0;\n for (let i = visibleLines; i < lines.length; i++) {\n if (frame >= starts[i]) {\n translateY -= lineHeight;\n }\n }\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"#050505\",\n }}\n >\n <div\n style={{\n width: windowWidth,\n height: windowHeight,\n background,\n borderRadius: 12,\n overflow: \"hidden\",\n boxShadow:\n \"0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06)\",\n display: \"flex\",\n flexDirection: \"column\",\n fontFamily:\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace\",\n }}\n >\n {/* Chrome */}\n <div\n style={{\n height: 40,\n background: chromeColor,\n display: \"flex\",\n alignItems: \"center\",\n padding: \"0 16px\",\n gap: 8,\n borderBottom: \"1px solid rgba(255,255,255,0.06)\",\n }}\n >\n <Light color=\"#ff5f57\" />\n <Light color=\"#febc2e\" />\n <Light color=\"#28c840\" />\n <div\n style={{\n flex: 1,\n textAlign: \"center\",\n color: \"#71717a\",\n fontSize: 13,\n }}\n >\n {title}\n </div>\n </div>\n\n {/* Content */}\n <div\n style={{\n flex: 1,\n padding: 20,\n overflow: \"hidden\",\n position: \"relative\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: 20,\n right: 20,\n top: 20,\n transform: `translateY(${translateY}px)`,\n }}\n >\n {lines.map((line, index) => (\n <Sequence\n key={index}\n from={Math.round(starts[index] / speed)}\n layout=\"none\"\n >\n <TerminalLineRow\n line={line}\n prompt={prompt}\n fontSize={fontSize}\n lineHeight={lineHeight}\n charsPerFrame={charsPerFrame}\n chunkSize={chunkSize}\n fps={fps}\n speed={speed}\n />\n </Sequence>\n ))}\n </div>\n </div>\n </div>\n </div>\n );\n}\n\nfunction Light({ color }: { color: string }) {\n return (\n <div\n style={{\n width: 12,\n height: 12,\n borderRadius: \"50%\",\n background: color,\n opacity: 0.85,\n }}\n />\n );\n}\n\nfunction TerminalLineRow({\n line,\n prompt,\n fontSize,\n lineHeight,\n charsPerFrame,\n chunkSize,\n fps,\n speed,\n}: {\n line: TerminalLine;\n prompt: string;\n fontSize: number;\n lineHeight: number;\n charsPerFrame: number;\n chunkSize: number;\n fps: number;\n speed: number;\n}) {\n const localFrame = useCurrentFrame() * speed;\n const totalChars = line.text.length;\n\n // Chunked reveal: Math.floor of an interpolated count, then snapped to the\n // nearest multiple of `chunkSize`. This is what gives the bursty terminal\n // feel — text doesn't drip, it lurches.\n const linearRevealed = Math.floor(\n interpolate(localFrame, [0, totalChars / charsPerFrame], [0, totalChars], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n }),\n );\n const revealed = Math.min(\n totalChars,\n Math.ceil(linearRevealed / chunkSize) * chunkSize,\n );\n const visible = line.text.substring(0, revealed);\n const typingDone = revealed >= totalChars;\n // 2 Hz blink at any framerate.\n const cursorVisible = Math.floor((localFrame / fps) * 2) % 2 === 0;\n\n return (\n <div\n style={{\n height: lineHeight,\n fontSize,\n color: TYPE_COLORS[line.type],\n display: \"flex\",\n alignItems: \"center\",\n whiteSpace: \"pre\",\n }}\n >\n {line.type === \"command\" && (\n <span style={{ color: \"#22c55e\", marginRight: 8 }}>{prompt}</span>\n )}\n <span>{visible}</span>\n {!typingDone && cursorVisible && (\n <span\n style={{\n display: \"inline-block\",\n width: fontSize * 0.55,\n height: fontSize,\n background: TYPE_COLORS[line.type],\n marginLeft: 2,\n }}\n />\n )}\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport {\n Sequence,\n interpolate,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport type TerminalLineType = \"command\" | \"log\" | \"success\" | \"error\";\n\nexport interface TerminalLine {\n text: string;\n type: TerminalLineType;\n delay?: number;\n /**\n * Extra freeze-frame pause AFTER this line finishes typing, in frames.\n * Use this to build dramatic tension before the next batch of logs.\n * If omitted, lines whose text ends in \"...\" auto-freeze for 18 frames.\n */\n pause?: number;\n}\n\nexport interface TerminalSimulatorProps {\n lines?: TerminalLine[];\n prompt?: string;\n title?: string;\n background?: string;\n chromeColor?: string;\n fontSize?: number;\n /**\n * Reveal speed. Despite the name, the reveal is now CHUNKED — each\n * `1 / charsPerFrame` frames bumps the cursor by `chunkSize` characters,\n * so output appears in bursts instead of dripping char-by-char.\n */\n charsPerFrame?: number;\n /** Characters revealed per step. */\n chunkSize?: number;\n speed?: number;\n className?: string;\n}\n\nconst DEFAULT_LINES: TerminalLine[] = [\n { text: \"npm run build\", type: \"command\", delay: 0 },\n { text: \"Resolving dependencies...\", type: \"log\", delay: 6 },\n { text: \"> [email protected] build\", type: \"log\", delay: 4 },\n { text: \"> next build\", type: \"log\", delay: 4 },\n { text: \"Compiling...\", type: \"log\", delay: 12 },\n { text: \"Compiled successfully in 4.2s\", type: \"success\", delay: 14 },\n { text: \"Generating static pages (24/24)\", type: \"log\", delay: 10 },\n { text: \"Build completed without errors\", type: \"success\", delay: 12 },\n];\n\nconst TYPE_COLORS: Record<TerminalLineType, string> = {\n command: \"#fafafa\",\n log: \"#a1a1aa\",\n success: \"#22c55e\",\n error: \"#ef4444\",\n};\n\n/** Auto freeze-frame heuristic: any line ending in \"...\" holds the camera. */\nfunction autoPause(line: TerminalLine): number {\n if (line.pause !== undefined) return line.pause;\n if (line.text.trimEnd().endsWith(\"...\")) return 18;\n return 0;\n}\n\nexport function TerminalSimulator({\n lines = DEFAULT_LINES,\n prompt = \"$\",\n title = \"~/projects/remocn\",\n background = \"#0a0a0a\",\n chromeColor = \"#1a1a1a\",\n fontSize = 18,\n charsPerFrame = 1,\n chunkSize = 1,\n speed = 1,\n className,\n}: TerminalSimulatorProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const lineHeight = Math.round(fontSize * 1.6);\n const visibleLines = 8;\n const windowWidth = 900;\n const windowHeight = 480;\n\n // Compute cumulative start frames for each line, including auto/explicit\n // pauses AFTER a line finishes typing.\n const starts: number[] = [];\n let acc = 10;\n for (let i = 0; i < lines.length; i++) {\n const delay = lines[i].delay ?? 8;\n acc += delay;\n starts.push(acc);\n // Approximate typing duration (in frames) for chunked output.\n const typingFrames = Math.ceil(\n lines[i].text.length / (chunkSize * charsPerFrame),\n );\n acc += typingFrames + autoPause(lines[i]);\n }\n\n // STEP-FUNCTION scroll. Each overflowing line snaps the buffer up by\n // exactly one lineHeight on the frame it begins. No interpolation, no\n // easing — terminals do not glide.\n let translateY = 0;\n for (let i = visibleLines; i < lines.length; i++) {\n if (frame >= starts[i]) {\n translateY -= lineHeight;\n }\n }\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"#050505\",\n }}\n >\n <div\n style={{\n width: windowWidth,\n height: windowHeight,\n background,\n borderRadius: 12,\n overflow: \"hidden\",\n boxShadow:\n \"0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06)\",\n display: \"flex\",\n flexDirection: \"column\",\n fontFamily:\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace\",\n }}\n >\n {/* Chrome */}\n <div\n style={{\n height: 40,\n background: chromeColor,\n display: \"flex\",\n alignItems: \"center\",\n padding: \"0 16px\",\n gap: 8,\n borderBottom: \"1px solid rgba(255,255,255,0.06)\",\n }}\n >\n <Light color=\"#ff5f57\" />\n <Light color=\"#febc2e\" />\n <Light color=\"#28c840\" />\n <div\n style={{\n flex: 1,\n textAlign: \"center\",\n color: \"#71717a\",\n fontSize: 13,\n }}\n >\n {title}\n </div>\n </div>\n\n {/* Content */}\n <div\n style={{\n flex: 1,\n padding: 20,\n overflow: \"hidden\",\n position: \"relative\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: 20,\n right: 20,\n top: 20,\n transform: `translateY(${translateY}px)`,\n }}\n >\n {lines.map((line, index) => (\n <Sequence\n key={index}\n from={Math.round(starts[index] / speed)}\n layout=\"none\"\n >\n <TerminalLineRow\n line={line}\n prompt={prompt}\n fontSize={fontSize}\n lineHeight={lineHeight}\n charsPerFrame={charsPerFrame}\n chunkSize={chunkSize}\n fps={fps}\n speed={speed}\n />\n </Sequence>\n ))}\n </div>\n </div>\n </div>\n </div>\n );\n}\n\nfunction Light({ color }: { color: string }) {\n return (\n <div\n style={{\n width: 12,\n height: 12,\n borderRadius: \"50%\",\n background: color,\n opacity: 0.85,\n }}\n />\n );\n}\n\nfunction TerminalLineRow({\n line,\n prompt,\n fontSize,\n lineHeight,\n charsPerFrame,\n chunkSize,\n fps,\n speed,\n}: {\n line: TerminalLine;\n prompt: string;\n fontSize: number;\n lineHeight: number;\n charsPerFrame: number;\n chunkSize: number;\n fps: number;\n speed: number;\n}) {\n const localFrame = useCurrentFrame() * speed;\n const totalChars = line.text.length;\n\n // Chunked reveal: Math.floor of an interpolated count, then snapped to the\n // nearest multiple of `chunkSize`. This is what gives the bursty terminal\n // feel — text doesn't drip, it lurches.\n const linearRevealed = Math.floor(\n interpolate(localFrame, [0, totalChars / charsPerFrame], [0, totalChars], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n }),\n );\n const revealed = Math.min(\n totalChars,\n Math.ceil(linearRevealed / chunkSize) * chunkSize,\n );\n const visible = line.text.substring(0, revealed);\n const typingDone = revealed >= totalChars;\n // 2 Hz blink at any framerate.\n const cursorVisible = Math.floor((localFrame / fps) * 2) % 2 === 0;\n\n return (\n <div\n style={{\n height: lineHeight,\n fontSize,\n color: TYPE_COLORS[line.type],\n display: \"flex\",\n alignItems: \"center\",\n whiteSpace: \"pre\",\n }}\n >\n {line.type === \"command\" && (\n <span style={{ color: \"#22c55e\", marginRight: 8 }}>{prompt}</span>\n )}\n <span>{visible}</span>\n {!typingDone && cursorVisible && (\n <span\n style={{\n display: \"inline-block\",\n width: fontSize * 0.55,\n height: fontSize,\n background: TYPE_COLORS[line.type],\n marginLeft: 2,\n }}\n />\n )}\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/terminal-simulator.tsx"
}
diff --git a/public/r/text-fade-replace.json b/public/r/text-fade-replace.json
deleted file mode 100644
index 6b295727..00000000
--- a/public/r/text-fade-replace.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
- "name": "text-fade-replace",
- "title": "Text Fade Replace",
- "description": "Cross-fades between two strings on the same line without layout shift.",
- "dependencies": [
- "remotion"
- ],
- "files": [
- {
- "path": "registry/remocn/text-fade-replace/index.tsx",
- "content": "\"use client\";\n\nimport { interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface TextFadeReplaceProps {\n from: string;\n to: string;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n speed?: number;\n className?: string;\n}\n\nexport function TextFadeReplace({\n from,\n to,\n fontSize = 48,\n color = \"#171717\",\n fontWeight = 600,\n speed = 1,\n className,\n}: TextFadeReplaceProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const stops = [\n 0,\n durationInFrames * 0.4,\n durationInFrames * 0.6,\n durationInFrames,\n ];\n\n const fromOpacity = interpolate(frame, stops, [1, 1, 0, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const fromY = interpolate(frame, stops, [0, 0, -12, -12], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const toOpacity = interpolate(frame, stops, [0, 0, 1, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const toY = interpolate(frame, stops, [12, 12, 0, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const baseSpanStyle: React.CSSProperties = {\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n whiteSpace: \"nowrap\",\n };\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <div style={{ position: \"relative\", width: 0, height: 0 }}>\n <span\n className={className}\n style={{\n ...baseSpanStyle,\n opacity: fromOpacity,\n transform: `translate(-50%, calc(-50% + ${fromY}px))`,\n }}\n >\n {from}\n </span>\n <span\n className={className}\n style={{\n ...baseSpanStyle,\n opacity: toOpacity,\n transform: `translate(-50%, calc(-50% + ${toY}px))`,\n }}\n >\n {to}\n </span>\n </div>\n </div>\n );\n}\n",
- "type": "registry:component",
- "target": "components/remocn/text-fade-replace.tsx"
- }
- ],
- "type": "registry:component"
-}
\ No newline at end of file
diff --git a/public/r/visual-docs-snippet.json b/public/r/visual-docs-snippet.json
deleted file mode 100644
index abb79c70..00000000
--- a/public/r/visual-docs-snippet.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
- "name": "visual-docs-snippet",
- "title": "Visual Docs Snippet",
- "description": "Calm tutorial flow: a virtual cursor arcs to a button, clicks, and a bounding box plus tooltip explain what just happened.",
- "dependencies": [
- "remotion"
- ],
- "files": [
- {
- "path": "registry/remocn/visual-docs-snippet/index.tsx",
- "content": "\"use client\";\n\nimport {\n AbsoluteFill,\n Easing,\n interpolate,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface VisualDocsSnippetProps {\n cursorStart?: { x: number; y: number };\n cursorTarget?: { x: number; y: number };\n clickFrame?: number;\n tooltipTitle?: string;\n tooltipBody?: string;\n buttonLabel?: string;\n accent?: string;\n background?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nconst SOFT = Easing.bezier(0.16, 1, 0.3, 1);\n\n// Browser frame layout — kept as constants so cursor coordinates are easy to\n// reason about against absolute frame coordinates.\nconst BROWSER = {\n left: 100,\n top: 90,\n width: 1080,\n height: 540,\n chromeHeight: 48,\n};\n\n// The \"Generate\" button sits inside the browser; bounding box is anchored\n// here. Coordinates are absolute (in the 1280x720 frame).\nconst BUTTON = {\n cx: 640,\n cy: 360,\n width: 220,\n height: 64,\n};\n\nexport function VisualDocsSnippet({\n cursorStart = { x: 980, y: 560 },\n cursorTarget = { x: BUTTON.cx, y: BUTTON.cy },\n clickFrame = 110,\n tooltipTitle = \"Generate runs\",\n tooltipBody = \"Click to start a new generation. The job will appear in the sidebar.\",\n buttonLabel = \"Generate\",\n accent = \"#FFB38E\",\n background = \"#141318\",\n speed = 1,\n className,\n}: VisualDocsSnippetProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n // ── Timing anchors derived from clickFrame ──────────────────────────────\n const cursorStartFrame = 30;\n const cursorEndFrame = clickFrame; // arrives exactly at click\n const boundingBoxFrame = clickFrame + 5;\n const tooltipFrame = clickFrame + 20;\n const settleFrame = clickFrame + 90;\n\n // ── Browser fade-in ─────────────────────────────────────────────────────\n const enter = interpolate(frame, [0, 30], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: SOFT,\n });\n const enterScale = interpolate(frame, [0, 30], [0.98, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: SOFT,\n });\n\n // ── Cursor motion: bezier arc from start to target ──────────────────────\n const cursorT = interpolate(\n frame,\n [cursorStartFrame, cursorEndFrame],\n [0, 1],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: SOFT,\n },\n );\n // After click, cursor exits down-right so it doesn't cover the new content.\n const exitT = interpolate(\n frame,\n [clickFrame + 6, clickFrame + 50],\n [0, 1],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: SOFT,\n },\n );\n const exitTarget = { x: 1180, y: 660 };\n\n const baseX = lerp(cursorStart.x, cursorTarget.x, cursorT);\n const baseY = lerp(cursorStart.y, cursorTarget.y, cursorT);\n // Soft arc bias on the way to the button (so the path feels organic).\n const arc = Math.sin(cursorT * Math.PI) * -36;\n const cursorX = lerp(baseX, exitTarget.x, exitT);\n const cursorY = lerp(baseY + arc, exitTarget.y, exitT);\n\n // ── Click micro-bounce ──────────────────────────────────────────────────\n const clickSpring = spring({\n frame: frame - clickFrame,\n fps,\n config: { damping: 10, stiffness: 200, mass: 0.6 },\n durationInFrames: 14,\n });\n const clickDip = interpolate(clickSpring, [0, 0.4, 1], [1, 0.94, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const buttonScale = frame >= clickFrame ? clickDip : 1;\n const cursorClickScale = frame >= clickFrame ? clickDip : 1;\n\n // Click ripple\n const ripple = interpolate(frame, [clickFrame, clickFrame + 24], [0, 60], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const rippleOpacity = interpolate(\n frame,\n [clickFrame, clickFrame + 24],\n [0.6, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n // ── Bounding box draw-on (animated stroke-dashoffset) ───────────────────\n const boxPerimeter = (BUTTON.width + 24 + (BUTTON.height + 24)) * 2;\n const boxProgress = interpolate(\n frame,\n [boundingBoxFrame, boundingBoxFrame + 18],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\", easing: SOFT },\n );\n const boxOpacity = interpolate(\n frame,\n [boundingBoxFrame, boundingBoxFrame + 6, settleFrame, settleFrame + 10],\n [0, 1, 1, 0.6],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n return (\n <AbsoluteFill\n className={className}\n style={{\n background,\n fontFamily: FONT_FAMILY,\n }}\n >\n {/* Browser frame */}\n <div\n style={{\n position: \"absolute\",\n left: BROWSER.left,\n top: BROWSER.top,\n width: BROWSER.width,\n height: BROWSER.height,\n borderRadius: 18,\n overflow: \"hidden\",\n background: \"#0a090e\",\n border: \"1px solid rgba(255,255,255,0.06)\",\n boxShadow: \"0 50px 120px rgba(0,0,0,0.55)\",\n opacity: enter,\n transform: `scale(${enterScale})`,\n transformOrigin: \"center 40%\",\n willChange: \"transform, opacity\",\n }}\n >\n <BrowserChrome chromeHeight={BROWSER.chromeHeight} />\n\n {/* Page viewport */}\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: BROWSER.chromeHeight,\n bottom: 0,\n background: \"#0a090e\",\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n paddingTop: 60,\n gap: 22,\n }}\n >\n <div\n style={{\n fontSize: 13,\n color: \"rgba(255,255,255,0.45)\",\n letterSpacing: \"0.04em\",\n }}\n >\n Generations · 2 active\n </div>\n <div\n style={{\n fontSize: 38,\n fontWeight: 600,\n color: \"white\",\n letterSpacing: \"-0.025em\",\n maxWidth: 720,\n textAlign: \"center\",\n lineHeight: 1.15,\n }}\n >\n Run a new generation\n </div>\n <div\n style={{\n fontSize: 15,\n color: \"rgba(255,255,255,0.55)\",\n maxWidth: 480,\n textAlign: \"center\",\n lineHeight: 1.5,\n }}\n >\n Pick a model, set a seed, and start a job. Results stream into the\n sidebar as they finish.\n </div>\n </div>\n </div>\n\n {/* CTA button — sits OUTSIDE the browser DOM in absolute coords so the\n bounding box and cursor align to identical pixel anchors. */}\n <div\n style={{\n position: \"absolute\",\n left: BUTTON.cx - BUTTON.width / 2,\n top: BUTTON.cy - BUTTON.height / 2,\n width: BUTTON.width,\n height: BUTTON.height,\n borderRadius: 14,\n background: \"white\",\n color: \"#0a090e\",\n fontWeight: 600,\n fontSize: 17,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n transform: `scale(${buttonScale})`,\n boxShadow:\n frame >= clickFrame\n ? `0 0 0 6px ${accent}22, 0 12px 32px rgba(255,255,255,0.08)`\n : \"0 12px 32px rgba(255,255,255,0.08)\",\n opacity: enter,\n willChange: \"transform\",\n }}\n >\n {buttonLabel} →\n </div>\n\n {/* Click ripple */}\n {rippleOpacity > 0 && (\n <svg\n style={{\n position: \"absolute\",\n left: BUTTON.cx - 80,\n top: BUTTON.cy - 80,\n width: 160,\n height: 160,\n pointerEvents: \"none\",\n }}\n >\n <circle\n cx={80}\n cy={80}\n r={ripple}\n fill=\"none\"\n stroke={accent}\n strokeWidth={2}\n opacity={rippleOpacity}\n />\n </svg>\n )}\n\n {/* Bounding box selector — animated draw-on via stroke-dashoffset */}\n {frame >= boundingBoxFrame && (\n <svg\n style={{\n position: \"absolute\",\n left: BUTTON.cx - BUTTON.width / 2 - 12,\n top: BUTTON.cy - BUTTON.height / 2 - 12,\n width: BUTTON.width + 24,\n height: BUTTON.height + 24,\n pointerEvents: \"none\",\n opacity: boxOpacity,\n }}\n >\n <rect\n x={1}\n y={1}\n width={BUTTON.width + 22}\n height={BUTTON.height + 22}\n rx={10}\n ry={10}\n fill=\"none\"\n stroke={accent}\n strokeOpacity={0.85}\n strokeWidth={2}\n strokeDasharray={`${boxPerimeter} ${boxPerimeter}`}\n strokeDashoffset={(1 - boxProgress) * boxPerimeter}\n />\n {/* Corner ticks */}\n {[\n [0, 0],\n [BUTTON.width + 24, 0],\n [0, BUTTON.height + 24],\n [BUTTON.width + 24, BUTTON.height + 24],\n ].map(([cx, cy], i) => (\n <circle\n key={i}\n cx={cx}\n cy={cy}\n r={4}\n fill={accent}\n opacity={boxProgress}\n />\n ))}\n </svg>\n )}\n\n {/* Tooltip card to the right of the bounding box */}\n {frame >= tooltipFrame && (\n <Tooltip\n frame={frame}\n tooltipFrame={tooltipFrame}\n settleFrame={settleFrame}\n accent={accent}\n title={tooltipTitle}\n body={tooltipBody}\n />\n )}\n\n {/* Cursor — drawn last so it sits above everything */}\n {frame >= cursorStartFrame && (\n <div\n style={{\n position: \"absolute\",\n left: cursorX,\n top: cursorY,\n transform: `translate(-2px, -2px) scale(${cursorClickScale})`,\n transformOrigin: \"top left\",\n zIndex: 9999,\n filter: \"drop-shadow(0 4px 10px rgba(0,0,0,0.55))\",\n willChange: \"transform, left, top\",\n }}\n >\n <CursorSVG />\n </div>\n )}\n </AbsoluteFill>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Subviews */\n/* -------------------------------------------------------------------------- */\n\nfunction BrowserChrome({ chromeHeight }: { chromeHeight: number }) {\n return (\n <div\n style={{\n position: \"relative\",\n height: chromeHeight,\n display: \"flex\",\n alignItems: \"center\",\n gap: 14,\n paddingLeft: 18,\n paddingRight: 18,\n background: \"rgba(20,19,24,0.95)\",\n borderBottom: \"1px solid rgba(255,255,255,0.06)\",\n }}\n >\n <div style={{ display: \"flex\", gap: 8 }}>\n {[\"#ff5f57\", \"#febc2e\", \"#28c840\"].map((c) => (\n <div\n key={c}\n style={{\n width: 11,\n height: 11,\n borderRadius: \"50%\",\n background: c,\n opacity: 0.85,\n }}\n />\n ))}\n </div>\n <div\n style={{\n flex: 1,\n height: 28,\n marginLeft: 12,\n borderRadius: 14,\n background: \"rgba(255,255,255,0.05)\",\n border: \"1px solid rgba(255,255,255,0.06)\",\n display: \"flex\",\n alignItems: \"center\",\n paddingLeft: 14,\n color: \"rgba(255,255,255,0.55)\",\n fontSize: 12,\n fontFamily:\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace\",\n }}\n >\n ⌕ remocn.dev/runs/new\n </div>\n </div>\n );\n}\n\nfunction Tooltip({\n frame,\n tooltipFrame,\n settleFrame,\n accent,\n title,\n body,\n}: {\n frame: number;\n tooltipFrame: number;\n settleFrame: number;\n accent: string;\n title: string;\n body: string;\n}) {\n // Two-line stagger fade-up\n const headT = interpolate(\n frame,\n [tooltipFrame, tooltipFrame + 14],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\", easing: SOFT },\n );\n const bodyT = interpolate(\n frame,\n [tooltipFrame + 6, tooltipFrame + 20],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\", easing: SOFT },\n );\n const settle = interpolate(\n frame,\n [settleFrame, settleFrame + 10],\n [1, 0.6],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n return (\n <div\n style={{\n position: \"absolute\",\n left: BUTTON.cx + BUTTON.width / 2 + 56,\n top: BUTTON.cy - 60,\n width: 320,\n padding: \"20px 22px\",\n borderRadius: 16,\n background: \"rgba(20,19,24,0.92)\",\n border: `1px solid ${accent}55`,\n boxShadow: `0 20px 60px rgba(0,0,0,0.5)`,\n backdropFilter: \"blur(14px)\",\n WebkitBackdropFilter: \"blur(14px)\",\n opacity: settle,\n fontFamily: FONT_FAMILY,\n }}\n >\n <div\n style={{\n opacity: headT,\n transform: `translateY(${(1 - headT) * 12}px)`,\n color: \"white\",\n fontSize: 17,\n fontWeight: 600,\n letterSpacing: \"-0.01em\",\n marginBottom: 6,\n }}\n >\n {title}\n </div>\n <div\n style={{\n opacity: bodyT,\n transform: `translateY(${(1 - bodyT) * 12}px)`,\n color: \"rgba(255,255,255,0.6)\",\n fontSize: 14,\n lineHeight: 1.5,\n }}\n >\n {body}\n </div>\n {/* Pointer toward bounding box */}\n <div\n style={{\n position: \"absolute\",\n left: -8,\n top: 70,\n width: 14,\n height: 14,\n background: \"rgba(20,19,24,0.92)\",\n borderLeft: `1px solid ${accent}55`,\n borderBottom: `1px solid ${accent}55`,\n transform: \"rotate(45deg)\",\n }}\n />\n </div>\n );\n}\n\nfunction CursorSVG() {\n return (\n <svg width={28} height={28} viewBox=\"0 0 24 24\" fill=\"none\">\n <path\n d=\"M5 3L5 19L9.5 14.5L12.5 21L15 20L12 13.5L18.5 13.5L5 3Z\"\n fill=\"white\"\n stroke=\"#000\"\n strokeWidth={1.2}\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Helpers */\n/* -------------------------------------------------------------------------- */\n\nfunction lerp(a: number, b: number, t: number) {\n return a + (b - a) * t;\n}\n",
- "type": "registry:component",
- "target": "components/remocn/visual-docs-snippet.tsx"
- }
- ],
- "type": "registry:component"
-}
\ No newline at end of file
diff --git a/registry.json b/registry.json
index 6b396c86..33577044 100644
--- a/registry.json
+++ b/registry.json
@@ -45,20 +45,6 @@
}
]
},
- {
- "name": "text-fade-replace",
- "type": "registry:component",
- "title": "Text Fade Replace",
- "description": "Cross-fades between two strings on the same line without layout shift.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/text-fade-replace/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/text-fade-replace.tsx"
- }
- ]
- },
{
"name": "strikethrough-replace",
"type": "registry:component",
@@ -255,20 +241,6 @@
}
]
},
- {
- "name": "pulsing-indicator",
- "type": "registry:component",
- "title": "Pulsing Indicator",
- "description": "Continuous pulsing dot with ping ring for loading or live states.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/pulsing-indicator/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/pulsing-indicator.tsx"
- }
- ]
- },
{
"name": "directional-wipe",
"type": "registry:component",
@@ -311,20 +283,6 @@
}
]
},
- {
- "name": "staggered-bento-grid",
- "type": "registry:component",
- "title": "Staggered Bento Grid",
- "description": "Cards pop into a bento grid one after another with a spring.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/staggered-bento-grid/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/staggered-bento-grid.tsx"
- }
- ]
- },
{
"name": "chat-to-preview-layout",
"type": "registry:component",
@@ -451,20 +409,6 @@
}
]
},
- {
- "name": "morphing-modal",
- "type": "registry:component",
- "title": "Morphing Modal",
- "description": "A bento card lifts off the grid and blooms into a full-screen modal driven by a single heavy spring.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/morphing-modal/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/morphing-modal.tsx"
- }
- ]
- },
{
"name": "data-flow-pipes",
"type": "registry:component",
@@ -479,20 +423,6 @@
}
]
},
- {
- "name": "cursor-flow",
- "type": "registry:component",
- "title": "Cursor Flow",
- "description": "A realistic mouse that arcs along cubic Bezier paths, pauses, and clicks targets that dip in response.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/cursor-flow/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/cursor-flow.tsx"
- }
- ]
- },
{
"name": "code-accordion",
"type": "registry:component",
@@ -703,20 +633,6 @@
}
]
},
- {
- "name": "pipeline-journey",
- "type": "registry:component",
- "title": "Pipeline Journey",
- "description": "A Kanban ticket arcs across columns triggering landings and a final confetti burst.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/pipeline-journey/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/pipeline-journey.tsx"
- }
- ]
- },
{
"name": "dashboard-populate",
"type": "registry:component",
@@ -787,34 +703,6 @@
}
]
},
- {
- "name": "brush-stroke-simulator",
- "type": "registry:component",
- "title": "Brush Stroke Simulator",
- "description": "A simulated finger brushes across an image, revealing a pixelated layer along its bezier path.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/brush-stroke-simulator/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/brush-stroke-simulator.tsx"
- }
- ]
- },
- {
- "name": "ai-generate-overlay",
- "type": "registry:component",
- "title": "AI Generate Overlay",
- "description": "Source image blurs under a shimmering dot grid and a pulsing 'Generating…' pill before a new image fades in.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/ai-generate-overlay/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/ai-generate-overlay.tsx"
- }
- ]
- },
{
"name": "tool-menu-slide-in",
"type": "registry:component",
@@ -843,62 +731,6 @@
}
]
},
- {
- "name": "swipe-transition-wipe",
- "type": "registry:component",
- "title": "Swipe Transition Wipe",
- "description": "Two scenes laid out side-by-side flick across the screen with a parallax background and a darkening outgoing layer.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/swipe-transition-wipe/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/swipe-transition-wipe.tsx"
- }
- ]
- },
- {
- "name": "product-launch-trailer",
- "type": "registry:component",
- "title": "Product Launch Trailer",
- "description": "Cinematic Product Hunt teaser: pulsing logo, zoom-through transition, 3D bento fly-over, and a confetti version drop.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/product-launch-trailer/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/product-launch-trailer.tsx"
- }
- ]
- },
- {
- "name": "changelog-bite",
- "type": "registry:component",
- "title": "Changelog Bite",
- "description": "Seamlessly looping square card showing a before/after diff with a frosted glass wipe and a pulsing New pill.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/changelog-bite/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/changelog-bite.tsx"
- }
- ]
- },
- {
- "name": "visual-docs-snippet",
- "type": "registry:component",
- "title": "Visual Docs Snippet",
- "description": "Calm tutorial flow: a virtual cursor arcs to a button, clicks, and a bounding box plus tooltip explain what just happened.",
- "dependencies": ["remotion"],
- "files": [
- {
- "path": "registry/remocn/visual-docs-snippet/index.tsx",
- "type": "registry:component",
- "target": "components/remocn/visual-docs-snippet.tsx"
- }
- ]
- },
{
"name": "github-stars",
"type": "registry:component",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index b0f8ffa5..6351238f 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -1,8 +1,6 @@
import type React from "react";
import { type ComponentConfig, SHARED_CONTROLS } from "@/lib/customizer-config";
-import { AIGenerateOverlay } from "@/registry/remocn/ai-generate-overlay";
-import { aiGenerateOverlayConfig } from "@/registry/remocn/ai-generate-overlay/config";
import { AIGenerationCanvas } from "@/registry/remocn/ai-generation-canvas";
import { aiGenerationCanvasConfig } from "@/registry/remocn/ai-generation-canvas/config";
import { AnimatedBarChart } from "@/registry/remocn/animated-bar-chart";
@@ -15,10 +13,6 @@ import { BoundingBoxSelector } from "@/registry/remocn/bounding-box-selector";
import { boundingBoxSelectorConfig } from "@/registry/remocn/bounding-box-selector/config";
import { BrowserFlow } from "@/registry/remocn/browser-flow";
import { browserFlowConfig } from "@/registry/remocn/browser-flow/config";
-import { BrushStrokeSimulator } from "@/registry/remocn/brush-stroke-simulator";
-import { brushStrokeSimulatorConfig } from "@/registry/remocn/brush-stroke-simulator/config";
-import { ChangelogBite } from "@/registry/remocn/changelog-bite";
-import { changelogBiteConfig } from "@/registry/remocn/changelog-bite/config";
import { ChatToPreviewLayout } from "@/registry/remocn/chat-to-preview-layout";
import { chatToPreviewLayoutConfig } from "@/registry/remocn/chat-to-preview-layout/config";
import { ChromaticAberrationWipe } from "@/registry/remocn/chromatic-aberration-wipe";
@@ -27,8 +21,6 @@ import { CodeAccordion } from "@/registry/remocn/code-accordion";
import { codeAccordionConfig } from "@/registry/remocn/code-accordion/config";
import { CodeDiffWipe } from "@/registry/remocn/code-diff-wipe";
import { codeDiffWipeConfig } from "@/registry/remocn/code-diff-wipe/config";
-import { CursorFlow } from "@/registry/remocn/cursor-flow";
-import { cursorFlowConfig } from "@/registry/remocn/cursor-flow/config";
import { DashboardPopulate } from "@/registry/remocn/dashboard-populate";
import { dashboardPopulateConfig } from "@/registry/remocn/dashboard-populate/config";
import { DataFlowPipes } from "@/registry/remocn/data-flow-pipes";
@@ -75,20 +67,12 @@ import { MatrixDecode } from "@/registry/remocn/matrix-decode";
import { matrixDecodeConfig } from "@/registry/remocn/matrix-decode/config";
import { MeshGradientBg } from "@/registry/remocn/mesh-gradient-bg";
import { meshGradientBgConfig } from "@/registry/remocn/mesh-gradient-bg/config";
-import { MorphingModal } from "@/registry/remocn/morphing-modal";
-import { morphingModalConfig } from "@/registry/remocn/morphing-modal/config";
import { PerspectiveMarquee } from "@/registry/remocn/perspective-marquee";
import { perspectiveMarqueeConfig } from "@/registry/remocn/perspective-marquee/config";
-import { PipelineJourney } from "@/registry/remocn/pipeline-journey";
-import { pipelineJourneyConfig } from "@/registry/remocn/pipeline-journey/config";
import { PricingTierFocus } from "@/registry/remocn/pricing-tier-focus";
import { pricingTierFocusConfig } from "@/registry/remocn/pricing-tier-focus/config";
-import { ProductLaunchTrailer } from "@/registry/remocn/product-launch-trailer";
-import { productLaunchTrailerConfig } from "@/registry/remocn/product-launch-trailer/config";
import { ProgressSteps } from "@/registry/remocn/progress-steps";
import { progressStepsConfig } from "@/registry/remocn/progress-steps/config";
-import { PulsingIndicator } from "@/registry/remocn/pulsing-indicator";
-import { pulsingIndicatorConfig } from "@/registry/remocn/pulsing-indicator/config";
import { RGBGlitchText } from "@/registry/remocn/rgb-glitch-text";
import { rgbGlitchTextConfig } from "@/registry/remocn/rgb-glitch-text/config";
import { ShimmerSweep } from "@/registry/remocn/shimmer-sweep";
@@ -103,22 +87,16 @@ import { SpotlightCard } from "@/registry/remocn/spotlight-card";
import { spotlightCardConfig } from "@/registry/remocn/spotlight-card/config";
import { SpringPopIn } from "@/registry/remocn/spring-pop-in";
import { springPopInConfig } from "@/registry/remocn/spring-pop-in/config";
-import { StaggeredBentoGrid } from "@/registry/remocn/staggered-bento-grid";
-import { staggeredBentoGridConfig } from "@/registry/remocn/staggered-bento-grid/config";
import { StaggeredFadeUp } from "@/registry/remocn/staggered-fade-up";
import { staggeredFadeUpConfig } from "@/registry/remocn/staggered-fade-up/config";
import { StrikethroughReplace } from "@/registry/remocn/strikethrough-replace";
import { strikethroughReplaceConfig } from "@/registry/remocn/strikethrough-replace/config";
import { SuccessConfetti } from "@/registry/remocn/success-confetti";
import { successConfettiConfig } from "@/registry/remocn/success-confetti/config";
-import { SwipeTransitionWipe } from "@/registry/remocn/swipe-transition-wipe";
-import { swipeTransitionWipeConfig } from "@/registry/remocn/swipe-transition-wipe/config";
import { TerminalSimulator } from "@/registry/remocn/terminal-simulator";
import { terminalSimulatorConfig } from "@/registry/remocn/terminal-simulator/config";
import { TerminalToBrowserDeploy } from "@/registry/remocn/terminal-to-browser-deploy";
import { terminalToBrowserDeployConfig } from "@/registry/remocn/terminal-to-browser-deploy/config";
-import { TextFadeReplace } from "@/registry/remocn/text-fade-replace";
-import { textFadeReplaceConfig } from "@/registry/remocn/text-fade-replace/config";
import { ToastNotification } from "@/registry/remocn/toast-notification";
import { toastNotificationConfig } from "@/registry/remocn/toast-notification/config";
import { ToolMenuSlideIn } from "@/registry/remocn/tool-menu-slide-in";
@@ -127,8 +105,6 @@ import { TrackingIn } from "@/registry/remocn/tracking-in";
import { trackingInConfig } from "@/registry/remocn/tracking-in/config";
import { Typewriter } from "@/registry/remocn/typewriter";
import { typewriterConfig } from "@/registry/remocn/typewriter/config";
-import { VisualDocsSnippet } from "@/registry/remocn/visual-docs-snippet";
-import { visualDocsSnippetConfig } from "@/registry/remocn/visual-docs-snippet/config";
import { ZoomThroughTransition } from "@/registry/remocn/zoom-through-transition";
import { zoomThroughTransitionConfig } from "@/registry/remocn/zoom-through-transition/config";
@@ -144,10 +120,6 @@ const registry: Record<string, RegistryEntry> = {
Component: InlineHighlight,
config: inlineHighlightConfig,
},
- "text-fade-replace": {
- Component: TextFadeReplace,
- config: textFadeReplaceConfig,
- },
"strikethrough-replace": {
Component: StrikethroughReplace,
config: strikethroughReplaceConfig,
@@ -186,9 +158,7 @@ const registry: Record<string, RegistryEntry> = {
config: glassCodeBlockConfig,
},
"code-accordion": { Component: CodeAccordion, config: codeAccordionConfig },
- "cursor-flow": { Component: CursorFlow, config: cursorFlowConfig },
"data-flow-pipes": { Component: DataFlowPipes, config: dataFlowPipesConfig },
- "morphing-modal": { Component: MorphingModal, config: morphingModalConfig },
"mesh-gradient-bg": {
Component: MeshGradientBg,
config: meshGradientBgConfig,
@@ -199,10 +169,6 @@ const registry: Record<string, RegistryEntry> = {
Component: SimulatedCursor,
config: simulatedCursorConfig,
},
- "pulsing-indicator": {
- Component: PulsingIndicator,
- config: pulsingIndicatorConfig,
- },
"directional-wipe": {
Component: DirectionalWipe,
config: directionalWipeConfig,
@@ -215,10 +181,6 @@ const registry: Record<string, RegistryEntry> = {
Component: ZoomThroughTransition,
config: zoomThroughTransitionConfig,
},
- "staggered-bento-grid": {
- Component: StaggeredBentoGrid,
- config: staggeredBentoGridConfig,
- },
"chat-to-preview-layout": {
Component: ChatToPreviewLayout,
config: chatToPreviewLayoutConfig,
@@ -290,10 +252,6 @@ const registry: Record<string, RegistryEntry> = {
Component: LandingCodeShowcase,
config: landingCodeShowcaseConfig,
},
- "pipeline-journey": {
- Component: PipelineJourney,
- config: pipelineJourneyConfig,
- },
"dashboard-populate": {
Component: DashboardPopulate,
config: dashboardPopulateConfig,
@@ -311,14 +269,6 @@ const registry: Record<string, RegistryEntry> = {
Component: InfiniteBentoPan,
config: infiniteBentoPanConfig,
},
- "brush-stroke-simulator": {
- Component: BrushStrokeSimulator,
- config: brushStrokeSimulatorConfig,
- },
- "ai-generate-overlay": {
- Component: AIGenerateOverlay,
- config: aiGenerateOverlayConfig,
- },
"tool-menu-slide-in": {
Component: ToolMenuSlideIn,
config: toolMenuSlideInConfig,
@@ -327,22 +277,6 @@ const registry: Record<string, RegistryEntry> = {
Component: ImageExpandToFullscreen,
config: imageExpandToFullscreenConfig,
},
- "swipe-transition-wipe": {
- Component: SwipeTransitionWipe,
- config: swipeTransitionWipeConfig,
- },
- "product-launch-trailer": {
- Component: ProductLaunchTrailer,
- config: productLaunchTrailerConfig,
- },
- "changelog-bite": {
- Component: ChangelogBite,
- config: changelogBiteConfig,
- },
- "visual-docs-snippet": {
- Component: VisualDocsSnippet,
- config: visualDocsSnippetConfig,
- },
"github-stars": { Component: GitHubStars, config: githubStarsConfig },
};
diff --git a/registry/remocn/ai-generate-overlay/config.ts b/registry/remocn/ai-generate-overlay/config.ts
deleted file mode 100644
index ee3cc50f..00000000
--- a/registry/remocn/ai-generate-overlay/config.ts
+++ /dev/null
@@ -1,69 +0,0 @@
-import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
-
-export const aiGenerateOverlayConfig: ComponentConfig = {
- componentName: "AIGenerateOverlay",
- importPath: "@/components/remocn/ai-generate-overlay",
- controls: {
- maxBlur: {
- type: "number",
- default: 20,
- min: 0,
- max: 40,
- step: 1,
- label: "Max blur (px)",
- },
- blurStartFrame: {
- type: "number",
- default: 20,
- min: 0,
- max: 120,
- step: 1,
- label: "Blur start (frame)",
- },
- blurPeakFrame: {
- type: "number",
- default: 40,
- min: 0,
- max: 160,
- step: 1,
- label: "Blur peak (frame)",
- },
- revealStartFrame: {
- type: "number",
- default: 110,
- min: 30,
- max: 160,
- step: 1,
- label: "Reveal start (frame)",
- },
- pillText: {
- type: "text",
- default: "Generating…",
- label: "Pill text",
- },
- accent: {
- type: "color",
- default: "#a78bfa",
- label: "Accent color",
- },
- background: {
- type: "color",
- default: "#050505",
- label: "Background",
- },
- sourceImageBg: {
- type: "color",
- default: "#8b4513",
- label: "Source image color",
- },
- generatedImageBg: {
- type: "color",
- default: "#1a1410",
- label: "Generated image color",
- },
- },
- durationInFrames: 180,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
-};
diff --git a/registry/remocn/ai-generate-overlay/index.tsx b/registry/remocn/ai-generate-overlay/index.tsx
deleted file mode 100644
index 5a37d3b5..00000000
--- a/registry/remocn/ai-generate-overlay/index.tsx
+++ /dev/null
@@ -1,230 +0,0 @@
-"use client";
-
-import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
-
-export interface AIGenerateOverlayProps {
- maxBlur?: number;
- blurStartFrame?: number;
- blurPeakFrame?: number;
- revealStartFrame?: number;
- pillText?: string;
- accent?: string;
- background?: string;
- sourceImageBg?: string;
- generatedImageBg?: string;
- dotColor?: string;
- dotSize?: number;
- dotSpacing?: number;
- speed?: number;
- className?: string;
-}
-
-const FONT_FAMILY =
- "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
-
-const DEFAULT_SOURCE_BG =
- "linear-gradient(135deg, #6b3a1a 0%, #d4a574 50%, #8b4513 100%)";
-
-const DEFAULT_GENERATED_BG =
- "radial-gradient(ellipse at center, #d4a574 0%, #8b4513 22%, #2a1a10 42%), linear-gradient(180deg, #1a1410 0%, #0a0806 50%, #1a1410 100%)";
-
-export function AIGenerateOverlay({
- maxBlur = 20,
- blurStartFrame = 20,
- blurPeakFrame = 40,
- revealStartFrame = 110,
- pillText = "Generating…",
- accent = "#a78bfa",
- background = "#050505",
- sourceImageBg = DEFAULT_SOURCE_BG,
- generatedImageBg = DEFAULT_GENERATED_BG,
- dotColor = "#ffffff",
- dotSize = 1.2,
- dotSpacing = 20,
- speed = 1,
- className,
-}: AIGenerateOverlayProps) {
- const rawFrame = useCurrentFrame();
- const frame = rawFrame * speed;
- const { fps, durationInFrames } = useVideoConfig();
-
- // Phase 1 → 2: blur ramps up over [blurStartFrame, blurPeakFrame]
- const blur = interpolate(
- frame,
- [blurStartFrame, blurPeakFrame],
- [0, maxBlur],
- { extrapolateLeft: "clamp", extrapolateRight: "clamp" },
- );
-
- // Dot grid opacity follows blur, plus a subtle sine shimmer.
- const gridBaseOpacity = interpolate(
- frame,
- [blurStartFrame, blurPeakFrame],
- [0, 0.4],
- { extrapolateLeft: "clamp", extrapolateRight: "clamp" },
- );
- const gridShimmer = Math.sin(frame / 6) * 0.05;
- const gridOpacity = Math.max(0, gridBaseOpacity + gridShimmer);
-
- // Generated image fade-in from revealStartFrame.
- const reveal = spring({
- frame: frame - revealStartFrame,
- fps,
- config: { mass: 1, damping: 22, stiffness: 90 },
- });
- const generatedOpacity = interpolate(reveal, [0, 1], [0, 1], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
-
- // Pill is visible during phases 2-3, fades out as the new image fades in.
- const pillIn = interpolate(frame, [blurStartFrame, blurPeakFrame], [0, 1], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
- const pillOut = interpolate(generatedOpacity, [0, 0.6], [1, 0], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
- const pillOpacity = pillIn * pillOut;
- const pillScale = 1 + Math.sin(frame / 8) * 0.02;
- const pillGlow = 0.35 + Math.sin(frame / 8) * 0.15;
-
- // Detached dot count animation for the pill text — three trailing dots.
- const dotPhase = Math.floor(frame / 10) % 4;
- const animatedPillText =
- pillText.replace(/[…\.]+$/, "") + ".".repeat(dotPhase);
-
- // Typed unused-suppression: keep durationInFrames referenced for IDEs.
- void durationInFrames;
-
- return (
- <div
- className={className}
- style={{
- position: "absolute",
- inset: 0,
- background,
- fontFamily: FONT_FAMILY,
- overflow: "hidden",
- }}
- >
- {/* Source ("painting") layer — blurs out as AI thinks. */}
- <div
- style={{
- position: "absolute",
- inset: 0,
- background: sourceImageBg,
- filter: `blur(${blur}px)`,
- // Slight scale to hide the blur edge feathering at the viewport border.
- transform: "scale(1.06)",
- }}
- />
-
- {/* Generated image layer — fades in over the blurred source. */}
- <div
- style={{
- position: "absolute",
- inset: 0,
- background: generatedImageBg,
- opacity: generatedOpacity,
- }}
- />
-
- {/* Dot grid overlay — pure SVG pattern with animated opacity + shimmer. */}
- <svg
- style={{
- position: "absolute",
- inset: 0,
- width: "100%",
- height: "100%",
- opacity: gridOpacity * (1 - generatedOpacity),
- pointerEvents: "none",
- mixBlendMode: "screen",
- }}
- xmlns="http://www.w3.org/2000/svg"
- >
- <defs>
- <pattern
- id="ai-generate-overlay-dots"
- width={dotSpacing}
- height={dotSpacing}
- patternUnits="userSpaceOnUse"
- >
- <circle
- cx={dotSpacing / 2}
- cy={dotSpacing / 2}
- r={dotSize}
- fill={dotColor}
- />
- </pattern>
- </defs>
- <rect
- width="100%"
- height="100%"
- fill="url(#ai-generate-overlay-dots)"
- />
- </svg>
-
- {/* "Generating…" pill */}
- <div
- style={{
- position: "absolute",
- inset: 0,
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- pointerEvents: "none",
- opacity: pillOpacity,
- }}
- >
- <div
- style={{
- display: "inline-flex",
- alignItems: "center",
- gap: 12,
- padding: "14px 24px",
- borderRadius: 999,
- background: "rgba(10, 10, 10, 0.55)",
- color: "#fafafa",
- fontSize: 18,
- fontWeight: 500,
- letterSpacing: "-0.01em",
- border: "1px solid rgba(255,255,255,0.12)",
- backdropFilter: "blur(10px)",
- WebkitBackdropFilter: "blur(10px)",
- boxShadow: `0 0 0 1px rgba(255,255,255,0.04), 0 0 40px ${hexWithAlpha(
- accent,
- pillGlow,
- )}, 0 12px 40px rgba(0,0,0,0.45)`,
- transform: `scale(${pillScale})`,
- }}
- >
- <span
- style={{
- width: 8,
- height: 8,
- borderRadius: 999,
- background: accent,
- boxShadow: `0 0 12px ${hexWithAlpha(accent, 0.9)}`,
- }}
- />
- {animatedPillText}
- </div>
- </div>
- </div>
- );
-}
-
-// Convert a #rrggbb to rgba(r, g, b, a). Falls back to the original string if
-// not a 6-digit hex (so users can pass a CSS color name and still get *some*
-// glow, just without alpha).
-function hexWithAlpha(hex: string, alpha: number): string {
- const m = /^#([0-9a-f]{6})$/i.exec(hex);
- if (!m) return hex;
- const int = parseInt(m[1], 16);
- const r = (int >> 16) & 255;
- const g = (int >> 8) & 255;
- const b = int & 255;
- return `rgba(${r}, ${g}, ${b}, ${alpha})`;
-}
diff --git a/registry/remocn/brush-stroke-simulator/config.ts b/registry/remocn/brush-stroke-simulator/config.ts
deleted file mode 100644
index 49e0b04e..00000000
--- a/registry/remocn/brush-stroke-simulator/config.ts
+++ /dev/null
@@ -1,61 +0,0 @@
-import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
-
-export const brushStrokeSimulatorConfig: ComponentConfig = {
- componentName: "BrushStrokeSimulator",
- importPath: "@/components/remocn/brush-stroke-simulator",
- controls: {
- brushSize: {
- type: "number",
- default: 70,
- min: 20,
- max: 200,
- step: 2,
- label: "Brush size",
- },
- cursorColor: {
- type: "color",
- default: "#ffffff",
- label: "Cursor color",
- },
- background: {
- type: "color",
- default: "#0a0a0a",
- label: "Background",
- },
- baseColorA: {
- type: "color",
- default: "#f4a261",
- label: "Base highlight",
- },
- baseColorB: {
- type: "color",
- default: "#e76f51",
- label: "Base shadow",
- },
- overlayColor: {
- type: "color",
- default: "#1f1f23",
- label: "Overlay color",
- },
- startFrame: {
- type: "number",
- default: 12,
- min: 0,
- max: 60,
- step: 1,
- label: "Start frame",
- },
- sweepDuration: {
- type: "number",
- default: 150,
- min: 60,
- max: 240,
- step: 5,
- label: "Sweep duration",
- },
- },
- durationInFrames: 180,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
-};
diff --git a/registry/remocn/brush-stroke-simulator/index.tsx b/registry/remocn/brush-stroke-simulator/index.tsx
deleted file mode 100644
index 2c41ca92..00000000
--- a/registry/remocn/brush-stroke-simulator/index.tsx
+++ /dev/null
@@ -1,292 +0,0 @@
-"use client";
-
-import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
-
-export interface BrushStrokeSimulatorProps {
- /** Brush stroke width in pixels. */
- brushSize?: number;
- /** Cursor fill color (semi-transparent). */
- cursorColor?: string;
- /** Outer page background. */
- background?: string;
- /** Primary tint of the simulated portrait base. */
- baseColorA?: string;
- /** Secondary tint of the simulated portrait base. */
- baseColorB?: string;
- /** Tint of the obscured / pixelated overlay. */
- overlayColor?: string;
- /** Frame at which the brushing motion begins. */
- startFrame?: number;
- /** How many frames the brush takes to complete its sweep. */
- sweepDuration?: number;
- /** Playback speed multiplier. */
- speed?: number;
- className?: string;
-}
-
-const FONT_FAMILY =
- "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
-
-const STAGE_W = 1280;
-const STAGE_H = 720;
-
-/**
- * Two faces' worth of waypoints — sweeps left face, lifts, sweeps right face.
- * Y values cluster around the upper-middle of the frame so it reads like
- * brushing across the eyes/cheeks of a portrait.
- */
-const WAYPOINTS: { x: number; y: number; press: boolean }[] = [
- { x: 280, y: 280, press: true },
- { x: 460, y: 260, press: true },
- { x: 460, y: 360, press: true },
- { x: 280, y: 380, press: true },
- // Lift between faces
- { x: 640, y: 220, press: false },
- // Right face
- { x: 820, y: 280, press: true },
- { x: 1000, y: 260, press: true },
- { x: 1000, y: 360, press: true },
- { x: 820, y: 380, press: true },
-];
-
-function cubicBezier(
- t: number,
- p0: { x: number; y: number },
- p1: { x: number; y: number },
- p2: { x: number; y: number },
- p3: { x: number; y: number },
-) {
- const u = 1 - t;
- const tt = t * t;
- const uu = u * u;
- const uuu = uu * u;
- const ttt = tt * t;
- return {
- x: uuu * p0.x + 3 * uu * t * p1.x + 3 * u * tt * p2.x + ttt * p3.x,
- y: uuu * p0.y + 3 * uu * t * p1.y + 3 * u * tt * p2.y + ttt * p3.y,
- };
-}
-
-function easeInOut(t: number) {
- return t < 0.5 ? 2 * t * t : 1 - Math.pow(-2 * t + 2, 2) / 2;
-}
-
-function controlsFor(
- a: { x: number; y: number },
- b: { x: number; y: number },
- index: number,
-) {
- const dx = b.x - a.x;
- const dy = b.y - a.y;
- const len = Math.hypot(dx, dy) || 1;
- const sign = index % 2 === 0 ? 1 : -1;
- const px = (-dy / len) * (len * 0.18) * sign;
- const py = (dx / len) * (len * 0.18) * sign;
- return [
- { x: a.x + dx / 3 + px, y: a.y + dy / 3 + py },
- { x: a.x + (2 * dx) / 3 + px, y: a.y + (2 * dy) / 3 + py },
- ];
-}
-
-/**
- * Walks the bezier path up to the given progress (0..1) and returns:
- * - the active position
- * - whether the brush is currently "pressed" (between two press waypoints)
- * - a sampled trail of every position visited so far (for the reveal mask)
- */
-function sampleBrushPath(progress: number) {
- const segments = WAYPOINTS.length - 1;
- const samplesPerSegment = 14;
- const totalSamples = segments * samplesPerSegment;
- const reachedSamples = Math.max(
- 1,
- Math.min(totalSamples, Math.floor(progress * totalSamples)),
- );
-
- const trail: { x: number; y: number; press: boolean }[] = [];
- let pos = { x: WAYPOINTS[0].x, y: WAYPOINTS[0].y };
- let pressed = WAYPOINTS[0].press;
-
- for (let i = 0; i < reachedSamples; i++) {
- const segIdx = Math.min(segments - 1, Math.floor(i / samplesPerSegment));
- const localT = (i % samplesPerSegment) / samplesPerSegment;
- const a = WAYPOINTS[segIdx];
- const b = WAYPOINTS[segIdx + 1];
- const [c1, c2] = controlsFor(a, b, segIdx);
- const t = easeInOut(localT);
- pos = cubicBezier(t, a, c1, c2, b);
- pressed = a.press && b.press;
- trail.push({ x: pos.x, y: pos.y, press: pressed });
- }
-
- return { pos, pressed, trail };
-}
-
-export function BrushStrokeSimulator({
- brushSize = 70,
- cursorColor = "rgba(255,255,255,0.45)",
- background = "#0a0a0a",
- baseColorA = "#f4a261",
- baseColorB = "#e76f51",
- overlayColor = "#1f1f23",
- startFrame = 12,
- sweepDuration = 150,
- speed = 1,
- className,
-}: BrushStrokeSimulatorProps) {
- const frame = useCurrentFrame() * speed;
- const { fps } = useVideoConfig();
-
- const localFrame = Math.max(0, frame - startFrame);
- const progress = Math.min(1, localFrame / sweepDuration);
-
- const { pos, pressed, trail } = sampleBrushPath(progress);
-
- // Press scale: cursor shrinks slightly while pressing onto the surface.
- const pressTarget = pressed ? 0.86 : 1;
- const pressSpring = spring({
- frame: localFrame,
- fps,
- config: { damping: 18, stiffness: 220, mass: 0.6 },
- });
- const cursorScale = interpolate(pressSpring, [0, 1], [1, pressTarget]);
-
- // Build SVG path d-attribute from the accumulated trail.
- const maskPathD =
- trail.length === 0
- ? ""
- : trail
- .map((p, i) => `${i === 0 ? "M" : "L"} ${p.x.toFixed(2)} ${p.y.toFixed(2)}`)
- .join(" ");
-
- // Tiny intro fade so the scene "lands" before the brush starts.
- const introOpacity = interpolate(frame, [0, 8], [0, 1], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
-
- return (
- <div
- className={className}
- style={{
- position: "absolute",
- inset: 0,
- overflow: "hidden",
- background,
- fontFamily: FONT_FAMILY,
- opacity: introOpacity,
- }}
- >
- {/* Sharp base layer — fake portrait built from radial gradients */}
- <div
- style={{
- position: "absolute",
- inset: 0,
- background: `
- radial-gradient(circle at 27% 45%, ${baseColorA} 0%, transparent 28%),
- radial-gradient(circle at 67% 45%, ${baseColorA} 0%, transparent 28%),
- radial-gradient(circle at 47% 70%, ${baseColorB} 0%, transparent 55%),
- linear-gradient(160deg, #2a1a14 0%, #1a0f0a 100%)
- `,
- }}
- />
-
- {/* Eye / detail dots so the unbrushed area reads as "faces" */}
- <FaceDots />
-
- {/* Pixelated overlay — the layer the brush "reveals" through the mask */}
- <svg
- width="100%"
- height="100%"
- viewBox={`0 0 ${STAGE_W} ${STAGE_H}`}
- style={{ position: "absolute", inset: 0, pointerEvents: "none" }}
- >
- <defs>
- <mask id="brush-reveal-mask" maskUnits="userSpaceOnUse">
- <rect width={STAGE_W} height={STAGE_H} fill="white" />
- {maskPathD && (
- <path
- d={maskPathD}
- stroke="black"
- strokeWidth={brushSize}
- strokeLinecap="round"
- strokeLinejoin="round"
- fill="none"
- />
- )}
- </mask>
- <pattern
- id="pixel-overlay"
- x="0"
- y="0"
- width="32"
- height="32"
- patternUnits="userSpaceOnUse"
- >
- <rect width="32" height="32" fill={overlayColor} />
- <rect width="16" height="16" fill="rgba(255,255,255,0.04)" />
- <rect x="16" y="16" width="16" height="16" fill="rgba(0,0,0,0.25)" />
- </pattern>
- </defs>
- <rect
- width={STAGE_W}
- height={STAGE_H}
- fill="url(#pixel-overlay)"
- mask="url(#brush-reveal-mask)"
- />
- </svg>
-
- {/* Cursor / fingertip */}
- <div
- style={{
- position: "absolute",
- left: pos.x - brushSize / 2,
- top: pos.y - brushSize / 2,
- width: brushSize,
- height: brushSize,
- borderRadius: "50%",
- background: cursorColor,
- border: "1.5px solid rgba(255,255,255,0.85)",
- boxShadow:
- "0 8px 24px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.15)",
- transform: `scale(${cursorScale})`,
- transformOrigin: "center",
- pointerEvents: "none",
- zIndex: 9999,
- }}
- />
- </div>
- );
-}
-
-function FaceDots() {
- return (
- <svg
- width="100%"
- height="100%"
- viewBox={`0 0 ${STAGE_W} ${STAGE_H}`}
- style={{ position: "absolute", inset: 0, pointerEvents: "none" }}
- >
- {/* Left face */}
- <circle cx="320" cy="300" r="10" fill="rgba(0,0,0,0.55)" />
- <circle cx="420" cy="300" r="10" fill="rgba(0,0,0,0.55)" />
- <path
- d="M310 360 Q370 390 430 360"
- stroke="rgba(0,0,0,0.55)"
- strokeWidth="6"
- fill="none"
- strokeLinecap="round"
- />
- {/* Right face */}
- <circle cx="860" cy="300" r="10" fill="rgba(0,0,0,0.55)" />
- <circle cx="960" cy="300" r="10" fill="rgba(0,0,0,0.55)" />
- <path
- d="M850 360 Q910 390 970 360"
- stroke="rgba(0,0,0,0.55)"
- strokeWidth="6"
- fill="none"
- strokeLinecap="round"
- />
- </svg>
- );
-}
diff --git a/registry/remocn/changelog-bite/config.ts b/registry/remocn/changelog-bite/config.ts
deleted file mode 100644
index 347c01b8..00000000
--- a/registry/remocn/changelog-bite/config.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import { type ComponentConfig, FPS } from "@/lib/customizer-config";
-
-export const changelogBiteConfig: ComponentConfig = {
- componentName: "ChangelogBite",
- importPath: "@/components/remocn/changelog-bite",
- controls: {
- label: { type: "text", default: "New", label: "Label" },
- title: { type: "text", default: "Inline diff view", label: "Title" },
- format: {
- type: "select",
- default: "square",
- options: ["square", "portrait"],
- label: "Format",
- },
- background: { type: "color", default: "#141318", label: "Background" },
- cardBackground: {
- type: "text",
- default: "rgba(20, 19, 24, 0.92)",
- label: "Card background",
- },
- accent: { type: "color", default: "#FFB38E", label: "Accent" },
- },
- durationInFrames: 150,
- fps: FPS,
- compositionWidth: 1080,
- compositionHeight: 1080,
-};
diff --git a/registry/remocn/changelog-bite/index.tsx b/registry/remocn/changelog-bite/index.tsx
deleted file mode 100644
index 62f607ce..00000000
--- a/registry/remocn/changelog-bite/index.tsx
+++ /dev/null
@@ -1,369 +0,0 @@
-"use client";
-
-import type { ReactNode } from "react";
-import {
- AbsoluteFill,
- Easing,
- interpolate,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from "remotion";
-
-export interface ChangelogBiteProps {
- label?: string;
- title?: string;
- oldContent?: ReactNode;
- newContent?: ReactNode;
- format?: "square" | "portrait";
- background?: string;
- cardBackground?: string;
- accent?: string;
- speed?: number;
- className?: string;
-}
-
-const FONT_FAMILY =
- "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
-const MONO_FAMILY =
- "var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace";
-
-const SOFT = Easing.bezier(0.16, 1, 0.3, 1);
-
-export function ChangelogBite({
- label = "New",
- title = "Inline diff view",
- oldContent,
- newContent,
- format = "square",
- background = "#141318",
- cardBackground = "rgba(20, 19, 24, 0.92)",
- accent = "#FFB38E",
- speed = 1,
- className,
-}: ChangelogBiteProps) {
- const frame = useCurrentFrame() * speed;
- const { fps, durationInFrames } = useVideoConfig();
-
- // ── Card scale/opacity envelope (loop seam) ─────────────────────────────
- // First 10 frames: 0.95 → 1.0, 0 → 1
- // Last 15 frames: 1.0 → 0.95, 1 → 0
- // The match means a flat-cut from final to first frame is invisible.
- const enterT = interpolate(frame, [0, 10], [0, 1], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- easing: SOFT,
- });
- const exitT = interpolate(
- frame,
- [durationInFrames - 15, durationInFrames - 1],
- [0, 1],
- { extrapolateLeft: "clamp", extrapolateRight: "clamp", easing: SOFT },
- );
- const cardScale = 0.95 + enterT * 0.05 - exitT * 0.05;
- const cardOpacity = enterT * (1 - exitT);
-
- // ── Wipe progress (frosted glass + clip) ────────────────────────────────
- const wipe = spring({
- frame: frame - 60,
- fps,
- config: { damping: 18, mass: 0.9, stiffness: 90 },
- durationInFrames: 50,
- });
- const wipePct = wipe * 100;
-
- // ── Aspect-driven inner card sizing ─────────────────────────────────────
- const isSquare = format === "square";
- const cardWidth = isSquare ? 880 : 880;
- const cardHeight = isSquare ? 880 : 1100;
-
- const oldNode = oldContent ?? <DefaultOldPanel accent={accent} />;
- const newNode = newContent ?? <DefaultNewPanel accent={accent} />;
-
- return (
- <AbsoluteFill
- className={className}
- style={{
- background,
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- fontFamily: FONT_FAMILY,
- }}
- >
- <div
- style={{
- width: cardWidth,
- height: cardHeight,
- borderRadius: 56,
- background: cardBackground,
- border: `1px solid ${accent}33`,
- boxShadow: `0 30px 120px ${accent}22, 0 0 0 1px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.06)`,
- opacity: cardOpacity,
- transform: `scale(${cardScale})`,
- transformOrigin: "center",
- willChange: "transform, opacity",
- padding: 56,
- display: "flex",
- flexDirection: "column",
- gap: 28,
- position: "relative",
- overflow: "hidden",
- }}
- >
- {/* Header row: title + New pill */}
- <div
- style={{
- display: "flex",
- alignItems: "center",
- justifyContent: "space-between",
- }}
- >
- <div
- style={{
- color: "rgba(255,255,255,0.55)",
- fontSize: 22,
- letterSpacing: "0.02em",
- }}
- >
- {title}
- </div>
- <PulsingPill label={label} color={accent} speed={speed} />
- </div>
-
- {/* Diff stage */}
- <div
- style={{
- position: "relative",
- flex: 1,
- borderRadius: 32,
- overflow: "hidden",
- background: "rgba(8,7,12,0.6)",
- border: "1px solid rgba(255,255,255,0.05)",
- }}
- >
- {/* New (bottom layer) */}
- <div style={{ position: "absolute", inset: 0 }}>{newNode}</div>
-
- {/* Old (top layer, clipped left-to-right) */}
- <div
- style={{
- position: "absolute",
- inset: 0,
- clipPath: `inset(0 ${wipePct}% 0 0)`,
- willChange: "clip-path",
- }}
- >
- {oldNode}
- </div>
-
- {/* Frosted glass shutter sweeping over the seam */}
- {wipePct > 0 && wipePct < 100 && (
- <div
- style={{
- position: "absolute",
- top: 0,
- bottom: 0,
- left: `calc(${wipePct}% - 60px)`,
- width: 120,
- background:
- "linear-gradient(90deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.0) 100%)",
- backdropFilter: "blur(18px)",
- WebkitBackdropFilter: "blur(18px)",
- pointerEvents: "none",
- }}
- />
- )}
-
- {/* Subtle accent seam line */}
- {wipePct > 0 && wipePct < 100 && (
- <div
- style={{
- position: "absolute",
- top: 0,
- bottom: 0,
- left: `${wipePct}%`,
- width: 1.5,
- background: accent,
- opacity: 0.55,
- boxShadow: `0 0 18px ${accent}aa`,
- pointerEvents: "none",
- }}
- />
- )}
- </div>
-
- {/* Footer caption — labels swap mid-wipe */}
- <div
- style={{
- display: "flex",
- justifyContent: "space-between",
- color: "rgba(255,255,255,0.4)",
- fontSize: 16,
- fontFamily: MONO_FAMILY,
- }}
- >
- <span style={{ opacity: 1 - wipe }}>before</span>
- <span style={{ opacity: wipe }}>after</span>
- </div>
- </div>
- </AbsoluteFill>
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Default content */
-/* -------------------------------------------------------------------------- */
-
-function DefaultOldPanel({ accent }: { accent: string }) {
- return (
- <div
- style={{
- position: "absolute",
- inset: 0,
- background: "#0a090e",
- padding: "44px 52px",
- fontFamily: MONO_FAMILY,
- color: "#71717a",
- fontSize: 22,
- lineHeight: 1.55,
- whiteSpace: "pre",
- }}
- >
- <div>{"function diff(a, b) {"}</div>
- <div>{" if (a === b) return null;"}</div>
- <div>{" return {"}</div>
- <div>{" before: a,"}</div>
- <div>{" after: b,"}</div>
- <div>{" };"}</div>
- <div>{"}"}</div>
- <div
- style={{
- marginTop: 24,
- display: "inline-block",
- padding: "6px 14px",
- borderRadius: 999,
- background: "rgba(239,68,68,0.12)",
- border: "1px solid rgba(239,68,68,0.35)",
- color: "#ef4444",
- fontSize: 13,
- letterSpacing: "0.12em",
- fontWeight: 700,
- }}
- >
- BEFORE
- </div>
- {/* swallow lint */}
- <span style={{ display: "none" }}>{accent}</span>
- </div>
- );
-}
-
-function DefaultNewPanel({ accent }: { accent: string }) {
- return (
- <div
- style={{
- position: "absolute",
- inset: 0,
- background:
- "radial-gradient(ellipse at 50% 30%, rgba(255,179,142,0.10) 0%, rgba(10,9,14,1) 70%)",
- padding: "44px 52px",
- fontFamily: MONO_FAMILY,
- color: "#e4e4e7",
- fontSize: 22,
- lineHeight: 1.55,
- whiteSpace: "pre",
- }}
- >
- <div>
- <span style={{ color: "#c4b5fd" }}>function</span>{" "}
- <span style={{ color: "#fcd34d" }}>diff</span>
- {"(a, b) {"}
- </div>
- <div>
- {" return "}
- <span style={{ color: "#86efac" }}>visualDiff</span>
- {"(a, b);"}
- </div>
- <div>{"}"}</div>
- <div
- style={{
- marginTop: 24,
- display: "inline-block",
- padding: "6px 14px",
- borderRadius: 999,
- background: `${accent}1a`,
- border: `1px solid ${accent}55`,
- color: accent,
- fontSize: 13,
- letterSpacing: "0.12em",
- fontWeight: 700,
- }}
- >
- AFTER
- </div>
- </div>
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Pulsing pill */
-/* -------------------------------------------------------------------------- */
-
-function PulsingPill({
- label,
- color,
- speed,
-}: {
- label: string;
- color: string;
- speed: number;
-}) {
- const frame = useCurrentFrame() * speed;
- const wave = (Math.sin(frame / 8) + 1) / 2;
- const dotScale = 0.92 + wave * 0.16;
- const ringPhase = (frame % 60) / 60;
- const ringScale = 1 + ringPhase * 1.6;
- const ringOpacity = (1 - ringPhase) * 0.6;
-
- return (
- <div
- style={{
- display: "flex",
- alignItems: "center",
- gap: 12,
- padding: "10px 18px 10px 14px",
- borderRadius: 999,
- background: `${color}1a`,
- border: `1px solid ${color}55`,
- color,
- fontSize: 16,
- fontWeight: 600,
- letterSpacing: "0.02em",
- }}
- >
- <div style={{ position: "relative", width: 12, height: 12 }}>
- <div
- style={{
- position: "absolute",
- inset: 0,
- borderRadius: "50%",
- background: color,
- opacity: ringOpacity,
- transform: `scale(${ringScale})`,
- }}
- />
- <div
- style={{
- position: "absolute",
- inset: 0,
- borderRadius: "50%",
- background: color,
- transform: `scale(${dotScale})`,
- }}
- />
- </div>
- {label}
- </div>
- );
-}
diff --git a/registry/remocn/cursor-flow/config.ts b/registry/remocn/cursor-flow/config.ts
deleted file mode 100644
index 2c3748ee..00000000
--- a/registry/remocn/cursor-flow/config.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
-
-export const cursorFlowConfig: ComponentConfig = {
- componentName: "CursorFlow",
- importPath: "@/components/remocn/cursor-flow",
- controls: {
- cursorColor: { type: "color", default: "#fafafa", label: "Cursor color" },
- cursorSize: {
- type: "number",
- default: 28,
- min: 12,
- max: 64,
- step: 1,
- label: "Cursor size",
- },
- segmentDuration: {
- type: "number",
- default: 36,
- min: 8,
- max: 120,
- step: 1,
- label: "Segment duration",
- },
- background: { type: "color", default: "#0a0a0a", label: "Background" },
- showTargets: { type: "boolean", default: true, label: "Show targets" },
- },
- durationInFrames: 180,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
-};
diff --git a/registry/remocn/cursor-flow/index.tsx b/registry/remocn/cursor-flow/index.tsx
deleted file mode 100644
index fb61d5bd..00000000
--- a/registry/remocn/cursor-flow/index.tsx
+++ /dev/null
@@ -1,307 +0,0 @@
-"use client";
-
-import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
-
-export interface CursorWaypoint {
- x: number;
- y: number;
- /** If set, the cursor will pause here for this many frames before moving on. */
- hold?: number;
- /** If true, a click animation will fire when the cursor reaches this point. */
- click?: boolean;
- /** Optional label rendered next to the click target. */
- label?: string;
-}
-
-export interface CursorFlowProps {
- waypoints?: CursorWaypoint[];
- cursorColor?: string;
- cursorSize?: number;
- segmentDuration?: number;
- background?: string;
- showTargets?: boolean;
- speed?: number;
- className?: string;
-}
-
-const FONT_FAMILY =
- "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
-
-const DEFAULT_WAYPOINTS: CursorWaypoint[] = [
- { x: 200, y: 180 },
- { x: 540, y: 240, click: true, label: "Generate" },
- { x: 880, y: 360, hold: 8 },
- { x: 1040, y: 520, click: true, label: "Publish" },
-];
-
-/**
- * Cubic Bezier evaluator. Two control points are derived per segment so the
- * trajectory always has a "belly" — straight lines between two points are
- * specifically the look we want to avoid.
- */
-function cubicBezier(
- t: number,
- p0: { x: number; y: number },
- p1: { x: number; y: number },
- p2: { x: number; y: number },
- p3: { x: number; y: number },
-) {
- const u = 1 - t;
- const tt = t * t;
- const uu = u * u;
- const uuu = uu * u;
- const ttt = tt * t;
- return {
- x: uuu * p0.x + 3 * uu * t * p1.x + 3 * u * tt * p2.x + ttt * p3.x,
- y: uuu * p0.y + 3 * uu * t * p1.y + 3 * u * tt * p2.y + ttt * p3.y,
- };
-}
-
-/** Apple-flavoured ease for in-segment motion: slow start, slow end. */
-function easeInOut(t: number) {
- return t < 0.5 ? 2 * t * t : 1 - Math.pow(-2 * t + 2, 2) / 2;
-}
-
-/** Per-segment control points: midpoint perpendicular offset gives a natural arc. */
-function controlsFor(
- a: { x: number; y: number },
- b: { x: number; y: number },
- index: number,
-) {
- const dx = b.x - a.x;
- const dy = b.y - a.y;
- const len = Math.hypot(dx, dy) || 1;
- // Perpendicular unit vector. Alternate sign per segment so the path snakes
- // instead of always bulging the same way.
- const sign = index % 2 === 0 ? 1 : -1;
- const px = (-dy / len) * (len * 0.18) * sign;
- const py = (dx / len) * (len * 0.18) * sign;
- // Place control points at 1/3 and 2/3 along the chord, offset perpendicular.
- return [
- { x: a.x + dx / 3 + px, y: a.y + dy / 3 + py },
- { x: a.x + (2 * dx) / 3 + px, y: a.y + (2 * dy) / 3 + py },
- ];
-}
-
-export function CursorFlow({
- waypoints = DEFAULT_WAYPOINTS,
- cursorColor = "#fafafa",
- cursorSize = 28,
- segmentDuration = 36,
- background = "#0a0a0a",
- showTargets = true,
- speed = 1,
- className,
-}: CursorFlowProps) {
- const frame = useCurrentFrame() * speed;
- const { fps } = useVideoConfig();
-
- // Build the timeline: each segment is segmentDuration frames, with optional
- // hold time at each waypoint.
- type SegmentTiming = {
- startFrame: number;
- endFrame: number;
- holdEnd: number;
- };
- const timings: SegmentTiming[] = [];
- let cursorFrame = 0;
- for (let i = 0; i < waypoints.length - 1; i++) {
- const start = cursorFrame;
- const end = start + segmentDuration;
- const holdEnd = end + (waypoints[i + 1].hold ?? 0);
- timings.push({ startFrame: start, endFrame: end, holdEnd });
- cursorFrame = holdEnd;
- }
-
- // Find the active segment.
- let pos = { x: waypoints[0].x, y: waypoints[0].y };
- let activeWaypointIndex = 0;
- for (let i = 0; i < timings.length; i++) {
- const { startFrame, endFrame, holdEnd } = timings[i];
- if (frame >= startFrame && frame < endFrame) {
- const t = easeInOut((frame - startFrame) / segmentDuration);
- const a = waypoints[i];
- const b = waypoints[i + 1];
- const [c1, c2] = controlsFor(a, b, i);
- pos = cubicBezier(t, a, c1, c2, b);
- activeWaypointIndex = i;
- break;
- } else if (frame >= endFrame && frame < holdEnd) {
- pos = { x: waypoints[i + 1].x, y: waypoints[i + 1].y };
- activeWaypointIndex = i + 1;
- break;
- } else if (frame >= holdEnd) {
- pos = { x: waypoints[i + 1].x, y: waypoints[i + 1].y };
- activeWaypointIndex = i + 1;
- }
- }
-
- return (
- <div
- className={className}
- style={{
- position: "absolute",
- inset: 0,
- background,
- fontFamily: FONT_FAMILY,
- }}
- >
- {/* Click targets */}
- {showTargets &&
- waypoints.map((wp, i) => {
- if (!wp.click) return null;
- // Find when the cursor reaches this waypoint and trigger the press scale.
- const timing = timings[i - 1];
- const arrivalFrame = timing ? timing.endFrame : 0;
- return (
- <ClickTarget
- key={i}
- x={wp.x}
- y={wp.y}
- label={wp.label}
- arrivalFrame={arrivalFrame}
- currentFrame={frame}
- fps={fps}
- />
- );
- })}
-
- {/* Cursor */}
- <Cursor
- x={pos.x}
- y={pos.y}
- size={cursorSize}
- color={cursorColor}
- currentFrame={frame}
- fps={fps}
- clickFrames={timings
- .map((t, i) => (waypoints[i + 1].click ? t.endFrame : -1))
- .filter((f) => f >= 0)}
- />
-
- {/* Cursor active marker just for context — small dot at active waypoint */}
- <div
- style={{
- position: "absolute",
- width: 6,
- height: 6,
- left: waypoints[activeWaypointIndex].x - 3,
- top: waypoints[activeWaypointIndex].y - 3,
- borderRadius: "50%",
- background: "rgba(255,255,255,0.04)",
- pointerEvents: "none",
- }}
- />
- </div>
- );
-}
-
-function Cursor({
- x,
- y,
- size,
- color,
- currentFrame,
- fps,
- clickFrames,
-}: {
- x: number;
- y: number;
- size: number;
- color: string;
- currentFrame: number;
- fps: number;
- clickFrames: number[];
-}) {
- // Find nearest click moment within ±4 frames; press scale if so.
- let scale = 1;
- for (const cf of clickFrames) {
- const delta = currentFrame - cf;
- if (delta >= 0 && delta <= 4) {
- // 4-frame hard press: 1 → 0.85 → 1
- const press = spring({
- frame: delta,
- fps,
- config: { damping: 22, stiffness: 320, mass: 0.5 },
- });
- scale = interpolate(press, [0, 1], [0.85, 1]);
- break;
- }
- }
-
- return (
- <svg
- width={size}
- height={size}
- viewBox="0 0 24 24"
- style={{
- position: "absolute",
- left: x,
- top: y,
- transform: `scale(${scale})`,
- transformOrigin: "0 0",
- zIndex: 9999,
- filter: "drop-shadow(0 4px 12px rgba(0,0,0,0.6))",
- pointerEvents: "none",
- }}
- >
- <path
- d="M3 2 L3 18 L7 14 L10 21 L13 20 L10 13 L17 13 Z"
- fill={color}
- stroke="#0a0a0a"
- strokeWidth="1.2"
- strokeLinejoin="round"
- />
- </svg>
- );
-}
-
-function ClickTarget({
- x,
- y,
- label,
- arrivalFrame,
- currentFrame,
- fps,
-}: {
- x: number;
- y: number;
- label?: string;
- arrivalFrame: number;
- currentFrame: number;
- fps: number;
-}) {
- // Synced press: when the cursor scales to 0.85, the target dips to 0.98.
- const delta = currentFrame - arrivalFrame;
- let pressScale = 1;
- if (delta >= 0 && delta <= 6) {
- const t = spring({
- frame: delta,
- fps,
- config: { damping: 18, stiffness: 280 },
- });
- pressScale = interpolate(t, [0, 1], [0.98, 1]);
- }
-
- return (
- <div
- style={{
- position: "absolute",
- left: x - 70,
- top: y - 22,
- transform: `scale(${pressScale})`,
- transformOrigin: "center",
- padding: "10px 18px",
- borderRadius: 10,
- background: "#fafafa",
- color: "#0a0a0a",
- fontSize: 14,
- fontWeight: 600,
- boxShadow: "0 12px 30px rgba(0,0,0,0.4)",
- pointerEvents: "none",
- }}
- >
- {label ?? "Click"}
- </div>
- );
-}
diff --git a/registry/remocn/morphing-modal/config.ts b/registry/remocn/morphing-modal/config.ts
deleted file mode 100644
index 01a924c2..00000000
--- a/registry/remocn/morphing-modal/config.ts
+++ /dev/null
@@ -1,51 +0,0 @@
-import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
-
-export const morphingModalConfig: ComponentConfig = {
- componentName: "MorphingModal",
- importPath: "@/components/remocn/morphing-modal",
- controls: {
- morphAt: {
- type: "number",
- default: 30,
- min: 0,
- max: 240,
- step: 1,
- label: "Morph at (frame)",
- },
- borderRadiusFrom: {
- type: "number",
- default: 24,
- min: 0,
- max: 80,
- step: 1,
- label: "Radius from",
- },
- borderRadiusTo: {
- type: "number",
- default: 0,
- min: 0,
- max: 80,
- step: 1,
- label: "Radius to",
- },
- sourceTitle: {
- type: "text",
- default: "Compose video",
- label: "Source title",
- },
- sourceBody: {
- type: "text",
- default: "Click to start a new project",
- label: "Source body",
- },
- modalTitle: { type: "text", default: "New project", label: "Modal title" },
- background: { type: "color", default: "#050505", label: "Background" },
- cardColor: { type: "color", default: "#0a0a0a", label: "Card color" },
- textColor: { type: "color", default: "#fafafa", label: "Text color" },
- mutedColor: { type: "color", default: "#71717a", label: "Muted color" },
- },
- durationInFrames: 180,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
-};
diff --git a/registry/remocn/morphing-modal/index.tsx b/registry/remocn/morphing-modal/index.tsx
deleted file mode 100644
index e17d963a..00000000
--- a/registry/remocn/morphing-modal/index.tsx
+++ /dev/null
@@ -1,267 +0,0 @@
-"use client";
-
-import type { ReactNode } from "react";
-import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
-
-export interface MorphingModalRect {
- top: number;
- left: number;
- width: number;
- height: number;
-}
-
-export interface MorphingModalProps {
- from?: MorphingModalRect;
- to?: MorphingModalRect;
- borderRadiusFrom?: number;
- borderRadiusTo?: number;
- morphAt?: number;
- background?: string;
- cardColor?: string;
- textColor?: string;
- mutedColor?: string;
- sourceTitle?: string;
- sourceBody?: string;
- modalTitle?: string;
- modalBody?: string;
- source?: ReactNode;
- modal?: ReactNode;
- speed?: number;
- className?: string;
-}
-
-const FONT_FAMILY =
- "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
-
-const VIEWPORT_W = 1280;
-const VIEWPORT_H = 720;
-
-const DEFAULT_FROM: MorphingModalRect = {
- left: 460,
- top: 260,
- width: 360,
- height: 200,
-};
-
-const DEFAULT_TO: MorphingModalRect = {
- left: 80,
- top: 60,
- width: VIEWPORT_W - 160,
- height: VIEWPORT_H - 120,
-};
-
-export function MorphingModal({
- from = DEFAULT_FROM,
- to = DEFAULT_TO,
- borderRadiusFrom = 24,
- borderRadiusTo = 0,
- morphAt = 30,
- background = "#050505",
- cardColor = "#0a0a0a",
- textColor = "#fafafa",
- mutedColor = "#71717a",
- sourceTitle = "Compose video",
- sourceBody = "Click to start a new project",
- modalTitle = "New project",
- modalBody = "Pick a template, drop your assets, and ship a 30s video in under five minutes. Everything renders deterministically — no flicker, no flaky frames.",
- source,
- modal,
- speed = 1,
- className,
-}: MorphingModalProps) {
- const frame = useCurrentFrame() * speed;
- const { fps } = useVideoConfig();
-
- // ONE heavy spring drives all 5 morph properties at once. High mass +
- // low stiffness so the modal "blooms" instead of jumping.
- const morph = spring({
- frame: frame - morphAt,
- fps,
- config: { mass: 1.5, damping: 22, stiffness: 110 },
- });
-
- const left = interpolate(morph, [0, 1], [from.left, to.left]);
- const top = interpolate(morph, [0, 1], [from.top, to.top]);
- const width = interpolate(morph, [0, 1], [from.width, to.width]);
- const height = interpolate(morph, [0, 1], [from.height, to.height]);
- const radius = interpolate(morph, [0, 1], [borderRadiusFrom, borderRadiusTo]);
-
- // Backdrop fades in alongside the morph spring.
- const backdropAlpha = interpolate(morph, [0, 1], [0, 0.8]);
-
- // Source content vanishes in the FIRST third of the morph.
- const sourceOpacity = interpolate(morph, [0, 0.33], [1, 0], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
-
- // Modal content arrives in the LAST third with a translateY offset.
- const modalOpacity = interpolate(morph, [0.66, 1], [0, 1], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
- const modalTy = interpolate(morph, [0.66, 1], [20, 0], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
-
- return (
- <div
- className={className}
- style={{
- position: "absolute",
- inset: 0,
- background,
- fontFamily: FONT_FAMILY,
- overflow: "hidden",
- }}
- >
- {/* Backdrop dim layer */}
- <div
- style={{
- position: "absolute",
- inset: 0,
- background: `rgba(0, 0, 0, ${backdropAlpha})`,
- pointerEvents: "none",
- }}
- />
-
- {/* Suggestion of a bento grid behind so the morph reads as
- "card lifting off". Very low contrast. */}
- <BackgroundGrid />
-
- {/* The morphing card */}
- <div
- style={{
- position: "absolute",
- left,
- top,
- width,
- height,
- background: cardColor,
- borderRadius: radius,
- boxShadow:
- "0 60px 140px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.06)",
- overflow: "hidden",
- }}
- >
- {/* Source layer (fades out first) */}
- <div
- style={{
- position: "absolute",
- inset: 0,
- padding: 28,
- display: "flex",
- flexDirection: "column",
- justifyContent: "flex-end",
- gap: 6,
- opacity: sourceOpacity,
- }}
- >
- {source ?? (
- <>
- <div
- style={{
- fontSize: 20,
- fontWeight: 700,
- color: textColor,
- letterSpacing: "-0.01em",
- }}
- >
- {sourceTitle}
- </div>
- <div style={{ fontSize: 14, color: mutedColor }}>
- {sourceBody}
- </div>
- </>
- )}
- </div>
-
- {/* Modal layer (arrives last with translateY) */}
- <div
- style={{
- position: "absolute",
- inset: 0,
- padding: 64,
- display: "flex",
- flexDirection: "column",
- gap: 24,
- opacity: modalOpacity,
- transform: `translateY(${modalTy}px)`,
- }}
- >
- {modal ?? (
- <>
- <div
- style={{
- fontSize: 56,
- fontWeight: 700,
- color: textColor,
- letterSpacing: "-0.03em",
- lineHeight: 1.05,
- }}
- >
- {modalTitle}
- </div>
- <div
- style={{
- fontSize: 20,
- lineHeight: 1.55,
- color: mutedColor,
- maxWidth: 720,
- }}
- >
- {modalBody}
- </div>
- <div
- style={{
- marginTop: 12,
- display: "inline-flex",
- alignSelf: "flex-start",
- background: textColor,
- color: cardColor,
- padding: "12px 22px",
- borderRadius: 12,
- fontSize: 16,
- fontWeight: 600,
- }}
- >
- Get started
- </div>
- </>
- )}
- </div>
- </div>
- </div>
- );
-}
-
-function BackgroundGrid() {
- // Decorative bento background — 3x2 cards, very low contrast.
- const cells = [
- { x: 80, y: 60, w: 360, h: 200 },
- { x: 460, y: 60, w: 360, h: 200 },
- { x: 840, y: 60, w: 360, h: 200 },
- { x: 80, y: 460, w: 360, h: 200 },
- { x: 840, y: 460, w: 360, h: 200 },
- ];
- return (
- <>
- {cells.map((c, i) => (
- <div
- key={i}
- style={{
- position: "absolute",
- left: c.x,
- top: c.y,
- width: c.w,
- height: c.h,
- background: "#0a0a0a",
- borderRadius: 24,
- border: "1px solid rgba(255,255,255,0.04)",
- }}
- />
- ))}
- </>
- );
-}
diff --git a/registry/remocn/pipeline-journey/config.ts b/registry/remocn/pipeline-journey/config.ts
deleted file mode 100644
index 6f071b9e..00000000
--- a/registry/remocn/pipeline-journey/config.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
-
-export const pipelineJourneyConfig: ComponentConfig = {
- componentName: "PipelineJourney",
- importPath: "@/components/remocn/pipeline-journey",
- controls: {
- cardLabel: {
- type: "text",
- default: "Build pipeline",
- label: "Card label",
- },
- accentColor: {
- type: "color",
- default: "#22c55e",
- label: "Accent color",
- },
- },
- durationInFrames: 200,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
-};
diff --git a/registry/remocn/pipeline-journey/index.tsx b/registry/remocn/pipeline-journey/index.tsx
deleted file mode 100644
index e3424595..00000000
--- a/registry/remocn/pipeline-journey/index.tsx
+++ /dev/null
@@ -1,422 +0,0 @@
-"use client";
-
-import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
-
-export interface PipelineJourneyProps {
- cardLabel?: string;
- accentColor?: string;
- speed?: number;
- className?: string;
-}
-
-const FONT_FAMILY =
- "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
-const MONO_FAMILY =
- "var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace";
-
-const COLUMNS = [
- { id: "todo", title: "Todo", count: 3 },
- { id: "in_progress", title: "In Progress", count: 2 },
- { id: "done", title: "Done", count: 4 },
-];
-
-const COL_WIDTH = 320;
-const COL_GAP = 40;
-const BOARD_TOP = 120;
-const BOARD_LEFT = 120;
-const CARD_W = 280;
-const CARD_H = 88;
-
-function colCenter(index: number) {
- const x = BOARD_LEFT + index * (COL_WIDTH + COL_GAP) + COL_WIDTH / 2;
- const y = BOARD_TOP + 90;
- return { x, y };
-}
-
-function pseudoRandom(i: number) {
- const v = Math.sin(i * 12.9898) * 43758.5453;
- return v - Math.floor(v);
-}
-
-function PlaceholderCard({ opacity = 1 }: { opacity?: number }) {
- return (
- <div
- style={{
- width: CARD_W,
- height: CARD_H,
- borderRadius: 12,
- background: "rgba(255,255,255,0.04)",
- border: "1px solid rgba(255,255,255,0.08)",
- marginBottom: 12,
- padding: 14,
- display: "flex",
- flexDirection: "column",
- gap: 10,
- opacity,
- }}
- >
- <div
- style={{
- width: "70%",
- height: 10,
- borderRadius: 4,
- background: "rgba(255,255,255,0.12)",
- }}
- />
- <div
- style={{
- width: "45%",
- height: 8,
- borderRadius: 4,
- background: "rgba(255,255,255,0.08)",
- }}
- />
- <div style={{ flex: 1 }} />
- <div
- style={{
- width: 28,
- height: 28,
- borderRadius: 999,
- background: "rgba(255,255,255,0.12)",
- }}
- />
- </div>
- );
-}
-
-export function PipelineJourney({
- cardLabel = "Build pipeline",
- accentColor = "#22c55e",
- speed = 1,
- className,
-}: PipelineJourneyProps) {
- const frame = useCurrentFrame() * speed;
- const { fps } = useVideoConfig();
-
- // Phases
- const flight1Start = 30;
- const flight1End = 70;
- const waitEnd = 110;
- const flight2Start = 110;
- const flight2End = 150;
- const confettiStart = 150;
-
- const todoCenter = colCenter(0);
- const progCenter = colCenter(1);
- const doneCenter = colCenter(2);
-
- // Card position interpolation
- let cx: number;
- let cy: number;
- let rotZ = 0;
- let scaleBoost = 1;
- let shadowAlpha = 0.25;
- let shadowBlur = 20;
-
- if (frame < flight1Start) {
- cx = todoCenter.x;
- cy = todoCenter.y;
- } else if (frame < flight1End) {
- const p = (frame - flight1Start) / (flight1End - flight1Start);
- cx = interpolate(p, [0, 1], [todoCenter.x, progCenter.x]);
- // arc
- const arc = Math.sin(p * Math.PI) * 80;
- cy = interpolate(p, [0, 1], [todoCenter.y, progCenter.y]) - arc;
- rotZ = Math.sin(p * Math.PI) * 3;
- scaleBoost = 1 + Math.sin(p * Math.PI) * 0.15;
- shadowAlpha = 0.25 + Math.sin(p * Math.PI) * 0.4;
- shadowBlur = 20 + Math.sin(p * Math.PI) * 60;
- } else if (frame < flight2Start) {
- cx = progCenter.x;
- cy = progCenter.y;
- } else if (frame < flight2End) {
- const p = (frame - flight2Start) / (flight2End - flight2Start);
- cx = interpolate(p, [0, 1], [progCenter.x, doneCenter.x]);
- const arc = Math.sin(p * Math.PI) * 80;
- cy = interpolate(p, [0, 1], [progCenter.y, doneCenter.y]) - arc;
- rotZ = Math.sin(p * Math.PI) * 3;
- scaleBoost = 1 + Math.sin(p * Math.PI) * 0.15;
- shadowAlpha = 0.25 + Math.sin(p * Math.PI) * 0.4;
- shadowBlur = 20 + Math.sin(p * Math.PI) * 60;
- } else {
- cx = doneCenter.x;
- cy = doneCenter.y;
- }
-
- // Landing micro-spring on each arrival
- const land1 = spring({
- frame: frame - flight1End,
- fps,
- config: { damping: 10, stiffness: 180, mass: 0.7 },
- durationInFrames: 18,
- });
- const land2 = spring({
- frame: frame - flight2End,
- fps,
- config: { damping: 10, stiffness: 180, mass: 0.7 },
- durationInFrames: 18,
- });
-
- let landingScale = 1;
- if (frame >= flight1End && frame < flight2Start) {
- landingScale = interpolate(land1, [0, 1], [0.92, 1]);
- } else if (frame >= flight2End) {
- landingScale = interpolate(land2, [0, 1], [0.92, 1]);
- }
-
- // Column flash on landing
- const progFlash = interpolate(
- frame,
- [flight1End, flight1End + 4, flight1End + 18],
- [0, 1, 0],
- { extrapolateLeft: "clamp", extrapolateRight: "clamp" },
- );
- const doneFlash = interpolate(
- frame,
- [flight2End, flight2End + 4, flight2End + 18],
- [0, 1, 0],
- { extrapolateLeft: "clamp", extrapolateRight: "clamp" },
- );
-
- // Timer visibility (during in_progress wait)
- const timerOpacity = interpolate(
- frame,
- [flight1End + 4, flight1End + 12, waitEnd - 8, waitEnd],
- [0, 1, 1, 0],
- { extrapolateLeft: "clamp", extrapolateRight: "clamp" },
- );
- const timerSecs = Math.floor(
- interpolate(frame, [flight1End, waitEnd], [0, 42], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- }),
- );
-
- // Confetti particles
- const PARTICLE_COUNT = 36;
- const confettiFrame = frame - confettiStart;
-
- return (
- <div
- className={className}
- style={{
- position: "absolute",
- inset: 0,
- background: "#09090b",
- fontFamily: FONT_FAMILY,
- color: "white",
- overflow: "hidden",
- }}
- >
- {/* Subtle grid bg */}
- <div
- style={{
- position: "absolute",
- inset: 0,
- backgroundImage:
- "linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px)",
- backgroundSize: "40px 40px",
- }}
- />
-
- {/* Title */}
- <div
- style={{
- position: "absolute",
- top: 48,
- left: BOARD_LEFT,
- fontSize: 24,
- fontWeight: 600,
- letterSpacing: "-0.02em",
- }}
- >
- Sprint board
- </div>
-
- {/* Columns */}
- {COLUMNS.map((col, i) => {
- const flash =
- col.id === "in_progress"
- ? progFlash
- : col.id === "done"
- ? doneFlash
- : 0;
- return (
- <div
- key={col.id}
- style={{
- position: "absolute",
- top: BOARD_TOP,
- left: BOARD_LEFT + i * (COL_WIDTH + COL_GAP),
- width: COL_WIDTH,
- height: 480,
- borderRadius: 16,
- background: `rgba(255,255,255,${0.02 + flash * 0.08})`,
- border: `1px solid rgba(255,255,255,${0.06 + flash * 0.2})`,
- padding: 20,
- transition: "none",
- }}
- >
- <div
- style={{
- display: "flex",
- alignItems: "center",
- justifyContent: "space-between",
- marginBottom: 18,
- }}
- >
- <div style={{ fontSize: 14, fontWeight: 600, opacity: 0.85 }}>
- {col.title}
- </div>
- <div
- style={{
- fontSize: 12,
- fontFamily: MONO_FAMILY,
- opacity: 0.5,
- padding: "2px 8px",
- borderRadius: 999,
- background: "rgba(255,255,255,0.06)",
- }}
- >
- {col.count}
- </div>
- </div>
- {Array.from({ length: col.count }).map((_, k) => (
- <PlaceholderCard key={k} opacity={0.55 + ((k * 13) % 30) / 100} />
- ))}
- </div>
- );
- })}
-
- {/* Flying card */}
- <div
- style={{
- position: "absolute",
- left: cx - CARD_W / 2,
- top: cy - CARD_H / 2,
- width: CARD_W,
- height: CARD_H,
- borderRadius: 14,
- background: "#18181b",
- border: `1px solid ${accentColor}`,
- boxShadow: `0 ${shadowBlur / 2}px ${shadowBlur}px rgba(0,0,0,${shadowAlpha}), 0 0 0 1px rgba(255,255,255,0.04) inset`,
- transform: `rotate(${rotZ}deg) scale(${scaleBoost * landingScale})`,
- transformOrigin: "center center",
- padding: 16,
- display: "flex",
- flexDirection: "column",
- gap: 10,
- willChange: "transform",
- }}
- >
- <div
- style={{
- display: "flex",
- alignItems: "center",
- justifyContent: "space-between",
- }}
- >
- <div
- style={{
- fontFamily: MONO_FAMILY,
- fontSize: 11,
- opacity: 0.5,
- }}
- >
- REMO-128
- </div>
- <div
- style={{
- width: 8,
- height: 8,
- borderRadius: 999,
- background: accentColor,
- boxShadow: `0 0 12px ${accentColor}`,
- }}
- />
- </div>
- <div
- style={{
- fontSize: 16,
- fontWeight: 600,
- letterSpacing: "-0.01em",
- }}
- >
- {cardLabel}
- </div>
- <div
- style={{
- display: "flex",
- alignItems: "center",
- justifyContent: "space-between",
- marginTop: "auto",
- }}
- >
- <div
- style={{
- fontFamily: MONO_FAMILY,
- fontSize: 12,
- opacity: timerOpacity,
- color: accentColor,
- }}
- >
- 00:{String(timerSecs).padStart(2, "0")}
- </div>
- <div
- style={{
- fontSize: 11,
- opacity: 0.4,
- }}
- >
- assignee
- </div>
- </div>
- </div>
-
- {/* Confetti */}
- {confettiFrame > 0 &&
- Array.from({ length: PARTICLE_COUNT }).map((_, i) => {
- const angle = pseudoRandom(i + 1) * Math.PI * 2;
- const dist = 60 + pseudoRandom(i + 99) * 220;
- const drift = pseudoRandom(i + 7) * 40 - 20;
- const sizeR = pseudoRandom(i + 3);
- const size = 6 + sizeR * 8;
- const colorPick = pseudoRandom(i + 5);
- const color =
- colorPick < 0.33
- ? accentColor
- : colorPick < 0.66
- ? "#fbbf24"
- : "#60a5fa";
- const lifespan = 50;
- const t = Math.min(confettiFrame / lifespan, 1);
- const eased = 1 - (1 - t) * (1 - t);
- const px = doneCenter.x + Math.cos(angle) * dist * eased + drift * t;
- const py =
- doneCenter.y +
- Math.sin(angle) * dist * eased +
- // gravity
- t * t * 220;
- const opacity = interpolate(t, [0, 0.7, 1], [1, 1, 0]);
- const rot = pseudoRandom(i + 11) * 360 + confettiFrame * 12;
- return (
- <div
- key={i}
- style={{
- position: "absolute",
- left: px - size / 2,
- top: py - size / 2,
- width: size,
- height: size * 0.6,
- background: color,
- borderRadius: 2,
- opacity,
- transform: `rotate(${rot}deg)`,
- willChange: "transform",
- }}
- />
- );
- })}
- </div>
- );
-}
diff --git a/registry/remocn/product-launch-trailer/config.ts b/registry/remocn/product-launch-trailer/config.ts
deleted file mode 100644
index 9a23f8ad..00000000
--- a/registry/remocn/product-launch-trailer/config.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
-
-export const productLaunchTrailerConfig: ComponentConfig = {
- componentName: "ProductLaunchTrailer",
- importPath: "@/components/remocn/product-launch-trailer",
- controls: {
- logoLabel: { type: "text", default: "R", label: "Logo label" },
- productName: { type: "text", default: "Remocn", label: "Product name" },
- versionLabel: {
- type: "text",
- default: "v1.0 is live",
- label: "Version label",
- },
- accentPeach: { type: "color", default: "#FFB38E", label: "Accent peach" },
- accentLavender: {
- type: "color",
- default: "#D4B3FF",
- label: "Accent lavender",
- },
- accentMint: { type: "color", default: "#A1EEBD", label: "Accent mint" },
- background: { type: "color", default: "#141318", label: "Background" },
- },
- durationInFrames: 240,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
-};
diff --git a/registry/remocn/product-launch-trailer/index.tsx b/registry/remocn/product-launch-trailer/index.tsx
deleted file mode 100644
index 86829007..00000000
--- a/registry/remocn/product-launch-trailer/index.tsx
+++ /dev/null
@@ -1,650 +0,0 @@
-"use client";
-
-import {
- AbsoluteFill,
- Easing,
- interpolate,
- random,
- Sequence,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from "remotion";
-
-export interface ProductLaunchTrailerProps {
- logoLabel?: string;
- productName?: string;
- versionLabel?: string;
- accentPeach?: string;
- accentLavender?: string;
- accentMint?: string;
- background?: string;
- speed?: number;
- className?: string;
-}
-
-const FONT_FAMILY =
- "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
-const MONO_FAMILY =
- "var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace";
-
-// Soft "Tactile" easing — used for every camera move and reveal.
-const SOFT = Easing.bezier(0.16, 1, 0.3, 1);
-
-// Sequence anchors (frames). All later math is derived from these so the
-// trailer is easy to retime in one place.
-const T = {
- pulseStart: 0,
- pulseEnd: 50,
- zoomStart: 38,
- zoomEnd: 78,
- shellStart: 70,
- flyStart: 110,
- flyEnd: 200,
- outroStart: 190,
- outroEnd: 240,
-};
-
-export function ProductLaunchTrailer({
- logoLabel = "R",
- productName = "Remocn",
- versionLabel = "v1.0 is live",
- accentPeach = "#FFB38E",
- accentLavender = "#D4B3FF",
- accentMint = "#A1EEBD",
- background = "#141318",
- speed = 1,
- className,
-}: ProductLaunchTrailerProps) {
- return (
- <AbsoluteFill className={className} style={{ background }}>
- {/* TODO(audio): TransitionWhoosh @ frame ~38, SuccessChime @ frame ~200 */}
-
- <Sequence from={T.pulseStart} durationInFrames={T.zoomEnd - T.pulseStart}>
- <PulseLogo
- label={logoLabel}
- name={productName}
- accentLavender={accentLavender}
- background={background}
- speed={speed}
- />
- </Sequence>
-
- <Sequence from={T.shellStart} durationInFrames={T.outroEnd - T.shellStart}>
- <AppShellFlyover
- accentPeach={accentPeach}
- accentLavender={accentLavender}
- accentMint={accentMint}
- background={background}
- speed={speed}
- flyStartLocal={T.flyStart - T.shellStart}
- flyEndLocal={T.flyEnd - T.shellStart}
- outroStartLocal={T.outroStart - T.shellStart}
- />
- </Sequence>
-
- <Sequence
- from={T.outroStart}
- durationInFrames={T.outroEnd - T.outroStart + 1}
- >
- <Outro
- versionLabel={versionLabel}
- accentMint={accentMint}
- accentPeach={accentPeach}
- accentLavender={accentLavender}
- speed={speed}
- />
- </Sequence>
- </AbsoluteFill>
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Phase 1 */
-/* -------------------------------------------------------------------------- */
-
-function PulseLogo({
- label,
- name,
- accentLavender,
- background,
- speed,
-}: {
- label: string;
- name: string;
- accentLavender: string;
- background: string;
- speed: number;
-}) {
- const frame = useCurrentFrame() * speed;
- const localDuration = T.zoomEnd - T.pulseStart;
-
- // Soft pulse — sin wave on a slow period, modulating both glow and scale.
- const pulse = (Math.sin(frame / 6) + 1) / 2; // 0..1
-
- // After pulseEnd we hand off to the zoom transition: scale up + fade out.
- const zoomLocal = Math.max(0, frame - (T.zoomStart - T.pulseStart));
- const zoomDuration = T.zoomEnd - T.zoomStart;
- const zoom = interpolate(zoomLocal, [0, zoomDuration], [1, 14], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- easing: Easing.bezier(0.7, 0, 0.84, 0),
- });
- const fade = interpolate(zoomLocal, [zoomDuration * 0.5, zoomDuration], [1, 0], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
-
- const baseScale = 0.96 + pulse * 0.04;
- const glowAlpha = 0.35 + pulse * 0.4;
-
- const labelOpacity = interpolate(frame, [4, 18], [0, 1], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
-
- return (
- <AbsoluteFill
- style={{
- background,
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- }}
- >
- <div
- style={{
- transform: `scale(${zoom * baseScale})`,
- opacity: fade,
- willChange: "transform, opacity",
- display: "flex",
- flexDirection: "column",
- alignItems: "center",
- gap: 28,
- }}
- >
- {/* Logo squircle */}
- <div
- style={{
- width: 200,
- height: 200,
- borderRadius: 56,
- background:
- "linear-gradient(160deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 100%)",
- border: `1px solid ${accentLavender}55`,
- boxShadow: `0 0 ${60 + pulse * 80}px ${accentLavender}${toHex(
- glowAlpha,
- )}, inset 0 1px 0 rgba(255,255,255,0.12)`,
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- color: "white",
- fontFamily: FONT_FAMILY,
- fontSize: 112,
- fontWeight: 700,
- letterSpacing: "-0.06em",
- }}
- >
- {label}
- </div>
-
- {/* Product name */}
- <div
- style={{
- opacity: labelOpacity,
- color: "rgba(255,255,255,0.92)",
- fontFamily: FONT_FAMILY,
- fontSize: 28,
- fontWeight: 500,
- letterSpacing: "0.02em",
- }}
- >
- {name}
- </div>
- </div>
- {/* swallow lint: localDuration kept for reference */}
- <span style={{ display: "none" }}>{localDuration}</span>
- </AbsoluteFill>
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Phase 2 */
-/* -------------------------------------------------------------------------- */
-
-function AppShellFlyover({
- accentPeach,
- accentLavender,
- accentMint,
- background,
- speed,
- flyStartLocal,
- flyEndLocal,
- outroStartLocal,
-}: {
- accentPeach: string;
- accentLavender: string;
- accentMint: string;
- background: string;
- speed: number;
- flyStartLocal: number;
- flyEndLocal: number;
- outroStartLocal: number;
-}) {
- const frame = useCurrentFrame() * speed;
-
- // Shell fade-in — comes in right after the zoom punches through.
- const enter = interpolate(frame, [0, 14], [0, 1], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- easing: SOFT,
- });
-
- // 3D camera fly-over: rx, ry, tz, scale all interpolated with the soft bezier.
- const flyT = interpolate(frame, [flyStartLocal, flyEndLocal], [0, 1], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- easing: SOFT,
- });
- // Outro pull-back blends the camera away.
- const outroT = interpolate(
- frame,
- [outroStartLocal, outroStartLocal + 30],
- [0, 1],
- {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- easing: SOFT,
- },
- );
-
- const rx = interpolate(flyT, [0, 1], [0, -8]) * (1 - outroT);
- const ry = interpolate(flyT, [0, 1], [-6, 6]) * (1 - outroT);
- const tz =
- interpolate(flyT, [0, 1], [-220, 80]) * (1 - outroT) +
- outroT * -360;
- const scaleBoost =
- interpolate(flyT, [0, 1], [0.92, 1.04]) * (1 - outroT) + outroT * 0.84;
-
- // Drop-shadow blur grows when the camera hovers above the cards (tz > 0).
- const shadowBlur = Math.max(20, 28 + tz * 0.4);
- const shadowOpacity = 0.35 + Math.max(0, tz / 180) * 0.35;
-
- return (
- <AbsoluteFill
- style={{
- background,
- opacity: enter,
- perspective: 2000,
- perspectiveOrigin: "50% 45%",
- }}
- >
- <div
- style={{
- position: "absolute",
- inset: 0,
- transformStyle: "preserve-3d",
- transform: `rotateX(${rx}deg) rotateY(${ry}deg) translateZ(${tz}px) scale(${scaleBoost})`,
- willChange: "transform",
- }}
- >
- {/* Faint border to suggest the app frame */}
- <div
- style={{
- position: "absolute",
- inset: 40,
- borderRadius: 24,
- border: `1px solid ${accentLavender}1f`,
- background:
- "linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%)",
- }}
- />
-
- {/* Glass code block on the left */}
- <div
- style={{
- position: "absolute",
- left: 80,
- top: 110,
- width: 520,
- height: 500,
- transform: "translateZ(20px)",
- filter: `drop-shadow(0 22px ${shadowBlur}px ${accentLavender}${toHex(
- shadowOpacity,
- )})`,
- }}
- >
- <FauxCodeBlock accentLavender={accentLavender} accentMint={accentMint} />
- </div>
-
- {/* Bento grid on the right */}
- <div
- style={{
- position: "absolute",
- right: 80,
- top: 110,
- width: 540,
- height: 500,
- transform: "translateZ(40px)",
- filter: `drop-shadow(0 22px ${shadowBlur}px ${accentPeach}${toHex(
- shadowOpacity,
- )})`,
- }}
- >
- <FauxBentoGrid
- accentPeach={accentPeach}
- accentLavender={accentLavender}
- accentMint={accentMint}
- speed={speed}
- />
- </div>
- </div>
- </AbsoluteFill>
- );
-}
-
-function FauxCodeBlock({
- accentLavender,
- accentMint,
-}: {
- accentLavender: string;
- accentMint: string;
-}) {
- const frame = useCurrentFrame();
- const lines = [
- { t: "import { Trailer } from 'remocn'", c: "#c4b5fd" },
- { t: "", c: "" },
- { t: "export const Scene = () => (", c: "#e4e4e7" },
- { t: " <Trailer", c: "#e4e4e7" },
- { t: ` label="v1.0"`, c: "#86efac" },
- { t: ` accent="lavender"`, c: "#fcd34d" },
- { t: " />", c: "#e4e4e7" },
- { t: ")", c: "#e4e4e7" },
- ];
-
- return (
- <div
- style={{
- position: "absolute",
- inset: 0,
- borderRadius: 20,
- background: "rgba(20,19,24,0.78)",
- backdropFilter: "blur(18px)",
- WebkitBackdropFilter: "blur(18px)",
- border: `1px solid ${accentLavender}33`,
- overflow: "hidden",
- fontFamily: MONO_FAMILY,
- }}
- >
- {/* Title bar */}
- <div
- style={{
- height: 38,
- display: "flex",
- alignItems: "center",
- gap: 8,
- padding: "0 16px",
- borderBottom: "1px solid rgba(255,255,255,0.06)",
- }}
- >
- {["#FFB38E", "#FCD34D", accentMint].map((c) => (
- <div
- key={c}
- style={{
- width: 10,
- height: 10,
- borderRadius: "50%",
- background: c,
- opacity: 0.85,
- }}
- />
- ))}
- <span
- style={{
- marginLeft: 12,
- color: "rgba(255,255,255,0.45)",
- fontSize: 12,
- }}
- >
- scene.tsx
- </span>
- </div>
-
- {/* Code lines, staggered in */}
- <div style={{ padding: "20px 22px", display: "flex", flexDirection: "column", gap: 6 }}>
- {lines.map((line, i) => {
- const local = frame - 14 - i * 5;
- const o = interpolate(local, [0, 10], [0, 1], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
- const x = interpolate(local, [0, 10], [12, 0], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
- return (
- <div
- key={i}
- style={{
- display: "flex",
- gap: 14,
- opacity: o,
- transform: `translateX(${x}px)`,
- fontSize: 15,
- lineHeight: "22px",
- }}
- >
- <span style={{ color: "#3f3f46", width: 18, textAlign: "right" }}>
- {i + 1}
- </span>
- <span style={{ color: line.c || "#e4e4e7", whiteSpace: "pre" }}>
- {line.t || " "}
- </span>
- </div>
- );
- })}
- </div>
- </div>
- );
-}
-
-function FauxBentoGrid({
- accentPeach,
- accentLavender,
- accentMint,
- speed,
-}: {
- accentPeach: string;
- accentLavender: string;
- accentMint: string;
- speed: number;
-}) {
- const frame = useCurrentFrame() * speed;
- const { fps } = useVideoConfig();
-
- const cards: Array<{ title: string; body: string; tint: string; span: 1 | 2 }> = [
- { title: "Animations", body: "Spring-tuned", tint: accentLavender, span: 2 },
- { title: "Transitions", body: "Cinematic", tint: accentPeach, span: 1 },
- { title: "Backgrounds", body: "Volumetric", tint: accentMint, span: 1 },
- { title: "Compositions", body: "Production-ready", tint: accentLavender, span: 2 },
- ];
-
- return (
- <div
- style={{
- position: "absolute",
- inset: 0,
- display: "grid",
- gridTemplateColumns: "1fr 1fr",
- gap: 16,
- }}
- >
- {cards.map((c, i) => {
- const progress = spring({
- frame: frame - 30 - i * 8,
- fps,
- config: { damping: 14, stiffness: 110, mass: 0.7 },
- durationInFrames: 28,
- });
- return (
- <div
- key={c.title}
- style={{
- gridColumn: c.span === 2 ? "span 2" : "span 1",
- minHeight: 110,
- padding: 22,
- borderRadius: 18,
- background:
- "linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%)",
- border: `1px solid ${c.tint}33`,
- boxShadow: `inset 0 1px 0 rgba(255,255,255,0.06)`,
- opacity: progress,
- transform: `translateY(${(1 - progress) * 18}px) scale(${
- 0.92 + progress * 0.08
- })`,
- transformOrigin: "center",
- willChange: "transform, opacity",
- display: "flex",
- flexDirection: "column",
- justifyContent: "flex-end",
- }}
- >
- <div
- style={{
- color: "white",
- fontFamily: FONT_FAMILY,
- fontSize: 22,
- fontWeight: 600,
- letterSpacing: "-0.02em",
- }}
- >
- {c.title}
- </div>
- <div
- style={{
- color: `${c.tint}cc`,
- fontFamily: FONT_FAMILY,
- fontSize: 13,
- marginTop: 2,
- }}
- >
- {c.body}
- </div>
- </div>
- );
- })}
- </div>
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Phase 3 */
-/* -------------------------------------------------------------------------- */
-
-function Outro({
- versionLabel,
- accentMint,
- accentPeach,
- accentLavender,
- speed,
-}: {
- versionLabel: string;
- accentMint: string;
- accentPeach: string;
- accentLavender: string;
- speed: number;
-}) {
- const frame = useCurrentFrame() * speed;
- const { fps } = useVideoConfig();
-
- // Heading drops in with a soft spring.
- const drop = spring({
- frame: frame - 6,
- fps,
- config: { damping: 14, stiffness: 110, mass: 0.7 },
- durationInFrames: 28,
- });
- const headingY = interpolate(drop, [0, 1], [-40, 0]);
- const headingOpacity = interpolate(drop, [0, 1], [0, 1]);
-
- // Confetti — lightweight inline burst (no SuccessConfetti import to avoid
- // its full-frame background).
- const particles = Array.from({ length: 70 }, (_, i) => {
- const angle = random(`pl:${i}:a`) * Math.PI * 2;
- const v = 9 + random(`pl:${i}:v`) * 9;
- const sz = 5 + random(`pl:${i}:s`) * 7;
- const f = Math.max(0, frame - 14 - Math.floor(random(`pl:${i}:d`) * 6));
- const cx = 640 + Math.cos(angle) * v * f;
- const cy = 280 + Math.sin(angle) * v * f + 0.4 * f * f;
- const colors = [accentMint, accentPeach, accentLavender, "#FCD34D"];
- const color = colors[Math.floor(random(`pl:${i}:c`) * colors.length)];
- const opacity = interpolate(f, [0, 4, 38, 50], [0, 1, 1, 0], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
- return { cx, cy, sz, color, opacity, key: i };
- });
-
- return (
- <AbsoluteFill style={{ pointerEvents: "none" }}>
- {/* Confetti layer */}
- <svg
- width={1280}
- height={720}
- viewBox="0 0 1280 720"
- style={{ position: "absolute", inset: 0 }}
- >
- {particles.map((p) => (
- <rect
- key={p.key}
- x={p.cx - p.sz / 2}
- y={p.cy - p.sz / 2}
- width={p.sz}
- height={p.sz * 0.55}
- rx={1}
- fill={p.color}
- opacity={p.opacity}
- />
- ))}
- </svg>
-
- {/* Heading */}
- <div
- style={{
- position: "absolute",
- left: 0,
- right: 0,
- top: 240,
- textAlign: "center",
- transform: `translateY(${headingY}px)`,
- opacity: headingOpacity,
- willChange: "transform, opacity",
- }}
- >
- <div
- style={{
- fontFamily: FONT_FAMILY,
- fontSize: 96,
- fontWeight: 700,
- letterSpacing: "-0.04em",
- color: "white",
- textShadow: `0 0 60px ${accentMint}55`,
- }}
- >
- {versionLabel}
- </div>
- </div>
- </AbsoluteFill>
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Helpers */
-/* -------------------------------------------------------------------------- */
-
-function toHex(alpha: number) {
- const clamped = Math.max(0, Math.min(1, alpha));
- return Math.round(clamped * 255)
- .toString(16)
- .padStart(2, "0");
-}
diff --git a/registry/remocn/pulsing-indicator/config.ts b/registry/remocn/pulsing-indicator/config.ts
deleted file mode 100644
index d907d63e..00000000
--- a/registry/remocn/pulsing-indicator/config.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
-
-export const pulsingIndicatorConfig: ComponentConfig = {
- componentName: "PulsingIndicator",
- importPath: "@/components/remocn/pulsing-indicator",
- controls: {
- color: { type: "color", default: "#22c55e", label: "Color" },
- size: {
- type: "number",
- default: 32,
- min: 8,
- max: 120,
- step: 1,
- label: "Size",
- },
- period: {
- type: "number",
- default: 8,
- min: 1,
- max: 30,
- step: 0.5,
- label: "Period (frames)",
- },
- background: { type: "color", default: "#ffffff", label: "Background" },
- },
- durationInFrames: 120,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
-};
diff --git a/registry/remocn/pulsing-indicator/index.tsx b/registry/remocn/pulsing-indicator/index.tsx
deleted file mode 100644
index 98bc6747..00000000
--- a/registry/remocn/pulsing-indicator/index.tsx
+++ /dev/null
@@ -1,85 +0,0 @@
-"use client";
-
-import { useCurrentFrame } from "remotion";
-
-export interface PulsingIndicatorProps {
- color?: string;
- size?: number;
- /** Wavelength of the base pulse, in frames. Higher = longer one cycle. */
- period?: number;
- /** Playback speed multiplier (1 = normal, 2 = twice as fast). */
- speed?: number;
- background?: string;
- className?: string;
-}
-
-export function PulsingIndicator({
- color = "#22c55e",
- size = 16,
- period = 8,
- speed = 1,
- background = "white",
- className,
-}: PulsingIndicatorProps) {
- const frame = useCurrentFrame() * speed;
-
- // Inner dot pulse: 0..1 normalized
- const wave = Math.sin(frame / period) * 0.5 + 0.5;
- const dotScale = 0.9 + wave * 0.2;
- const dotOpacity = 0.6 + wave * 0.4;
-
- // Outer ring "ping": phase from 0..1 looping
- const ringPeriod = period * Math.PI * 2;
- const phase = (frame % ringPeriod) / ringPeriod;
- const ringScale = 1 + phase * 1.6;
- const ringOpacity = (1 - phase) * 0.7;
-
- return (
- <div
- className={className}
- style={{
- position: "absolute",
- inset: 0,
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- background,
- }}
- >
- <div
- style={{
- position: "relative",
- width: size,
- height: size,
- }}
- >
- {/* Ping ring */}
- <div
- style={{
- position: "absolute",
- inset: 0,
- borderRadius: "50%",
- background: color,
- opacity: ringOpacity,
- transform: `scale(${ringScale})`,
- transformOrigin: "center",
- willChange: "transform, opacity",
- }}
- />
- {/* Solid dot */}
- <div
- style={{
- position: "absolute",
- inset: 0,
- borderRadius: "50%",
- background: color,
- opacity: dotOpacity,
- transform: `scale(${dotScale})`,
- transformOrigin: "center",
- willChange: "transform, opacity",
- }}
- />
- </div>
- </div>
- );
-}
diff --git a/registry/remocn/staggered-bento-grid/config.ts b/registry/remocn/staggered-bento-grid/config.ts
deleted file mode 100644
index 56ed5d66..00000000
--- a/registry/remocn/staggered-bento-grid/config.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
-
-export const staggeredBentoGridConfig: ComponentConfig = {
- componentName: "StaggeredBentoGrid",
- importPath: "@/components/remocn/staggered-bento-grid",
- controls: {
- staggerDelay: {
- type: "number",
- default: 8,
- min: 1,
- max: 30,
- step: 1,
- label: "Stagger delay",
- },
- columns: {
- type: "number",
- default: 3,
- min: 2,
- max: 5,
- step: 1,
- label: "Columns",
- },
- background: { type: "color", default: "#0a0a0a", label: "Background" },
- cardColor: { type: "color", default: "#1a1a1a", label: "Card color" },
- textColor: { type: "color", default: "#ffffff", label: "Text color" },
- },
- durationInFrames: 120,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
-};
diff --git a/registry/remocn/staggered-bento-grid/index.tsx b/registry/remocn/staggered-bento-grid/index.tsx
deleted file mode 100644
index e5c3bec8..00000000
--- a/registry/remocn/staggered-bento-grid/index.tsx
+++ /dev/null
@@ -1,152 +0,0 @@
-"use client";
-
-import { Sequence, spring, useCurrentFrame, useVideoConfig } from "remotion";
-
-export interface BentoItem {
- title: string;
- body?: string;
- span?: 1 | 2;
-}
-
-export interface StaggeredBentoGridProps {
- items?: BentoItem[];
- staggerDelay?: number;
- columns?: number;
- background?: string;
- cardColor?: string;
- textColor?: string;
- speed?: number;
- className?: string;
-}
-
-const FONT_FAMILY =
- "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
-
-const DEFAULT_ITEMS: BentoItem[] = [
- { title: "Fast", body: "Built on Remotion", span: 2 },
- { title: "Animated", body: "Spring physics" },
- { title: "Composable", body: "Drop-in blocks" },
- { title: "Themed", body: "Tailwind ready" },
- { title: "Typed", body: "First-class TS" },
- { title: "Open", body: "MIT licensed", span: 2 },
- { title: "Tiny", body: "Zero runtime cost" },
-];
-
-function Card({
- item,
- cardColor,
- textColor,
- speed,
-}: {
- item: BentoItem;
- cardColor: string;
- textColor: string;
- speed: number;
-}) {
- const frame = useCurrentFrame() * speed;
- const { fps } = useVideoConfig();
-
- const progress = spring({
- frame,
- fps,
- durationInFrames: Math.round(0.6 * fps),
- config: { damping: 12 },
- });
-
- return (
- <div
- style={{
- gridColumn: `span ${item.span ?? 1}`,
- background: cardColor,
- borderRadius: 16,
- padding: 24,
- opacity: progress,
- transform: `scale(${0.85 + progress * 0.15})`,
- transformOrigin: "center center",
- willChange: "transform, opacity",
- display: "flex",
- flexDirection: "column",
- justifyContent: "flex-end",
- minHeight: 140,
- border: "1px solid rgba(255,255,255,0.08)",
- }}
- >
- <div
- style={{
- color: textColor,
- fontFamily: FONT_FAMILY,
- fontSize: 28,
- fontWeight: 700,
- letterSpacing: "-0.03em",
- marginBottom: 4,
- }}
- >
- {item.title}
- </div>
- {item.body ? (
- <div
- style={{
- color: textColor,
- opacity: 0.6,
- fontFamily: FONT_FAMILY,
- fontSize: 16,
- fontWeight: 400,
- }}
- >
- {item.body}
- </div>
- ) : null}
- </div>
- );
-}
-
-export function StaggeredBentoGrid({
- items = DEFAULT_ITEMS,
- staggerDelay = 8,
- columns = 3,
- background = "#0a0a0a",
- cardColor = "#1a1a1a",
- textColor = "white",
- speed = 1,
- className,
-}: StaggeredBentoGridProps) {
- return (
- <div
- className={className}
- style={{
- position: "absolute",
- inset: 0,
- background,
- padding: 64,
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- }}
- >
- <div
- style={{
- display: "grid",
- gridTemplateColumns: `repeat(${columns}, 1fr)`,
- gap: 20,
- width: "100%",
- maxWidth: 1100,
- }}
- >
- {items.map((item, index) => (
- <Sequence
- key={index}
- from={Math.round((index * staggerDelay) / speed)}
- layout="none"
- >
- <Card
- item={item}
- cardColor={cardColor}
- textColor={textColor}
- speed={speed}
- />
- </Sequence>
- ))}
- </div>
- </div>
- );
-}
diff --git a/registry/remocn/swipe-transition-wipe/config.ts b/registry/remocn/swipe-transition-wipe/config.ts
deleted file mode 100644
index 70470517..00000000
--- a/registry/remocn/swipe-transition-wipe/config.ts
+++ /dev/null
@@ -1,77 +0,0 @@
-import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
-
-export const swipeTransitionWipeConfig: ComponentConfig = {
- componentName: "SwipeTransitionWipe",
- importPath: "@/components/remocn/swipe-transition-wipe",
- controls: {
- direction: {
- type: "select",
- default: "left",
- options: ["left", "right"],
- label: "Direction",
- },
- swipeAt: {
- type: "number",
- default: 30,
- min: 0,
- max: 120,
- step: 1,
- label: "Swipe at (frame)",
- },
- parallaxFactor: {
- type: "number",
- default: 0.6,
- min: 0,
- max: 1,
- step: 0.05,
- label: "Parallax factor",
- },
- dimStrength: {
- type: "number",
- default: 0.4,
- min: 0,
- max: 1,
- step: 0.05,
- label: "Dim strength",
- },
- labelA: {
- type: "text",
- default: "First",
- label: "Label A",
- },
- labelB: {
- type: "text",
- default: "Second",
- label: "Label B",
- },
- colorA1: {
- type: "color",
- default: "#0ea5e9",
- label: "Color A1",
- },
- colorA2: {
- type: "color",
- default: "#1e3a8a",
- label: "Color A2",
- },
- colorB1: {
- type: "color",
- default: "#f97316",
- label: "Color B1",
- },
- colorB2: {
- type: "color",
- default: "#9333ea",
- label: "Color B2",
- },
- background: {
- type: "color",
- default: "#050505",
- label: "Background",
- },
- },
- durationInFrames: 180,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
-};
diff --git a/registry/remocn/swipe-transition-wipe/index.tsx b/registry/remocn/swipe-transition-wipe/index.tsx
deleted file mode 100644
index 8d0e2d45..00000000
--- a/registry/remocn/swipe-transition-wipe/index.tsx
+++ /dev/null
@@ -1,230 +0,0 @@
-"use client";
-
-import type { ReactNode } from "react";
-import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
-
-export interface SwipeTransitionWipeProps {
- sceneA?: ReactNode;
- sceneB?: ReactNode;
- labelA?: string;
- labelB?: string;
- colorA1?: string;
- colorA2?: string;
- colorB1?: string;
- colorB2?: string;
- background?: string;
- direction?: "left" | "right";
- swipeAt?: number;
- parallaxFactor?: number;
- dimStrength?: number;
- speed?: number;
- className?: string;
-}
-
-const FONT_FAMILY =
- "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
-
-function DefaultScene({
- label,
- c1,
- c2,
-}: {
- label: string;
- c1: string;
- c2: string;
-}) {
- return (
- <div
- style={{
- position: "absolute",
- inset: 0,
- background: `linear-gradient(135deg, ${c1} 0%, ${c2} 100%)`,
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- color: "white",
- fontFamily: FONT_FAMILY,
- fontSize: 128,
- fontWeight: 700,
- letterSpacing: "-0.05em",
- textShadow: "0 8px 40px rgba(0,0,0,0.35)",
- }}
- >
- {label}
- </div>
- );
-}
-
-function ParallaxBackground({ background }: { background: string }) {
- // Doubled-width dot grid layer so parallax translation never reveals an edge.
- const dots: Array<{ x: number; y: number }> = [];
- const cols = 40;
- const rows = 12;
- const gapX = 64;
- const gapY = 64;
- for (let r = 0; r < rows; r++) {
- for (let c = 0; c < cols; c++) {
- dots.push({ x: c * gapX + 32, y: r * gapY + 32 });
- }
- }
- return (
- <div
- style={{
- position: "absolute",
- top: 0,
- left: 0,
- width: "200%",
- height: "100%",
- background,
- }}
- >
- <svg
- width="100%"
- height="100%"
- style={{ position: "absolute", inset: 0 }}
- >
- {dots.map((d, i) => (
- <circle
- key={i}
- cx={d.x}
- cy={d.y}
- r={2}
- fill="rgba(255,255,255,0.08)"
- />
- ))}
- </svg>
- </div>
- );
-}
-
-export function SwipeTransitionWipe({
- sceneA,
- sceneB,
- labelA = "First",
- labelB = "Second",
- colorA1 = "#0ea5e9",
- colorA2 = "#1e3a8a",
- colorB1 = "#f97316",
- colorB2 = "#9333ea",
- background = "#050505",
- direction = "left",
- swipeAt = 30,
- parallaxFactor = 0.6,
- dimStrength = 0.4,
- speed = 1,
- className,
-}: SwipeTransitionWipeProps) {
- const frame = useCurrentFrame() * speed;
- const { fps } = useVideoConfig();
-
- // A snappy spring with a touch of overshoot — feels like a flick.
- const swipe = spring({
- frame: frame - swipeAt,
- fps,
- config: { mass: 1, damping: 22, stiffness: 140 },
- durationInFrames: 50,
- });
-
- // direction: "left" → outgoing slides left (translateX negative).
- // direction: "right" → outgoing slides right (translateX positive).
- const sign = direction === "left" ? -1 : 1;
-
- // Foreground slider: 0% → -100% (or +100%) of its own width.
- const foregroundTx = swipe * 100 * sign;
-
- // Parallax background moves at parallaxFactor of foreground speed.
- // Layer is 200% wide so it can travel up to 50% in either direction.
- const backgroundTx = swipe * 50 * sign * parallaxFactor;
-
- // Outgoing scene gets darker as it leaves.
- const dimAlpha = interpolate(swipe, [0, 1], [0, dimStrength], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
-
- const sceneAContent = sceneA ?? (
- <DefaultScene label={labelA} c1={colorA1} c2={colorA2} />
- );
- const sceneBContent = sceneB ?? (
- <DefaultScene label={labelB} c1={colorB1} c2={colorB2} />
- );
-
- // Order children so the incoming scene sits next to the outgoing one
- // in the swipe direction. For "left" swipes the new scene must be to
- // the right; for "right" swipes it must be to the left.
- const orderedScenes =
- direction === "left"
- ? [sceneAContent, sceneBContent]
- : [sceneBContent, sceneAContent];
-
- // For "right" swipes the slider needs to start at -100% so that scene A
- // is centered on stage initially.
- const baseOffset = direction === "left" ? 0 : -100;
- const sliderTx = baseOffset + foregroundTx;
-
- return (
- <div
- className={className}
- style={{
- position: "absolute",
- inset: 0,
- overflow: "hidden",
- background,
- }}
- >
- {/* Parallax background layer */}
- <div
- style={{
- position: "absolute",
- inset: 0,
- transform: `translateX(${backgroundTx}%)`,
- willChange: "transform",
- }}
- >
- <ParallaxBackground background={background} />
- </div>
-
- {/* Foreground slider — two scenes laid out side by side */}
- <div
- style={{
- position: "absolute",
- inset: 0,
- display: "flex",
- width: "200%",
- transform: `translateX(${sliderTx}%)`,
- willChange: "transform",
- }}
- >
- {orderedScenes.map((scene, i) => {
- // The "outgoing" scene is whichever one started centered.
- const isOutgoing =
- (direction === "left" && i === 0) ||
- (direction === "right" && i === 1);
- return (
- <div
- key={i}
- style={{
- position: "relative",
- width: "50%",
- flexShrink: 0,
- overflow: "hidden",
- }}
- >
- {scene}
- {isOutgoing && (
- <div
- style={{
- position: "absolute",
- inset: 0,
- background: `rgba(0,0,0,${dimAlpha})`,
- pointerEvents: "none",
- }}
- />
- )}
- </div>
- );
- })}
- </div>
- </div>
- );
-}
diff --git a/registry/remocn/text-fade-replace/config.ts b/registry/remocn/text-fade-replace/config.ts
deleted file mode 100644
index 6c0ad4d4..00000000
--- a/registry/remocn/text-fade-replace/config.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import {
- type ComponentConfig,
- FONT_WEIGHT_OPTIONS,
- FPS,
- H,
- W,
-} from "@/lib/customizer-config";
-
-export const textFadeReplaceConfig: ComponentConfig = {
- componentName: "TextFadeReplace",
- importPath: "@/components/remocn/text-fade-replace",
- controls: {
- from: { type: "text", default: "Loading...", label: "From" },
- to: { type: "text", default: "Ready!", label: "To" },
- fontSize: {
- type: "number",
- default: 72,
- min: 12,
- max: 160,
- step: 1,
- label: "Font size",
- },
- color: { type: "color", default: "#171717", label: "Color" },
- fontWeight: {
- type: "select",
- default: "600",
- options: FONT_WEIGHT_OPTIONS,
- label: "Font weight",
- },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
-};
diff --git a/registry/remocn/text-fade-replace/index.tsx b/registry/remocn/text-fade-replace/index.tsx
deleted file mode 100644
index 67a201a0..00000000
--- a/registry/remocn/text-fade-replace/index.tsx
+++ /dev/null
@@ -1,100 +0,0 @@
-"use client";
-
-import { interpolate, useCurrentFrame, useVideoConfig } from "remotion";
-
-export interface TextFadeReplaceProps {
- from: string;
- to: string;
- fontSize?: number;
- color?: string;
- fontWeight?: number;
- speed?: number;
- className?: string;
-}
-
-export function TextFadeReplace({
- from,
- to,
- fontSize = 48,
- color = "#171717",
- fontWeight = 600,
- speed = 1,
- className,
-}: TextFadeReplaceProps) {
- const frame = useCurrentFrame() * speed;
- const { durationInFrames } = useVideoConfig();
-
- const stops = [
- 0,
- durationInFrames * 0.4,
- durationInFrames * 0.6,
- durationInFrames,
- ];
-
- const fromOpacity = interpolate(frame, stops, [1, 1, 0, 0], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
- const fromY = interpolate(frame, stops, [0, 0, -12, -12], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
-
- const toOpacity = interpolate(frame, stops, [0, 0, 1, 1], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
- const toY = interpolate(frame, stops, [12, 12, 0, 0], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
-
- const baseSpanStyle: React.CSSProperties = {
- position: "absolute",
- left: "50%",
- top: "50%",
- fontSize,
- fontWeight,
- color,
- letterSpacing: "-0.03em",
- fontFamily:
- "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",
- whiteSpace: "nowrap",
- };
-
- return (
- <div
- style={{
- position: "absolute",
- inset: 0,
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- background: "white",
- }}
- >
- <div style={{ position: "relative", width: 0, height: 0 }}>
- <span
- className={className}
- style={{
- ...baseSpanStyle,
- opacity: fromOpacity,
- transform: `translate(-50%, calc(-50% + ${fromY}px))`,
- }}
- >
- {from}
- </span>
- <span
- className={className}
- style={{
- ...baseSpanStyle,
- opacity: toOpacity,
- transform: `translate(-50%, calc(-50% + ${toY}px))`,
- }}
- >
- {to}
- </span>
- </div>
- </div>
- );
-}
diff --git a/registry/remocn/visual-docs-snippet/config.ts b/registry/remocn/visual-docs-snippet/config.ts
deleted file mode 100644
index 1ad314cb..00000000
--- a/registry/remocn/visual-docs-snippet/config.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
-
-export const visualDocsSnippetConfig: ComponentConfig = {
- componentName: "VisualDocsSnippet",
- importPath: "@/components/remocn/visual-docs-snippet",
- controls: {
- tooltipTitle: {
- type: "text",
- default: "Generate runs",
- label: "Tooltip title",
- },
- tooltipBody: {
- type: "text",
- default:
- "Click to start a new generation. The job will appear in the sidebar.",
- label: "Tooltip body",
- },
- buttonLabel: {
- type: "text",
- default: "Generate",
- label: "Button label",
- },
- clickFrame: {
- type: "number",
- default: 110,
- min: 60,
- max: 180,
- step: 5,
- label: "Click frame",
- },
- accent: { type: "color", default: "#FFB38E", label: "Accent" },
- background: { type: "color", default: "#141318", label: "Background" },
- },
- durationInFrames: 210,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
-};
diff --git a/registry/remocn/visual-docs-snippet/index.tsx b/registry/remocn/visual-docs-snippet/index.tsx
deleted file mode 100644
index 0fcec915..00000000
--- a/registry/remocn/visual-docs-snippet/index.tsx
+++ /dev/null
@@ -1,540 +0,0 @@
-"use client";
-
-import {
- AbsoluteFill,
- Easing,
- interpolate,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from "remotion";
-
-export interface VisualDocsSnippetProps {
- cursorStart?: { x: number; y: number };
- cursorTarget?: { x: number; y: number };
- clickFrame?: number;
- tooltipTitle?: string;
- tooltipBody?: string;
- buttonLabel?: string;
- accent?: string;
- background?: string;
- speed?: number;
- className?: string;
-}
-
-const FONT_FAMILY =
- "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";
-
-const SOFT = Easing.bezier(0.16, 1, 0.3, 1);
-
-// Browser frame layout — kept as constants so cursor coordinates are easy to
-// reason about against absolute frame coordinates.
-const BROWSER = {
- left: 100,
- top: 90,
- width: 1080,
- height: 540,
- chromeHeight: 48,
-};
-
-// The "Generate" button sits inside the browser; bounding box is anchored
-// here. Coordinates are absolute (in the 1280x720 frame).
-const BUTTON = {
- cx: 640,
- cy: 360,
- width: 220,
- height: 64,
-};
-
-export function VisualDocsSnippet({
- cursorStart = { x: 980, y: 560 },
- cursorTarget = { x: BUTTON.cx, y: BUTTON.cy },
- clickFrame = 110,
- tooltipTitle = "Generate runs",
- tooltipBody = "Click to start a new generation. The job will appear in the sidebar.",
- buttonLabel = "Generate",
- accent = "#FFB38E",
- background = "#141318",
- speed = 1,
- className,
-}: VisualDocsSnippetProps) {
- const frame = useCurrentFrame() * speed;
- const { fps } = useVideoConfig();
-
- // ── Timing anchors derived from clickFrame ──────────────────────────────
- const cursorStartFrame = 30;
- const cursorEndFrame = clickFrame; // arrives exactly at click
- const boundingBoxFrame = clickFrame + 5;
- const tooltipFrame = clickFrame + 20;
- const settleFrame = clickFrame + 90;
-
- // ── Browser fade-in ─────────────────────────────────────────────────────
- const enter = interpolate(frame, [0, 30], [0, 1], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- easing: SOFT,
- });
- const enterScale = interpolate(frame, [0, 30], [0.98, 1], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- easing: SOFT,
- });
-
- // ── Cursor motion: bezier arc from start to target ──────────────────────
- const cursorT = interpolate(
- frame,
- [cursorStartFrame, cursorEndFrame],
- [0, 1],
- {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- easing: SOFT,
- },
- );
- // After click, cursor exits down-right so it doesn't cover the new content.
- const exitT = interpolate(
- frame,
- [clickFrame + 6, clickFrame + 50],
- [0, 1],
- {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- easing: SOFT,
- },
- );
- const exitTarget = { x: 1180, y: 660 };
-
- const baseX = lerp(cursorStart.x, cursorTarget.x, cursorT);
- const baseY = lerp(cursorStart.y, cursorTarget.y, cursorT);
- // Soft arc bias on the way to the button (so the path feels organic).
- const arc = Math.sin(cursorT * Math.PI) * -36;
- const cursorX = lerp(baseX, exitTarget.x, exitT);
- const cursorY = lerp(baseY + arc, exitTarget.y, exitT);
-
- // ── Click micro-bounce ──────────────────────────────────────────────────
- const clickSpring = spring({
- frame: frame - clickFrame,
- fps,
- config: { damping: 10, stiffness: 200, mass: 0.6 },
- durationInFrames: 14,
- });
- const clickDip = interpolate(clickSpring, [0, 0.4, 1], [1, 0.94, 1], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
- const buttonScale = frame >= clickFrame ? clickDip : 1;
- const cursorClickScale = frame >= clickFrame ? clickDip : 1;
-
- // Click ripple
- const ripple = interpolate(frame, [clickFrame, clickFrame + 24], [0, 60], {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- });
- const rippleOpacity = interpolate(
- frame,
- [clickFrame, clickFrame + 24],
- [0.6, 0],
- { extrapolateLeft: "clamp", extrapolateRight: "clamp" },
- );
-
- // ── Bounding box draw-on (animated stroke-dashoffset) ───────────────────
- const boxPerimeter = (BUTTON.width + 24 + (BUTTON.height + 24)) * 2;
- const boxProgress = interpolate(
- frame,
- [boundingBoxFrame, boundingBoxFrame + 18],
- [0, 1],
- { extrapolateLeft: "clamp", extrapolateRight: "clamp", easing: SOFT },
- );
- const boxOpacity = interpolate(
- frame,
- [boundingBoxFrame, boundingBoxFrame + 6, settleFrame, settleFrame + 10],
- [0, 1, 1, 0.6],
- { extrapolateLeft: "clamp", extrapolateRight: "clamp" },
- );
-
- return (
- <AbsoluteFill
- className={className}
- style={{
- background,
- fontFamily: FONT_FAMILY,
- }}
- >
- {/* Browser frame */}
- <div
- style={{
- position: "absolute",
- left: BROWSER.left,
- top: BROWSER.top,
- width: BROWSER.width,
- height: BROWSER.height,
- borderRadius: 18,
- overflow: "hidden",
- background: "#0a090e",
- border: "1px solid rgba(255,255,255,0.06)",
- boxShadow: "0 50px 120px rgba(0,0,0,0.55)",
- opacity: enter,
- transform: `scale(${enterScale})`,
- transformOrigin: "center 40%",
- willChange: "transform, opacity",
- }}
- >
- <BrowserChrome chromeHeight={BROWSER.chromeHeight} />
-
- {/* Page viewport */}
- <div
- style={{
- position: "absolute",
- left: 0,
- right: 0,
- top: BROWSER.chromeHeight,
- bottom: 0,
- background: "#0a090e",
- display: "flex",
- flexDirection: "column",
- alignItems: "center",
- paddingTop: 60,
- gap: 22,
- }}
- >
- <div
- style={{
- fontSize: 13,
- color: "rgba(255,255,255,0.45)",
- letterSpacing: "0.04em",
- }}
- >
- Generations · 2 active
- </div>
- <div
- style={{
- fontSize: 38,
- fontWeight: 600,
- color: "white",
- letterSpacing: "-0.025em",
- maxWidth: 720,
- textAlign: "center",
- lineHeight: 1.15,
- }}
- >
- Run a new generation
- </div>
- <div
- style={{
- fontSize: 15,
- color: "rgba(255,255,255,0.55)",
- maxWidth: 480,
- textAlign: "center",
- lineHeight: 1.5,
- }}
- >
- Pick a model, set a seed, and start a job. Results stream into the
- sidebar as they finish.
- </div>
- </div>
- </div>
-
- {/* CTA button — sits OUTSIDE the browser DOM in absolute coords so the
- bounding box and cursor align to identical pixel anchors. */}
- <div
- style={{
- position: "absolute",
- left: BUTTON.cx - BUTTON.width / 2,
- top: BUTTON.cy - BUTTON.height / 2,
- width: BUTTON.width,
- height: BUTTON.height,
- borderRadius: 14,
- background: "white",
- color: "#0a090e",
- fontWeight: 600,
- fontSize: 17,
- display: "flex",
- alignItems: "center",
- justifyContent: "center",
- transform: `scale(${buttonScale})`,
- boxShadow:
- frame >= clickFrame
- ? `0 0 0 6px ${accent}22, 0 12px 32px rgba(255,255,255,0.08)`
- : "0 12px 32px rgba(255,255,255,0.08)",
- opacity: enter,
- willChange: "transform",
- }}
- >
- {buttonLabel} →
- </div>
-
- {/* Click ripple */}
- {rippleOpacity > 0 && (
- <svg
- style={{
- position: "absolute",
- left: BUTTON.cx - 80,
- top: BUTTON.cy - 80,
- width: 160,
- height: 160,
- pointerEvents: "none",
- }}
- >
- <circle
- cx={80}
- cy={80}
- r={ripple}
- fill="none"
- stroke={accent}
- strokeWidth={2}
- opacity={rippleOpacity}
- />
- </svg>
- )}
-
- {/* Bounding box selector — animated draw-on via stroke-dashoffset */}
- {frame >= boundingBoxFrame && (
- <svg
- style={{
- position: "absolute",
- left: BUTTON.cx - BUTTON.width / 2 - 12,
- top: BUTTON.cy - BUTTON.height / 2 - 12,
- width: BUTTON.width + 24,
- height: BUTTON.height + 24,
- pointerEvents: "none",
- opacity: boxOpacity,
- }}
- >
- <rect
- x={1}
- y={1}
- width={BUTTON.width + 22}
- height={BUTTON.height + 22}
- rx={10}
- ry={10}
- fill="none"
- stroke={accent}
- strokeOpacity={0.85}
- strokeWidth={2}
- strokeDasharray={`${boxPerimeter} ${boxPerimeter}`}
- strokeDashoffset={(1 - boxProgress) * boxPerimeter}
- />
- {/* Corner ticks */}
- {[
- [0, 0],
- [BUTTON.width + 24, 0],
- [0, BUTTON.height + 24],
- [BUTTON.width + 24, BUTTON.height + 24],
- ].map(([cx, cy], i) => (
- <circle
- key={i}
- cx={cx}
- cy={cy}
- r={4}
- fill={accent}
- opacity={boxProgress}
- />
- ))}
- </svg>
- )}
-
- {/* Tooltip card to the right of the bounding box */}
- {frame >= tooltipFrame && (
- <Tooltip
- frame={frame}
- tooltipFrame={tooltipFrame}
- settleFrame={settleFrame}
- accent={accent}
- title={tooltipTitle}
- body={tooltipBody}
- />
- )}
-
- {/* Cursor — drawn last so it sits above everything */}
- {frame >= cursorStartFrame && (
- <div
- style={{
- position: "absolute",
- left: cursorX,
- top: cursorY,
- transform: `translate(-2px, -2px) scale(${cursorClickScale})`,
- transformOrigin: "top left",
- zIndex: 9999,
- filter: "drop-shadow(0 4px 10px rgba(0,0,0,0.55))",
- willChange: "transform, left, top",
- }}
- >
- <CursorSVG />
- </div>
- )}
- </AbsoluteFill>
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Subviews */
-/* -------------------------------------------------------------------------- */
-
-function BrowserChrome({ chromeHeight }: { chromeHeight: number }) {
- return (
- <div
- style={{
- position: "relative",
- height: chromeHeight,
- display: "flex",
- alignItems: "center",
- gap: 14,
- paddingLeft: 18,
- paddingRight: 18,
- background: "rgba(20,19,24,0.95)",
- borderBottom: "1px solid rgba(255,255,255,0.06)",
- }}
- >
- <div style={{ display: "flex", gap: 8 }}>
- {["#ff5f57", "#febc2e", "#28c840"].map((c) => (
- <div
- key={c}
- style={{
- width: 11,
- height: 11,
- borderRadius: "50%",
- background: c,
- opacity: 0.85,
- }}
- />
- ))}
- </div>
- <div
- style={{
- flex: 1,
- height: 28,
- marginLeft: 12,
- borderRadius: 14,
- background: "rgba(255,255,255,0.05)",
- border: "1px solid rgba(255,255,255,0.06)",
- display: "flex",
- alignItems: "center",
- paddingLeft: 14,
- color: "rgba(255,255,255,0.55)",
- fontSize: 12,
- fontFamily:
- "var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace",
- }}
- >
- ⌕ remocn.dev/runs/new
- </div>
- </div>
- );
-}
-
-function Tooltip({
- frame,
- tooltipFrame,
- settleFrame,
- accent,
- title,
- body,
-}: {
- frame: number;
- tooltipFrame: number;
- settleFrame: number;
- accent: string;
- title: string;
- body: string;
-}) {
- // Two-line stagger fade-up
- const headT = interpolate(
- frame,
- [tooltipFrame, tooltipFrame + 14],
- [0, 1],
- { extrapolateLeft: "clamp", extrapolateRight: "clamp", easing: SOFT },
- );
- const bodyT = interpolate(
- frame,
- [tooltipFrame + 6, tooltipFrame + 20],
- [0, 1],
- { extrapolateLeft: "clamp", extrapolateRight: "clamp", easing: SOFT },
- );
- const settle = interpolate(
- frame,
- [settleFrame, settleFrame + 10],
- [1, 0.6],
- { extrapolateLeft: "clamp", extrapolateRight: "clamp" },
- );
-
- return (
- <div
- style={{
- position: "absolute",
- left: BUTTON.cx + BUTTON.width / 2 + 56,
- top: BUTTON.cy - 60,
- width: 320,
- padding: "20px 22px",
- borderRadius: 16,
- background: "rgba(20,19,24,0.92)",
- border: `1px solid ${accent}55`,
- boxShadow: `0 20px 60px rgba(0,0,0,0.5)`,
- backdropFilter: "blur(14px)",
- WebkitBackdropFilter: "blur(14px)",
- opacity: settle,
- fontFamily: FONT_FAMILY,
- }}
- >
- <div
- style={{
- opacity: headT,
- transform: `translateY(${(1 - headT) * 12}px)`,
- color: "white",
- fontSize: 17,
- fontWeight: 600,
- letterSpacing: "-0.01em",
- marginBottom: 6,
- }}
- >
- {title}
- </div>
- <div
- style={{
- opacity: bodyT,
- transform: `translateY(${(1 - bodyT) * 12}px)`,
- color: "rgba(255,255,255,0.6)",
- fontSize: 14,
- lineHeight: 1.5,
- }}
- >
- {body}
- </div>
- {/* Pointer toward bounding box */}
- <div
- style={{
- position: "absolute",
- left: -8,
- top: 70,
- width: 14,
- height: 14,
- background: "rgba(20,19,24,0.92)",
- borderLeft: `1px solid ${accent}55`,
- borderBottom: `1px solid ${accent}55`,
- transform: "rotate(45deg)",
- }}
- />
- </div>
- );
-}
-
-function CursorSVG() {
- return (
- <svg width={28} height={28} viewBox="0 0 24 24" fill="none">
- <path
- d="M5 3L5 19L9.5 14.5L12.5 21L15 20L12 13.5L18.5 13.5L5 3Z"
- fill="white"
- stroke="#000"
- strokeWidth={1.2}
- strokeLinejoin="round"
- />
- </svg>
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Helpers */
-/* -------------------------------------------------------------------------- */
-
-function lerp(a: number, b: number, t: number) {
- return a + (b - a) * t;
-}