Skip to content

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

feat: improve

dev_wandry28fdb1686779
diff --git a/app/(home)/components/fade-up.tsx b/app/(home)/components/fade-up.tsx
new file mode 100644
index 00000000..6fbd681d
--- /dev/null
+++ b/app/(home)/components/fade-up.tsx
@@ -0,0 +1,34 @@
+"use client";
+
+import { motion, useInView, useReducedMotion } from "motion/react";
+import { type ReactNode, useRef } from "react";
+import { SPRING_BOUNCE } from "@/config/landing";
+
+export function FadeUp({
+ children,
+ delay = 0,
+ className = "",
+}: {
+ children: ReactNode;
+ delay?: number;
+ className?: string;
+}) {
+ const ref = useRef<HTMLDivElement>(null);
+ const inView = useInView(ref, { once: true, amount: 0.2 });
+ const reduced = useReducedMotion();
+ return (
+ <motion.div
+ ref={ref}
+ className={className}
+ initial={reduced ? false : { opacity: 0, y: 24, filter: "blur(8px)" }}
+ animate={
+ inView
+ ? { opacity: 1, y: 0, filter: "blur(0px)" }
+ : { opacity: 0, y: 24, filter: "blur(8px)" }
+ }
+ transition={{ ...SPRING_BOUNCE, delay }}
+ >
+ {children}
+ </motion.div>
+ );
+}
diff --git a/app/(home)/components/page-shell.tsx b/app/(home)/components/page-shell.tsx
new file mode 100644
index 00000000..65d0fa33
--- /dev/null
+++ b/app/(home)/components/page-shell.tsx
@@ -0,0 +1,12 @@
+import type { ReactNode } from "react";
+
+export function PageShell({ children }: { children: ReactNode }) {
+ return (
+ <div
+ className="relative min-h-screen overflow-hidden bg-black font-sans text-[#EDEDED] antialiased"
+ style={{ colorScheme: "dark" }}
+ >
+ {children}
+ </div>
+ );
+}
diff --git a/app/(home)/components/sections/bento-registry.tsx b/app/(home)/components/sections/bento-registry.tsx
new file mode 100644
index 00000000..bc9a4762
--- /dev/null
+++ b/app/(home)/components/sections/bento-registry.tsx
@@ -0,0 +1,178 @@
+"use client";
+
+import { Player, type PlayerRef } from "@remotion/player";
+import { ArrowRight } from "lucide-react";
+import { motion } from "motion/react";
+import Link from "next/link";
+import { type CSSProperties, useRef } from "react";
+import { Button } from "@/components/ui/button";
+import { SECTION, SPRING_SOFT } from "@/config/landing";
+import registry from "@/registry/__index__";
+import { FadeUp } from "../fade-up";
+
+function BentoCard({
+ name,
+ title,
+ description,
+ className = "",
+ inputProps,
+}: {
+ name: string;
+ title: string;
+ description: string;
+ className?: string;
+ inputProps?: Record<string, unknown>;
+}) {
+ const entry = registry[name];
+ const playerRef = useRef<PlayerRef>(null);
+
+ const handleEnter = () => playerRef.current?.play();
+ const handleLeave = () => playerRef.current?.pause();
+
+ return (
+ // biome-ignore lint/a11y/noStaticElementInteractions: hover-to-play is decorative video preview
+ <motion.div
+ onMouseEnter={handleEnter}
+ onMouseLeave={handleLeave}
+ whileHover={{ y: -4 }}
+ transition={SPRING_SOFT}
+ className={`group relative flex flex-col overflow-hidden rounded-3xl border border-white/[0.06] bg-white/[0.03] backdrop-blur-2xl ${className}`}
+ style={{
+ boxShadow: `0 20px 50px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06)`,
+ }}
+ >
+ {/* Spotlight overlay (driven by parent --mx/--my) */}
+ <div
+ aria-hidden
+ className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100"
+ style={{
+ background:
+ "radial-gradient(500px circle at var(--mx) var(--my), rgba(255,255,255,0.07), transparent 40%)",
+ }}
+ />
+
+ <div className="relative aspect-[16/9] w-full overflow-hidden bg-[#0A090E]">
+ {entry ? (
+ <Player
+ ref={playerRef}
+ component={entry.Component}
+ inputProps={inputProps ?? {}}
+ durationInFrames={entry.config.durationInFrames}
+ fps={entry.config.fps}
+ compositionWidth={entry.config.compositionWidth}
+ compositionHeight={entry.config.compositionHeight}
+ style={{ width: "100%", height: "100%" }}
+ loop
+ acknowledgeRemotionLicense
+ />
+ ) : null}
+ </div>
+ <div className="relative flex-1 p-6">
+ <h3 className="font-[var(--font-display)] text-base font-medium text-[#EDEDED]">
+ {title}
+ </h3>
+ <p className="mt-1 text-sm text-[#8B8A91]">{description}</p>
+ </div>
+ </motion.div>
+ );
+}
+
+export function BentoRegistry() {
+ const gridRef = useRef<HTMLDivElement>(null);
+ const grid2Ref = useRef<HTMLDivElement>(null);
+
+ const handleMove = (
+ e: React.MouseEvent<HTMLDivElement>,
+ target: HTMLDivElement | null,
+ ) => {
+ if (!target) return;
+ const rect = target.getBoundingClientRect();
+ target.style.setProperty("--mx", `${e.clientX - rect.left}px`);
+ target.style.setProperty("--my", `${e.clientY - rect.top}px`);
+ };
+
+ return (
+ <section id="components" className="relative py-32">
+ <div className={SECTION}>
+ <FadeUp>
+ <div className="mb-16 flex flex-col gap-6 sm:flex-row sm:items-end sm:justify-between">
+ <div className="max-w-2xl">
+ <h2 className="text-4xl font-semibold -tracking-wide text-[#EDEDED] md:text-5xl">
+ A registry of motion
+ </h2>
+ <p className="mt-4 text-[#8B8A91]">
+ Transitions, primitives, text reveals — production-ready and
+ hover to play
+ </p>
+ </div>
+ <motion.div
+ whileHover={{ scale: 1.03 }}
+ whileTap={{ scale: 0.97 }}
+ transition={SPRING_SOFT}
+ >
+ <Button
+ variant="outline"
+ size="lg"
+ className="h-11 rounded-full border-white/10 bg-white/4 px-5 text-[#EDEDED] backdrop-blur-xl hover:border-white/20 hover:bg-white/6 hover:text-[#EDEDED]"
+ >
+ <Link href="/docs/getting-started/introduction" className="inline-flex items-center gap-2">
+ Browse components
+ <ArrowRight className="size-4" aria-hidden="true" />
+ </Link>
+ </Button>
+ </motion.div>
+ </div>
+ </FadeUp>
+
+ <FadeUp delay={0.1}>
+ {/* biome-ignore lint/a11y/noStaticElementInteractions: spotlight cursor tracking is purely visual */}
+ <div
+ ref={gridRef}
+ onMouseMove={(e) => handleMove(e, gridRef.current)}
+ className="grid gap-6 md:grid-cols-3 md:grid-rows-2"
+ style={{ "--mx": "50%", "--my": "50%" } as CSSProperties}
+ >
+ <BentoCard
+ name="ai-generation-canvas"
+ title="AI Generation Canvas"
+ description="From prompt to UI in a single composition"
+ className="md:col-span-2 md:row-span-2"
+ />
+ <BentoCard
+ name="shimmer-sweep"
+ title="Shimmer Sweep"
+ description="Light pass across text for AI accents"
+ inputProps={{ text: "Generating" }}
+ />
+ <BentoCard
+ name="ecosystem-constellation"
+ title="Ecosystem Constellation"
+ description="Orbits of integration logos around your brand"
+ />
+ </div>
+ </FadeUp>
+
+ <FadeUp delay={0.18}>
+ {/* biome-ignore lint/a11y/noStaticElementInteractions: spotlight cursor tracking is purely visual */}
+ <div
+ ref={grid2Ref}
+ onMouseMove={(e) => handleMove(e, grid2Ref.current)}
+ className="mt-6 grid gap-6 md:grid-cols-2"
+ style={{ "--mx": "50%", "--my": "50%" } as CSSProperties}
+ >
+ <BentoCard
+ name="grid-pixelate-wipe"
+ title="Grid Pixelate Wipe"
+ description="The screen breaks into squares and reassembles into a new scene"
+ />
+ <BentoCard
+ name="frosted-glass-wipe"
+ title="Frosted Glass Wipe"
+ description="An elegant transition through a sheet of glass"
+ />
+ </div>
+ </FadeUp>
+ </div>
+ </section>
+ );
+}
diff --git a/app/(home)/components/sections/final-cta.tsx b/app/(home)/components/sections/final-cta.tsx
new file mode 100644
index 00000000..042e8cf7
--- /dev/null
+++ b/app/(home)/components/sections/final-cta.tsx
@@ -0,0 +1,72 @@
+"use client";
+
+import { ArrowRight } from "lucide-react";
+import { motion, useInView, useReducedMotion } from "motion/react";
+import Link from "next/link";
+import { useRef } from "react";
+import {
+ LAVENDER,
+ MINT,
+ PEACH,
+ SECTION,
+ SPRING_BOUNCE,
+ SPRING_SOFT,
+} from "@/config/landing";
+import { FadeUp } from "../fade-up";
+
+export function FinalCTA() {
+ const ref = useRef<HTMLHeadingElement>(null);
+ const inView = useInView(ref, { once: true, amount: 0.4 });
+ const reduced = useReducedMotion();
+
+ return (
+ <section className="relative overflow-hidden py-40">
+ <div
+ aria-hidden
+ className="absolute inset-0 -z-10"
+ style={{
+ background: `radial-gradient(60% 50% at 50% 50%, ${LAVENDER}15, transparent 70%), radial-gradient(40% 40% at 20% 80%, ${PEACH}12, transparent 60%), radial-gradient(40% 40% at 80% 20%, ${MINT}12, transparent 60%)`,
+ filter: "blur(40px)",
+ }}
+ />
+ <div className={`${SECTION} flex flex-col items-center text-center`}>
+ <motion.h2
+ ref={ref}
+ className="text-balance font-[var(--font-display)] text-5xl font-semibold -tracking-wide text-[#EDEDED] md:text-6xl"
+ initial={
+ reduced ? false : { opacity: 0, y: 30, filter: "blur(14px)" }
+ }
+ animate={
+ inView
+ ? { opacity: 1, y: 0, filter: "blur(0px)" }
+ : { opacity: 0, y: 30, filter: "blur(14px)" }
+ }
+ transition={{ ...SPRING_BOUNCE, duration: 1 }}
+ >
+ Stop fighting keyframes
+ <br />
+ Start writing code
+ </motion.h2>
+
+ <FadeUp delay={0.3}>
+ <motion.div
+ whileHover={{ scale: 1.03 }}
+ whileTap={{ scale: 0.97 }}
+ transition={SPRING_SOFT}
+ >
+ <Link
+ href="/docs/getting-started/introduction"
+ className="mt-12 inline-flex h-14 items-center gap-2 rounded-full bg-white px-8 text-base font-medium text-[#141318] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 focus-visible:ring-offset-2 focus-visible:ring-offset-[#141318]"
+ style={{
+ boxShadow: `0 0 0 1px rgba(255,255,255,0.2), 0 12px 50px ${LAVENDER}40, inset 0 1px 0 rgba(255,255,255,0.6)`,
+ }}
+ >
+ View documentation
+ <ArrowRight className="size-5" aria-hidden="true" />
+ </Link>
+ </motion.div>
+ </FadeUp>
+ </div>
+ </section>
+ );
+}
diff --git a/app/(home)/components/sections/hero.tsx b/app/(home)/components/sections/hero.tsx
new file mode 100644
index 00000000..273d692f
--- /dev/null
+++ b/app/(home)/components/sections/hero.tsx
@@ -0,0 +1,101 @@
+"use client";
+
+import { Player } from "@remotion/player";
+import { ArrowRight } from "lucide-react";
+import { motion } from "motion/react";
+import Link from "next/link";
+import Dither from "@/components/Dither";
+import { Button } from "@/components/ui/button";
+import { SECTION, SPRING_BOUNCE, SPRING_SOFT } from "@/config/landing";
+import registry from "@/registry/__index__";
+import { FadeUp } from "../fade-up";
+
+export function Hero() {
+ const heroEntry = registry["browser-flow"];
+
+ return (
+ <section className="relative overflow-hidden pt-44 pb-28">
+ <div className="w-full h-screen absolute top-0 left-0">
+ <Dither
+ waveColor={[
+ 0.25098039215686274, 0.25098039215686274, 0.25098039215686274,
+ ]}
+ disableAnimation={false}
+ enableMouseInteraction={false}
+ mouseRadius={1}
+ colorNum={6}
+ pixelSize={2}
+ waveAmplitude={0.35}
+ waveFrequency={5.5}
+ waveSpeed={0.01}
+ />
+ </div>
+ <div className={SECTION}>
+ <div className="flex flex-col items-center text-center">
+ <FadeUp delay={0.08}>
+ <h1 className="mt-8 max-w-8xl text-balance font-sans text-5xl font-semibold leading-[1.05] -tracking-[0.04em] text-[#EDEDED] md:text-7xl">
+ Cinematic video components
+ <br />
+ Now copy-pasteable
+ </h1>
+ </FadeUp>
+
+ <FadeUp delay={0.16}>
+ <p className="mt-6 max-w-2xl text-balance text-xl font-light leading-relaxed text-white">
+ Build product demos, changelogs, and launch videos in React. Open
+ source and delightfully easy
+ </p>
+ </FadeUp>
+
+ <FadeUp delay={0.24}>
+ <div className="mt-10 flex flex-col items-stretch gap-3 sm:flex-row sm:items-center">
+ <motion.div
+ whileHover={{ scale: 1.03 }}
+ whileTap={{ scale: 0.97 }}
+ transition={SPRING_SOFT}
+ >
+ <Button className="hover:bg-white h-14 px-10">
+ <Link href="/docs/getting-started/introduction" className="inline-flex items-center gap-2">
+ Browse components
+ <ArrowRight className="size-4" aria-hidden="true" />
+ </Link>
+ </Button>
+ </motion.div>
+ </div>
+ </FadeUp>
+ </div>
+ </div>
+
+ <FadeUp delay={0.32} className="relative mt-10 w-full">
+ <motion.div
+ className="relative flex justify-center"
+ initial={{ y: 40 }}
+ whileInView={{ y: 0 }}
+ viewport={{ once: true, amount: 0.2 }}
+ transition={{ ...SPRING_BOUNCE, delay: 0.1 }}
+ >
+ <div className="relative w-[90vw] h-screen overflow-hidden rounded-3xl">
+ {heroEntry ? (
+ <Player
+ component={heroEntry.Component}
+ inputProps={{ url: "remocn.dev" }}
+ durationInFrames={heroEntry.config.durationInFrames}
+ fps={heroEntry.config.fps}
+ compositionWidth={heroEntry.config.compositionWidth}
+ compositionHeight={heroEntry.config.compositionHeight}
+ style={{
+ width: "100%",
+ height: "100%",
+ display: "block",
+ }}
+ autoPlay
+ loop
+ acknowledgeRemotionLicense
+ />
+ ) : null}
+ </div>
+ </motion.div>
+ </FadeUp>
+ </section>
+ );
+}
diff --git a/app/(home)/components/sections/landing-code-showcase.tsx b/app/(home)/components/sections/landing-code-showcase.tsx
new file mode 100644
index 00000000..a7af29da
--- /dev/null
+++ b/app/(home)/components/sections/landing-code-showcase.tsx
@@ -0,0 +1,66 @@
+"use client";
+
+import { Player } from "@remotion/player";
+import { motion } from "motion/react";
+import { PEACH, SECTION, SPRING_SOFT } from "@/config/landing";
+import registry from "@/registry/__index__";
+import { FadeUp } from "../fade-up";
+
+export function LandingCodeShowcase() {
+ const entry = registry["landing-code-showcase"];
+ const aspectRatio =
+ entry &&
+ `${entry.config.compositionWidth} / ${entry.config.compositionHeight}`;
+
+ return (
+ <section id="showcase" className="relative py-32">
+ {/* Header sits inside the standard SECTION width for readable copy */}
+ <div className={SECTION}>
+ <FadeUp>
+ <div className="mb-16 max-w-2xl">
+ <h2 className="text-4xl font-semibold -tracking-wide text-[#EDEDED] md:text-5xl">
+ Type a prop
+ <span className="text-[#8B8A91]"> ship a frame</span>
+ </h2>
+ <p className="mt-4 text-[#8B8A91]">
+ Every component is just React. Watch the preview react to your
+ code in real time
+ </p>
+ </div>
+ </FadeUp>
+ </div>
+
+ {/* Showcase block breaks out of the section width so the player has
+ room for the wide composition. */}
+ <div className="mx-auto w-full max-w-400 px-6">
+ <FadeUp delay={0.1}>
+ <motion.div
+ whileHover={{ y: -4 }}
+ transition={SPRING_SOFT}
+ className="overflow-hidden rounded-3xl border border-white/6 bg-white/2 backdrop-blur-2xl"
+ style={{
+ boxShadow: `0 30px 80px -30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05)`,
+ }}
+ >
+ <div className="w-full" style={{ aspectRatio }}>
+ {entry ? (
+ <Player
+ component={entry.Component}
+ inputProps={{ accentColor: PEACH }}
+ durationInFrames={entry.config.durationInFrames}
+ fps={entry.config.fps}
+ compositionWidth={entry.config.compositionWidth}
+ compositionHeight={entry.config.compositionHeight}
+ style={{ width: "100%", height: "100%", display: "block" }}
+ autoPlay
+ loop
+ acknowledgeRemotionLicense
+ />
+ ) : null}
+ </div>
+ </motion.div>
+ </FadeUp>
+ </div>
+ </section>
+ );
+}
diff --git a/app/(home)/components/sections/stack-marquee.tsx b/app/(home)/components/sections/stack-marquee.tsx
new file mode 100644
index 00000000..caecfd66
--- /dev/null
+++ b/app/(home)/components/sections/stack-marquee.tsx
@@ -0,0 +1,29 @@
+import { STACK } from "@/config/landing";
+
+export function StackMarquee() {
+ return (
+ <section className="relative py-20">
+ <div
+ className="relative overflow-hidden"
+ style={{
+ maskImage:
+ "linear-gradient(to right, transparent, black 15%, black 85%, transparent)",
+ WebkitMaskImage:
+ "linear-gradient(to right, transparent, black 15%, black 85%, transparent)",
+ }}
+ >
+ <div className="flex w-max animate-[remocn-marquee_36s_linear_infinite] gap-16">
+ {[...STACK, ...STACK, ...STACK].map((item, i) => (
+ <span
+ // biome-ignore lint/suspicious/noArrayIndexKey: marquee duplication
+ key={i}
+ className="whitespace-nowrap font-[var(--font-display)] text-2xl font-medium -tracking-wide text-white/30"
+ >
+ {item}
+ </span>
+ ))}
+ </div>
+ </div>
+ </section>
+ );
+}
diff --git a/app/(home)/components/sections/use-cases.tsx b/app/(home)/components/sections/use-cases.tsx
new file mode 100644
index 00000000..64a20ad4
--- /dev/null
+++ b/app/(home)/components/sections/use-cases.tsx
@@ -0,0 +1,218 @@
+"use client";
+
+import { ArrowRight } from "lucide-react";
+import { motion } from "motion/react";
+import Link from "next/link";
+import type { ReactNode } from "react";
+import { Badge } from "@/components/ui/badge";
+import { Separator } from "@/components/ui/separator";
+import {
+ LAVENDER,
+ MINT,
+ PEACH,
+ SECTION,
+ SPRING_BOUNCE,
+} from "@/config/landing";
+import { FadeUp } from "../fade-up";
+
+function CaseChartVisual() {
+ return (
+ <div className="relative h-full w-full">
+ <div className="absolute inset-0 flex items-end gap-2 px-4 pt-4">
+ {[34, 52, 28, 71, 44, 88, 64, 95, 76, 100].map((h, i) => (
+ <div
+ // biome-ignore lint/suspicious/noArrayIndexKey: static demo data
+ key={i}
+ className="flex-1 rounded-t-md"
+ style={{
+ height: `${h}%`,
+ background: `linear-gradient(to top, ${PEACH}50, ${PEACH}10)`,
+ }}
+ />
+ ))}
+ </div>
+ <div className="absolute inset-x-4 top-3 flex items-center justify-between font-mono text-[10px] text-white/40 tabular-nums">
+ <span>upvotes</span>
+ <span style={{ color: PEACH }}>+412</span>
+ </div>
+ </div>
+ );
+}
+
+function CaseChangelogVisual() {
+ return (
+ <div className="flex h-full flex-col gap-2 p-5 font-mono text-[11px] text-white/50">
+ <div className="flex items-center gap-2">
+ <Badge
+ variant="outline"
+ className="h-auto rounded-full px-2 py-0.5 text-[10px]"
+ style={{
+ borderColor: `${MINT}40`,
+ color: MINT,
+ background: `${MINT}10`,
+ }}
+ >
+ v1.4.0
+ </Badge>
+ <span className="text-white/30">just now</span>
+ </div>
+ <div className="space-y-1 leading-relaxed text-white/50">
+ <div>+ added marquee easing</div>
+ <div>+ shipped 12 new transitions</div>
+ <div className="text-white/30">- removed legacy spring helper</div>
+ </div>
+ <div className="mt-auto flex items-center gap-1.5 text-[10px] text-white/40">
+ <span
+ className="size-1.5 rounded-full"
+ style={{ background: MINT, boxShadow: `0 0 8px ${MINT}` }}
+ />
+ rendered &amp; pushed
+ </div>
+ </div>
+ );
+}
+
+function CaseDocsVisual() {
+ return (
+ <div className="grid h-full grid-cols-3 gap-2 p-5">
+ {[0, 1, 2, 3, 4, 5].map((i) => (
+ <div
+ key={i}
+ className="rounded-xl border border-white/10 bg-white/[0.03] p-2.5"
+ >
+ <div
+ className="h-1.5 w-2/3 rounded-full"
+ style={{ background: `${LAVENDER}50` }}
+ />
+ <div className="mt-1.5 h-1 w-full rounded-full bg-white/10" />
+ <div className="mt-1 h-1 w-4/5 rounded-full bg-white/10" />
+ </div>
+ ))}
+ </div>
+ );
+}
+
+function UseCaseCard({
+ label,
+ title,
+ copy,
+ stat,
+ glow,
+ href,
+ children,
+}: {
+ label: string;
+ title: string;
+ copy: string;
+ stat: string;
+ glow: string;
+ href: string;
+ children: ReactNode;
+}) {
+ return (
+ <motion.article
+ whileHover={{ y: -6 }}
+ transition={SPRING_BOUNCE}
+ className="group relative flex h-full flex-col overflow-hidden rounded-3xl border border-white/[0.06] bg-white/[0.03] backdrop-blur-2xl"
+ >
+ <div
+ aria-hidden
+ className="pointer-events-none absolute -bottom-20 -right-20 h-60 w-60 rounded-full opacity-60 transition-opacity group-hover:opacity-100"
+ style={{
+ background: `radial-gradient(circle, ${glow}40, transparent 60%)`,
+ filter: "blur(40px)",
+ }}
+ />
+ <div className="relative h-44 w-full overflow-hidden border-b border-white/[0.05]">
+ {children}
+ </div>
+ <div className="relative flex flex-1 flex-col p-6">
+ <Badge
+ variant="outline"
+ className="h-auto self-start rounded-none border-0 bg-transparent p-0 font-mono text-[11px] text-[#666]"
+ >
+ {label}
+ </Badge>
+ <h3 className="mt-2 font-[var(--font-display)] text-2xl font-semibold -tracking-wide text-[#EDEDED]">
+ {title}
+ </h3>
+ <p className="mt-3 text-sm leading-relaxed text-[#8B8A91]">{copy}</p>
+ <Separator className="mt-6 bg-white/[0.04]" />
+ <div className="mt-4 flex items-center justify-between">
+ <span
+ className="font-mono text-[11px] tabular-nums"
+ style={{ color: glow }}
+ >
+ {stat}
+ </span>
+ <Link
+ href={href}
+ className="inline-flex items-center gap-1 text-xs text-[#8B8A91] transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none"
+ >
+ Learn more
+ <ArrowRight className="size-3" aria-hidden="true" />
+ </Link>
+ </div>
+ </div>
+ </motion.article>
+ );
+}
+
+export function UseCases() {
+ return (
+ <section id="use-cases" className="relative py-32">
+ <div className={SECTION}>
+ <FadeUp>
+ <div className="mb-16 max-w-2xl">
+ <h2 className="font-[var(--font-display)] text-4xl font-semibold -tracking-wide text-[#EDEDED] md:text-5xl">
+ Built for three jobs
+ </h2>
+ <p className="mt-4 text-[#8B8A91]">
+ Marketing launches, release notes, and visual docs — without
+ opening a video editor
+ </p>
+ </div>
+ </FadeUp>
+
+ <div className="grid gap-6 md:grid-cols-3">
+ <FadeUp delay={0}>
+ <UseCaseCard
+ label="Marketing"
+ title="Launch videos"
+ copy="Ship to Product Hunt with a masterpiece. Wire components, render once, post anywhere"
+ stat="12 PH #1s"
+ glow={PEACH}
+ href="/docs/compositions/product-launch-trailer"
+ >
+ <CaseChartVisual />
+ </UseCaseCard>
+ </FadeUp>
+ <FadeUp delay={0.08}>
+ <UseCaseCard
+ label="DevRel"
+ title="Changelogs"
+ copy="Turn boring release notes into viral tweets. One commit, one composition, one render"
+ stat="Render in 8s"
+ glow={MINT}
+ href="/docs/compositions/changelog-bite"
+ >
+ <CaseChangelogVisual />
+ </UseCaseCard>
+ </FadeUp>
+ <FadeUp delay={0.16}>
+ <UseCaseCard
+ label="Documentation"
+ title="Docs that move"
+ copy="Explain complex workflows visually. A twelve second clip beats a thousand words every time"
+ stat="12s clips"
+ glow={LAVENDER}
+ href="/docs/compositions/visual-docs-snippet"
+ >
+ <CaseDocsVisual />
+ </UseCaseCard>
+ </FadeUp>
+ </div>
+ </div>
+ </section>
+ );
+}
diff --git a/app/(home)/components/site-footer.tsx b/app/(home)/components/site-footer.tsx
new file mode 100644
index 00000000..bfbbb453
--- /dev/null
+++ b/app/(home)/components/site-footer.tsx
@@ -0,0 +1,31 @@
+import Link from "next/link";
+import { type NavLink, SECTION } from "@/config/landing";
+
+export function SiteFooter({
+ navLinks,
+ className = "",
+}: {
+ navLinks: NavLink[];
+ className?: string;
+}) {
+ return (
+ <div className={`${SECTION} ${className}`}>
+ <footer className="flex flex-col items-start justify-between gap-4 border-t border-white/[0.05] pt-8 pb-12 text-xs text-[#666] md:flex-row md:items-center">
+ <span suppressHydrationWarning>
+ © {new Date().getFullYear()} remocn — MIT licensed
+ </span>
+ <nav className="flex gap-6">
+ {navLinks.map((link) => (
+ <Link
+ key={link.href}
+ href={link.href}
+ className="transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none"
+ >
+ {link.label}
+ </Link>
+ ))}
+ </nav>
+ </footer>
+ </div>
+ );
+}
diff --git a/app/(home)/components/site-header.tsx b/app/(home)/components/site-header.tsx
new file mode 100644
index 00000000..e13e6935
--- /dev/null
+++ b/app/(home)/components/site-header.tsx
@@ -0,0 +1,56 @@
+import Image from "next/image";
+import Link from "next/link";
+import { type NavLink, SECTION } from "@/config/landing";
+
+export function SiteHeader({ navLinks }: { navLinks: NavLink[] }) {
+ return (
+ <header className="fixed inset-x-0 top-0 z-40 border-b border-white/[0.05] bg-[#141318]/60 backdrop-blur-2xl">
+ <div className={`flex h-16 items-center justify-between ${SECTION}`}>
+ <Link
+ href="/"
+ className="flex items-center gap-2 font-[var(--font-display)] text-lg font-semibold -tracking-wide text-[#EDEDED] focus-visible:outline-none"
+ >
+ <Image
+ src="/logo.svg"
+ alt="remocn logo"
+ width={24}
+ height={24}
+ priority
+ />
+ remocn
+ </Link>
+ <nav className="flex items-center gap-7 text-sm text-[#8B8A91]">
+ {navLinks.map((link) => (
+ <Link
+ key={link.href}
+ href={link.href}
+ className={`${
+ link.smOnly ? "hidden sm:inline" : ""
+ } transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none`}
+ >
+ {link.label}
+ </Link>
+ ))}
+ <Link
+ href="https://github.com/kapishdima/remocn"
+ target="_blank"
+ rel="noreferrer noopener"
+ className="flex items-center gap-1.5 transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none"
+ >
+ <svg
+ viewBox="0 0 24 24"
+ className="size-4"
+ fill="currentColor"
+ role="img"
+ aria-label="GitHub"
+ >
+ <title>GitHub</title>
+ <path d="M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.58.11.79-.25.79-.56 0-.27-.01-1-.02-1.96-3.2.69-3.87-1.54-3.87-1.54-.52-1.33-1.28-1.69-1.28-1.69-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.77 2.7 1.26 3.36.96.1-.75.4-1.26.73-1.55-2.55-.29-5.24-1.28-5.24-5.71 0-1.26.45-2.29 1.19-3.1-.12-.29-.52-1.47.11-3.06 0 0 .97-.31 3.18 1.18a11 11 0 0 1 5.79 0c2.21-1.49 3.18-1.18 3.18-1.18.63 1.59.23 2.77.11 3.06.74.81 1.19 1.84 1.19 3.1 0 4.44-2.7 5.41-5.27 5.7.41.36.78 1.06.78 2.14 0 1.55-.01 2.8-.01 3.18 0 .31.21.68.8.56C20.21 21.39 23.5 17.08 23.5 12 23.5 5.65 18.35.5 12 .5Z" />
+ </svg>
+ GitHub
+ </Link>
+ </nav>
+ </div>
+ </header>
+ );
+}
diff --git a/app/(home)/page.tsx b/app/(home)/page.tsx
index 3dbaa7b6..2ca45380 100644
--- a/app/(home)/page.tsx
+++ b/app/(home)/page.tsx
@@ -1,805 +1,25 @@
-"use client";
-
-import { Player, type PlayerRef } from "@remotion/player";
-import { ArrowRight } from "lucide-react";
-import { motion, useInView, useReducedMotion } from "motion/react";
-import Link from "next/link";
-import { type CSSProperties, type ReactNode, useRef, useState } from "react";
-import Aurora from "@/components/Aurora";
-import Dither from "@/components/Dither";
-import Silk from "@/components/Silk";
-import { Button } from "@/components/ui/button";
-import registry from "@/registry/__index__";
-
-/* -------------------------------------------------------------------------- */
-/* Tokens */
-/* -------------------------------------------------------------------------- */
-
-const SECTION = "mx-auto w-full max-w-6xl px-6";
-
-// Pastel accent palette — peach / lavender / mint
-const PEACH = "#FFB38E";
-const LAVENDER = "#D4B3FF";
-const MINT = "#A1EEBD";
-
-const SPRING_BOUNCE = { type: "spring" as const, stiffness: 120, damping: 14 };
-const SPRING_SOFT = { type: "spring" as const, stiffness: 180, damping: 22 };
-
-/* -------------------------------------------------------------------------- */
-/* Helper components */
-/* -------------------------------------------------------------------------- */
-
-function FadeUp({
- children,
- delay = 0,
- className = "",
-}: {
- children: ReactNode;
- delay?: number;
- className?: string;
-}) {
- const ref = useRef<HTMLDivElement>(null);
- const inView = useInView(ref, { once: true, amount: 0.2 });
- const reduced = useReducedMotion();
- return (
- <motion.div
- ref={ref}
- className={className}
- initial={reduced ? false : { opacity: 0, y: 24, filter: "blur(8px)" }}
- animate={
- inView
- ? { opacity: 1, y: 0, filter: "blur(0px)" }
- : { opacity: 0, y: 24, filter: "blur(8px)" }
- }
- transition={{ ...SPRING_BOUNCE, delay }}
- >
- {children}
- </motion.div>
- );
-}
-
-function NoiseOverlay() {
- // Inline turbulence — sits on top of everything, ties tones together
- const svg = `<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>`;
- const url = `url("data:image/svg+xml;utf8,${svg}")`;
- return (
- <div
- aria-hidden
- className="pointer-events-none fixed inset-0 z-[60]"
- style={{
- backgroundImage: url,
- opacity: 0.04,
- mixBlendMode: "overlay",
- }}
- />
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Header */
-/* -------------------------------------------------------------------------- */
-
-function Header() {
- return (
- <header className="fixed inset-x-0 top-0 z-40 border-b border-white/[0.05] bg-[#141318]/60 backdrop-blur-2xl">
- <div className={`flex h-16 items-center justify-between ${SECTION}`}>
- <Link
- href="/"
- className="font-[var(--font-display)] text-lg font-semibold -tracking-wide text-[#EDEDED] focus-visible:outline-none"
- >
- remocn
- </Link>
- <nav className="flex items-center gap-7 text-sm text-[#8B8A91]">
- <Link
- href="#showcase"
- className="hidden transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none sm:inline"
- >
- Showcase
- </Link>
- <Link
- href="#components"
- className="hidden transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none sm:inline"
- >
- Components
- </Link>
- <Link
- href="#use-cases"
- className="hidden transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none sm:inline"
- >
- Use cases
- </Link>
- <Link
- href="/docs"
- className="transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none"
- >
- Docs
- </Link>
- <Link
- href="https://github.com/remocn/remocn"
- target="_blank"
- rel="noreferrer noopener"
- className="flex items-center gap-1.5 transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none"
- >
- <svg
- viewBox="0 0 24 24"
- className="size-4"
- fill="currentColor"
- role="img"
- aria-label="GitHub"
- >
- <title>GitHub</title>
- <path d="M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.58.11.79-.25.79-.56 0-.27-.01-1-.02-1.96-3.2.69-3.87-1.54-3.87-1.54-.52-1.33-1.28-1.69-1.28-1.69-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.77 2.7 1.26 3.36.96.1-.75.4-1.26.73-1.55-2.55-.29-5.24-1.28-5.24-5.71 0-1.26.45-2.29 1.19-3.1-.12-.29-.52-1.47.11-3.06 0 0 .97-.31 3.18 1.18a11 11 0 0 1 5.79 0c2.21-1.49 3.18-1.18 3.18-1.18.63 1.59.23 2.77.11 3.06.74.81 1.19 1.84 1.19 3.1 0 4.44-2.7 5.41-5.27 5.7.41.36.78 1.06.78 2.14 0 1.55-.01 2.8-.01 3.18 0 .31.21.68.8.56C20.21 21.39 23.5 17.08 23.5 12 23.5 5.65 18.35.5 12 .5Z" />
- </svg>
- GitHub
- </Link>
- </nav>
- </div>
- </header>
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Hero */
-/* -------------------------------------------------------------------------- */
-
-function Hero() {
- const heroEntry = registry["browser-flow"];
-
- return (
- <section className="relative overflow-hidden pt-44 pb-28">
- <div className="w-full h-screen absolute top-0 left-0">
- <Dither
- waveColor={[
- 0.25098039215686274, 0.25098039215686274, 0.25098039215686274,
- ]}
- disableAnimation={false}
- enableMouseInteraction={false}
- mouseRadius={1}
- colorNum={6}
- pixelSize={2}
- waveAmplitude={0.35}
- waveFrequency={5.5}
- waveSpeed={0.01}
- />
- </div>
- <div className={SECTION}>
- <div className="flex flex-col items-center text-center">
- <FadeUp delay={0.08}>
- <h1 className="mt-8 max-w-8xl text-balance font-sans text-5xl font-semibold leading-[1.05] -tracking-[0.04em] text-[#EDEDED] md:text-7xl">
- Cinematic video components
- <br />
- Now copy-pasteable
- </h1>
- </FadeUp>
-
- <FadeUp delay={0.16}>
- <p className="mt-6 max-w-2xl text-balance text-xl font-light leading-relaxed text-white">
- Build product demos, changelogs, and launch videos in React. Open
- source and delightfully easy
- </p>
- </FadeUp>
-
- <FadeUp delay={0.24}>
- <div className="mt-10 flex flex-col items-stretch gap-3 sm:flex-row sm:items-center">
- <motion.div
- whileHover={{ scale: 1.03 }}
- whileTap={{ scale: 0.97 }}
- transition={SPRING_SOFT}
- >
- <Button className="hover:bg-white h-14 px-10">
- <Link href="/docs" className="inline-flex items-center gap-2">
- Browse components
- <ArrowRight className="size-4" aria-hidden="true" />
- </Link>
- </Button>
- </motion.div>
- </div>
- </FadeUp>
- </div>
- </div>
-
- <FadeUp delay={0.32} className="relative mt-10 w-full">
- <motion.div
- className="relative flex justify-center"
- initial={{ y: 40 }}
- whileInView={{ y: 0 }}
- viewport={{ once: true, amount: 0.2 }}
- transition={{ ...SPRING_BOUNCE, delay: 0.1 }}
- >
- <div className="relative w-[80vw] h-screen overflow-hidden rounded-3xl">
- {heroEntry ? (
- <Player
- component={heroEntry.Component}
- inputProps={{ url: "remocn.dev" }}
- durationInFrames={heroEntry.config.durationInFrames}
- fps={heroEntry.config.fps}
- compositionWidth={heroEntry.config.compositionWidth}
- compositionHeight={heroEntry.config.compositionHeight}
- style={{
- width: "100%",
- height: "100%",
- display: "block",
- }}
- autoPlay
- loop
- acknowledgeRemotionLicense
- />
- ) : null}
- </div>
- </motion.div>
- </FadeUp>
- </section>
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Landing code showcase */
-/* -------------------------------------------------------------------------- */
-
-function LandingCodeShowcaseSection() {
- const entry = registry["landing-code-showcase"];
- const aspectRatio =
- entry &&
- `${entry.config.compositionWidth} / ${entry.config.compositionHeight}`;
-
- return (
- <section id="showcase" className="relative py-32">
- {/* Header sits inside the standard SECTION width for readable copy */}
- <div className={SECTION}>
- <FadeUp>
- <div className="mb-16 max-w-2xl">
- <h2 className="font-[var(--font-display)] text-4xl font-semibold -tracking-wide text-[#EDEDED] md:text-5xl">
- Type a prop
- <br />
- <span className="text-[#8B8A91]">ship a frame</span>
- </h2>
- <p className="mt-4 text-[#8B8A91]">
- Every component is just React. Watch the preview react to your
- code in real time
- </p>
- </div>
- </FadeUp>
- </div>
-
- {/* Showcase block breaks out of the section width so the player has
- room for the wide composition. */}
- <div className="mx-auto w-full max-w-[1600px] px-6">
- <FadeUp delay={0.1}>
- <motion.div
- whileHover={{ y: -4 }}
- transition={SPRING_SOFT}
- className="overflow-hidden rounded-3xl border border-white/[0.06] bg-white/[0.02] backdrop-blur-2xl"
- style={{
- boxShadow: `0 30px 80px -30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05)`,
- }}
- >
- <div className="w-full" style={{ aspectRatio }}>
- {entry ? (
- <Player
- component={entry.Component}
- inputProps={{ accentColor: PEACH }}
- durationInFrames={entry.config.durationInFrames}
- fps={entry.config.fps}
- compositionWidth={entry.config.compositionWidth}
- compositionHeight={entry.config.compositionHeight}
- style={{ width: "100%", height: "100%", display: "block" }}
- autoPlay
- loop
- acknowledgeRemotionLicense
- />
- ) : null}
- </div>
- </motion.div>
- </FadeUp>
- </div>
- </section>
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Bento registry */
-/* -------------------------------------------------------------------------- */
-
-function BentoCard({
- name,
- title,
- description,
- className = "",
- inputProps,
-}: {
- name: string;
- title: string;
- description: string;
- className?: string;
- inputProps?: Record<string, unknown>;
-}) {
- const entry = registry[name];
- const playerRef = useRef<PlayerRef>(null);
-
- const handleEnter = () => playerRef.current?.play();
- const handleLeave = () => playerRef.current?.pause();
-
- return (
- // biome-ignore lint/a11y/noStaticElementInteractions: hover-to-play is decorative video preview
- <motion.div
- onMouseEnter={handleEnter}
- onMouseLeave={handleLeave}
- whileHover={{ y: -4 }}
- transition={SPRING_SOFT}
- className={`group relative flex flex-col overflow-hidden rounded-3xl border border-white/[0.06] bg-white/[0.03] backdrop-blur-2xl ${className}`}
- style={{
- boxShadow: `0 20px 50px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06)`,
- }}
- >
- {/* Spotlight overlay (driven by parent --mx/--my) */}
- <div
- aria-hidden
- className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100"
- style={{
- background:
- "radial-gradient(500px circle at var(--mx) var(--my), rgba(255,255,255,0.07), transparent 40%)",
- }}
- />
-
- <div className="relative aspect-[16/9] w-full overflow-hidden bg-[#0A090E]">
- {entry ? (
- <Player
- ref={playerRef}
- component={entry.Component}
- inputProps={inputProps ?? {}}
- durationInFrames={entry.config.durationInFrames}
- fps={entry.config.fps}
- compositionWidth={entry.config.compositionWidth}
- compositionHeight={entry.config.compositionHeight}
- style={{ width: "100%", height: "100%" }}
- loop
- acknowledgeRemotionLicense
- />
- ) : null}
- </div>
- <div className="relative flex-1 p-6">
- <h3 className="font-[var(--font-display)] text-base font-medium text-[#EDEDED]">
- {title}
- </h3>
- <p className="mt-1 text-sm text-[#8B8A91]">{description}</p>
- </div>
- </motion.div>
- );
-}
-
-function BentoRegistry() {
- const gridRef = useRef<HTMLDivElement>(null);
- const grid2Ref = useRef<HTMLDivElement>(null);
-
- const handleMove = (
- e: React.MouseEvent<HTMLDivElement>,
- target: HTMLDivElement | null,
- ) => {
- if (!target) return;
- const rect = target.getBoundingClientRect();
- target.style.setProperty("--mx", `${e.clientX - rect.left}px`);
- target.style.setProperty("--my", `${e.clientY - rect.top}px`);
- };
-
- return (
- <section id="components" className="relative py-32">
- <div className={SECTION}>
- <FadeUp>
- <div className="mb-16 flex flex-col gap-6 sm:flex-row sm:items-end sm:justify-between">
- <div className="max-w-2xl">
- <h2 className="font-[var(--font-display)] text-4xl font-semibold -tracking-wide text-[#EDEDED] md:text-5xl">
- A registry of motion
- </h2>
- <p className="mt-4 text-[#8B8A91]">
- Transitions, primitives, text reveals — production-ready and
- hover to play
- </p>
- </div>
- <motion.div
- whileHover={{ scale: 1.03 }}
- whileTap={{ scale: 0.97 }}
- transition={SPRING_SOFT}
- >
- <Link
- href="/docs"
- className="group inline-flex h-11 shrink-0 items-center gap-2 self-start rounded-full border border-white/10 bg-white/[0.04] px-5 text-sm font-medium text-[#EDEDED] backdrop-blur-xl transition-colors hover:border-white/20 hover:bg-white/[0.06] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/30 sm:self-auto"
- >
- Browse components
- <ArrowRight className="size-4" aria-hidden="true" />
- </Link>
- </motion.div>
- </div>
- </FadeUp>
-
- <FadeUp delay={0.1}>
- {/* biome-ignore lint/a11y/noStaticElementInteractions: spotlight cursor tracking is purely visual */}
- <div
- ref={gridRef}
- onMouseMove={(e) => handleMove(e, gridRef.current)}
- className="grid gap-6 md:grid-cols-3 md:grid-rows-2"
- style={{ "--mx": "50%", "--my": "50%" } as CSSProperties}
- >
- <BentoCard
- name="ai-generation-canvas"
- title="AI Generation Canvas"
- description="From prompt to UI in a single composition"
- className="md:col-span-2 md:row-span-2"
- />
- <BentoCard
- name="shimmer-sweep"
- title="Shimmer Sweep"
- description="Light pass across text for AI accents"
- inputProps={{ text: "Generating" }}
- />
- <BentoCard
- name="ecosystem-constellation"
- title="Ecosystem Constellation"
- description="Orbits of integration logos around your brand"
- />
- </div>
- </FadeUp>
-
- <FadeUp delay={0.18}>
- {/* biome-ignore lint/a11y/noStaticElementInteractions: spotlight cursor tracking is purely visual */}
- <div
- ref={grid2Ref}
- onMouseMove={(e) => handleMove(e, grid2Ref.current)}
- className="mt-6 grid gap-6 md:grid-cols-2"
- style={{ "--mx": "50%", "--my": "50%" } as CSSProperties}
- >
- <BentoCard
- name="grid-pixelate-wipe"
- title="Grid Pixelate Wipe"
- description="The screen breaks into squares and reassembles into a new scene"
- />
- <BentoCard
- name="frosted-glass-wipe"
- title="Frosted Glass Wipe"
- description="An elegant transition through a sheet of glass"
- />
- </div>
- </FadeUp>
- </div>
- </section>
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Use cases */
-/* -------------------------------------------------------------------------- */
-
-function CaseChartVisual() {
- return (
- <div className="relative h-full w-full">
- <div className="absolute inset-0 flex items-end gap-2 px-4 pt-4">
- {[34, 52, 28, 71, 44, 88, 64, 95, 76, 100].map((h, i) => (
- <div
- // biome-ignore lint/suspicious/noArrayIndexKey: static demo data
- key={i}
- className="flex-1 rounded-t-md"
- style={{
- height: `${h}%`,
- background: `linear-gradient(to top, ${PEACH}50, ${PEACH}10)`,
- }}
- />
- ))}
- </div>
- <div className="absolute inset-x-4 top-3 flex items-center justify-between font-mono text-[10px] text-white/40 tabular-nums">
- <span>upvotes</span>
- <span style={{ color: PEACH }}>+412</span>
- </div>
- </div>
- );
-}
-
-function CaseChangelogVisual() {
- return (
- <div className="flex h-full flex-col gap-2 p-5 font-mono text-[11px] text-white/50">
- <div className="flex items-center gap-2">
- <span
- className="rounded-full border px-2 py-0.5 text-[10px]"
- style={{
- borderColor: `${MINT}40`,
- color: MINT,
- background: `${MINT}10`,
- }}
- >
- v1.4.0
- </span>
- <span className="text-white/30">just now</span>
- </div>
- <div className="space-y-1 leading-relaxed text-white/50">
- <div>+ added marquee easing</div>
- <div>+ shipped 12 new transitions</div>
- <div className="text-white/30">- removed legacy spring helper</div>
- </div>
- <div className="mt-auto flex items-center gap-1.5 text-[10px] text-white/40">
- <span
- className="size-1.5 rounded-full"
- style={{ background: MINT, boxShadow: `0 0 8px ${MINT}` }}
- />
- rendered &amp; pushed
- </div>
- </div>
- );
-}
-
-function CaseDocsVisual() {
- return (
- <div className="grid h-full grid-cols-3 gap-2 p-5">
- {[0, 1, 2, 3, 4, 5].map((i) => (
- <div
- key={i}
- className="rounded-xl border border-white/10 bg-white/[0.03] p-2.5"
- >
- <div
- className="h-1.5 w-2/3 rounded-full"
- style={{ background: `${LAVENDER}50` }}
- />
- <div className="mt-1.5 h-1 w-full rounded-full bg-white/10" />
- <div className="mt-1 h-1 w-4/5 rounded-full bg-white/10" />
- </div>
- ))}
- </div>
- );
-}
-
-function UseCases() {
- const cases = [
- {
- label: "Marketing",
- title: "Launch videos",
- copy: "Ship to Product Hunt with a masterpiece. Wire components, render once, post anywhere",
- stat: "12 PH #1s",
- glow: PEACH,
- Visual: CaseChartVisual,
- },
- {
- label: "DevRel",
- title: "Changelogs",
- copy: "Turn boring release notes into viral tweets. One commit, one composition, one render",
- stat: "Render in 8s",
- glow: MINT,
- Visual: CaseChangelogVisual,
- },
- {
- label: "Documentation",
- title: "Docs that move",
- copy: "Explain complex workflows visually. A twelve second clip beats a thousand words every time",
- stat: "12s clips",
- glow: LAVENDER,
- Visual: CaseDocsVisual,
- },
- ];
-
- return (
- <section id="use-cases" className="relative py-32">
- <div className={SECTION}>
- <FadeUp>
- <div className="mb-16 max-w-2xl">
- <h2 className="font-[var(--font-display)] text-4xl font-semibold -tracking-wide text-[#EDEDED] md:text-5xl">
- Built for three jobs
- </h2>
- <p className="mt-4 text-[#8B8A91]">
- Marketing launches, release notes, and visual docs — without
- opening a video editor
- </p>
- </div>
- </FadeUp>
-
- <div className="grid gap-6 md:grid-cols-3">
- {cases.map((c, i) => {
- const Visual = c.Visual;
- return (
- <FadeUp key={c.title} delay={i * 0.08}>
- <motion.article
- whileHover={{ y: -6 }}
- transition={SPRING_BOUNCE}
- className="group relative flex h-full flex-col overflow-hidden rounded-3xl border border-white/[0.06] bg-white/[0.03] backdrop-blur-2xl"
- >
- <div
- aria-hidden
- className="pointer-events-none absolute -bottom-20 -right-20 h-60 w-60 rounded-full opacity-60 transition-opacity group-hover:opacity-100"
- style={{
- background: `radial-gradient(circle, ${c.glow}40, transparent 60%)`,
- filter: "blur(40px)",
- }}
- />
- <div className="relative h-44 w-full overflow-hidden border-b border-white/[0.05]">
- <Visual />
- </div>
- <div className="relative flex flex-1 flex-col p-6">
- <span className="font-mono text-[11px] text-[#666]">
- {c.label}
- </span>
- <h3 className="mt-2 font-[var(--font-display)] text-2xl font-semibold -tracking-wide text-[#EDEDED]">
- {c.title}
- </h3>
- <p className="mt-3 text-sm leading-relaxed text-[#8B8A91]">
- {c.copy}
- </p>
- <div className="mt-6 flex items-center justify-between border-t border-white/[0.04] pt-4">
- <span
- className="font-mono text-[11px] tabular-nums"
- style={{ color: c.glow }}
- >
- {c.stat}
- </span>
- <Link
- href="/docs"
- className="inline-flex items-center gap-1 text-xs text-[#8B8A91] transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none"
- >
- Learn more
- <ArrowRight className="size-3" aria-hidden="true" />
- </Link>
- </div>
- </div>
- </motion.article>
- </FadeUp>
- );
- })}
- </div>
- </div>
- </section>
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Stack marquee */
-/* -------------------------------------------------------------------------- */
-
-const STACK = [
- "Remotion",
- "React",
- "Next.js",
- "Tailwind",
- "TypeScript",
- "shadcn/ui",
- "Vercel",
-];
-
-function StackMarquee() {
- return (
- <section className="relative py-20">
- <div
- className="relative overflow-hidden"
- style={{
- maskImage:
- "linear-gradient(to right, transparent, black 15%, black 85%, transparent)",
- WebkitMaskImage:
- "linear-gradient(to right, transparent, black 15%, black 85%, transparent)",
- }}
- >
- <div className="flex w-max animate-[remocn-marquee_36s_linear_infinite] gap-16">
- {[...STACK, ...STACK, ...STACK].map((item, i) => (
- <span
- // biome-ignore lint/suspicious/noArrayIndexKey: marquee duplication
- key={i}
- className="whitespace-nowrap font-[var(--font-display)] text-2xl font-medium -tracking-wide text-white/30"
- >
- {item}
- </span>
- ))}
- </div>
- </div>
-
- <style jsx global>{`
- @keyframes remocn-marquee {
- 0% { transform: translateX(0); }
- 100% { transform: translateX(-33.3333%); }
- }
- `}</style>
- </section>
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Final CTA */
-/* -------------------------------------------------------------------------- */
-
-function FinalCTA() {
- const ref = useRef<HTMLHeadingElement>(null);
- const inView = useInView(ref, { once: true, amount: 0.4 });
- const reduced = useReducedMotion();
-
- return (
- <section className="relative overflow-hidden py-40">
- <div
- aria-hidden
- className="absolute inset-0 -z-10"
- style={{
- background: `radial-gradient(60% 50% at 50% 50%, ${LAVENDER}15, transparent 70%), radial-gradient(40% 40% at 20% 80%, ${PEACH}12, transparent 60%), radial-gradient(40% 40% at 80% 20%, ${MINT}12, transparent 60%)`,
- filter: "blur(40px)",
- }}
- />
- <div className={`${SECTION} flex flex-col items-center text-center`}>
- <motion.h2
- ref={ref}
- className="text-balance font-[var(--font-display)] text-5xl font-semibold -tracking-wide text-[#EDEDED] md:text-6xl"
- initial={
- reduced ? false : { opacity: 0, y: 30, filter: "blur(14px)" }
- }
- animate={
- inView
- ? { opacity: 1, y: 0, filter: "blur(0px)" }
- : { opacity: 0, y: 30, filter: "blur(14px)" }
- }
- transition={{ ...SPRING_BOUNCE, duration: 1 }}
- >
- Stop fighting keyframes
- <br />
- Start writing code
- </motion.h2>
-
- <FadeUp delay={0.3}>
- <motion.div
- whileHover={{ scale: 1.03 }}
- whileTap={{ scale: 0.97 }}
- transition={SPRING_SOFT}
- >
- <Link
- href="/docs"
- className="mt-12 inline-flex h-14 items-center gap-2 rounded-full bg-white px-8 text-base font-medium text-[#141318] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 focus-visible:ring-offset-2 focus-visible:ring-offset-[#141318]"
- style={{
- boxShadow: `0 0 0 1px rgba(255,255,255,0.2), 0 12px 50px ${LAVENDER}40, inset 0 1px 0 rgba(255,255,255,0.6)`,
- }}
- >
- View documentation
- <ArrowRight className="size-5" aria-hidden="true" />
- </Link>
- </motion.div>
- </FadeUp>
- </div>
-
- <div className={SECTION}>
- <footer className="mt-32 flex flex-col items-start justify-between gap-4 border-t border-white/[0.05] pt-8 text-xs text-[#666] md:flex-row md:items-center">
- <span suppressHydrationWarning>
- © {new Date().getFullYear()} remocn — MIT licensed
- </span>
- <nav className="flex gap-6">
- <Link
- href="/docs"
- className="transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none"
- >
- Docs
- </Link>
- <Link
- href="https://github.com/remocn/remocn"
- className="transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none"
- >
- GitHub
- </Link>
- <Link
- href="/docs"
- className="transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none"
- >
- Components
- </Link>
- </nav>
- </footer>
- </div>
- </section>
- );
-}
-
-/* -------------------------------------------------------------------------- */
-/* Page */
-/* -------------------------------------------------------------------------- */
+import { FOOTER_NAV, HOME_NAV } from "@/config/landing";
+import { PageShell } from "./components/page-shell";
+import { BentoRegistry } from "./components/sections/bento-registry";
+import { FinalCTA } from "./components/sections/final-cta";
+import { Hero } from "./components/sections/hero";
+import { LandingCodeShowcase } from "./components/sections/landing-code-showcase";
+import { UseCases } from "./components/sections/use-cases";
+import { SiteFooter } from "./components/site-footer";
+import { SiteHeader } from "./components/site-header";
export default function Page() {
return (
- <div
- className="relative min-h-screen overflow-hidden bg-black font-sans text-[#EDEDED] antialiased"
- style={{ colorScheme: "dark" }}
- >
- <Header />
+ <PageShell>
+ <SiteHeader navLinks={HOME_NAV} />
<main className="relative">
<Hero />
- <LandingCodeShowcaseSection />
+ <LandingCodeShowcase />
<BentoRegistry />
<UseCases />
<FinalCTA />
+ <SiteFooter navLinks={FOOTER_NAV} className="mt-12" />
</main>
- </div>
+ </PageShell>
);
}
diff --git a/app/(home)/sponsors/components/sections/hero.tsx b/app/(home)/sponsors/components/sections/hero.tsx
new file mode 100644
index 00000000..6c03387f
--- /dev/null
+++ b/app/(home)/sponsors/components/sections/hero.tsx
@@ -0,0 +1,34 @@
+import { LAVENDER, MINT, PEACH, SECTION } from "@/config/landing";
+import { FadeUp } from "../../../components/fade-up";
+
+export function Hero() {
+ return (
+ <section className="relative overflow-hidden pt-44 pb-20">
+ <div
+ aria-hidden
+ className="pointer-events-none absolute inset-0 -z-10"
+ style={{
+ background: `radial-gradient(60% 50% at 50% 30%, ${LAVENDER}18, transparent 70%), radial-gradient(40% 40% at 20% 80%, ${PEACH}12, transparent 60%), radial-gradient(40% 40% at 80% 20%, ${MINT}12, transparent 60%)`,
+ filter: "blur(40px)",
+ }}
+ />
+ <div className={SECTION}>
+ <div className="flex flex-col items-center text-center">
+ <FadeUp delay={0.08}>
+ <h1 className="max-w-4xl text-balance font-sans text-5xl font-semibold leading-[1.05] -tracking-[0.04em] text-[#EDEDED] md:text-7xl">
+ Support the future of video.
+ </h1>
+ </FadeUp>
+
+ <FadeUp delay={0.16}>
+ <p className="mt-6 max-w-2xl text-balance text-xl font-light leading-relaxed text-white">
+ remocn is open-source and free. Your sponsorship helps us spend
+ more time building premium animations and keeping the project
+ alive.
+ </p>
+ </FadeUp>
+ </div>
+ </div>
+ </section>
+ );
+}
diff --git a/app/(home)/sponsors/components/sections/tiers.tsx b/app/(home)/sponsors/components/sections/tiers.tsx
new file mode 100644
index 00000000..11ce5554
--- /dev/null
+++ b/app/(home)/sponsors/components/sections/tiers.tsx
@@ -0,0 +1,183 @@
+"use client";
+
+import { ArrowRight, Check } from "lucide-react";
+import { motion } from "motion/react";
+import Link from "next/link";
+import { type CSSProperties, useRef, useState } from "react";
+import { Badge } from "@/components/ui/badge";
+import { Separator } from "@/components/ui/separator";
+import { SECTION, SPRING_BOUNCE, SPRING_SOFT } from "@/config/landing";
+import { type BillingMode, type Tier, tiers } from "@/config/sponsors";
+import { cn } from "@/lib/utils";
+import { FadeUp } from "../../../components/fade-up";
+
+function BillingToggle({
+ value,
+ onChange,
+}: {
+ value: BillingMode;
+ onChange: (v: BillingMode) => void;
+}) {
+ const options: { id: BillingMode; label: string }[] = [
+ { id: "monthly", label: "Monthly" },
+ { id: "one-time", label: "One-time" },
+ ];
+
+ return (
+ <div className="inline-flex rounded-full border border-white/10 bg-white/[0.04] p-1 backdrop-blur-xl">
+ {options.map((opt) => {
+ const active = opt.id === value;
+ return (
+ <button
+ key={opt.id}
+ type="button"
+ onClick={() => onChange(opt.id)}
+ className={cn(
+ "relative rounded-full px-5 py-2 text-sm font-medium transition-colors focus-visible:outline-none",
+ active ? "text-[#141318]" : "text-[#8B8A91] hover:text-white",
+ )}
+ >
+ {active && (
+ <motion.div
+ layoutId="billing-thumb"
+ className="absolute inset-0 rounded-full bg-white"
+ transition={SPRING_SOFT}
+ />
+ )}
+ <span className="relative">{opt.label}</span>
+ </button>
+ );
+ })}
+ </div>
+ );
+}
+
+function TierCard({
+ tier,
+ billingMode,
+}: {
+ tier: Tier;
+ billingMode: BillingMode;
+}) {
+ const checkoutUrl =
+ billingMode === "monthly" ? tier.monthlyUrl : tier.oneTimeUrl;
+ const priceSuffix = billingMode === "monthly" ? "/mo" : "one-time";
+
+ return (
+ <motion.article
+ whileHover={{ y: -4 }}
+ transition={SPRING_BOUNCE}
+ className="group relative flex h-full flex-col overflow-hidden rounded-3xl border border-white/[0.06] bg-white/[0.03] p-8 backdrop-blur-2xl"
+ style={{
+ boxShadow: `0 20px 50px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06)`,
+ }}
+ >
+ {/* Spotlight overlay (driven by parent --mx/--my) */}
+ <div
+ aria-hidden
+ className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100"
+ style={{
+ background: `radial-gradient(500px circle at var(--mx) var(--my), ${tier.glow}1A, transparent 40%)`,
+ }}
+ />
+
+ <div className="relative flex items-start justify-between gap-3">
+ <div>
+ <span className="font-mono text-[11px] text-[#666]">
+ {tier.tagline}
+ </span>
+ <h3 className="mt-2 font-[var(--font-display)] text-2xl font-semibold -tracking-wide text-[#EDEDED]">
+ {tier.name}
+ </h3>
+ </div>
+ {tier.highlighted && <Badge variant="secondary">Most popular</Badge>}
+ </div>
+
+ <div className="relative mt-6 flex items-baseline gap-2 overflow-hidden">
+ <motion.div
+ key={billingMode}
+ initial={{ opacity: 0, y: 8 }}
+ animate={{ opacity: 1, y: 0 }}
+ transition={SPRING_SOFT}
+ className="flex items-baseline gap-2"
+ >
+ <span className="font-[var(--font-display)] text-5xl font-semibold -tracking-wide text-[#EDEDED]">
+ ${tier.price}
+ </span>
+ <span className="text-sm text-[#8B8A91]">{priceSuffix}</span>
+ </motion.div>
+ </div>
+
+ <Separator className="relative my-6 bg-white/[0.04]" />
+
+ <ul className="relative flex flex-col gap-3">
+ {tier.perks.map((perk) => (
+ <li
+ key={perk}
+ className="flex items-start gap-3 text-sm text-[#C8C7CC]"
+ >
+ <Check
+ className="mt-[3px] size-3.5 shrink-0"
+ style={{ color: tier.glow }}
+ aria-hidden="true"
+ />
+ <span>{perk}</span>
+ </li>
+ ))}
+ </ul>
+
+ <div className="relative mt-8 pt-2">
+ <Link
+ href={checkoutUrl}
+ target="_blank"
+ rel="noreferrer noopener"
+ className="inline-flex h-12 w-full items-center justify-center gap-2 rounded-full border border-white/10 bg-white/[0.04] text-sm font-medium text-[#EDEDED] backdrop-blur-xl transition-colors hover:border-white/20 hover:bg-white/[0.08] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/30"
+ >
+ Become a {tier.name}
+ <ArrowRight className="size-4" aria-hidden="true" />
+ </Link>
+ </div>
+ </motion.article>
+ );
+}
+
+export function Tiers() {
+ const [billingMode, setBillingMode] = useState<BillingMode>("monthly");
+ const gridRef = useRef<HTMLDivElement>(null);
+
+ const handleMove = (e: React.MouseEvent<HTMLDivElement>) => {
+ const target = gridRef.current;
+ if (!target) return;
+ const rect = target.getBoundingClientRect();
+ target.style.setProperty("--mx", `${e.clientX - rect.left}px`);
+ target.style.setProperty("--my", `${e.clientY - rect.top}px`);
+ };
+
+ return (
+ <section id="tiers" className="relative py-24">
+ <div className={SECTION}>
+ <FadeUp>
+ <div className="mb-10 flex justify-center">
+ <BillingToggle value={billingMode} onChange={setBillingMode} />
+ </div>
+ </FadeUp>
+
+ <FadeUp delay={0.1}>
+ {/* biome-ignore lint/a11y/noStaticElementInteractions: spotlight cursor tracking is purely visual */}
+ <div
+ ref={gridRef}
+ onMouseMove={handleMove}
+ className="grid gap-6 md:grid-cols-3"
+ style={{ "--mx": "50%", "--my": "50%" } as CSSProperties}
+ >
+ {tiers.map((tier, i) => (
+ <FadeUp key={tier.id} delay={i * 0.08}>
+ <TierCard tier={tier} billingMode={billingMode} />
+ </FadeUp>
+ ))}
+ </div>
+ </FadeUp>
+ </div>
+ </section>
+ );
+}
diff --git a/app/(home)/sponsors/components/sections/wall-of-love.tsx b/app/(home)/sponsors/components/sections/wall-of-love.tsx
new file mode 100644
index 00000000..debc643f
--- /dev/null
+++ b/app/(home)/sponsors/components/sections/wall-of-love.tsx
@@ -0,0 +1,145 @@
+"use client";
+
+import { ArrowRight } from "lucide-react";
+import { motion } from "motion/react";
+import Link from "next/link";
+import { LAVENDER, SECTION, SPRING_SOFT } from "@/config/landing";
+import { type Sponsor, sponsors } from "@/config/sponsors";
+import { cn } from "@/lib/utils";
+import { FadeUp } from "../../../components/fade-up";
+
+function SponsorLogoCard({
+ sponsor,
+ maxH,
+}: {
+ sponsor: Sponsor;
+ maxH: string;
+}) {
+ return (
+ <a
+ href={sponsor.website}
+ target="_blank"
+ rel="noreferrer noopener"
+ className="group relative flex items-center justify-center overflow-hidden rounded-2xl border border-white/[0.05] bg-white/[0.02] p-6 transition-colors duration-300 hover:border-white/[0.1] hover:bg-white/[0.05] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/30"
+ >
+ {/** biome-ignore lint/performance/noImgElement: sponsor logos are SVGs of arbitrary sizes */}
+ <img
+ src={sponsor.logoUrl}
+ alt={sponsor.name}
+ className={cn(
+ maxH,
+ "w-auto object-contain opacity-60 transition-all duration-300 [filter:grayscale(1)_brightness(0)_invert(1)] group-hover:opacity-100 group-hover:[filter:none]",
+ sponsor.customStyles,
+ )}
+ style={{ transform: `scale(${sponsor.logoScale ?? 1})` }}
+ />
+ </a>
+ );
+}
+
+function SponsorGroup({
+ label,
+ items,
+ gridClassName,
+ aspectClassName,
+ maxH,
+}: {
+ label: string;
+ items: Sponsor[];
+ gridClassName: string;
+ aspectClassName: string;
+ maxH: string;
+}) {
+ if (items.length === 0) return null;
+ return (
+ <div className="mb-12">
+ <div className="mb-4 font-mono text-[11px] text-[#666]">{label}</div>
+ <div className={gridClassName}>
+ {items.map((s) => (
+ <div key={s.id} className={aspectClassName}>
+ <SponsorLogoCard sponsor={s} maxH={maxH} />
+ </div>
+ ))}
+ </div>
+ </div>
+ );
+}
+
+export function WallOfLove() {
+ const partners = sponsors.filter((s) => s.tier === "partner");
+ const builders = sponsors.filter((s) => s.tier === "builder");
+ const supporters = sponsors.filter((s) => s.tier === "supporter");
+ const isEmpty = sponsors.length === 0;
+
+ return (
+ <section id="wall-of-love" className="relative py-32">
+ <div className={SECTION}>
+ <FadeUp>
+ <div className="mb-16 max-w-2xl">
+ <h2 className="font-[var(--font-display)] text-4xl font-semibold -tracking-wide text-[#EDEDED] md:text-5xl">
+ Wall of love
+ </h2>
+ <p className="mt-4 text-[#8B8A91]">
+ The wonderful people and companies keeping remocn alive
+ </p>
+ </div>
+ </FadeUp>
+
+ {isEmpty ? (
+ <FadeUp delay={0.1}>
+ <div
+ className="flex flex-col items-center justify-center gap-6 rounded-3xl border border-white/[0.06] bg-white/[0.02] px-8 py-20 text-center backdrop-blur-2xl"
+ style={{
+ boxShadow: `0 20px 50px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05)`,
+ }}
+ >
+ <p className="max-w-md text-balance text-lg text-[#C8C7CC]">
+ Be the first to support remocn. Your logo could live right here.
+ </p>
+ <motion.div
+ whileHover={{ scale: 1.03 }}
+ whileTap={{ scale: 0.97 }}
+ transition={SPRING_SOFT}
+ >
+ <Link
+ href="#tiers"
+ className="inline-flex h-12 items-center gap-2 rounded-full bg-white px-6 text-sm font-medium text-[#141318] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 focus-visible:ring-offset-2 focus-visible:ring-offset-[#141318]"
+ style={{
+ boxShadow: `0 0 0 1px rgba(255,255,255,0.2), 0 12px 40px ${LAVENDER}40, inset 0 1px 0 rgba(255,255,255,0.6)`,
+ }}
+ >
+ Become a sponsor
+ <ArrowRight className="size-4" aria-hidden="true" />
+ </Link>
+ </motion.div>
+ </div>
+ </FadeUp>
+ ) : (
+ <FadeUp delay={0.1}>
+ <SponsorGroup
+ label="Partners"
+ items={partners}
+ gridClassName="grid gap-6 md:grid-cols-2 lg:grid-cols-3"
+ aspectClassName="aspect-[3/2]"
+ maxH="max-h-20"
+ />
+ <SponsorGroup
+ label="Builders"
+ items={builders}
+ gridClassName="grid gap-4 md:grid-cols-3 lg:grid-cols-4"
+ aspectClassName="aspect-[3/2]"
+ maxH="max-h-14"
+ />
+ <SponsorGroup
+ label="Supporters"
+ items={supporters}
+ gridClassName="grid gap-3 md:grid-cols-4 lg:grid-cols-6"
+ aspectClassName="aspect-square"
+ maxH="max-h-10"
+ />
+ </FadeUp>
+ )}
+ </div>
+ </section>
+ );
+}
diff --git a/app/(home)/sponsors/page.tsx b/app/(home)/sponsors/page.tsx
new file mode 100644
index 00000000..6d53c0fd
--- /dev/null
+++ b/app/(home)/sponsors/page.tsx
@@ -0,0 +1,21 @@
+import { FOOTER_NAV, SPONSORS_NAV } from "@/config/landing";
+import { PageShell } from "../components/page-shell";
+import { SiteFooter } from "../components/site-footer";
+import { SiteHeader } from "../components/site-header";
+import { Hero } from "./components/sections/hero";
+import { Tiers } from "./components/sections/tiers";
+import { WallOfLove } from "./components/sections/wall-of-love";
+
+export default function SponsorsPage() {
+ return (
+ <PageShell>
+ <SiteHeader navLinks={SPONSORS_NAV} />
+ <main className="relative">
+ <Hero />
+ <Tiers />
+ <WallOfLove />
+ <SiteFooter navLinks={FOOTER_NAV} className="mt-20" />
+ </main>
+ </PageShell>
+ );
+}
diff --git a/app/favicon.ico b/app/favicon.ico
deleted file mode 100644
index 718d6fea..00000000
Binary files a/app/favicon.ico and /dev/null differ
diff --git a/app/globals.css b/app/globals.css
index c1beffde..5d914961 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -168,6 +168,16 @@
@apply max-w-3xl;
}
+/* Landing page marquee (used by app/(home)/components/sections/stack-marquee.tsx) */
+@keyframes remocn-marquee {
+ 0% {
+ transform: translateX(0);
+ }
+ 100% {
+ transform: translateX(-33.3333%);
+ }
+}
+
/* Sidebar tightening — fumadocs sidebar typography */
#nd-sidebar a {
font-size: 0.8125rem;
diff --git a/app/icon.svg b/app/icon.svg
new file mode 100644
index 00000000..f814dd09
--- /dev/null
+++ b/app/icon.svg
@@ -0,0 +1,11 @@
+<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
+<rect width="100" height="100" rx="14" fill="black"/>
+<path d="M83.9141 45.7661C86.9141 47.4982 86.9141 51.829 83.9141 53.561L31.4141 83.8716C28.4141 85.6036 24.6641 83.4382 24.6641 79.9741L24.6641 19.353C24.6641 15.8889 28.4141 13.7235 31.4141 15.4556L83.9141 45.7661Z" fill="white" stroke="white"/>
+<path d="M68.998 31.3979C68.998 50.3798 68.998 63.307 68.998 67.3979" stroke="black" stroke-width="10"/>
+<path d="M53.0625 16.75C53.0625 48.2803 53.0625 69.7535 53.0625 76.5488" stroke="black" stroke-width="10"/>
+<path d="M37.127 9.88379C37.127 51.1081 37.127 79.1833 37.127 88.0679" stroke="black" stroke-width="10"/>
+<path d="M31.1318 15.8618L43.1074 22.7646" stroke="white" stroke-width="2"/>
+<path d="M63.291 34.439L75.2617 41.3579" stroke="white" stroke-width="2"/>
+<path d="M46.6641 74.4712L59.208 67.2573" stroke="white" stroke-width="2"/>
+<path d="M76.0205 57.5371L82.9848 53.5226" stroke="white" stroke-width="2"/>
+</svg>
diff --git a/config/landing.ts b/config/landing.ts
new file mode 100644
index 00000000..7293b830
--- /dev/null
+++ b/config/landing.ts
@@ -0,0 +1,55 @@
+// Pastel accent palette — peach / lavender / mint
+export const PEACH = "#FFB38E";
+export const LAVENDER = "#D4B3FF";
+export const MINT = "#A1EEBD";
+
+export const SECTION = "mx-auto w-full max-w-6xl px-6";
+
+export const SPRING_BOUNCE = {
+ type: "spring" as const,
+ stiffness: 120,
+ damping: 14,
+};
+export const SPRING_SOFT = {
+ type: "spring" as const,
+ stiffness: 180,
+ damping: 22,
+};
+
+export const STACK = [
+ "Remotion",
+ "React",
+ "Next.js",
+ "Tailwind",
+ "TypeScript",
+ "shadcn/ui",
+ "Vercel",
+] as const;
+
+export type NavLink = {
+ href: string;
+ label: string;
+ /** Hidden on mobile (matches the existing `hidden sm:inline` pattern). */
+ smOnly?: boolean;
+};
+
+export const HOME_NAV: NavLink[] = [
+ { href: "#showcase", label: "Showcase", smOnly: true },
+ { href: "#components", label: "Components", smOnly: true },
+ { href: "#use-cases", label: "Use cases", smOnly: true },
+ { href: "/sponsors", label: "Sponsors", smOnly: true },
+ { href: "/docs/getting-started/introduction", label: "Docs" },
+];
+
+export const SPONSORS_NAV: NavLink[] = [
+ { href: "/#showcase", label: "Showcase", smOnly: true },
+ { href: "/#components", label: "Components", smOnly: true },
+ { href: "/sponsors", label: "Sponsors", smOnly: true },
+ { href: "/docs/getting-started/introduction", label: "Docs" },
+];
+
+export const FOOTER_NAV: NavLink[] = [
+ { href: "/docs/getting-started/introduction", label: "Docs" },
+ { href: "https://github.com/remocn/remocn", label: "GitHub" },
+ { href: "/sponsors", label: "Sponsors" },
+];
diff --git a/config/sponsors.ts b/config/sponsors.ts
new file mode 100644
index 00000000..b8cdeb34
--- /dev/null
+++ b/config/sponsors.ts
@@ -0,0 +1,93 @@
+import { LAVENDER, MINT, PEACH } from "@/config/landing";
+
+export type SponsorTier = "partner" | "builder" | "supporter";
+
+export type Sponsor = {
+ id: string;
+ name: string;
+ logoUrl: string;
+ website: string;
+ tier: SponsorTier;
+ /** Default 1. Manually tweak to fix logos that look too small or too big. */
+ logoScale?: number;
+ /** Optional Tailwind classes for fine-tuning a specific logo. */
+ customStyles?: string;
+};
+
+export const sponsors: Sponsor[] = [
+ // Add sponsors here by hand. Empty by default — the page renders an
+ // empty-state CTA when no sponsors exist.
+ //
+ // Example:
+ // {
+ // id: "acme-corp",
+ // name: "Acme Corp",
+ // logoUrl: "/sponsors/acme.svg",
+ // website: "https://acme.com",
+ // tier: "partner",
+ // logoScale: 1.2,
+ // customStyles: "mt-2 opacity-90",
+ // },
+];
+
+export type BillingMode = "monthly" | "one-time";
+
+export type Tier = {
+ id: "supporter" | "builder" | "partner";
+ price: number;
+ name: string;
+ tagline: string;
+ perks: string[];
+ glow: string;
+ highlighted: boolean;
+ monthlyUrl: string;
+ oneTimeUrl: string;
+};
+
+export const tiers: Tier[] = [
+ {
+ id: "supporter",
+ price: 5,
+ name: "Supporter",
+ tagline: "Show some love",
+ perks: [
+ "Sponsor badge in our Discord",
+ "Our endless gratitude",
+ "Early access to release notes",
+ ],
+ glow: MINT,
+ highlighted: false,
+ monthlyUrl: "https://www.creem.io/payment/prod_1PtwNGZVHfXZgChBSCwmJA",
+ oneTimeUrl: "https://www.creem.io/payment/prod_66n8fHDfCVmwSNswCHL5OH",
+ },
+ {
+ id: "builder",
+ price: 10,
+ name: "Builder",
+ tagline: "Help us build",
+ perks: [
+ "Everything in Supporter",
+ "Your name in the repository README",
+ "Priority on feature requests",
+ ],
+ glow: PEACH,
+ highlighted: false,
+ monthlyUrl: "https://www.creem.io/payment/prod_6fpKhXCzk9KkbA4FSUzGIU",
+ oneTimeUrl: "https://www.creem.io/payment/prod_1C3cCbVoYsDPJrdlDhrhSG",
+ },
+ {
+ id: "partner",
+ price: 50,
+ name: "Partner",
+ tagline: "Power the project",
+ perks: [
+ "Everything in Builder",
+ "Your logo featured on the main remocn landing page",
+ "Direct line to the maintainers",
+ ],
+ glow: LAVENDER,
+ highlighted: true,
+ monthlyUrl: "https://www.creem.io/payment/prod_6tdCLqKgSA14P0IEVZ2GaG",
+ oneTimeUrl: "https://www.creem.io/payment/prod_2sb9zG2oJn232utqh5TN1S",
+ },
+];
diff --git a/content/docs/compositions/changelog-bite.mdx b/content/docs/compositions/changelog-bite.mdx
new file mode 100644
index 00000000..f445dbab
--- /dev/null
+++ b/content/docs/compositions/changelog-bite.mdx
@@ -0,0 +1,68 @@
+---
+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" />
+
+A square (1080×1080) micro-loop built for changelog posts and social. A centered squircle card holds a before/after diff that's revealed by a frosted glass shutter sweeping left-to-right, with a pulsing "New" pill anchored top-right. The loop is gapless: the first 10 frames and the last 15 frames mirror each other (scale `0.95 → 1.0`, opacity `0 → 1`) so you can export straight to GIF/MP4 without a visible seam.
+
+Pass any React node into `oldContent` and `newContent` to drop in your own before/after — the defaults render a simple code diff so the composition works out of the box.
+
+## 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." },
+ ]}
+/>
+
+## Notes
+
+<Note title="The loop is already seamless">
+ The first 10 frames and the last 15 frames intentionally mirror each other so a flat loop never shows a seam. Don't add a separate fade-in / fade-out on top of the composition — you'll double up the envelope.
+</Note>
+
+<Note title="Portrait format">
+ Setting `format="portrait"` only changes the inner card aspect. Your `<Composition>` still needs to declare `compositionWidth: 1080`, `compositionHeight: 1350` to match.
+</Note>
diff --git a/content/docs/compositions/meta.json b/content/docs/compositions/meta.json
index 870aea45..613a3837 100644
--- a/content/docs/compositions/meta.json
+++ b/content/docs/compositions/meta.json
@@ -14,6 +14,10 @@
"---App States & Journeys---",
"dashboard-populate",
"pipeline-journey",
- "pricing-tier-focus"
+ "pricing-tier-focus",
+ "---Use Case Templates---",
+ "product-launch-trailer",
+ "changelog-bite",
+ "visual-docs-snippet"
]
}
diff --git a/content/docs/compositions/product-launch-trailer.mdx b/content/docs/compositions/product-launch-trailer.mdx
new file mode 100644
index 00000000..e266e4bc
--- /dev/null
+++ b/content/docs/compositions/product-launch-trailer.mdx
@@ -0,0 +1,67 @@
+---
+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" />
+
+A drop-in launch video for Product Hunt, Twitter, or your homepage hero. The composition opens on a pulsing logo, punches through it with a zoom transition, assembles a faux app shell (glass code block on the left, bento grid on the right) inside a 3D camera fly-over, and lands on a "v1.0 is live" headline with a soft confetti burst.
+
+Built around four pastel tokens — peach, lavender, mint, and the `#141318` obsidian background — so it sits naturally next to the rest of the remocn registry. Every camera move uses the soft `cubic-bezier(0.16, 1, 0.3, 1)` easing for the "tactile" feel.
+
+## 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." },
+ ]}
+/>
+
+## Notes
+
+<Note title="Audio hooks are stubbed">
+ The composition leaves a `// TODO(audio)` marker at frames 38 and 200 — those are the natural anchors for a `TransitionWhoosh` and a `SuccessChime` once the audio module ships. The visual track works on its own with no audio.
+</Note>
+
+<Note title="3D camera">
+ The fly-over uses a `perspective: 2000px` parent and a `transformStyle: preserve-3d` child. If you nest this composition inside another transformed container, the 3D may flatten — render it at the top level for best results.
+</Note>
diff --git a/content/docs/compositions/visual-docs-snippet.mdx b/content/docs/compositions/visual-docs-snippet.mdx
new file mode 100644
index 00000000..5dcbc703
--- /dev/null
+++ b/content/docs/compositions/visual-docs-snippet.mdx
@@ -0,0 +1,68 @@
+---
+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" />
+
+A medium-paced explainer for "docs that move." A virtual cursor traces a soft bezier arc to a CTA button inside a faux browser, clicks with a micro-bounce, then a peach bounding box draws itself around the changed element while a side tooltip stagger-fades in to explain the action. The cursor exits to the bottom-right after the click so it never blocks the new content.
+
+The background is a flat `#141318` — no particles, no gradients — to keep the focus on the action being taught.
+
+## 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." },
+ ]}
+/>
+
+## Notes
+
+<Note title="Retiming">
+ All five timing anchors (`cursorEndFrame`, `clickFrame`, `boundingBoxFrame`, `tooltipFrame`, `settleFrame`) are derived from the single `clickFrame` prop. Bumping `clickFrame` shifts the whole flow without breaking sync.
+</Note>
+
+<Note title="Cursor coordinates are absolute">
+ `cursorStart` and `cursorTarget` are in the 1280×720 frame's coordinate space, not relative to the browser window. If you re-aim the cursor, also re-aim `cursorTarget` so it lands on the centered CTA — or fork the file and edit the `BUTTON` constants directly.
+</Note>
diff --git a/content/docs/index.mdx b/content/docs/index.mdx
deleted file mode 100644
index a1978b35..00000000
--- a/content/docs/index.mdx
+++ /dev/null
@@ -1,4 +0,0 @@
----
-title: Index
-description: index
----
diff --git a/lib/layout.shared.tsx b/lib/layout.shared.tsx
index 20265e3b..1dab78de 100644
--- a/lib/layout.shared.tsx
+++ b/lib/layout.shared.tsx
@@ -1,15 +1,21 @@
+import Image from "next/image";
import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";
export function baseOptions(): BaseLayoutProps {
return {
nav: {
- title: <span className="font-semibold tracking-tight">remocn</span>,
+ title: (
+ <span className="flex items-center gap-2 font-semibold tracking-tight">
+ <Image src="/logo.svg" alt="remocn logo" width={20} height={20} />
+ remocn
+ </span>
+ ),
},
githubUrl: "https://github.com/remocn/remocn",
links: [
{
text: "Documentation",
- url: "/docs",
+ url: "/docs/getting-started/introduction",
active: "nested-url",
},
],
diff --git a/public/logo.svg b/public/logo.svg
new file mode 100644
index 00000000..f814dd09
--- /dev/null
+++ b/public/logo.svg
@@ -0,0 +1,11 @@
+<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
+<rect width="100" height="100" rx="14" fill="black"/>
+<path d="M83.9141 45.7661C86.9141 47.4982 86.9141 51.829 83.9141 53.561L31.4141 83.8716C28.4141 85.6036 24.6641 83.4382 24.6641 79.9741L24.6641 19.353C24.6641 15.8889 28.4141 13.7235 31.4141 15.4556L83.9141 45.7661Z" fill="white" stroke="white"/>
+<path d="M68.998 31.3979C68.998 50.3798 68.998 63.307 68.998 67.3979" stroke="black" stroke-width="10"/>
+<path d="M53.0625 16.75C53.0625 48.2803 53.0625 69.7535 53.0625 76.5488" stroke="black" stroke-width="10"/>
+<path d="M37.127 9.88379C37.127 51.1081 37.127 79.1833 37.127 88.0679" stroke="black" stroke-width="10"/>
+<path d="M31.1318 15.8618L43.1074 22.7646" stroke="white" stroke-width="2"/>
+<path d="M63.291 34.439L75.2617 41.3579" stroke="white" stroke-width="2"/>
+<path d="M46.6641 74.4712L59.208 67.2573" stroke="white" stroke-width="2"/>
+<path d="M76.0205 57.5371L82.9848 53.5226" stroke="white" stroke-width="2"/>
+</svg>
diff --git a/public/r/ai-generate-overlay.json b/public/r/ai-generate-overlay.json
new file mode 100644
index 00000000..52bb6cef
--- /dev/null
+++ b/public/r/ai-generate-overlay.json
@@ -0,0 +1,18 @@
+{
+ "$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/ai-generation-canvas.json b/public/r/ai-generation-canvas.json
new file mode 100644
index 00000000..84ae2b3b
--- /dev/null
+++ b/public/r/ai-generation-canvas.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "ai-generation-canvas",
+ "title": "AI Generation Canvas",
+ "description": "A prompt input transforms into a header, then a skeleton dashboard flips into populated cards.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/ai-generation-canvas/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface AIGenerationCanvasProps {\n prompt?: string;\n accentColor?: string;\n cardCount?: number;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction MiniBarChart({ accentColor }: { accentColor: string }) {\n const bars = [0.4, 0.7, 0.55, 0.85, 0.5, 0.95, 0.65];\n return (\n <div\n style={{\n display: \"flex\",\n alignItems: \"flex-end\",\n gap: 6,\n height: 60,\n marginTop: 12,\n }}\n >\n {bars.map((h, i) => (\n <div\n key={i}\n style={{\n flex: 1,\n height: `${h * 100}%`,\n background: accentColor,\n borderRadius: 3,\n opacity: 0.3 + h * 0.7,\n }}\n />\n ))}\n </div>\n );\n}\n\nfunction MiniRows() {\n return (\n <div\n style={{\n marginTop: 12,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 6,\n }}\n >\n {[0.9, 0.7, 0.85, 0.6].map((w, i) => (\n <div\n key={i}\n style={{\n height: 8,\n width: `${w * 100}%`,\n background: \"rgba(255,255,255,0.12)\",\n borderRadius: 4,\n }}\n />\n ))}\n </div>\n );\n}\n\nfunction StatBlock({\n accentColor,\n value,\n}: {\n accentColor: string;\n value: string;\n}) {\n return (\n <div style={{ marginTop: 8 }}>\n <div\n style={{\n fontSize: 36,\n fontWeight: 700,\n color: \"white\",\n letterSpacing: \"-0.03em\",\n fontFamily: FONT_FAMILY,\n }}\n >\n {value}\n </div>\n <div\n style={{\n fontSize: 12,\n color: accentColor,\n marginTop: 2,\n fontWeight: 500,\n }}\n >\n +12.4% this week\n </div>\n </div>\n );\n}\n\nfunction CardContent({\n index,\n accentColor,\n}: {\n index: number;\n accentColor: string;\n}) {\n const titles = [\n \"Revenue\",\n \"Active Users\",\n \"Sessions\",\n \"Conversion\",\n \"Retention\",\n \"Latency\",\n ];\n const values = [\"$48.2k\", \"12,840\", \"9.1k\", \"3.8%\", \"76%\", \"142ms\"];\n const variant = index % 3;\n return (\n <div style={{ width: \"100%\", height: \"100%\", padding: 18 }}>\n <div\n style={{\n fontSize: 12,\n color: \"rgba(255,255,255,0.55)\",\n fontWeight: 500,\n fontFamily: FONT_FAMILY,\n letterSpacing: \"0.02em\",\n textTransform: \"uppercase\",\n }}\n >\n {titles[index % titles.length]}\n </div>\n {variant === 0 ? (\n <>\n <StatBlock\n accentColor={accentColor}\n value={values[index % values.length]}\n />\n <MiniBarChart accentColor={accentColor} />\n </>\n ) : variant === 1 ? (\n <>\n <StatBlock\n accentColor={accentColor}\n value={values[index % values.length]}\n />\n <MiniRows />\n </>\n ) : (\n <>\n <MiniBarChart accentColor={accentColor} />\n <MiniRows />\n </>\n )}\n </div>\n );\n}\n\nexport function AIGenerationCanvas({\n prompt = \"Generate a dashboard\",\n accentColor = \"#7c3aed\",\n cardCount = 4,\n speed = 1,\n className,\n}: AIGenerationCanvasProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n // Phase boundaries\n const P1_END = 40;\n const P2_END = 70;\n const P3_END = 100;\n\n // Phase 1: typewriter\n const charCount = Math.floor(\n interpolate(frame, [4, P1_END - 2], [0, prompt.length], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n }),\n );\n const typedText = prompt.substring(0, charCount);\n const cursorVisible = Math.floor(frame / 12) % 2 === 0;\n\n // Phase 2: input -> header transform\n const transformProgress = spring({\n frame: frame - P1_END,\n fps,\n config: { mass: 1, damping: 16, stiffness: 110 },\n durationInFrames: 30,\n });\n\n // Centered input dimensions\n const inputCenteredW = 640;\n const inputCenteredH = 80;\n const headerW = 1200;\n const headerH = 56;\n const inputW = interpolate(\n transformProgress,\n [0, 1],\n [inputCenteredW, headerW],\n );\n const inputH = interpolate(\n transformProgress,\n [0, 1],\n [inputCenteredH, headerH],\n );\n const inputTop = interpolate(transformProgress, [0, 1], [320, 40]);\n const inputRadius = interpolate(transformProgress, [0, 1], [16, 12]);\n const inputFontSize = interpolate(transformProgress, [0, 1], [24, 14]);\n\n // Phase 3: skeleton fade\n const skeletonOpacity = interpolate(frame, [P2_END, P3_END], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n // Shimmer position\n const shimmerPos = ((frame * 1.5) % 200) - 50;\n\n // Phase 4: card flip reveal (after frame 100)\n const cards = Array.from({ length: cardCount });\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background: \"#0a0a0a\",\n overflow: \"hidden\",\n fontFamily: FONT_FAMILY,\n }}\n >\n {/* subtle grid backdrop */}\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 maskImage:\n \"radial-gradient(ellipse at center, black 40%, transparent 80%)\",\n }}\n />\n\n {/* Skeleton + content cards grid (Phase 3 onward) */}\n {frame > P2_END && (\n <div\n style={{\n position: \"absolute\",\n top: 130,\n left: 40,\n right: 40,\n bottom: 40,\n display: \"grid\",\n gridTemplateColumns: `repeat(${Math.min(cardCount, 4)}, 1fr)`,\n gap: 20,\n }}\n >\n {cards.map((_, i) => {\n const cardStart = P3_END + i * 8;\n const flipProgress = spring({\n frame: frame - cardStart,\n fps,\n config: { mass: 0.9, damping: 14, stiffness: 100 },\n durationInFrames: 30,\n });\n const rotation = interpolate(flipProgress, [0, 1], [0, 180]);\n const showSkeleton = rotation < 90;\n\n return (\n <div\n key={i}\n style={{\n position: \"relative\",\n perspective: 1200,\n opacity: skeletonOpacity,\n }}\n >\n <div\n style={{\n position: \"relative\",\n width: \"100%\",\n height: \"100%\",\n transformStyle: \"preserve-3d\",\n transform: `rotateY(${rotation}deg)`,\n }}\n >\n {/* Skeleton face */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: \"#141416\",\n border: \"1px solid rgba(255,255,255,0.06)\",\n borderRadius: 14,\n backfaceVisibility: \"hidden\",\n overflow: \"hidden\",\n visibility: showSkeleton ? \"visible\" : \"hidden\",\n }}\n >\n {/* shimmer overlay */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: `linear-gradient(110deg, transparent 0%, transparent ${shimmerPos}%, ${accentColor}22 ${shimmerPos + 15}%, transparent ${shimmerPos + 30}%)`,\n }}\n />\n <div style={{ padding: 18 }}>\n <div\n style={{\n width: \"40%\",\n height: 10,\n background: \"rgba(255,255,255,0.08)\",\n borderRadius: 4,\n }}\n />\n <div\n style={{\n width: \"70%\",\n height: 28,\n background: \"rgba(255,255,255,0.08)\",\n borderRadius: 6,\n marginTop: 14,\n }}\n />\n <div\n style={{\n width: \"100%\",\n height: 60,\n background: \"rgba(255,255,255,0.05)\",\n borderRadius: 6,\n marginTop: 16,\n }}\n />\n </div>\n </div>\n {/* Content face */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: \"#141416\",\n border: `1px solid ${accentColor}33`,\n borderRadius: 14,\n backfaceVisibility: \"hidden\",\n transform: \"rotateY(180deg)\",\n overflow: \"hidden\",\n boxShadow: `0 0 0 1px ${accentColor}22, 0 20px 40px rgba(0,0,0,0.4)`,\n }}\n >\n <CardContent index={i} accentColor={accentColor} />\n </div>\n </div>\n </div>\n );\n })}\n </div>\n )}\n\n {/* Prompt input — centered then transforms to header */}\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: inputTop,\n width: inputW,\n height: inputH,\n marginLeft: -inputW / 2,\n background: \"rgba(20,20,22,0.85)\",\n border: `1px solid ${accentColor}55`,\n borderRadius: inputRadius,\n backdropFilter: \"blur(12px)\",\n display: \"flex\",\n alignItems: \"center\",\n padding: \"0 20px\",\n boxShadow:\n transformProgress < 0.5\n ? `0 0 0 6px ${accentColor}11, 0 30px 80px rgba(0,0,0,0.6)`\n : \"0 8px 24px rgba(0,0,0,0.4)\",\n }}\n >\n {/* sparkle icon */}\n <div\n style={{\n width: 20,\n height: 20,\n marginRight: 12,\n color: accentColor,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flexShrink: 0,\n }}\n >\n <svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"currentColor\">\n <path d=\"M12 2l2.5 6.5L21 11l-6.5 2.5L12 20l-2.5-6.5L3 11l6.5-2.5L12 2z\" />\n </svg>\n </div>\n <div\n style={{\n color: \"white\",\n fontSize: inputFontSize,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n }}\n >\n {typedText}\n {frame < P1_END && cursorVisible && (\n <span\n style={{\n display: \"inline-block\",\n width: 2,\n height: inputFontSize,\n background: accentColor,\n marginLeft: 2,\n verticalAlign: \"middle\",\n }}\n />\n )}\n </div>\n {transformProgress > 0.6 && (\n <div\n style={{\n marginLeft: \"auto\",\n display: \"flex\",\n gap: 8,\n alignItems: \"center\",\n opacity: (transformProgress - 0.6) / 0.4,\n }}\n >\n <div\n style={{\n width: 8,\n height: 8,\n borderRadius: 4,\n background: accentColor,\n boxShadow: `0 0 12px ${accentColor}`,\n }}\n />\n <div\n style={{\n fontSize: 12,\n color: \"rgba(255,255,255,0.6)\",\n fontWeight: 500,\n }}\n >\n Generating\n </div>\n </div>\n )}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/ai-generation-canvas.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/animated-bar-chart.json b/public/r/animated-bar-chart.json
index 15936071..d074c97a 100644
--- a/public/r/animated-bar-chart.json
+++ b/public/r/animated-bar-chart.json
@@ -3,7 +3,9 @@
"name": "animated-bar-chart",
"title": "Animated Bar Chart",
"description": "Bars spring up from the baseline in a staggered cascade.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/animated-bar-chart/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/animated-line-chart.json b/public/r/animated-line-chart.json
index 82a1b640..53c43de8 100644
--- a/public/r/animated-line-chart.json
+++ b/public/r/animated-line-chart.json
@@ -3,7 +3,9 @@
"name": "animated-line-chart",
"title": "Animated Line Chart",
"description": "Line chart whose SVG path draws on from left to right with a leading dot.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/animated-line-chart/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/blur-reveal.json b/public/r/blur-reveal.json
index 4407d72a..77064ff0 100644
--- a/public/r/blur-reveal.json
+++ b/public/r/blur-reveal.json
@@ -3,7 +3,9 @@
"name": "blur-reveal",
"title": "Blur Reveal",
"description": "Text fades in from a heavy blur into sharp focus.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/blur-reveal/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/bounding-box-selector.json b/public/r/bounding-box-selector.json
index fe99f142..3520d859 100644
--- a/public/r/bounding-box-selector.json
+++ b/public/r/bounding-box-selector.json
@@ -3,7 +3,9 @@
"name": "bounding-box-selector",
"title": "Bounding Box Selector",
"description": "Figma-style selection rectangle appears around any element.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/bounding-box-selector/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/browser-flow.json b/public/r/browser-flow.json
new file mode 100644
index 00000000..d4f10e59
--- /dev/null
+++ b/public/r/browser-flow.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "browser-flow",
+ "title": "Browser Flow",
+ "description": "Full Safari/Chrome simulation: typed URL, progress bar, page render, scroll, and a virtual cursor click.",
+ "dependencies": [
+ "remotion"
+ ],
+ "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",
+ "type": "registry:component",
+ "target": "components/remocn/browser-flow.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/brush-stroke-simulator.json b/public/r/brush-stroke-simulator.json
new file mode 100644
index 00000000..f66a7146
--- /dev/null
+++ b/public/r/brush-stroke-simulator.json
@@ -0,0 +1,18 @@
+{
+ "$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
new file mode 100644
index 00000000..e90f2c1c
--- /dev/null
+++ b/public/r/changelog-bite.json
@@ -0,0 +1,18 @@
+{
+ "$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/chat-to-preview-layout.json b/public/r/chat-to-preview-layout.json
index eecc079d..8b822be2 100644
--- a/public/r/chat-to-preview-layout.json
+++ b/public/r/chat-to-preview-layout.json
@@ -3,14 +3,16 @@
"name": "chat-to-preview-layout",
"title": "Chat to Preview Layout",
"description": "Two-column layout where chat shrinks and preview expands.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/chat-to-preview-layout/index.tsx",
- "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Easing, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface ChatToPreviewLayoutProps {\n chat?: ReactNode;\n preview?: ReactNode;\n startChatRatio?: number;\n endChatRatio?: number;\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\nfunction DefaultChat() {\n const messages = [\n { from: \"user\", text: \"Build me a landing page\" },\n { from: \"ai\", text: \"Sure — what should it feature?\" },\n { from: \"user\", text: \"Hero, pricing, footer.\" },\n { from: \"ai\", text: \"On it. Generating now...\" },\n ];\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n padding: 24,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 12,\n fontFamily: FONT_FAMILY,\n background: \"#111\",\n }}\n >\n <div\n style={{\n color: \"#888\",\n fontSize: 12,\n fontWeight: 600,\n letterSpacing: \"0.08em\",\n textTransform: \"uppercase\",\n marginBottom: 8,\n }}\n >\n Chat\n </div>\n {messages.map((m, i) => (\n <div\n key={i}\n style={{\n alignSelf: m.from === \"user\" ? \"flex-end\" : \"flex-start\",\n background: m.from === \"user\" ? \"#0ea5e9\" : \"#262626\",\n color: \"white\",\n padding: \"10px 14px\",\n borderRadius: 14,\n fontSize: 14,\n maxWidth: \"85%\",\n }}\n >\n {m.text}\n </div>\n ))}\n </div>\n );\n}\n\nfunction DefaultPreview() {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: \"white\",\n display: \"flex\",\n flexDirection: \"column\",\n fontFamily: FONT_FAMILY,\n }}\n >\n <div\n style={{\n height: 36,\n background: \"#f4f4f5\",\n borderBottom: \"1px solid #e4e4e7\",\n display: \"flex\",\n alignItems: \"center\",\n gap: 6,\n padding: \"0 12px\",\n }}\n >\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: 999,\n background: \"#ef4444\",\n }}\n />\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: 999,\n background: \"#f59e0b\",\n }}\n />\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: 999,\n background: \"#22c55e\",\n }}\n />\n </div>\n <div\n style={{\n flex: 1,\n padding: 32,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 16,\n }}\n >\n <div\n style={{\n fontSize: 36,\n fontWeight: 700,\n letterSpacing: \"-0.03em\",\n color: \"#0a0a0a\",\n }}\n >\n Ship faster.\n </div>\n <div style={{ fontSize: 16, color: \"#71717a\", maxWidth: 360 }}>\n The fastest way to launch your idea. Built with Remotion.\n </div>\n <div\n style={{\n marginTop: 12,\n display: \"inline-flex\",\n background: \"#0a0a0a\",\n color: \"white\",\n padding: \"10px 18px\",\n borderRadius: 10,\n alignSelf: \"flex-start\",\n fontSize: 14,\n fontWeight: 600,\n }}\n >\n Get started\n </div>\n </div>\n </div>\n );\n}\n\nexport function ChatToPreviewLayout({\n chat,\n preview,\n startChatRatio = 0.5,\n endChatRatio = 0.25,\n background = \"#0a0a0a\",\n speed = 1,\n className,\n}: ChatToPreviewLayoutProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n // Apple's signature ease — slow start, dramatic settle. Replaces the older\n // symmetric bezier so the morph feels deliberate instead of mechanical.\n const APPLE_EASE = Easing.bezier(0.16, 1, 0.3, 1);\n\n const morphStart = durationInFrames * 0.1;\n const morphEnd = durationInFrames * 0.7;\n\n const ratio = interpolate(\n frame,\n [morphStart, morphEnd],\n [startChatRatio, endChatRatio],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: APPLE_EASE,\n },\n );\n\n // Right (preview) panel reveal: fade in + slide left into its growing slot.\n // Anchored to the same morph window so it feels like the chat is physically\n // dragging the preview into existence.\n const previewOpacity = interpolate(\n frame,\n [morphStart, morphEnd],\n [0, 1],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: APPLE_EASE,\n },\n );\n const previewTx = interpolate(\n frame,\n [morphStart, morphEnd],\n [40, 0],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: APPLE_EASE,\n },\n );\n\n const chatBasis = `${ratio * 100}%`;\n const previewBasis = `${(1 - ratio) * 100}%`;\n\n // Inner content min-widths. These are the lever that prevents text from\n // re-flowing inside the columns as the parent flex-basis morphs — content\n // is rendered at a fixed virtual width, then clipped by `overflow: hidden`\n // on the outer column. No reflow → no jumping characters.\n const CHAT_INNER_MIN = 520;\n const PREVIEW_INNER_MIN = 720;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n padding: 32,\n display: \"flex\",\n gap: 16,\n }}\n >\n <div\n style={{\n flexBasis: chatBasis,\n flexGrow: 0,\n flexShrink: 0,\n position: \"relative\",\n overflow: \"hidden\",\n borderRadius: 16,\n border: \"1px solid rgba(255,255,255,0.08)\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n minWidth: CHAT_INNER_MIN,\n }}\n >\n {chat ?? <DefaultChat />}\n </div>\n </div>\n <div\n style={{\n flexBasis: previewBasis,\n flexGrow: 0,\n flexShrink: 0,\n position: \"relative\",\n overflow: \"hidden\",\n borderRadius: 16,\n border: \"1px solid rgba(255,255,255,0.08)\",\n opacity: previewOpacity,\n transform: `translateX(${previewTx}px)`,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n minWidth: PREVIEW_INNER_MIN,\n }}\n >\n {preview ?? <DefaultPreview />}\n </div>\n </div>\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Easing, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface ChatToPreviewLayoutProps {\n chat?: ReactNode;\n preview?: ReactNode;\n startChatRatio?: number;\n endChatRatio?: number;\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\nfunction DefaultChat() {\n const messages = [\n { from: \"user\", text: \"Build me a landing page\" },\n { from: \"ai\", text: \"Sure — what should it feature?\" },\n { from: \"user\", text: \"Hero, pricing, footer.\" },\n { from: \"ai\", text: \"On it. Generating now...\" },\n ];\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n padding: 24,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 12,\n fontFamily: FONT_FAMILY,\n background: \"#111\",\n }}\n >\n <div\n style={{\n color: \"#888\",\n fontSize: 12,\n fontWeight: 600,\n letterSpacing: \"0.08em\",\n textTransform: \"uppercase\",\n marginBottom: 8,\n }}\n >\n Chat\n </div>\n {messages.map((m, i) => (\n <div\n key={i}\n style={{\n alignSelf: m.from === \"user\" ? \"flex-end\" : \"flex-start\",\n background: m.from === \"user\" ? \"#0ea5e9\" : \"#262626\",\n color: \"white\",\n padding: \"10px 14px\",\n borderRadius: 14,\n fontSize: 14,\n maxWidth: \"85%\",\n }}\n >\n {m.text}\n </div>\n ))}\n </div>\n );\n}\n\nfunction DefaultPreview() {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: \"white\",\n display: \"flex\",\n flexDirection: \"column\",\n fontFamily: FONT_FAMILY,\n }}\n >\n <div\n style={{\n height: 36,\n background: \"#f4f4f5\",\n borderBottom: \"1px solid #e4e4e7\",\n display: \"flex\",\n alignItems: \"center\",\n gap: 6,\n padding: \"0 12px\",\n }}\n >\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: 999,\n background: \"#ef4444\",\n }}\n />\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: 999,\n background: \"#f59e0b\",\n }}\n />\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: 999,\n background: \"#22c55e\",\n }}\n />\n </div>\n <div\n style={{\n flex: 1,\n padding: 32,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 16,\n }}\n >\n <div\n style={{\n fontSize: 36,\n fontWeight: 700,\n letterSpacing: \"-0.03em\",\n color: \"#0a0a0a\",\n }}\n >\n Ship faster.\n </div>\n <div style={{ fontSize: 16, color: \"#71717a\", maxWidth: 360 }}>\n The fastest way to launch your idea. Built with Remotion.\n </div>\n <div\n style={{\n marginTop: 12,\n display: \"inline-flex\",\n background: \"#0a0a0a\",\n color: \"white\",\n padding: \"10px 18px\",\n borderRadius: 10,\n alignSelf: \"flex-start\",\n fontSize: 14,\n fontWeight: 600,\n }}\n >\n Get started\n </div>\n </div>\n </div>\n );\n}\n\nexport function ChatToPreviewLayout({\n chat,\n preview,\n startChatRatio = 0.5,\n endChatRatio = 0.25,\n background = \"#0a0a0a\",\n speed = 1,\n className,\n}: ChatToPreviewLayoutProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n // Apple's signature ease — slow start, dramatic settle. Replaces the older\n // symmetric bezier so the morph feels deliberate instead of mechanical.\n const APPLE_EASE = Easing.bezier(0.16, 1, 0.3, 1);\n\n const morphStart = durationInFrames * 0.1;\n const morphEnd = durationInFrames * 0.7;\n\n const ratio = interpolate(\n frame,\n [morphStart, morphEnd],\n [startChatRatio, endChatRatio],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: APPLE_EASE,\n },\n );\n\n // Right (preview) panel reveal: fade in + slide left into its growing slot.\n // Anchored to the same morph window so it feels like the chat is physically\n // dragging the preview into existence.\n const previewOpacity = interpolate(frame, [morphStart, morphEnd], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: APPLE_EASE,\n });\n const previewTx = interpolate(frame, [morphStart, morphEnd], [40, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: APPLE_EASE,\n });\n\n const chatBasis = `${ratio * 100}%`;\n const previewBasis = `${(1 - ratio) * 100}%`;\n\n // Inner content min-widths. These are the lever that prevents text from\n // re-flowing inside the columns as the parent flex-basis morphs — content\n // is rendered at a fixed virtual width, then clipped by `overflow: hidden`\n // on the outer column. No reflow → no jumping characters.\n const CHAT_INNER_MIN = 520;\n const PREVIEW_INNER_MIN = 720;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n padding: 32,\n display: \"flex\",\n gap: 16,\n }}\n >\n <div\n style={{\n flexBasis: chatBasis,\n flexGrow: 0,\n flexShrink: 0,\n position: \"relative\",\n overflow: \"hidden\",\n borderRadius: 16,\n border: \"1px solid rgba(255,255,255,0.08)\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n minWidth: CHAT_INNER_MIN,\n }}\n >\n {chat ?? <DefaultChat />}\n </div>\n </div>\n <div\n style={{\n flexBasis: previewBasis,\n flexGrow: 0,\n flexShrink: 0,\n position: \"relative\",\n overflow: \"hidden\",\n borderRadius: 16,\n border: \"1px solid rgba(255,255,255,0.08)\",\n opacity: previewOpacity,\n transform: `translateX(${previewTx}px)`,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n minWidth: PREVIEW_INNER_MIN,\n }}\n >\n {preview ?? <DefaultPreview />}\n </div>\n </div>\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/chat-to-preview-layout.tsx"
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/chromatic-aberration-wipe.json b/public/r/chromatic-aberration-wipe.json
new file mode 100644
index 00000000..c6faf0a4
--- /dev/null
+++ b/public/r/chromatic-aberration-wipe.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "chromatic-aberration-wipe",
+ "title": "Chromatic Aberration Wipe",
+ "description": "An ultra-fast slide transition with an RGB glitch on the peak frames.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/chromatic-aberration-wipe/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Easing, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface ChromaticAberrationWipeProps {\n from?: ReactNode;\n to?: ReactNode;\n direction?: \"left\" | \"right\";\n transitionStart?: number;\n transitionDuration?: number;\n aberrationOffset?: number;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction DefaultPanel({ label, color }: { label: string; color: string }) {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: color,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 96,\n fontWeight: 700,\n letterSpacing: \"-0.05em\",\n }}\n >\n {label}\n </div>\n );\n}\n\nexport function ChromaticAberrationWipe({\n from,\n to,\n direction = \"left\",\n transitionStart,\n transitionDuration = 7,\n aberrationOffset = 8,\n speed = 1,\n className,\n}: ChromaticAberrationWipeProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const start =\n typeof transitionStart === \"number\"\n ? transitionStart\n : Math.floor(durationInFrames * 0.4);\n\n const progress = interpolate(\n frame,\n [start, start + transitionDuration],\n [0, 1],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.bezier(0.65, 0, 0.35, 1),\n },\n );\n\n const sign = direction === \"left\" ? -1 : 1;\n\n const fromOffset = progress * 100 * sign;\n const toOffset = (1 - progress) * 100 * -sign;\n\n const transformX = (offset: number) => `translateX(${offset}%)`;\n\n const peakStart = start + Math.max(1, Math.floor(transitionDuration * 0.25));\n const peakEnd = start + Math.max(peakStart + 1, Math.ceil(transitionDuration * 0.75));\n const inPeak = frame >= peakStart && frame <= peakEnd;\n const filter = inPeak\n ? `drop-shadow(-${aberrationOffset}px 0 0 rgba(255,0,0,0.8)) drop-shadow(${aberrationOffset}px 0 0 rgba(0,255,255,0.8))`\n : \"none\";\n\n const fromContent = from ?? <DefaultPanel label=\"Scene A\" color=\"#0f172a\" />;\n const toContent = to ?? <DefaultPanel label=\"Scene B\" color=\"#06b6d4\" />;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n background: \"black\",\n filter,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: transformX(fromOffset),\n willChange: \"transform\",\n }}\n >\n {fromContent}\n </div>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: transformX(toOffset),\n willChange: \"transform\",\n }}\n >\n {toContent}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/chromatic-aberration-wipe.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/code-accordion.json b/public/r/code-accordion.json
index d6b8a34c..9f5b237d 100644
--- a/public/r/code-accordion.json
+++ b/public/r/code-accordion.json
@@ -3,7 +3,9 @@
"name": "code-accordion",
"title": "Code Accordion",
"description": "A code window that springs a range of lines closed and replaces them with a \"N lines collapsed\" placeholder.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/code-accordion/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/code-diff-wipe.json b/public/r/code-diff-wipe.json
index a6e40c68..385edc43 100644
--- a/public/r/code-diff-wipe.json
+++ b/public/r/code-diff-wipe.json
@@ -3,7 +3,9 @@
"name": "code-diff-wipe",
"title": "Code Diff Wipe",
"description": "Before/after code reveal via clip-path wipe with a handle marker.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/code-diff-wipe/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/cursor-flow.json b/public/r/cursor-flow.json
index 8760b7e1..63a95eab 100644
--- a/public/r/cursor-flow.json
+++ b/public/r/cursor-flow.json
@@ -3,14 +3,16 @@
"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"],
+ "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 = { startFrame: number; endFrame: number; holdEnd: number };\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",
+ "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/dashboard-populate.json b/public/r/dashboard-populate.json
new file mode 100644
index 00000000..e847a504
--- /dev/null
+++ b/public/r/dashboard-populate.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "dashboard-populate",
+ "title": "Dashboard Populate",
+ "description": "An empty dashboard cascades to life with KPI count-ups, bar bounces, line traces, and a donut fill.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/dashboard-populate/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface DashboardPopulateProps {\n accentColor?: string;\n kpiTarget?: number;\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 STRUCTURE_END = 15;\n\nfunction formatNumber(n: number) {\n return n.toLocaleString(\"en-US\");\n}\n\nconst BAR_VALUES = [0.55, 0.78, 0.42, 0.92, 0.66];\n\n// Hand-coded line chart points (in 0..100 viewBox space)\nconst LINE_POINTS: Array<[number, number]> = [\n [0, 70],\n [16, 55],\n [32, 62],\n [48, 38],\n [64, 45],\n [80, 22],\n [100, 12],\n];\n\nfunction buildLinePath() {\n return LINE_POINTS.map(([x, y], i) => `${i === 0 ? \"M\" : \"L\"}${x},${y}`).join(\n \" \",\n );\n}\n\nfunction Tile({\n title,\n children,\n structureOpacity,\n}: {\n title: string;\n children: React.ReactNode;\n structureOpacity: number;\n}) {\n return (\n <div\n style={{\n position: \"relative\",\n background: \"linear-gradient(180deg, #131316 0%, #0d0d10 100%)\",\n border: \"1px solid rgba(255,255,255,0.08)\",\n borderRadius: 16,\n padding: 24,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 16,\n opacity: structureOpacity,\n boxShadow:\n \"inset 0 1px 0 rgba(255,255,255,0.04), 0 20px 40px rgba(0,0,0,0.3)\",\n }}\n >\n <div\n style={{\n fontSize: 12,\n fontWeight: 500,\n textTransform: \"uppercase\",\n letterSpacing: \"0.08em\",\n color: \"rgba(255,255,255,0.5)\",\n }}\n >\n {title}\n </div>\n <div style={{ flex: 1, position: \"relative\" }}>{children}</div>\n </div>\n );\n}\n\nexport function DashboardPopulate({\n accentColor = \"#22c55e\",\n kpiTarget = 128400,\n speed = 1,\n className,\n}: DashboardPopulateProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n // Phase 1: structure fade in 0..15\n const structureOpacity = interpolate(frame, [0, STRUCTURE_END], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n // KPI count up\n const kpiSpring = spring({\n frame: frame - STRUCTURE_END,\n fps,\n config: { damping: 20, stiffness: 80, mass: 1 },\n durationInFrames: 60,\n });\n const kpiValue = Math.floor(kpiSpring * kpiTarget);\n const kpiDelta = interpolate(kpiSpring, [0, 1], [0, 12.4]);\n\n // Bar chart springs (staggered)\n const barProgress = BAR_VALUES.map((_, i) =>\n spring({\n frame: frame - STRUCTURE_END - i * 4,\n fps,\n config: { damping: 11, stiffness: 140, mass: 1 },\n durationInFrames: 40,\n }),\n );\n\n // Line chart stroke-dashoffset\n const linePath = buildLinePath();\n // approx length for viewBox 100x100 — use a generous constant; we set\n // pathLength on the path so dashoffset works in normalized units\n const lineProgress = interpolate(\n frame,\n [STRUCTURE_END + 4, STRUCTURE_END + 50],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n // Donut\n const donutTarget = 0.72;\n const donutSpring = spring({\n frame: frame - STRUCTURE_END - 6,\n fps,\n config: { damping: 13, stiffness: 110, mass: 1 },\n durationInFrames: 50,\n });\n const donutValue = donutSpring * donutTarget;\n const donutR = 70;\n const donutCircum = 2 * Math.PI * donutR;\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 padding: 64,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 24,\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.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px)\",\n backgroundSize: \"48px 48px\",\n }}\n />\n <div\n style={{\n position: \"relative\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n opacity: structureOpacity,\n }}\n >\n <div>\n <div\n style={{\n fontSize: 28,\n fontWeight: 600,\n letterSpacing: \"-0.02em\",\n }}\n >\n Overview\n </div>\n <div\n style={{\n fontSize: 14,\n opacity: 0.5,\n marginTop: 4,\n }}\n >\n Last 30 days\n </div>\n </div>\n <div\n style={{\n display: \"flex\",\n gap: 8,\n fontSize: 12,\n fontFamily: MONO_FAMILY,\n }}\n >\n {[\"1D\", \"7D\", \"30D\", \"ALL\"].map((l, i) => (\n <div\n key={l}\n style={{\n padding: \"6px 12px\",\n borderRadius: 8,\n background:\n i === 2 ? \"rgba(255,255,255,0.1)\" : \"rgba(255,255,255,0.03)\",\n border: \"1px solid rgba(255,255,255,0.06)\",\n }}\n >\n {l}\n </div>\n ))}\n </div>\n </div>\n\n <div\n style={{\n position: \"relative\",\n flex: 1,\n display: \"grid\",\n gridTemplateColumns: \"1fr 1fr\",\n gridTemplateRows: \"1fr 1fr\",\n gap: 24,\n }}\n >\n {/* KPI */}\n <Tile title=\"Revenue\" structureOpacity={structureOpacity}>\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n gap: 12,\n height: \"100%\",\n justifyContent: \"center\",\n }}\n >\n <div\n style={{\n fontSize: 64,\n fontWeight: 700,\n letterSpacing: \"-0.04em\",\n fontVariantNumeric: \"tabular-nums\",\n fontFamily: MONO_FAMILY,\n }}\n >\n ${formatNumber(kpiValue)}\n </div>\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 8,\n fontSize: 14,\n color: accentColor,\n }}\n >\n <span style={{ fontWeight: 600 }}>+{kpiDelta.toFixed(1)}%</span>\n <span style={{ opacity: 0.5, color: \"white\" }}>\n vs last month\n </span>\n </div>\n </div>\n </Tile>\n\n {/* Bar chart */}\n <Tile title=\"Sessions\" structureOpacity={structureOpacity}>\n <svg\n viewBox=\"0 0 200 100\"\n preserveAspectRatio=\"none\"\n style={{ width: \"100%\", height: \"100%\" }}\n >\n {/* axes */}\n <line\n x1=\"0\"\n y1=\"100\"\n x2=\"200\"\n y2=\"100\"\n stroke=\"rgba(255,255,255,0.15)\"\n strokeWidth=\"0.5\"\n />\n {[25, 50, 75].map((y) => (\n <line\n key={y}\n x1=\"0\"\n y1={y}\n x2=\"200\"\n y2={y}\n stroke=\"rgba(255,255,255,0.06)\"\n strokeWidth=\"0.5\"\n strokeDasharray=\"2 2\"\n />\n ))}\n {BAR_VALUES.map((v, i) => {\n const barH = v * 90 * barProgress[i];\n const barW = 24;\n const x = 16 + i * 36;\n const y = 100 - barH;\n return (\n <rect\n key={i}\n x={x}\n y={y}\n width={barW}\n height={barH}\n rx={3}\n fill={accentColor}\n opacity={0.85}\n />\n );\n })}\n </svg>\n </Tile>\n\n {/* Line chart */}\n <Tile title=\"Active users\" structureOpacity={structureOpacity}>\n <svg\n viewBox=\"0 0 100 100\"\n preserveAspectRatio=\"none\"\n style={{ width: \"100%\", height: \"100%\" }}\n >\n <line\n x1=\"0\"\n y1=\"100\"\n x2=\"100\"\n y2=\"100\"\n stroke=\"rgba(255,255,255,0.15)\"\n strokeWidth=\"0.4\"\n />\n {[20, 40, 60, 80].map((y) => (\n <line\n key={y}\n x1=\"0\"\n y1={y}\n x2=\"100\"\n y2={y}\n stroke=\"rgba(255,255,255,0.06)\"\n strokeWidth=\"0.4\"\n strokeDasharray=\"1.5 1.5\"\n />\n ))}\n <path\n d={linePath}\n fill=\"none\"\n stroke={accentColor}\n strokeWidth=\"1.6\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n pathLength={1}\n strokeDasharray={1}\n strokeDashoffset={1 - lineProgress}\n />\n {/* dots */}\n {LINE_POINTS.map(([px, py], i) => {\n const dotProgress = interpolate(\n lineProgress,\n [\n i / (LINE_POINTS.length - 1),\n i / (LINE_POINTS.length - 1) + 0.05,\n ],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n return (\n <circle\n key={i}\n cx={px}\n cy={py}\n r={1.2}\n fill={accentColor}\n opacity={dotProgress}\n />\n );\n })}\n </svg>\n </Tile>\n\n {/* Donut */}\n <Tile title=\"Conversion\" structureOpacity={structureOpacity}>\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n height: \"100%\",\n position: \"relative\",\n }}\n >\n <svg width=\"180\" height=\"180\" viewBox=\"0 0 180 180\">\n <circle\n cx=\"90\"\n cy=\"90\"\n r={donutR}\n fill=\"none\"\n stroke=\"rgba(255,255,255,0.08)\"\n strokeWidth=\"14\"\n />\n <circle\n cx=\"90\"\n cy=\"90\"\n r={donutR}\n fill=\"none\"\n stroke={accentColor}\n strokeWidth=\"14\"\n strokeLinecap=\"round\"\n strokeDasharray={`${donutCircum * donutValue} ${donutCircum}`}\n transform=\"rotate(-90 90 90)\"\n />\n </svg>\n <div\n style={{\n position: \"absolute\",\n fontSize: 36,\n fontWeight: 700,\n letterSpacing: \"-0.02em\",\n fontFamily: MONO_FAMILY,\n fontVariantNumeric: \"tabular-nums\",\n }}\n >\n {(donutValue * 100).toFixed(1)}%\n </div>\n </div>\n </Tile>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/dashboard-populate.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/data-flow-pipes.json b/public/r/data-flow-pipes.json
index 7c85f98c..bdf3b331 100644
--- a/public/r/data-flow-pipes.json
+++ b/public/r/data-flow-pipes.json
@@ -3,14 +3,16 @@
"name": "data-flow-pipes",
"title": "Data Flow Pipes",
"description": "Glowing data packets travel along SVG bezier pipes between system nodes, leaving fading trails.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/data-flow-pipes/index.tsx",
- "content": "\"use client\";\n\nimport { interpolate, useCurrentFrame } from \"remotion\";\n\nexport interface DataFlowNode {\n id: string;\n x: number;\n y: number;\n label?: string;\n}\n\nexport interface DataFlowEdge {\n from: string;\n to: string;\n /** Frame when the pulse on this edge starts. */\n startFrame?: number;\n}\n\nexport interface DataFlowPipesProps {\n nodes?: DataFlowNode[];\n edges?: DataFlowEdge[];\n pipeColor?: string;\n pulseColor?: string;\n pulseLength?: number;\n pulseDuration?: number;\n background?: string;\n nodeColor?: 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_NODES: DataFlowNode[] = [\n { id: \"client\", x: 140, y: 360, label: \"Client\" },\n { id: \"api\", x: 460, y: 200, label: \"API\" },\n { id: \"queue\", x: 460, y: 520, label: \"Queue\" },\n { id: \"db\", x: 820, y: 360, label: \"Database\" },\n { id: \"cdn\", x: 1140, y: 200, label: \"CDN\" },\n { id: \"log\", x: 1140, y: 520, label: \"Logs\" },\n];\n\nconst DEFAULT_EDGES: DataFlowEdge[] = [\n { from: \"client\", to: \"api\", startFrame: 0 },\n { from: \"client\", to: \"queue\", startFrame: 12 },\n { from: \"api\", to: \"db\", startFrame: 24 },\n { from: \"queue\", to: \"db\", startFrame: 36 },\n { from: \"db\", to: \"cdn\", startFrame: 48 },\n { from: \"db\", to: \"log\", startFrame: 56 },\n];\n\n/**\n * Build a smooth cubic bezier path string between two points. The control\n * points are pulled toward the midpoint and offset perpendicular for natural\n * routing — straight lines look like circuit traces, curves look like data.\n */\nfunction bezierPath(\n a: { x: number; y: number },\n b: { x: number; y: number },\n) {\n const dx = b.x - a.x;\n const dy = b.y - a.y;\n // Stronger horizontal handles → routes look like API/DB diagrams.\n const handle = Math.max(60, Math.abs(dx) * 0.5);\n const c1x = a.x + handle;\n const c1y = a.y;\n const c2x = b.x - handle;\n const c2y = b.y;\n return `M ${a.x} ${a.y} C ${c1x} ${c1y}, ${c2x} ${c2y}, ${b.x} ${b.y}`;\n}\n\n/**\n * Approximate arc length of a cubic bezier by sampling. Gives a stable number\n * to drive `strokeDashoffset` against — purely numeric, no DOM `getTotalLength`.\n */\nfunction bezierLength(\n a: { x: number; y: number },\n b: { x: number; y: number },\n) {\n const handle = Math.max(60, Math.abs(b.x - a.x) * 0.5);\n const c1 = { x: a.x + handle, y: a.y };\n const c2 = { x: b.x - handle, y: b.y };\n let len = 0;\n let prev = a;\n const steps = 32;\n for (let i = 1; i <= steps; i++) {\n const t = i / steps;\n const u = 1 - t;\n const p = {\n x: u * u * u * a.x + 3 * u * u * t * c1.x + 3 * u * t * t * c2.x + t * t * t * b.x,\n y: u * u * u * a.y + 3 * u * u * t * c1.y + 3 * u * t * t * c2.y + t * t * t * b.y,\n };\n len += Math.hypot(p.x - prev.x, p.y - prev.y);\n prev = p;\n }\n return len;\n}\n\nexport function DataFlowPipes({\n nodes = DEFAULT_NODES,\n edges = DEFAULT_EDGES,\n pipeColor = \"#1f1f23\",\n pulseColor = \"#22d3ee\",\n pulseLength = 60,\n pulseDuration = 36,\n background = \"#050505\",\n nodeColor = \"#0a0a0a\",\n textColor = \"#fafafa\",\n speed = 1,\n className,\n}: DataFlowPipesProps) {\n const frame = useCurrentFrame() * speed;\n const nodeMap = new Map(nodes.map((n) => [n.id, 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 <svg\n width=\"100%\"\n height=\"100%\"\n viewBox=\"0 0 1280 720\"\n style={{ position: \"absolute\", inset: 0 }}\n >\n {/* Static pipes */}\n {edges.map((edge, i) => {\n const a = nodeMap.get(edge.from);\n const b = nodeMap.get(edge.to);\n if (!a || !b) return null;\n const path = bezierPath(a, b);\n return (\n <path\n key={`pipe-${i}`}\n d={path}\n fill=\"none\"\n stroke={pipeColor}\n strokeWidth={3}\n strokeLinecap=\"round\"\n />\n );\n })}\n\n {/* Pulses with trailing ghosts */}\n {edges.map((edge, i) => {\n const a = nodeMap.get(edge.from);\n const b = nodeMap.get(edge.to);\n if (!a || !b) return null;\n const path = bezierPath(a, b);\n const len = bezierLength(a, b);\n const startFrame = edge.startFrame ?? 0;\n const localFrame = frame - startFrame;\n\n // Pulse offset: starts above the path (out of view), travels down\n // until the dash sits past the end. We use a wide gap (9999) so the\n // dash pattern shows exactly one bright segment.\n const offset = interpolate(\n localFrame,\n [0, pulseDuration],\n [len + pulseLength, -pulseLength],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n // Hide pulse before its start window.\n if (localFrame < 0 || localFrame > pulseDuration + 6) {\n return null;\n }\n\n return (\n <g key={`pulse-${i}`}>\n {/* Trail copies — fading and offset back along the path. */}\n {[0.15, 0.3, 0.55].map((alpha, idx) => (\n <path\n key={`trail-${idx}`}\n d={path}\n fill=\"none\"\n stroke={pulseColor}\n strokeWidth={3}\n strokeLinecap=\"round\"\n strokeDasharray={`${pulseLength} 9999`}\n strokeDashoffset={offset + (idx + 1) * 8}\n opacity={alpha}\n />\n ))}\n {/* Bright head */}\n <path\n d={path}\n fill=\"none\"\n stroke={pulseColor}\n strokeWidth={3.5}\n strokeLinecap=\"round\"\n strokeDasharray={`${pulseLength} 9999`}\n strokeDashoffset={offset}\n style={{\n filter: `drop-shadow(0 0 8px ${pulseColor})`,\n }}\n />\n </g>\n );\n })}\n </svg>\n\n {/* Nodes */}\n {nodes.map((node) => (\n <div\n key={node.id}\n style={{\n position: \"absolute\",\n left: node.x - 60,\n top: node.y - 24,\n width: 120,\n height: 48,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: nodeColor,\n color: textColor,\n border: \"1px solid rgba(255,255,255,0.08)\",\n borderRadius: 10,\n fontSize: 14,\n fontWeight: 600,\n letterSpacing: \"-0.01em\",\n boxShadow: \"0 12px 30px rgba(0,0,0,0.4)\",\n }}\n >\n {node.label ?? node.id}\n </div>\n ))}\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport { interpolate, useCurrentFrame } from \"remotion\";\n\nexport interface DataFlowNode {\n id: string;\n x: number;\n y: number;\n label?: string;\n}\n\nexport interface DataFlowEdge {\n from: string;\n to: string;\n /** Frame when the pulse on this edge starts. */\n startFrame?: number;\n}\n\nexport interface DataFlowPipesProps {\n nodes?: DataFlowNode[];\n edges?: DataFlowEdge[];\n pipeColor?: string;\n pulseColor?: string;\n pulseLength?: number;\n pulseDuration?: number;\n background?: string;\n nodeColor?: 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_NODES: DataFlowNode[] = [\n { id: \"client\", x: 140, y: 360, label: \"Client\" },\n { id: \"api\", x: 460, y: 200, label: \"API\" },\n { id: \"queue\", x: 460, y: 520, label: \"Queue\" },\n { id: \"db\", x: 820, y: 360, label: \"Database\" },\n { id: \"cdn\", x: 1140, y: 200, label: \"CDN\" },\n { id: \"log\", x: 1140, y: 520, label: \"Logs\" },\n];\n\nconst DEFAULT_EDGES: DataFlowEdge[] = [\n { from: \"client\", to: \"api\", startFrame: 0 },\n { from: \"client\", to: \"queue\", startFrame: 12 },\n { from: \"api\", to: \"db\", startFrame: 24 },\n { from: \"queue\", to: \"db\", startFrame: 36 },\n { from: \"db\", to: \"cdn\", startFrame: 48 },\n { from: \"db\", to: \"log\", startFrame: 56 },\n];\n\n/**\n * Build a smooth cubic bezier path string between two points. The control\n * points are pulled toward the midpoint and offset perpendicular for natural\n * routing — straight lines look like circuit traces, curves look like data.\n */\nfunction bezierPath(a: { x: number; y: number }, b: { x: number; y: number }) {\n const dx = b.x - a.x;\n const dy = b.y - a.y;\n // Stronger horizontal handles → routes look like API/DB diagrams.\n const handle = Math.max(60, Math.abs(dx) * 0.5);\n const c1x = a.x + handle;\n const c1y = a.y;\n const c2x = b.x - handle;\n const c2y = b.y;\n return `M ${a.x} ${a.y} C ${c1x} ${c1y}, ${c2x} ${c2y}, ${b.x} ${b.y}`;\n}\n\n/**\n * Approximate arc length of a cubic bezier by sampling. Gives a stable number\n * to drive `strokeDashoffset` against — purely numeric, no DOM `getTotalLength`.\n */\nfunction bezierLength(\n a: { x: number; y: number },\n b: { x: number; y: number },\n) {\n const handle = Math.max(60, Math.abs(b.x - a.x) * 0.5);\n const c1 = { x: a.x + handle, y: a.y };\n const c2 = { x: b.x - handle, y: b.y };\n let len = 0;\n let prev = a;\n const steps = 32;\n for (let i = 1; i <= steps; i++) {\n const t = i / steps;\n const u = 1 - t;\n const p = {\n x:\n u * u * u * a.x +\n 3 * u * u * t * c1.x +\n 3 * u * t * t * c2.x +\n t * t * t * b.x,\n y:\n u * u * u * a.y +\n 3 * u * u * t * c1.y +\n 3 * u * t * t * c2.y +\n t * t * t * b.y,\n };\n len += Math.hypot(p.x - prev.x, p.y - prev.y);\n prev = p;\n }\n return len;\n}\n\nexport function DataFlowPipes({\n nodes = DEFAULT_NODES,\n edges = DEFAULT_EDGES,\n pipeColor = \"#1f1f23\",\n pulseColor = \"#22d3ee\",\n pulseLength = 60,\n pulseDuration = 36,\n background = \"#050505\",\n nodeColor = \"#0a0a0a\",\n textColor = \"#fafafa\",\n speed = 1,\n className,\n}: DataFlowPipesProps) {\n const frame = useCurrentFrame() * speed;\n const nodeMap = new Map(nodes.map((n) => [n.id, 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 <svg\n width=\"100%\"\n height=\"100%\"\n viewBox=\"0 0 1280 720\"\n style={{ position: \"absolute\", inset: 0 }}\n >\n {/* Static pipes */}\n {edges.map((edge, i) => {\n const a = nodeMap.get(edge.from);\n const b = nodeMap.get(edge.to);\n if (!a || !b) return null;\n const path = bezierPath(a, b);\n return (\n <path\n key={`pipe-${i}`}\n d={path}\n fill=\"none\"\n stroke={pipeColor}\n strokeWidth={3}\n strokeLinecap=\"round\"\n />\n );\n })}\n\n {/* Pulses with trailing ghosts */}\n {edges.map((edge, i) => {\n const a = nodeMap.get(edge.from);\n const b = nodeMap.get(edge.to);\n if (!a || !b) return null;\n const path = bezierPath(a, b);\n const len = bezierLength(a, b);\n const startFrame = edge.startFrame ?? 0;\n const localFrame = frame - startFrame;\n\n // Pulse offset: starts above the path (out of view), travels down\n // until the dash sits past the end. We use a wide gap (9999) so the\n // dash pattern shows exactly one bright segment.\n const offset = interpolate(\n localFrame,\n [0, pulseDuration],\n [len + pulseLength, -pulseLength],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n // Hide pulse before its start window.\n if (localFrame < 0 || localFrame > pulseDuration + 6) {\n return null;\n }\n\n return (\n <g key={`pulse-${i}`}>\n {/* Trail copies — fading and offset back along the path. */}\n {[0.15, 0.3, 0.55].map((alpha, idx) => (\n <path\n key={`trail-${idx}`}\n d={path}\n fill=\"none\"\n stroke={pulseColor}\n strokeWidth={3}\n strokeLinecap=\"round\"\n strokeDasharray={`${pulseLength} 9999`}\n strokeDashoffset={offset + (idx + 1) * 8}\n opacity={alpha}\n />\n ))}\n {/* Bright head */}\n <path\n d={path}\n fill=\"none\"\n stroke={pulseColor}\n strokeWidth={3.5}\n strokeLinecap=\"round\"\n strokeDasharray={`${pulseLength} 9999`}\n strokeDashoffset={offset}\n style={{\n filter: `drop-shadow(0 0 8px ${pulseColor})`,\n }}\n />\n </g>\n );\n })}\n </svg>\n\n {/* Nodes */}\n {nodes.map((node) => (\n <div\n key={node.id}\n style={{\n position: \"absolute\",\n left: node.x - 60,\n top: node.y - 24,\n width: 120,\n height: 48,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: nodeColor,\n color: textColor,\n border: \"1px solid rgba(255,255,255,0.08)\",\n borderRadius: 10,\n fontSize: 14,\n fontWeight: 600,\n letterSpacing: \"-0.01em\",\n boxShadow: \"0 12px 30px rgba(0,0,0,0.4)\",\n }}\n >\n {node.label ?? node.id}\n </div>\n ))}\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/data-flow-pipes.tsx"
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/device-mockup-zoom.json b/public/r/device-mockup-zoom.json
index 46af7fa1..ccd56bf0 100644
--- a/public/r/device-mockup-zoom.json
+++ b/public/r/device-mockup-zoom.json
@@ -3,7 +3,9 @@
"name": "device-mockup-zoom",
"title": "Device Mockup Zoom",
"description": "Pull back from a UI to reveal it inside a device frame.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/device-mockup-zoom/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/directional-wipe.json b/public/r/directional-wipe.json
index 2befd1ff..3cce0bed 100644
--- a/public/r/directional-wipe.json
+++ b/public/r/directional-wipe.json
@@ -3,14 +3,16 @@
"name": "directional-wipe",
"title": "Directional Wipe",
"description": "Slide one scene in while pushing the other out.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/directional-wipe/index.tsx",
- "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Easing, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface DirectionalWipeProps {\n from?: ReactNode;\n to?: ReactNode;\n direction?: \"left\" | \"right\" | \"up\" | \"down\";\n transitionStart?: number;\n transitionDuration?: number;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction DefaultPanel({ label, color }: { label: string; color: string }) {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: color,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 96,\n fontWeight: 700,\n letterSpacing: \"-0.05em\",\n }}\n >\n {label}\n </div>\n );\n}\n\nexport function DirectionalWipe({\n from,\n to,\n direction = \"left\",\n transitionStart,\n transitionDuration = 20,\n speed = 1,\n className,\n}: DirectionalWipeProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const start =\n typeof transitionStart === \"number\"\n ? transitionStart\n : Math.floor(durationInFrames * 0.4);\n\n const progress = interpolate(\n frame,\n [start, start + transitionDuration],\n [0, 1],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.bezier(0.65, 0, 0.35, 1),\n },\n );\n\n const axis: \"x\" | \"y\" =\n direction === \"left\" || direction === \"right\" ? \"x\" : \"y\";\n const sign = direction === \"left\" || direction === \"up\" ? -1 : 1;\n\n const fromOffset = progress * 100 * sign;\n const toOffset = (1 - progress) * 100 * -sign;\n\n const transformFor = (offset: number) =>\n axis === \"x\"\n ? `translateX(${offset}%)`\n : `translateY(${offset}%)`;\n\n const fromContent = from ?? <DefaultPanel label=\"Scene A\" color=\"#0ea5e9\" />;\n const toContent = to ?? <DefaultPanel label=\"Scene B\" color=\"#9333ea\" />;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n background: \"black\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: transformFor(fromOffset),\n willChange: \"transform\",\n }}\n >\n {fromContent}\n </div>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: transformFor(toOffset),\n willChange: \"transform\",\n }}\n >\n {toContent}\n </div>\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Easing, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface DirectionalWipeProps {\n from?: ReactNode;\n to?: ReactNode;\n direction?: \"left\" | \"right\" | \"up\" | \"down\";\n transitionStart?: number;\n transitionDuration?: number;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction DefaultPanel({ label, color }: { label: string; color: string }) {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: color,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 96,\n fontWeight: 700,\n letterSpacing: \"-0.05em\",\n }}\n >\n {label}\n </div>\n );\n}\n\nexport function DirectionalWipe({\n from,\n to,\n direction = \"left\",\n transitionStart,\n transitionDuration = 20,\n speed = 1,\n className,\n}: DirectionalWipeProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const start =\n typeof transitionStart === \"number\"\n ? transitionStart\n : Math.floor(durationInFrames * 0.4);\n\n const progress = interpolate(\n frame,\n [start, start + transitionDuration],\n [0, 1],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.bezier(0.65, 0, 0.35, 1),\n },\n );\n\n const axis: \"x\" | \"y\" =\n direction === \"left\" || direction === \"right\" ? \"x\" : \"y\";\n const sign = direction === \"left\" || direction === \"up\" ? -1 : 1;\n\n const fromOffset = progress * 100 * sign;\n const toOffset = (1 - progress) * 100 * -sign;\n\n const transformFor = (offset: number) =>\n axis === \"x\" ? `translateX(${offset}%)` : `translateY(${offset}%)`;\n\n const fromContent = from ?? <DefaultPanel label=\"Scene A\" color=\"#0ea5e9\" />;\n const toContent = to ?? <DefaultPanel label=\"Scene B\" color=\"#9333ea\" />;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n background: \"black\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: transformFor(fromOffset),\n willChange: \"transform\",\n }}\n >\n {fromContent}\n </div>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: transformFor(toOffset),\n willChange: \"transform\",\n }}\n >\n {toContent}\n </div>\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/directional-wipe.tsx"
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/drag-and-drop-flow.json b/public/r/drag-and-drop-flow.json
index 2113caee..8a4d3e3a 100644
--- a/public/r/drag-and-drop-flow.json
+++ b/public/r/drag-and-drop-flow.json
@@ -3,14 +3,16 @@
"name": "drag-and-drop-flow",
"title": "Drag and Drop Flow",
"description": "Simulated file drag into a dropzone followed by upload progress.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/drag-and-drop-flow/index.tsx",
- "content": "\"use client\";\n\nimport {\n Easing,\n interpolate,\n interpolateColors,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface DragAndDropFlowProps {\n accent?: string;\n dropzoneLabel?: string;\n fileName?: string;\n background?: string;\n speed?: number;\n className?: string;\n}\n\nfunction FileIcon({ color }: { color: string }) {\n return (\n <svg width=\"44\" height=\"56\" viewBox=\"0 0 44 56\" fill=\"none\">\n <path\n d=\"M6 4a4 4 0 014-4h18l12 12v40a4 4 0 01-4 4H10a4 4 0 01-4-4V4z\"\n fill=\"white\"\n stroke={color}\n strokeWidth=\"2\"\n />\n <path d=\"M28 0v8a4 4 0 004 4h8\" stroke={color} strokeWidth=\"2\" fill=\"none\" />\n <rect x=\"12\" y=\"22\" width=\"20\" height=\"2\" rx=\"1\" fill={color} opacity=\"0.5\" />\n <rect x=\"12\" y=\"28\" width=\"16\" height=\"2\" rx=\"1\" fill={color} opacity=\"0.5\" />\n <rect x=\"12\" y=\"34\" width=\"18\" height=\"2\" rx=\"1\" fill={color} opacity=\"0.5\" />\n </svg>\n );\n}\n\nexport function DragAndDropFlow({\n accent = \"#0ea5e9\",\n dropzoneLabel = \"Drop file to upload\",\n fileName = \"design.fig\",\n background = \"#fafafa\",\n speed = 1,\n className,\n}: DragAndDropFlowProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n // Phase split\n const dragEnd = Math.round(durationInFrames * 0.45);\n const highlightEnd = Math.round(durationInFrames * 0.55);\n const progressEnd = durationInFrames;\n\n // Phase 1: file moves from start to center of dropzone\n const dragProgress = interpolate(frame, [0, dragEnd], [0, 1], {\n extrapolateRight: \"clamp\",\n easing: Easing.out(Easing.cubic),\n });\n\n const startX = -220;\n const startY = -120;\n const fileX = interpolate(dragProgress, [0, 1], [startX, 0]);\n const fileY = interpolate(dragProgress, [0, 1], [startY, 0]);\n\n // Phase 2: dropzone border highlights as file approaches\n const borderColor = interpolateColors(\n frame,\n [dragEnd - 10, highlightEnd],\n [\"#d4d4d8\", accent],\n );\n\n // Phase 3: file fades, progress bar grows\n const fileOpacity = interpolate(\n frame,\n [highlightEnd - 4, highlightEnd + 8],\n [1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const progressOpacity = interpolate(\n frame,\n [highlightEnd, highlightEnd + 6],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const progress = interpolate(\n frame,\n [highlightEnd, progressEnd - 4],\n [0, 100],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const dropzoneWidth = 420;\n const dropzoneHeight = 260;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n style={{\n position: \"relative\",\n width: dropzoneWidth,\n height: dropzoneHeight,\n borderRadius: 18,\n border: `2.5px dashed ${borderColor}`,\n background: \"white\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flexDirection: \"column\",\n gap: 14,\n color: \"#71717a\",\n fontSize: 16,\n fontWeight: 500,\n transition: \"none\",\n }}\n >\n <svg width=\"36\" height=\"36\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path\n d=\"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12\"\n stroke={borderColor}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n <span>{dropzoneLabel}</span>\n\n {/* Progress bar (after drop) */}\n <div\n style={{\n position: \"absolute\",\n left: 32,\n right: 32,\n bottom: 32,\n opacity: progressOpacity,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 8,\n }}\n >\n <div\n style={{\n display: \"flex\",\n justifyContent: \"space-between\",\n fontSize: 13,\n color: \"#52525b\",\n }}\n >\n <span>{fileName}</span>\n <span>{Math.round(progress)}%</span>\n </div>\n <div\n style={{\n height: 6,\n borderRadius: 999,\n background: \"#e4e4e7\",\n overflow: \"hidden\",\n }}\n >\n <div\n style={{\n width: `${progress}%`,\n height: \"100%\",\n background: accent,\n borderRadius: 999,\n }}\n />\n </div>\n </div>\n </div>\n\n {/* Animated file icon that moves into the dropzone */}\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n marginLeft: -22,\n marginTop: -28,\n transform: `translate(${fileX}px, ${fileY}px)`,\n opacity: fileOpacity,\n filter: \"drop-shadow(0 8px 16px rgba(0,0,0,0.15))\",\n }}\n >\n <FileIcon color={accent} />\n </div>\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport {\n Easing,\n interpolate,\n interpolateColors,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface DragAndDropFlowProps {\n accent?: string;\n dropzoneLabel?: string;\n fileName?: string;\n background?: string;\n speed?: number;\n className?: string;\n}\n\nfunction FileIcon({ color }: { color: string }) {\n return (\n <svg width=\"44\" height=\"56\" viewBox=\"0 0 44 56\" fill=\"none\">\n <path\n d=\"M6 4a4 4 0 014-4h18l12 12v40a4 4 0 01-4 4H10a4 4 0 01-4-4V4z\"\n fill=\"white\"\n stroke={color}\n strokeWidth=\"2\"\n />\n <path\n d=\"M28 0v8a4 4 0 004 4h8\"\n stroke={color}\n strokeWidth=\"2\"\n fill=\"none\"\n />\n <rect\n x=\"12\"\n y=\"22\"\n width=\"20\"\n height=\"2\"\n rx=\"1\"\n fill={color}\n opacity=\"0.5\"\n />\n <rect\n x=\"12\"\n y=\"28\"\n width=\"16\"\n height=\"2\"\n rx=\"1\"\n fill={color}\n opacity=\"0.5\"\n />\n <rect\n x=\"12\"\n y=\"34\"\n width=\"18\"\n height=\"2\"\n rx=\"1\"\n fill={color}\n opacity=\"0.5\"\n />\n </svg>\n );\n}\n\nexport function DragAndDropFlow({\n accent = \"#0ea5e9\",\n dropzoneLabel = \"Drop file to upload\",\n fileName = \"design.fig\",\n background = \"#fafafa\",\n speed = 1,\n className,\n}: DragAndDropFlowProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n // Phase split\n const dragEnd = Math.round(durationInFrames * 0.45);\n const highlightEnd = Math.round(durationInFrames * 0.55);\n const progressEnd = durationInFrames;\n\n // Phase 1: file moves from start to center of dropzone\n const dragProgress = interpolate(frame, [0, dragEnd], [0, 1], {\n extrapolateRight: \"clamp\",\n easing: Easing.out(Easing.cubic),\n });\n\n const startX = -220;\n const startY = -120;\n const fileX = interpolate(dragProgress, [0, 1], [startX, 0]);\n const fileY = interpolate(dragProgress, [0, 1], [startY, 0]);\n\n // Phase 2: dropzone border highlights as file approaches\n const borderColor = interpolateColors(\n frame,\n [dragEnd - 10, highlightEnd],\n [\"#d4d4d8\", accent],\n );\n\n // Phase 3: file fades, progress bar grows\n const fileOpacity = interpolate(\n frame,\n [highlightEnd - 4, highlightEnd + 8],\n [1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const progressOpacity = interpolate(\n frame,\n [highlightEnd, highlightEnd + 6],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const progress = interpolate(\n frame,\n [highlightEnd, progressEnd - 4],\n [0, 100],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const dropzoneWidth = 420;\n const dropzoneHeight = 260;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n style={{\n position: \"relative\",\n width: dropzoneWidth,\n height: dropzoneHeight,\n borderRadius: 18,\n border: `2.5px dashed ${borderColor}`,\n background: \"white\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flexDirection: \"column\",\n gap: 14,\n color: \"#71717a\",\n fontSize: 16,\n fontWeight: 500,\n transition: \"none\",\n }}\n >\n <svg width=\"36\" height=\"36\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path\n d=\"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12\"\n stroke={borderColor}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n <span>{dropzoneLabel}</span>\n\n {/* Progress bar (after drop) */}\n <div\n style={{\n position: \"absolute\",\n left: 32,\n right: 32,\n bottom: 32,\n opacity: progressOpacity,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 8,\n }}\n >\n <div\n style={{\n display: \"flex\",\n justifyContent: \"space-between\",\n fontSize: 13,\n color: \"#52525b\",\n }}\n >\n <span>{fileName}</span>\n <span>{Math.round(progress)}%</span>\n </div>\n <div\n style={{\n height: 6,\n borderRadius: 999,\n background: \"#e4e4e7\",\n overflow: \"hidden\",\n }}\n >\n <div\n style={{\n width: `${progress}%`,\n height: \"100%\",\n background: accent,\n borderRadius: 999,\n }}\n />\n </div>\n </div>\n </div>\n\n {/* Animated file icon that moves into the dropzone */}\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n marginLeft: -22,\n marginTop: -28,\n transform: `translate(${fileX}px, ${fileY}px)`,\n opacity: fileOpacity,\n filter: \"drop-shadow(0 8px 16px rgba(0,0,0,0.15))\",\n }}\n >\n <FileIcon color={accent} />\n </div>\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/drag-and-drop-flow.tsx"
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/dynamic-grid.json b/public/r/dynamic-grid.json
index bdeb4a25..274b74c2 100644
--- a/public/r/dynamic-grid.json
+++ b/public/r/dynamic-grid.json
@@ -3,7 +3,9 @@
"name": "dynamic-grid",
"title": "Dynamic Grid",
"description": "Subtle moving grid background with configurable cell size and direction.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/dynamic-grid/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/ecosystem-constellation.json b/public/r/ecosystem-constellation.json
new file mode 100644
index 00000000..606e139e
--- /dev/null
+++ b/public/r/ecosystem-constellation.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "ecosystem-constellation",
+ "title": "Ecosystem Constellation",
+ "description": "A central logo orbited by integration satellites with pulsing data lines.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/ecosystem-constellation/index.tsx",
+ "content": "\"use client\";\n\nimport type { ComponentType } from \"react\";\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface EcosystemConstellationProps {\n satelliteCount?: number;\n centerLabel?: 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\";\n\n// Inline brand mark components — stylized for demo identification, drawn from\n// primitive SVG shapes only so the component stays self-contained.\n\nfunction GitHubMark() {\n return (\n <svg viewBox=\"0 0 24 24\" width={30} height={30} aria-hidden=\"true\">\n <path\n fill=\"#fff\"\n d=\"M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.58.11.79-.25.79-.55v-2.06c-3.2.7-3.87-1.36-3.87-1.36-.52-1.33-1.27-1.69-1.27-1.69-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.18 1.76 1.18 1.02 1.75 2.69 1.24 3.35.95.1-.74.4-1.24.72-1.53-2.55-.29-5.24-1.28-5.24-5.7 0-1.26.45-2.29 1.18-3.1-.12-.29-.51-1.46.11-3.05 0 0 .97-.31 3.18 1.18.92-.26 1.91-.39 2.89-.39s1.97.13 2.89.39c2.21-1.49 3.18-1.18 3.18-1.18.62 1.59.23 2.76.11 3.05.74.81 1.18 1.84 1.18 3.1 0 4.43-2.7 5.41-5.27 5.69.41.36.77 1.06.77 2.13v3.16c0 .31.21.67.8.55C20.21 21.39 23.5 17.08 23.5 12 23.5 5.65 18.35.5 12 .5z\"\n />\n </svg>\n );\n}\n\nfunction VercelMark() {\n return (\n <svg viewBox=\"0 0 24 24\" width={28} height={28} aria-hidden=\"true\">\n <path fill=\"#fff\" d=\"M12 2 L23 21 L1 21 Z\" />\n </svg>\n );\n}\n\nfunction StripeMark() {\n return (\n <svg viewBox=\"0 0 24 24\" width={28} height={28} aria-hidden=\"true\">\n <path\n fill=\"#fff\"\n d=\"M13.5 9.6c0-.6.5-.85 1.3-.85 1.15 0 2.6.35 3.75.97V6.16c-1.25-.5-2.5-.7-3.75-.7C11.7 5.46 9.6 7.06 9.6 9.7c0 4.13 5.7 3.47 5.7 5.25 0 .7-.6.93-1.45.93-1.25 0-2.85-.52-4.1-1.2v3.65c1.4.6 2.8.85 4.1.85 3.2 0 5.4-1.55 5.4-4.25-.02-4.45-5.75-3.65-5.75-5.33z\"\n />\n </svg>\n );\n}\n\nfunction SlackMark() {\n return (\n <svg viewBox=\"0 0 24 24\" width={26} height={26} aria-hidden=\"true\">\n <rect x=\"2\" y=\"10\" width=\"9\" height=\"2.5\" rx=\"1.25\" fill=\"#36C5F0\" />\n <rect x=\"13\" y=\"10\" width=\"9\" height=\"2.5\" rx=\"1.25\" fill=\"#2EB67D\" />\n <rect x=\"10\" y=\"2\" width=\"2.5\" height=\"9\" rx=\"1.25\" fill=\"#ECB22E\" />\n <rect x=\"10\" y=\"13\" width=\"2.5\" height=\"9\" rx=\"1.25\" fill=\"#E01E5A\" />\n </svg>\n );\n}\n\nfunction LinearMark() {\n return (\n <svg viewBox=\"0 0 24 24\" width={28} height={28} aria-hidden=\"true\">\n <defs>\n <linearGradient id=\"linear-grad\" x1=\"0\" x2=\"1\" y1=\"0\" y2=\"1\">\n <stop offset=\"0%\" stopColor=\"#fff\" stopOpacity=\"0.95\" />\n <stop offset=\"100%\" stopColor=\"#fff\" stopOpacity=\"0.55\" />\n </linearGradient>\n </defs>\n <circle cx=\"12\" cy=\"12\" r=\"10\" fill=\"url(#linear-grad)\" />\n <path\n d=\"M5 13 L11 19 M5 9 L15 19 M5 5 L19 19 M9 5 L19 15 M13 5 L19 11\"\n stroke=\"#0a0a0a\"\n strokeWidth=\"0.9\"\n strokeLinecap=\"round\"\n opacity=\"0.85\"\n />\n </svg>\n );\n}\n\nfunction FigmaMark() {\n return (\n <svg viewBox=\"0 0 24 24\" width={26} height={26} aria-hidden=\"true\">\n <circle cx=\"9\" cy=\"4\" r=\"3.5\" fill=\"#F24E1E\" />\n <circle cx=\"15\" cy=\"4\" r=\"3.5\" fill=\"#FF7262\" />\n <circle cx=\"9\" cy=\"11\" r=\"3.5\" fill=\"#A259FF\" />\n <circle cx=\"15\" cy=\"11\" r=\"3.5\" fill=\"#1ABCFE\" />\n <circle cx=\"9\" cy=\"18\" r=\"3.5\" fill=\"#0ACF83\" />\n </svg>\n );\n}\n\nfunction NotionMark() {\n return (\n <svg viewBox=\"0 0 24 24\" width={26} height={26} aria-hidden=\"true\">\n <rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"3\" fill=\"#fff\" />\n <path\n d=\"M8 7 V17 M8 7 L16 17 M16 7 V17\"\n stroke=\"#0a0a0a\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n fill=\"none\"\n />\n </svg>\n );\n}\n\nfunction DiscordMark() {\n return (\n <svg viewBox=\"0 0 24 24\" width={28} height={28} aria-hidden=\"true\">\n <path\n fill=\"#fff\"\n d=\"M19.5 4.7A18 18 0 0 0 15 3.3l-.2.4a16.5 16.5 0 0 0-5.6 0L9 3.3a18 18 0 0 0-4.5 1.4C2 8.7 1.4 12.5 1.7 16.3a18 18 0 0 0 5.5 2.8l.4-.6a13 13 0 0 1-2-1l.5-.4a13 13 0 0 0 11.7 0l.5.4a13 13 0 0 1-2 1l.4.6a18 18 0 0 0 5.5-2.8c.4-4.4-.6-8.2-2.7-11.6zM8.5 14c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2 1.7.9 1.7 2-.8 2-1.7 2zm7 0c-.9 0-1.7-.9-1.7-2s.8-2 1.7-2 1.7.9 1.7 2-.8 2-1.7 2z\"\n />\n </svg>\n );\n}\n\ninterface SatelliteBrand {\n Logo: ComponentType;\n bg: string;\n}\n\nconst SATELLITE_BRANDS: SatelliteBrand[] = [\n { Logo: GitHubMark, bg: \"#1f1f23\" },\n { Logo: VercelMark, bg: \"#0a0a0a\" },\n { Logo: StripeMark, bg: \"#635bff\" },\n { Logo: SlackMark, bg: \"#1a1d21\" },\n { Logo: LinearMark, bg: \"#5e6ad2\" },\n { Logo: FigmaMark, bg: \"#1e1e1e\" },\n { Logo: NotionMark, bg: \"#1a1a1a\" },\n { Logo: DiscordMark, bg: \"#5865f2\" },\n];\n\nexport function EcosystemConstellation({\n satelliteCount = 6,\n centerLabel = \"V\",\n accentColor = \"#a855f7\",\n speed = 1,\n className,\n}: EcosystemConstellationProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const count = Math.max(\n 3,\n Math.min(SATELLITE_BRANDS.length, Math.floor(satelliteCount)),\n );\n\n // Center pulse (0..1)\n const pulse = (Math.sin(frame / 12) + 1) / 2;\n const centerScale = 1 + pulse * 0.06;\n\n // Geometry\n const cx = 640;\n const cy = 360;\n const baseRadiusX = 230;\n const baseRadiusY = 180;\n const offscreenRadius = 1200; // 150% of width\n\n // Per-satellite assembly spring (staggered)\n const satellites = Array.from({ length: count }).map((_, i) => {\n const stagger = i * 4;\n const sp = spring({\n frame: frame - stagger,\n fps,\n config: { mass: 1.1, damping: 16, stiffness: 70 },\n durationInFrames: 50,\n });\n const radiusFactor = interpolate(sp, [0, 1], [offscreenRadius, 1]);\n\n // Slight elliptical variation per satellite\n const orbitOffset = i * 22;\n const rX = baseRadiusX + orbitOffset;\n const rY = baseRadiusY + orbitOffset * 0.7;\n // Different angular speed per orbit (slower for outer)\n const angularSpeed = 0.012 - i * 0.0008;\n const baseAngle = (i / count) * Math.PI * 2;\n const angle = baseAngle + frame * angularSpeed;\n\n // Use radiusFactor as a multiplier on the orbit radius\n const x = cx + Math.cos(angle) * rX * radiusFactor;\n const y = cy + Math.sin(angle) * rY * radiusFactor;\n\n // Data pulse: which satellite is currently \"firing\"\n const activeIdx = Math.floor(frame / 30) % count;\n const isActive = activeIdx === i;\n // Within the active 30-frame window, fade the line in/out\n const localFrame = frame - Math.floor(frame / 30) * 30;\n const lineOpacity = isActive\n ? interpolate(localFrame, [0, 8, 22, 30], [0.15, 0.9, 0.9, 0.15], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n })\n : 0.15;\n const satScale = isActive\n ? interpolate(localFrame, [0, 8, 22, 30], [1, 1.1, 1.1, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n })\n : 1;\n\n const brand = SATELLITE_BRANDS[i % SATELLITE_BRANDS.length];\n return {\n x,\n y,\n Logo: brand.Logo,\n color: brand.bg,\n lineOpacity,\n satScale,\n visible: sp > 0.02,\n };\n });\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, #14101e 0%, #05030a 75%)\",\n fontFamily: FONT_FAMILY,\n }}\n >\n <svg\n width=\"100%\"\n height=\"100%\"\n viewBox=\"0 0 1280 720\"\n style={{ position: \"absolute\", inset: 0 }}\n >\n {/* Connection lines */}\n {satellites.map((s, i) => (\n <line\n key={`line-${i}`}\n x1={cx}\n y1={cy}\n x2={s.x}\n y2={s.y}\n stroke={accentColor}\n strokeWidth={2}\n strokeLinecap=\"round\"\n opacity={s.visible ? s.lineOpacity : 0}\n />\n ))}\n\n {/* Center glow */}\n <circle\n cx={cx}\n cy={cy}\n r={70 + pulse * 8}\n fill={accentColor}\n opacity={0.12}\n />\n <circle\n cx={cx}\n cy={cy}\n r={50 + pulse * 4}\n fill={accentColor}\n opacity={0.2}\n />\n </svg>\n\n {/* Center logo */}\n <div\n style={{\n position: \"absolute\",\n left: cx,\n top: cy,\n width: 96,\n height: 96,\n marginLeft: -48,\n marginTop: -48,\n borderRadius: 24,\n background: `linear-gradient(180deg, ${accentColor} 0%, ${accentColor}cc 100%)`,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontWeight: 800,\n fontSize: 52,\n letterSpacing: \"-0.05em\",\n transform: `scale(${centerScale})`,\n boxShadow: `0 0 60px ${accentColor}66, inset 0 1px 0 rgba(255,255,255,0.3)`,\n border: \"1px solid rgba(255,255,255,0.15)\",\n }}\n >\n {centerLabel}\n </div>\n\n {/* Satellites */}\n {satellites.map((s, i) => {\n const Logo = s.Logo;\n return (\n <div\n key={`sat-${i}`}\n style={{\n position: \"absolute\",\n left: s.x,\n top: s.y,\n width: 56,\n height: 56,\n marginLeft: -28,\n marginTop: -28,\n borderRadius: 14,\n background: `linear-gradient(180deg, ${s.color} 0%, ${s.color}dd 100%)`,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n transform: `scale(${s.satScale})`,\n boxShadow: `0 8px 30px ${s.color}66, inset 0 1px 0 rgba(255,255,255,0.18)`,\n border: \"1px solid rgba(255,255,255,0.12)\",\n opacity: s.visible ? 1 : 0,\n willChange: \"transform\",\n }}\n >\n <Logo />\n </div>\n );\n })}\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/ecosystem-constellation.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/frosted-glass-wipe.json b/public/r/frosted-glass-wipe.json
new file mode 100644
index 00000000..b2da7944
--- /dev/null
+++ b/public/r/frosted-glass-wipe.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "frosted-glass-wipe",
+ "title": "Frosted Glass Wipe",
+ "description": "Elegant scene transition through a sliding pane of frosted glass.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/frosted-glass-wipe/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Easing, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface FrostedGlassWipeProps {\n from?: ReactNode;\n to?: ReactNode;\n transitionStart?: number;\n transitionDuration?: number;\n glassBlur?: number;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction DefaultPanel({ label, color }: { label: string; color: string }) {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: color,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 96,\n fontWeight: 700,\n letterSpacing: \"-0.05em\",\n }}\n >\n {label}\n </div>\n );\n}\n\nexport function FrostedGlassWipe({\n from,\n to,\n transitionStart,\n transitionDuration = 30,\n glassBlur = 24,\n speed = 1,\n className,\n}: FrostedGlassWipeProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const start =\n typeof transitionStart === \"number\"\n ? transitionStart\n : Math.floor(durationInFrames * 0.4);\n\n const progress = interpolate(\n frame,\n [start, start + transitionDuration],\n [0, 1],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.bezier(0.6, 0, 0.2, 1),\n },\n );\n\n const glassX = interpolate(progress, [0, 1], [-110, 110]);\n const showB = progress >= 0.5 ? 1 : 0;\n\n const fromContent = from ?? <DefaultPanel label=\"Scene A\" color=\"#0ea5e9\" />;\n const toContent = to ?? <DefaultPanel label=\"Scene B\" color=\"#9333ea\" />;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n background: \"black\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n opacity: 1,\n }}\n >\n {fromContent}\n </div>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n opacity: showB,\n }}\n >\n {toContent}\n </div>\n <div\n style={{\n position: \"absolute\",\n top: 0,\n bottom: 0,\n left: 0,\n width: \"100%\",\n transform: `translateX(${glassX}%)`,\n backdropFilter: `blur(${glassBlur}px)`,\n WebkitBackdropFilter: `blur(${glassBlur}px)`,\n background: \"rgba(255,255,255,0.05)\",\n borderLeft: \"1px solid rgba(255,255,255,0.2)\",\n borderRight: \"1px solid rgba(255,255,255,0.2)\",\n willChange: \"transform\",\n }}\n />\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/frosted-glass-wipe.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/glass-code-block.json b/public/r/glass-code-block.json
index afcf7bb6..f936017c 100644
--- a/public/r/glass-code-block.json
+++ b/public/r/glass-code-block.json
@@ -3,14 +3,16 @@
"name": "glass-code-block",
"title": "Glass Code Block",
"description": "A premium frosted-glass code editor window with a regex tokenizer and line-by-line stagger reveal.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/glass-code-block/index.tsx",
- "content": "\"use client\";\n\nimport { Sequence, interpolate, useCurrentFrame } from \"remotion\";\n\nexport interface GlassCodeBlockProps {\n code?: string;\n title?: string;\n width?: number;\n height?: number;\n fontSize?: number;\n background?: string;\n glassColor?: string;\n staggerFrames?: number;\n showTrafficLights?: boolean;\n speed?: number;\n className?: string;\n}\n\nconst FONT_MONO =\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace\";\n\nconst DEFAULT_CODE = `import { motion } from \"remotion\";\n\n// Generate a hero scene\nexport function Hero() {\n const frame = useCurrentFrame();\n const opacity = frame / 30;\n return <h1 style={{ opacity }}>Hello</h1>;\n}`;\n\n// Minimal regex tokenizer. NOT a real syntax highlighter — just enough to\n// give the eye color anchors. Order matters: comments → strings → keywords.\nconst KEYWORDS = new Set([\n \"import\",\n \"from\",\n \"export\",\n \"function\",\n \"const\",\n \"let\",\n \"var\",\n \"return\",\n \"if\",\n \"else\",\n \"for\",\n \"while\",\n \"new\",\n \"class\",\n \"extends\",\n \"default\",\n \"true\",\n \"false\",\n \"null\",\n \"undefined\",\n]);\n\ntype Token = { text: string; kind: \"code\" | \"comment\" | \"string\" | \"keyword\" | \"number\" };\n\nfunction tokenizeLine(line: string): Token[] {\n // Whole-line comment.\n const trimmed = line.trimStart();\n if (trimmed.startsWith(\"//\")) {\n return [{ text: line, kind: \"comment\" }];\n }\n\n const tokens: Token[] = [];\n // Split keeping delimiters: words, strings, numbers, everything else.\n const re = /(\"[^\"]*\"|'[^']*'|`[^`]*`|\\b\\d+\\b|\\b[A-Za-z_$][\\w$]*\\b|[^\\w\"']+)/g;\n let match: RegExpExecArray | null;\n while ((match = re.exec(line)) !== null) {\n const t = match[0];\n const first = t[0];\n if (first === '\"' || first === \"'\" || first === \"`\") {\n tokens.push({ text: t, kind: \"string\" });\n } else if (/^\\d+$/.test(t)) {\n tokens.push({ text: t, kind: \"number\" });\n } else if (/^[A-Za-z_$][\\w$]*$/.test(t) && KEYWORDS.has(t)) {\n tokens.push({ text: t, kind: \"keyword\" });\n } else {\n tokens.push({ text: t, kind: \"code\" });\n }\n }\n return tokens;\n}\n\nconst TOKEN_COLORS: Record<Token[\"kind\"], string> = {\n code: \"#e4e4e7\",\n comment: \"#52525b\",\n string: \"#86efac\",\n keyword: \"#c4b5fd\",\n number: \"#fcd34d\",\n};\n\nexport function GlassCodeBlock({\n code = DEFAULT_CODE,\n title = \"hero.tsx\",\n width = 760,\n height = 460,\n fontSize = 16,\n background = \"#0a0a0a\",\n glassColor = \"rgba(10, 10, 10, 0.6)\",\n staggerFrames = 4,\n showTrafficLights = true,\n speed = 1,\n className,\n}: GlassCodeBlockProps) {\n const lines = code.split(\"\\n\");\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n {/* Animated background hint behind the glass so the blur has something\n to chew on. Pure CSS — no extra deps. */}\n <BackdropAura />\n\n {/* 1px gradient ring acting as a microborder */}\n <div\n style={{\n position: \"relative\",\n padding: 1,\n borderRadius: 16,\n background:\n \"linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 100%)\",\n width,\n height,\n boxShadow: \"0 50px 120px rgba(0,0,0,0.55)\",\n }}\n >\n <div\n style={{\n width: \"100%\",\n height: \"100%\",\n borderRadius: 15,\n background: glassColor,\n backdropFilter: \"blur(16px)\",\n WebkitBackdropFilter: \"blur(16px)\",\n boxShadow: \"inset 0 1px 0 rgba(255,255,255,0.06)\",\n display: \"flex\",\n flexDirection: \"column\",\n overflow: \"hidden\",\n fontFamily: FONT_MONO,\n }}\n >\n {/* Chrome */}\n <div\n style={{\n height: 40,\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 {showTrafficLights && (\n <>\n <Light color=\"#ff5f57\" />\n <Light color=\"#febc2e\" />\n <Light color=\"#28c840\" />\n </>\n )}\n <div\n style={{\n flex: 1,\n textAlign: \"center\",\n color: \"#a1a1aa\",\n fontSize: 12,\n letterSpacing: \"0.02em\",\n }}\n >\n {title}\n </div>\n </div>\n\n {/* Code body */}\n <div\n style={{\n flex: 1,\n padding: \"20px 24px\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: 4,\n fontSize,\n lineHeight: 1.55,\n }}\n >\n {lines.map((line, i) => (\n <Sequence\n key={i}\n from={Math.round((i * staggerFrames) / speed)}\n layout=\"none\"\n >\n <CodeLine line={line} index={i} fontSize={fontSize} />\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.6,\n }}\n />\n );\n}\n\nfunction CodeLine({\n line,\n index,\n fontSize,\n}: {\n line: string;\n index: number;\n fontSize: number;\n}) {\n const frame = useCurrentFrame();\n const opacity = interpolate(frame, [0, 8], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const ty = interpolate(frame, [0, 8], [4, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const tokens = tokenizeLine(line);\n // Render an empty line as a half-height spacer so blank lines still take\n // visual space without collapsing the gap.\n if (tokens.length === 0) {\n return <div style={{ height: fontSize * 0.8, opacity }} />;\n }\n return (\n <div\n style={{\n opacity,\n transform: `translateY(${ty}px)`,\n whiteSpace: \"pre\",\n display: \"flex\",\n gap: 0,\n }}\n >\n <span style={{ width: 28, color: \"#3f3f46\", userSelect: \"none\" }}>\n {String(index + 1).padStart(2, \" \")}\n </span>\n <span>\n {tokens.map((t, i) => (\n <span key={i} style={{ color: TOKEN_COLORS[t.kind] }}>\n {t.text}\n </span>\n ))}\n </span>\n </div>\n );\n}\n\nfunction BackdropAura() {\n // Slow, low-amplitude blob behind the glass so the backdrop blur has\n // perceptible content to refract.\n const frame = useCurrentFrame();\n const t = frame / 60;\n const x = 50 + Math.sin(t) * 20;\n const y = 50 + Math.cos(t * 0.7) * 15;\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n pointerEvents: \"none\",\n background: `radial-gradient(circle at ${x}% ${y}%, rgba(56,189,248,0.22), transparent 50%), radial-gradient(circle at ${100 - x}% ${100 - y}%, rgba(168,85,247,0.18), transparent 55%)`,\n }}\n />\n );\n}\n",
+ "content": "\"use client\";\n\nimport { Sequence, interpolate, useCurrentFrame } from \"remotion\";\n\nexport interface GlassCodeBlockProps {\n code?: string;\n title?: string;\n width?: number;\n height?: number;\n fontSize?: number;\n background?: string;\n glassColor?: string;\n staggerFrames?: number;\n showTrafficLights?: boolean;\n speed?: number;\n className?: string;\n}\n\nconst FONT_MONO =\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace\";\n\nconst DEFAULT_CODE = `import { motion } from \"remotion\";\n\n// Generate a hero scene\nexport function Hero() {\n const frame = useCurrentFrame();\n const opacity = frame / 30;\n return <h1 style={{ opacity }}>Hello</h1>;\n}`;\n\n// Minimal regex tokenizer. NOT a real syntax highlighter — just enough to\n// give the eye color anchors. Order matters: comments → strings → keywords.\nconst KEYWORDS = new Set([\n \"import\",\n \"from\",\n \"export\",\n \"function\",\n \"const\",\n \"let\",\n \"var\",\n \"return\",\n \"if\",\n \"else\",\n \"for\",\n \"while\",\n \"new\",\n \"class\",\n \"extends\",\n \"default\",\n \"true\",\n \"false\",\n \"null\",\n \"undefined\",\n]);\n\ntype Token = {\n text: string;\n kind: \"code\" | \"comment\" | \"string\" | \"keyword\" | \"number\";\n};\n\nfunction tokenizeLine(line: string): Token[] {\n // Whole-line comment.\n const trimmed = line.trimStart();\n if (trimmed.startsWith(\"//\")) {\n return [{ text: line, kind: \"comment\" }];\n }\n\n const tokens: Token[] = [];\n // Split keeping delimiters: words, strings, numbers, everything else.\n const re = /(\"[^\"]*\"|'[^']*'|`[^`]*`|\\b\\d+\\b|\\b[A-Za-z_$][\\w$]*\\b|[^\\w\"']+)/g;\n let match: RegExpExecArray | null;\n while ((match = re.exec(line)) !== null) {\n const t = match[0];\n const first = t[0];\n if (first === '\"' || first === \"'\" || first === \"`\") {\n tokens.push({ text: t, kind: \"string\" });\n } else if (/^\\d+$/.test(t)) {\n tokens.push({ text: t, kind: \"number\" });\n } else if (/^[A-Za-z_$][\\w$]*$/.test(t) && KEYWORDS.has(t)) {\n tokens.push({ text: t, kind: \"keyword\" });\n } else {\n tokens.push({ text: t, kind: \"code\" });\n }\n }\n return tokens;\n}\n\nconst TOKEN_COLORS: Record<Token[\"kind\"], string> = {\n code: \"#e4e4e7\",\n comment: \"#52525b\",\n string: \"#86efac\",\n keyword: \"#c4b5fd\",\n number: \"#fcd34d\",\n};\n\nexport function GlassCodeBlock({\n code = DEFAULT_CODE,\n title = \"hero.tsx\",\n width = 760,\n height = 460,\n fontSize = 16,\n background = \"#0a0a0a\",\n glassColor = \"rgba(10, 10, 10, 0.6)\",\n staggerFrames = 4,\n showTrafficLights = true,\n speed = 1,\n className,\n}: GlassCodeBlockProps) {\n const lines = code.split(\"\\n\");\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n {/* Animated background hint behind the glass so the blur has something\n to chew on. Pure CSS — no extra deps. */}\n <BackdropAura />\n\n {/* 1px gradient ring acting as a microborder */}\n <div\n style={{\n position: \"relative\",\n padding: 1,\n borderRadius: 16,\n background:\n \"linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 100%)\",\n width,\n height,\n boxShadow: \"0 50px 120px rgba(0,0,0,0.55)\",\n }}\n >\n <div\n style={{\n width: \"100%\",\n height: \"100%\",\n borderRadius: 15,\n background: glassColor,\n backdropFilter: \"blur(16px)\",\n WebkitBackdropFilter: \"blur(16px)\",\n boxShadow: \"inset 0 1px 0 rgba(255,255,255,0.06)\",\n display: \"flex\",\n flexDirection: \"column\",\n overflow: \"hidden\",\n fontFamily: FONT_MONO,\n }}\n >\n {/* Chrome */}\n <div\n style={{\n height: 40,\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 {showTrafficLights && (\n <>\n <Light color=\"#ff5f57\" />\n <Light color=\"#febc2e\" />\n <Light color=\"#28c840\" />\n </>\n )}\n <div\n style={{\n flex: 1,\n textAlign: \"center\",\n color: \"#a1a1aa\",\n fontSize: 12,\n letterSpacing: \"0.02em\",\n }}\n >\n {title}\n </div>\n </div>\n\n {/* Code body */}\n <div\n style={{\n flex: 1,\n padding: \"20px 24px\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: 4,\n fontSize,\n lineHeight: 1.55,\n }}\n >\n {lines.map((line, i) => (\n <Sequence\n key={i}\n from={Math.round((i * staggerFrames) / speed)}\n layout=\"none\"\n >\n <CodeLine line={line} index={i} fontSize={fontSize} />\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.6,\n }}\n />\n );\n}\n\nfunction CodeLine({\n line,\n index,\n fontSize,\n}: {\n line: string;\n index: number;\n fontSize: number;\n}) {\n const frame = useCurrentFrame();\n const opacity = interpolate(frame, [0, 8], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const ty = interpolate(frame, [0, 8], [4, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const tokens = tokenizeLine(line);\n // Render an empty line as a half-height spacer so blank lines still take\n // visual space without collapsing the gap.\n if (tokens.length === 0) {\n return <div style={{ height: fontSize * 0.8, opacity }} />;\n }\n return (\n <div\n style={{\n opacity,\n transform: `translateY(${ty}px)`,\n whiteSpace: \"pre\",\n display: \"flex\",\n gap: 0,\n }}\n >\n <span style={{ width: 28, color: \"#3f3f46\", userSelect: \"none\" }}>\n {String(index + 1).padStart(2, \" \")}\n </span>\n <span>\n {tokens.map((t, i) => (\n <span key={i} style={{ color: TOKEN_COLORS[t.kind] }}>\n {t.text}\n </span>\n ))}\n </span>\n </div>\n );\n}\n\nfunction BackdropAura() {\n // Slow, low-amplitude blob behind the glass so the backdrop blur has\n // perceptible content to refract.\n const frame = useCurrentFrame();\n const t = frame / 60;\n const x = 50 + Math.sin(t) * 20;\n const y = 50 + Math.cos(t * 0.7) * 15;\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n pointerEvents: \"none\",\n background: `radial-gradient(circle at ${x}% ${y}%, rgba(56,189,248,0.22), transparent 50%), radial-gradient(circle at ${100 - x}% ${100 - y}%, rgba(168,85,247,0.18), transparent 55%)`,\n }}\n />\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/glass-code-block.tsx"
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/grid-pixelate-wipe.json b/public/r/grid-pixelate-wipe.json
new file mode 100644
index 00000000..0d32c817
--- /dev/null
+++ b/public/r/grid-pixelate-wipe.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "grid-pixelate-wipe",
+ "title": "Grid Pixelate Wipe",
+ "description": "Dissolve from one scene to the next through a deterministic grid of mask cells.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/grid-pixelate-wipe/index.tsx",
+ "content": "\"use client\";\n\nimport { type ReactNode, useMemo } from \"react\";\nimport { interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface GridPixelateWipeProps {\n from?: ReactNode;\n to?: ReactNode;\n cols?: number;\n rows?: number;\n pattern?: \"wave\" | \"diagonal\" | \"spiral\";\n transitionStart?: number;\n transitionDuration?: number;\n cellFadeFrames?: number;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction DefaultPanel({ label, color }: { label: string; color: string }) {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: color,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 96,\n fontWeight: 700,\n letterSpacing: \"-0.05em\",\n }}\n >\n {label}\n </div>\n );\n}\n\nfunction spiralIndices(cols: number, rows: number): number[][] {\n const grid: number[][] = Array.from({ length: rows }, () =>\n Array(cols).fill(0),\n );\n let top = 0;\n let bottom = rows - 1;\n let left = 0;\n let right = cols - 1;\n let i = 0;\n while (top <= bottom && left <= right) {\n for (let x = left; x <= right; x++) grid[top][x] = i++;\n top++;\n for (let y = top; y <= bottom; y++) grid[y][right] = i++;\n right--;\n if (top <= bottom) {\n for (let x = right; x >= left; x--) grid[bottom][x] = i++;\n bottom--;\n }\n if (left <= right) {\n for (let y = bottom; y >= top; y--) grid[y][left] = i++;\n left--;\n }\n }\n return grid;\n}\n\nexport function GridPixelateWipe({\n from,\n to,\n cols = 12,\n rows = 7,\n pattern = \"wave\",\n transitionStart,\n transitionDuration = 30,\n cellFadeFrames = 4,\n speed = 1,\n className,\n}: GridPixelateWipeProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const start =\n typeof transitionStart === \"number\"\n ? transitionStart\n : Math.floor(durationInFrames * 0.4);\n\n const delays = useMemo(() => {\n const raw: number[][] = Array.from({ length: rows }, () =>\n Array(cols).fill(0),\n );\n const spiral = pattern === \"spiral\" ? spiralIndices(cols, rows) : null;\n for (let y = 0; y < rows; y++) {\n for (let x = 0; x < cols; x++) {\n if (pattern === \"wave\") {\n raw[y][x] = Math.hypot(x - (cols - 1) / 2, y - (rows - 1) / 2);\n } else if (pattern === \"diagonal\") {\n raw[y][x] = x + y;\n } else if (spiral) {\n raw[y][x] = spiral[y][x];\n }\n }\n }\n\n let min = Infinity;\n let max = -Infinity;\n for (let y = 0; y < rows; y++) {\n for (let x = 0; x < cols; x++) {\n if (raw[y][x] < min) min = raw[y][x];\n if (raw[y][x] > max) max = raw[y][x];\n }\n }\n\n const span = Math.max(0, transitionDuration - cellFadeFrames);\n const range = max - min || 1;\n const normalized: number[][] = Array.from({ length: rows }, () =>\n Array(cols).fill(0),\n );\n for (let y = 0; y < rows; y++) {\n for (let x = 0; x < cols; x++) {\n normalized[y][x] = ((raw[y][x] - min) / range) * span;\n }\n }\n return normalized;\n }, [cols, rows, pattern, transitionDuration, cellFadeFrames]);\n\n const fromContent = from ?? <DefaultPanel label=\"Scene A\" color=\"#0f172a\" />;\n const toContent = to ?? <DefaultPanel label=\"Scene B\" color=\"#ec4899\" />;\n\n const cells: ReactNode[] = [];\n for (let y = 0; y < rows; y++) {\n for (let x = 0; x < cols; x++) {\n const delay = delays[y][x];\n const opacity =\n frame < start\n ? 1\n : interpolate(\n frame,\n [start + delay, start + delay + cellFadeFrames],\n [1, 0],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n },\n );\n cells.push(\n <div\n key={`${x}-${y}`}\n style={{\n background: \"black\",\n opacity,\n }}\n />,\n );\n }\n }\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n background: \"black\",\n }}\n >\n <div style={{ position: \"absolute\", inset: 0 }}>{toContent}</div>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"grid\",\n gridTemplateColumns: `repeat(${cols}, 1fr)`,\n gridTemplateRows: `repeat(${rows}, 1fr)`,\n }}\n >\n {cells}\n </div>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n opacity: frame < start ? 1 : 0,\n }}\n >\n {fromContent}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/grid-pixelate-wipe.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/hero-device-assemble.json b/public/r/hero-device-assemble.json
new file mode 100644
index 00000000..bcfc2cd2
--- /dev/null
+++ b/public/r/hero-device-assemble.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "hero-device-assemble",
+ "title": "Hero Device Assemble",
+ "description": "Floating device layers spring together into a laptop or phone mockup, then the screen wakes with a shimmer.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/hero-device-assemble/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface HeroDeviceAssembleProps {\n assembleStart?: number;\n device?: \"laptop\" | \"phone\";\n accentColor?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction MockUI({ accentColor }: { accentColor: string }) {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n flexDirection: \"column\",\n background: \"#0b0b0f\",\n fontFamily: FONT_FAMILY,\n color: \"white\",\n overflow: \"hidden\",\n }}\n >\n {/* Title bar */}\n <div\n style={{\n height: \"10%\",\n background: \"#111118\",\n borderBottom: \"1px solid rgba(255,255,255,0.06)\",\n display: \"flex\",\n alignItems: \"center\",\n padding: \"0 16px\",\n gap: 8,\n }}\n >\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: \"50%\",\n background: \"rgba(255,255,255,0.18)\",\n }}\n />\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: \"50%\",\n background: \"rgba(255,255,255,0.18)\",\n }}\n />\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: \"50%\",\n background: \"rgba(255,255,255,0.18)\",\n }}\n />\n </div>\n <div style={{ flex: 1, display: \"flex\" }}>\n {/* Sidebar */}\n <div\n style={{\n width: \"22%\",\n background: \"#0e0e14\",\n borderRight: \"1px solid rgba(255,255,255,0.05)\",\n padding: 16,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 10,\n }}\n >\n <div\n style={{\n height: 12,\n borderRadius: 4,\n background: accentColor,\n opacity: 0.85,\n width: \"70%\",\n }}\n />\n <div\n style={{\n height: 10,\n borderRadius: 4,\n background: \"rgba(255,255,255,0.1)\",\n width: \"85%\",\n }}\n />\n <div\n style={{\n height: 10,\n borderRadius: 4,\n background: \"rgba(255,255,255,0.08)\",\n width: \"60%\",\n }}\n />\n <div\n style={{\n height: 10,\n borderRadius: 4,\n background: \"rgba(255,255,255,0.08)\",\n width: \"75%\",\n }}\n />\n </div>\n {/* Content */}\n <div\n style={{\n flex: 1,\n padding: 24,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 16,\n }}\n >\n <div\n style={{\n height: 18,\n width: \"40%\",\n background: \"rgba(255,255,255,0.85)\",\n borderRadius: 4,\n }}\n />\n <div\n style={{\n height: 10,\n width: \"65%\",\n background: \"rgba(255,255,255,0.18)\",\n borderRadius: 4,\n }}\n />\n <div\n style={{\n display: \"grid\",\n gridTemplateColumns: \"1fr 1fr 1fr\",\n gap: 12,\n marginTop: 12,\n }}\n >\n <div\n style={{\n height: 90,\n borderRadius: 8,\n background:\n \"linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02))\",\n border: \"1px solid rgba(255,255,255,0.06)\",\n }}\n />\n <div\n style={{\n height: 90,\n borderRadius: 8,\n background: `linear-gradient(180deg, ${accentColor}33, ${accentColor}11)`,\n border: `1px solid ${accentColor}55`,\n }}\n />\n <div\n style={{\n height: 90,\n borderRadius: 8,\n background:\n \"linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02))\",\n border: \"1px solid rgba(255,255,255,0.06)\",\n }}\n />\n </div>\n <div\n style={{\n flex: 1,\n borderRadius: 8,\n background:\n \"linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01))\",\n border: \"1px solid rgba(255,255,255,0.06)\",\n }}\n />\n </div>\n </div>\n </div>\n );\n}\n\nexport function HeroDeviceAssemble({\n assembleStart = 0,\n device = \"laptop\",\n accentColor = \"#22c55e\",\n speed = 1,\n className,\n}: HeroDeviceAssembleProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const assemble = spring({\n frame: frame - assembleStart,\n fps,\n config: { mass: 1.4, damping: 12, stiffness: 90 },\n durationInFrames: 60,\n });\n\n // Layer translateZ values from far -> 0\n const lidZ = interpolate(assemble, [0, 1], [1000, 0]);\n const baseZ = interpolate(assemble, [0, 1], [-800, 0]);\n const bezelZ = interpolate(assemble, [0, 1], [600, 0]);\n const screenZ = interpolate(assemble, [0, 1], [300, 0]);\n\n // Parent rotation easing to 0\n const rotX = interpolate(assemble, [0, 1], [-22, 0]);\n const rotY = interpolate(assemble, [0, 1], [28, 0]);\n\n // Layer opacity fade in slightly during assembly\n const layerOpacity = interpolate(assemble, [0, 0.4], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n // Settle frame: after assemble ~ 0.95\n const settleFrame = assembleStart + 45;\n const screenWake = interpolate(\n frame,\n [settleFrame, settleFrame + 18],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n // Shimmer sweep across screen (after wake)\n const shimmerProgress = interpolate(\n frame,\n [settleFrame + 6, settleFrame + 30],\n [-1, 2],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const isPhone = device === \"phone\";\n\n // Device dimensions\n const deviceW = isPhone ? 320 : 760;\n const deviceH = isPhone ? 640 : 470;\n const screenInset = isPhone ? 12 : 18;\n const bezelRadius = isPhone ? 36 : 14;\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, #1a1a22 0%, #050507 70%)\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n perspective: 2000,\n fontFamily: FONT_FAMILY,\n }}\n >\n <div\n style={{\n position: \"relative\",\n width: deviceW,\n height: deviceH,\n transformStyle: \"preserve-3d\",\n transform: `rotateX(${rotX}deg) rotateY(${rotY}deg)`,\n willChange: \"transform\",\n }}\n >\n {/* Back lid (laptop only — for phone, acts as the back shell) */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: `translateZ(${lidZ - 8}px)`,\n background: \"linear-gradient(180deg, #1f2128 0%, #0e1014 100%)\",\n borderRadius: bezelRadius + 4,\n border: \"1px solid rgba(255,255,255,0.08)\",\n boxShadow:\n \"0 60px 120px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06)\",\n opacity: layerOpacity,\n }}\n />\n\n {/* Keyboard / chassis base — laptop only */}\n {!isPhone && (\n <div\n style={{\n position: \"absolute\",\n left: -40,\n right: -40,\n bottom: -28,\n height: 28,\n transform: `translateZ(${baseZ}px) rotateX(78deg)`,\n transformOrigin: \"top center\",\n background: \"linear-gradient(180deg, #2a2d36 0%, #14161c 100%)\",\n borderRadius: \"0 0 12px 12px\",\n border: \"1px solid rgba(255,255,255,0.06)\",\n boxShadow: \"0 30px 60px rgba(0,0,0,0.6)\",\n opacity: layerOpacity,\n }}\n />\n )}\n\n {/* Bezel frame */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: `translateZ(${bezelZ}px)`,\n background: \"#0a0a0d\",\n borderRadius: bezelRadius,\n border: \"1px solid rgba(255,255,255,0.12)\",\n boxShadow:\n \"inset 0 0 0 2px rgba(255,255,255,0.04), 0 20px 60px rgba(0,0,0,0.5)\",\n opacity: layerOpacity,\n }}\n />\n\n {/* UI screen */}\n <div\n style={{\n position: \"absolute\",\n inset: screenInset,\n transform: `translateZ(${screenZ}px)`,\n borderRadius: bezelRadius - 6,\n overflow: \"hidden\",\n background: \"black\",\n opacity: layerOpacity,\n }}\n >\n {/* Black panel during flight */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: \"#000\",\n opacity: 1 - screenWake,\n }}\n />\n {/* UI fades in */}\n <div style={{ position: \"absolute\", inset: 0, opacity: screenWake }}>\n <MockUI accentColor={accentColor} />\n </div>\n {/* Shimmer sweep */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: `linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%)`,\n transform: `translateX(${shimmerProgress * 100}%)`,\n mixBlendMode: \"screen\",\n pointerEvents: \"none\",\n }}\n />\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/hero-device-assemble.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/image-expand-to-fullscreen.json b/public/r/image-expand-to-fullscreen.json
new file mode 100644
index 00000000..cf4ee95b
--- /dev/null
+++ b/public/r/image-expand-to-fullscreen.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "image-expand-to-fullscreen",
+ "title": "Image Expand To Fullscreen",
+ "description": "An image lifts out of a feed post and morphs into a fullscreen editor with toolbars sliding in.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/image-expand-to-fullscreen/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface ImageExpandRect {\n top: number;\n left: number;\n width: number;\n height: number;\n}\n\nexport interface ImageExpandToFullscreenProps {\n from?: ImageExpandRect;\n to?: ImageExpandRect;\n borderRadiusFrom?: number;\n borderRadiusTo?: number;\n morphAt?: number;\n imageColorA?: string;\n imageColorB?: string;\n imageColorC?: string;\n feedBackground?: string;\n editorBackground?: string;\n accent?: string;\n postAuthor?: string;\n postBody?: string;\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: ImageExpandRect = {\n left: 460,\n top: 280,\n width: 360,\n height: 200,\n};\n\nconst DEFAULT_TO: ImageExpandRect = {\n left: 200,\n top: 120,\n width: 880,\n height: 480,\n};\n\nexport function ImageExpandToFullscreen({\n from = DEFAULT_FROM,\n to = DEFAULT_TO,\n borderRadiusFrom = 12,\n borderRadiusTo = 16,\n morphAt = 30,\n imageColorA = \"#ff6b6b\",\n imageColorB = \"#845ec2\",\n imageColorC = \"#4d8dff\",\n feedBackground = \"#f4f4f5\",\n editorBackground = \"#0a0a0a\",\n accent = \"#fafafa\",\n postAuthor = \"Maya Larsson\",\n postBody = \"Sunset over the old harbor — color graded straight out of camera.\",\n speed = 1,\n className,\n}: ImageExpandToFullscreenProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n // ONE spring drives the entire shared-element transition. Slightly more\n // critically damped than the morphing modal — the image lands with a\n // tight settle rather than a heavy bloom.\n const morph = spring({\n frame: frame - morphAt,\n fps,\n config: { mass: 1.4, damping: 24, stiffness: 130 },\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 // Feed UI fades fully out in the FIRST half of the morph; the dark\n // editor background fades in across the same window.\n const feedOpacity = interpolate(morph, [0, 0.5], [1, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const editorOpacity = interpolate(morph, [0, 0.5], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n // Toolbars slide in during the LAST third of the morph — they should\n // feel called in by the image landing at fullscreen.\n const toolbarOpacity = interpolate(morph, [0.5, 1], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const topToolbarTy = interpolate(morph, [0.5, 1], [-100, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const bottomToolbarTy = interpolate(morph, [0.5, 1], [100, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const imageGradient = `linear-gradient(135deg, ${imageColorA}, ${imageColorB}, ${imageColorC})`;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n fontFamily: FONT_FAMILY,\n }}\n >\n {/* Feed background (light page) */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: feedBackground,\n opacity: feedOpacity,\n }}\n />\n\n {/* Editor background (dark canvas) */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: editorBackground,\n opacity: editorOpacity,\n }}\n />\n\n {/* Fake post card living on the feed */}\n <div\n style={{\n position: \"absolute\",\n left: 380,\n top: 140,\n width: 520,\n padding: 24,\n background: \"#ffffff\",\n borderRadius: 20,\n boxShadow: \"0 30px 80px rgba(15, 15, 25, 0.08)\",\n opacity: feedOpacity,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 16,\n }}\n >\n {/* Author row */}\n <div style={{ display: \"flex\", alignItems: \"center\", gap: 12 }}>\n <div\n style={{\n width: 44,\n height: 44,\n borderRadius: 999,\n background: imageGradient,\n }}\n />\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: 2 }}>\n <div\n style={{\n fontSize: 15,\n fontWeight: 600,\n color: \"#0a0a0a\",\n letterSpacing: \"-0.005em\",\n }}\n >\n {postAuthor}\n </div>\n <div style={{ fontSize: 12, color: \"#71717a\" }}>2h ago</div>\n </div>\n </div>\n\n {/* Body text */}\n <div\n style={{\n fontSize: 14,\n lineHeight: 1.5,\n color: \"#27272a\",\n }}\n >\n {postBody}\n </div>\n\n {/* Spacer where the thumbnail visually lives — the actual\n morphing image is rendered absolutely below so it can lift\n cleanly off the card. */}\n <div\n style={{\n width: \"100%\",\n height: 200,\n borderRadius: 12,\n background: \"transparent\",\n }}\n />\n\n {/* Action row */}\n <div style={{ display: \"flex\", gap: 16 }}>\n {[0, 1, 2].map((i) => (\n <div\n key={i}\n style={{\n width: 28,\n height: 28,\n borderRadius: 8,\n background: \"#f4f4f5\",\n }}\n />\n ))}\n </div>\n </div>\n\n {/* The morphing image — driven entirely by the single spring */}\n <div\n style={{\n position: \"absolute\",\n left,\n top,\n width,\n height,\n borderRadius: radius,\n background: imageGradient,\n boxShadow:\n \"0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06)\",\n overflow: \"hidden\",\n }}\n />\n\n {/* Top toolbar */}\n <div\n style={{\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n height: 64,\n padding: \"0 24px\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n background: \"rgba(15, 15, 18, 0.6)\",\n backdropFilter: \"blur(20px)\",\n WebkitBackdropFilter: \"blur(20px)\",\n borderBottom: \"1px solid rgba(255, 255, 255, 0.06)\",\n opacity: toolbarOpacity,\n transform: `translateY(${topToolbarTy}%)`,\n }}\n >\n <div style={{ display: \"flex\", alignItems: \"center\", gap: 12 }}>\n <div\n style={{\n width: 32,\n height: 32,\n borderRadius: 8,\n background: \"rgba(255, 255, 255, 0.08)\",\n }}\n />\n <div\n style={{\n fontSize: 14,\n fontWeight: 500,\n color: accent,\n letterSpacing: \"-0.005em\",\n }}\n >\n Editor\n </div>\n </div>\n <div style={{ display: \"flex\", gap: 10 }}>\n {[0, 1, 2, 3].map((i) => (\n <div\n key={i}\n style={{\n width: 32,\n height: 32,\n borderRadius: 8,\n background: \"rgba(255, 255, 255, 0.06)\",\n }}\n />\n ))}\n </div>\n </div>\n\n {/* Bottom toolbar */}\n <div\n style={{\n position: \"absolute\",\n bottom: 0,\n left: 0,\n right: 0,\n height: 80,\n padding: \"0 24px\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: 14,\n background: \"rgba(15, 15, 18, 0.6)\",\n backdropFilter: \"blur(20px)\",\n WebkitBackdropFilter: \"blur(20px)\",\n borderTop: \"1px solid rgba(255, 255, 255, 0.06)\",\n opacity: toolbarOpacity,\n transform: `translateY(${bottomToolbarTy}%)`,\n }}\n >\n {[0, 1, 2, 3, 4, 5].map((i) => (\n <div\n key={i}\n style={{\n width: 44,\n height: 44,\n borderRadius: 12,\n background:\n i === 2\n ? accent\n : \"rgba(255, 255, 255, 0.06)\",\n border: \"1px solid rgba(255, 255, 255, 0.08)\",\n }}\n />\n ))}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/image-expand-to-fullscreen.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/infinite-bento-pan.json b/public/r/infinite-bento-pan.json
new file mode 100644
index 00000000..0b6cffa3
--- /dev/null
+++ b/public/r/infinite-bento-pan.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "infinite-bento-pan",
+ "title": "Infinite Bento Pan",
+ "description": "A camera diagonally drifts across an oversized bento grid behind a soft vignette.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/infinite-bento-pan/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface InfiniteBentoPanProps {\n panSpeed?: number;\n accentColor?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nconst SUPER_W = 3500;\nconst SUPER_H = 2500;\n\ntype CardKind =\n | \"chart\"\n | \"counter\"\n | \"gradient\"\n | \"code\"\n | \"logo\"\n | \"stat\"\n | \"bars\";\n\ninterface CardDef {\n x: number;\n y: number;\n w: number;\n h: number;\n kind: CardKind;\n hue: number;\n label?: string;\n}\n\nconst CARDS: CardDef[] = [\n { x: 80, y: 80, w: 480, h: 280, kind: \"chart\", hue: 220, label: \"Revenue\" },\n { x: 600, y: 80, w: 280, h: 280, kind: \"counter\", hue: 280, label: \"MRR\" },\n { x: 920, y: 80, w: 360, h: 180, kind: \"gradient\", hue: 200 },\n { x: 1320, y: 80, w: 480, h: 280, kind: \"code\", hue: 0, label: \"deploy.ts\" },\n { x: 1840, y: 80, w: 280, h: 280, kind: \"logo\", hue: 320 },\n { x: 2160, y: 80, w: 380, h: 180, kind: \"stat\", hue: 160, label: \"Uptime\" },\n { x: 2580, y: 80, w: 360, h: 280, kind: \"bars\", hue: 40, label: \"Visits\" },\n { x: 920, y: 300, w: 360, h: 200, kind: \"counter\", hue: 180, label: \"Users\" },\n {\n x: 2160,\n y: 300,\n w: 380,\n h: 200,\n kind: \"chart\",\n hue: 100,\n label: \"Latency\",\n },\n { x: 80, y: 400, w: 280, h: 280, kind: \"gradient\", hue: 340 },\n { x: 400, y: 400, w: 480, h: 280, kind: \"code\", hue: 0, label: \"api.ts\" },\n { x: 1320, y: 420, w: 280, h: 280, kind: \"stat\", hue: 60, label: \"P95\" },\n { x: 1640, y: 420, w: 380, h: 280, kind: \"bars\", hue: 260, label: \"Builds\" },\n { x: 2580, y: 420, w: 360, h: 280, kind: \"logo\", hue: 200 },\n { x: 80, y: 720, w: 480, h: 240, kind: \"chart\", hue: 290, label: \"Errors\" },\n { x: 600, y: 720, w: 280, h: 240, kind: \"stat\", hue: 20, label: \"RPS\" },\n { x: 920, y: 740, w: 380, h: 220, kind: \"gradient\", hue: 240 },\n {\n x: 1320,\n y: 740,\n w: 360,\n h: 220,\n kind: \"counter\",\n hue: 140,\n label: \"Active\",\n },\n { x: 1720, y: 740, w: 480, h: 240, kind: \"code\", hue: 0, label: \"worker.ts\" },\n { x: 2240, y: 740, w: 360, h: 240, kind: \"bars\", hue: 320, label: \"Queue\" },\n { x: 80, y: 1000, w: 360, h: 220, kind: \"logo\", hue: 180 },\n { x: 460, y: 1000, w: 380, h: 220, kind: \"stat\", hue: 80, label: \"Cache\" },\n { x: 880, y: 1000, w: 480, h: 220, kind: \"chart\", hue: 200, label: \"CPU\" },\n {\n x: 1400,\n y: 1000,\n w: 280,\n h: 220,\n kind: \"counter\",\n hue: 360,\n label: \"Jobs\",\n },\n { x: 1720, y: 1020, w: 360, h: 220, kind: \"gradient\", hue: 120 },\n { x: 2120, y: 1020, w: 380, h: 220, kind: \"code\", hue: 0, label: \"db.sql\" },\n { x: 2540, y: 1020, w: 400, h: 220, kind: \"bars\", hue: 280, label: \"Tasks\" },\n { x: 80, y: 1280, w: 480, h: 260, kind: \"code\", hue: 0, label: \"edge.ts\" },\n { x: 600, y: 1280, w: 360, h: 260, kind: \"chart\", hue: 240, label: \"TTFB\" },\n { x: 1000, y: 1280, w: 280, h: 260, kind: \"logo\", hue: 60 },\n { x: 1320, y: 1280, w: 380, h: 260, kind: \"stat\", hue: 200, label: \"Hits\" },\n {\n x: 1740,\n y: 1280,\n w: 360,\n h: 260,\n kind: \"counter\",\n hue: 300,\n label: \"Bytes\",\n },\n { x: 2140, y: 1280, w: 380, h: 260, kind: \"gradient\", hue: 160 },\n { x: 2560, y: 1280, w: 380, h: 260, kind: \"bars\", hue: 0, label: \"Errors\" },\n { x: 80, y: 1600, w: 380, h: 220, kind: \"stat\", hue: 280, label: \"Saved\" },\n { x: 500, y: 1600, w: 480, h: 220, kind: \"chart\", hue: 40, label: \"Net Out\" },\n { x: 1020, y: 1600, w: 360, h: 220, kind: \"code\", hue: 0, label: \"auth.ts\" },\n { x: 1420, y: 1600, w: 280, h: 220, kind: \"logo\", hue: 220 },\n {\n x: 1740,\n y: 1620,\n w: 380,\n h: 220,\n kind: \"counter\",\n hue: 100,\n label: \"Hooks\",\n },\n { x: 2160, y: 1620, w: 360, h: 220, kind: \"bars\", hue: 340, label: \"Runs\" },\n { x: 2560, y: 1620, w: 380, h: 220, kind: \"gradient\", hue: 200 },\n { x: 80, y: 1880, w: 480, h: 240, kind: \"bars\", hue: 180, label: \"Edges\" },\n { x: 600, y: 1880, w: 380, h: 240, kind: \"gradient\", hue: 320 },\n { x: 1020, y: 1880, w: 360, h: 240, kind: \"logo\", hue: 80 },\n {\n x: 1420,\n y: 1880,\n w: 480,\n h: 240,\n kind: \"chart\",\n hue: 260,\n label: \"Tokens\",\n },\n {\n x: 1940,\n y: 1880,\n w: 280,\n h: 240,\n kind: \"counter\",\n hue: 20,\n label: \"Calls\",\n },\n { x: 2260, y: 1880, w: 380, h: 240, kind: \"stat\", hue: 140, label: \"Score\" },\n { x: 2680, y: 1880, w: 260, h: 240, kind: \"code\", hue: 0, label: \"ws.ts\" },\n];\n\nfunction noise(i: number, frame: number) {\n return Math.sin(frame / 30 + i) * 0.5 + 0.5;\n}\n\nfunction ChartCard({ accent, t }: { accent: string; t: number }) {\n const points: string[] = [];\n for (let i = 0; i < 12; i++) {\n const x = (i / 11) * 100;\n const y =\n 50 - (Math.sin(i * 0.7 + t) * 18 + Math.cos(i * 0.4 + t * 0.6) * 8);\n points.push(`${x},${y}`);\n }\n return (\n <svg\n viewBox=\"0 0 100 60\"\n preserveAspectRatio=\"none\"\n style={{ width: \"100%\", height: \"100%\" }}\n >\n <polyline\n points={points.join(\" \")}\n fill=\"none\"\n stroke={accent}\n strokeWidth={1.4}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <polyline\n points={`${points.join(\" \")} 100,60 0,60`}\n fill={`${accent}22`}\n stroke=\"none\"\n />\n </svg>\n );\n}\n\nfunction BarsCard({ accent, t }: { accent: string; t: number }) {\n return (\n <div\n style={{\n display: \"flex\",\n alignItems: \"flex-end\",\n gap: 6,\n height: \"100%\",\n width: \"100%\",\n }}\n >\n {Array.from({ length: 10 }).map((_, i) => {\n const h = 25 + (Math.sin(i * 0.8 + t) * 0.5 + 0.5) * 70;\n return (\n <div\n key={i}\n style={{\n flex: 1,\n height: `${h}%`,\n background: `linear-gradient(180deg, ${accent} 0%, ${accent}55 100%)`,\n borderRadius: 4,\n }}\n />\n );\n })}\n </div>\n );\n}\n\nfunction CodeCard() {\n const lines = [\n { indent: 0, w: 60, c: \"#7dd3fc\" },\n { indent: 1, w: 80, c: \"rgba(255,255,255,0.8)\" },\n { indent: 1, w: 50, c: \"#f9a8d4\" },\n { indent: 2, w: 70, c: \"rgba(255,255,255,0.8)\" },\n { indent: 2, w: 40, c: \"#fde047\" },\n { indent: 1, w: 30, c: \"rgba(255,255,255,0.6)\" },\n { indent: 0, w: 20, c: \"rgba(255,255,255,0.6)\" },\n ];\n return (\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n gap: 8,\n fontFamily: \"ui-monospace, SFMono-Regular, Menlo, monospace\",\n }}\n >\n {lines.map((l, i) => (\n <div\n key={i}\n style={{\n marginLeft: l.indent * 14,\n width: `${l.w}%`,\n height: 8,\n borderRadius: 3,\n background: l.c,\n opacity: 0.7,\n }}\n />\n ))}\n </div>\n );\n}\n\nfunction LogoCard({ accent, hue }: { accent: string; hue: number }) {\n return (\n <div\n style={{\n width: \"100%\",\n height: \"100%\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <div\n style={{\n width: 80,\n height: 80,\n borderRadius: 20,\n background: `linear-gradient(135deg, ${accent} 0%, hsl(${hue},70%,55%) 100%)`,\n boxShadow: `0 10px 30px ${accent}44`,\n }}\n />\n </div>\n );\n}\n\nfunction GradientCard({ hue }: { hue: number }) {\n return (\n <div\n style={{\n width: \"100%\",\n height: \"100%\",\n background: `radial-gradient(circle at 30% 30%, hsl(${hue},80%,60%) 0%, hsl(${(hue + 60) % 360},70%,40%) 50%, #0a0a0a 100%)`,\n }}\n />\n );\n}\n\nfunction Card({\n card,\n accent,\n index,\n frame,\n}: {\n card: CardDef;\n accent: string;\n index: number;\n frame: number;\n}) {\n const t = noise(index, frame) * 6.28;\n const baseStyle: React.CSSProperties = {\n position: \"absolute\",\n left: card.x,\n top: card.y,\n width: card.w,\n height: card.h,\n borderRadius: 18,\n background: \"linear-gradient(180deg, #131313 0%, #0a0a0a 100%)\",\n border: \"1px solid rgba(255,255,255,0.07)\",\n overflow: \"hidden\",\n padding: 18,\n color: \"white\",\n display: \"flex\",\n flexDirection: \"column\",\n };\n\n const labelEl = card.label ? (\n <div\n style={{\n fontSize: 12,\n fontWeight: 600,\n color: \"rgba(255,255,255,0.55)\",\n letterSpacing: \"0.04em\",\n textTransform: \"uppercase\",\n marginBottom: 8,\n }}\n >\n {card.label}\n </div>\n ) : null;\n\n if (card.kind === \"chart\") {\n return (\n <div style={baseStyle}>\n {labelEl}\n <div style={{ flex: 1 }}>\n <ChartCard accent={accent} t={t} />\n </div>\n </div>\n );\n }\n if (card.kind === \"bars\") {\n return (\n <div style={baseStyle}>\n {labelEl}\n <div style={{ flex: 1 }}>\n <BarsCard accent={accent} t={t} />\n </div>\n </div>\n );\n }\n if (card.kind === \"counter\") {\n const v = Math.floor(1200 + noise(index, frame) * 800);\n return (\n <div style={baseStyle}>\n {labelEl}\n <div\n style={{\n flex: 1,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n fontSize: 56,\n fontWeight: 700,\n letterSpacing: \"-0.04em\",\n color: \"white\",\n }}\n >\n {v.toLocaleString()}\n </div>\n <div style={{ fontSize: 12, color: accent, fontWeight: 600 }}>\n +{(noise(index + 1, frame) * 12).toFixed(1)}%\n </div>\n </div>\n );\n }\n if (card.kind === \"stat\") {\n const v = (95 + noise(index, frame) * 5).toFixed(2);\n return (\n <div style={baseStyle}>\n {labelEl}\n <div\n style={{\n flex: 1,\n display: \"flex\",\n alignItems: \"center\",\n fontSize: 48,\n fontWeight: 700,\n letterSpacing: \"-0.03em\",\n }}\n >\n {v}\n <span\n style={{\n fontSize: 20,\n color: \"rgba(255,255,255,0.5)\",\n marginLeft: 4,\n }}\n >\n %\n </span>\n </div>\n </div>\n );\n }\n if (card.kind === \"code\") {\n return (\n <div style={baseStyle}>\n {labelEl}\n <div style={{ flex: 1, display: \"flex\", alignItems: \"center\" }}>\n <div style={{ width: \"100%\" }}>\n <CodeCard />\n </div>\n </div>\n </div>\n );\n }\n if (card.kind === \"logo\") {\n return (\n <div style={{ ...baseStyle, padding: 0 }}>\n <LogoCard accent={accent} hue={card.hue} />\n </div>\n );\n }\n // gradient\n return (\n <div style={{ ...baseStyle, padding: 0 }}>\n <GradientCard hue={card.hue} />\n </div>\n );\n}\n\nexport function InfiniteBentoPan({\n panSpeed = 1,\n accentColor = \"#7c3aed\",\n speed = 1,\n className,\n}: InfiniteBentoPanProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames, width, height } = useVideoConfig();\n\n const maxX = SUPER_W - width;\n const maxY = SUPER_H - height;\n\n // diagonal pan: from top-left toward bottom-right\n const t = interpolate(frame, [0, durationInFrames], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const px = t * maxX * Math.min(1, panSpeed);\n const py = t * maxY * Math.min(1, panSpeed);\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background: \"#050505\",\n overflow: \"hidden\",\n fontFamily: FONT_FAMILY,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: 0,\n top: 0,\n width: SUPER_W,\n height: SUPER_H,\n transform: `translate(${-px}px, ${-py}px)`,\n willChange: \"transform\",\n }}\n >\n {CARDS.map((c, i) => (\n <Card key={i} card={c} accent={accentColor} index={i} frame={frame} />\n ))}\n </div>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background:\n \"radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.85) 80%, #000 100%)\",\n pointerEvents: \"none\",\n }}\n />\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/infinite-bento-pan.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/infinite-marquee.json b/public/r/infinite-marquee.json
index da3d16b3..fb616083 100644
--- a/public/r/infinite-marquee.json
+++ b/public/r/infinite-marquee.json
@@ -3,7 +3,9 @@
"name": "infinite-marquee",
"title": "Infinite Marquee",
"description": "Seamlessly looping horizontal text strip with optional stroke style.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/infinite-marquee/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/inline-highlight.json b/public/r/inline-highlight.json
index 0f8f381a..4eaf410b 100644
--- a/public/r/inline-highlight.json
+++ b/public/r/inline-highlight.json
@@ -3,14 +3,16 @@
"name": "inline-highlight",
"title": "Inline Highlight",
"description": "Animates one word inside a sentence from a base color to a brand color.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/inline-highlight/index.tsx",
- "content": "\"use client\";\n\nimport {\n interpolate,\n interpolateColors,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface InlineHighlightProps {\n before: string;\n highlight: string;\n after?: string;\n baseColor?: string;\n highlightColor?: string;\n fontSize?: number;\n fontWeight?: number;\n speed?: number;\n className?: string;\n}\n\nexport function InlineHighlight({\n before,\n highlight,\n after = \"\",\n baseColor = \"#171717\",\n highlightColor = \"#ff5e3a\",\n fontSize = 48,\n fontWeight = 600,\n speed = 1,\n className,\n}: InlineHighlightProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const progress = interpolate(\n frame,\n [durationInFrames * 0.2, durationInFrames * 0.7],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const color = interpolateColors(progress, [0, 1], [baseColor, highlightColor]);\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 <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color: baseColor,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {before}\n <span style={{ color }}>{highlight}</span>\n {after}\n </span>\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport {\n interpolate,\n interpolateColors,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface InlineHighlightProps {\n before: string;\n highlight: string;\n after?: string;\n baseColor?: string;\n highlightColor?: string;\n fontSize?: number;\n fontWeight?: number;\n speed?: number;\n className?: string;\n}\n\nexport function InlineHighlight({\n before,\n highlight,\n after = \"\",\n baseColor = \"#171717\",\n highlightColor = \"#ff5e3a\",\n fontSize = 48,\n fontWeight = 600,\n speed = 1,\n className,\n}: InlineHighlightProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const progress = interpolate(\n frame,\n [durationInFrames * 0.2, durationInFrames * 0.7],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const color = interpolateColors(\n progress,\n [0, 1],\n [baseColor, highlightColor],\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 <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color: baseColor,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {before}\n <span style={{ color }}>{highlight}</span>\n {after}\n </span>\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/inline-highlight.tsx"
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/kinetic-type-mask.json b/public/r/kinetic-type-mask.json
new file mode 100644
index 00000000..5f672fa3
--- /dev/null
+++ b/public/r/kinetic-type-mask.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "kinetic-type-mask",
+ "title": "Kinetic Type Mask",
+ "description": "Use giant typography as a window into the next scene.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/kinetic-type-mask/index.tsx",
+ "content": "\"use client\";\n\nimport { type ReactNode, useId } from \"react\";\nimport { Easing, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface KineticTypeMaskProps {\n from?: ReactNode;\n to?: ReactNode;\n text?: string;\n transitionStart?: number;\n holdFrames?: number;\n transitionDuration?: number;\n maxScale?: number;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction DefaultPanel({ label, color }: { label: string; color: string }) {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: color,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 96,\n fontWeight: 700,\n letterSpacing: \"-0.05em\",\n }}\n >\n {label}\n </div>\n );\n}\n\nexport function KineticTypeMask({\n from,\n to,\n text = \"NEXT\",\n transitionStart,\n holdFrames = 12,\n transitionDuration = 24,\n maxScale = 120,\n speed = 1,\n className,\n}: KineticTypeMaskProps) {\n const frame = useCurrentFrame() * speed;\n const { width, height, durationInFrames } = useVideoConfig();\n\n const start = transitionStart ?? Math.floor(durationInFrames * 0.3);\n const scaleStart = start + holdFrames;\n\n const scale = interpolate(\n frame,\n [scaleStart, scaleStart + transitionDuration],\n [1, maxScale],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.bezier(0.7, 0, 0.84, 0),\n },\n );\n\n const id = useId().replace(/[:#]/g, \"\");\n\n const fromContent = from ?? <DefaultPanel label=\"Scene A\" color=\"#0f172a\" />;\n const toContent = to ?? <DefaultPanel label=\"Scene B\" color=\"#f97316\" />;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n background: \"black\",\n }}\n >\n <div style={{ position: \"absolute\", inset: 0 }}>{fromContent}</div>\n\n {scale < maxScale * 0.95 && (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"black\",\n fontFamily: FONT_FAMILY,\n fontSize: height * 0.7,\n fontWeight: 900,\n transform: `scale(${scale})`,\n transformOrigin: \"center center\",\n willChange: \"transform\",\n }}\n >\n {text}\n </div>\n )}\n\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n clipPath: `url(#${id})`,\n WebkitClipPath: `url(#${id})`,\n }}\n >\n <div style={{ position: \"absolute\", inset: 0 }}>{toContent}</div>\n </div>\n\n <svg\n width=\"100%\"\n height=\"100%\"\n viewBox={`0 0 ${width} ${height}`}\n style={{\n position: \"absolute\",\n inset: 0,\n pointerEvents: \"none\",\n }}\n >\n <defs>\n <clipPath id={id} clipPathUnits=\"userSpaceOnUse\">\n <text\n x={width / 2}\n y={height / 2}\n textAnchor=\"middle\"\n dominantBaseline=\"central\"\n fontFamily={FONT_FAMILY}\n fontWeight={900}\n fontSize={height * 0.7}\n style={{\n transform: `scale(${scale})`,\n transformOrigin: `${width / 2}px ${height / 2}px`,\n }}\n >\n {text}\n </text>\n </clipPath>\n </defs>\n </svg>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/kinetic-type-mask.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/landing-code-showcase.json b/public/r/landing-code-showcase.json
new file mode 100644
index 00000000..619fe093
--- /dev/null
+++ b/public/r/landing-code-showcase.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "landing-code-showcase",
+ "title": "Landing Code Showcase",
+ "description": "Magical split-screen: code types itself on the left while the preview reactively re-renders on the right with sparks and tactile bounce.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/landing-code-showcase/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport {\n AbsoluteFill,\n Freeze,\n interpolate,\n Sequence,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\nimport { DashboardPopulate } from \"@/registry/remocn/dashboard-populate\";\nimport { FrostedGlassWipe } from \"@/registry/remocn/frosted-glass-wipe\";\nimport { SpatialPush } from \"@/registry/remocn/spatial-push\";\nimport { TerminalToBrowserDeploy } from \"@/registry/remocn/terminal-to-browser-deploy\";\n\nexport interface LandingCodeShowcaseProps {\n accentColor?: string;\n speed?: number;\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/* -------------------------------------------------------------------------- */\n/* Tokens */\n/* -------------------------------------------------------------------------- */\n\nconst PEACH = \"#FFB38E\";\nconst LAVENDER = \"#D4B3FF\";\nconst MINT = \"#A1EEBD\";\nconst STAGE_BG = \"#0A090E\";\nconst PANEL_BG = \"#141318\";\n\n/* -------------------------------------------------------------------------- */\n/* Timeline schedule */\n/* -------------------------------------------------------------------------- */\n/*\n Frame layout (30fps base):\n 0 ────────────────────────────► 90 BlurReveal\n 70 ────► 130 SpatialPush overlay\n 130 ────────────► 240 Dashboard\n 230 ────► 290 FrostedGlassWipe overlay\n 290 ────────────► 410 MaskedSlideReveal\n 400 ────► 460 KineticTypeMask overlay\n 460 ────────────────► 640 TerminalToBrowserDeploy\n*/\n\ninterface SceneWindow {\n start: number;\n duration: number;\n}\n\nconst SCENES = {\n blur: { start: 0, duration: 90 } as SceneWindow,\n push1: { start: 70, duration: 60 } as SceneWindow,\n dashboard: { start: 130, duration: 110 } as SceneWindow,\n glassWipe: { start: 230, duration: 60 } as SceneWindow,\n maskedSlide: { start: 290, duration: 120 } as SceneWindow,\n push2: { start: 400, duration: 60 } as SceneWindow,\n terminal: { start: 460, duration: 180 } as SceneWindow,\n // Quiet hold at the very end so the loop never restarts mid-action.\n endHold: 80,\n};\n\nconst TOTAL_DURATION =\n SCENES.terminal.start + SCENES.terminal.duration + SCENES.endHold; // 720\n\n/* -------------------------------------------------------------------------- */\n/* Code timeline */\n/* -------------------------------------------------------------------------- */\n\ninterface CodeStep {\n /** Frame at which this fragment STARTS being typed */\n startFrame: number;\n /** Code fragment to append to the visible buffer */\n code: string;\n /** Token within the fragment that pulses lavender briefly when typed */\n highlight?: string;\n}\n\nconst HEADER = `import { BlurReveal, DashboardPopulate, MaskedSlideReveal,\n TerminalToBrowserDeploy, Transition } from \"@/components/remocn\";\n\nexport default function Scene() {\n return (\n <>\n`;\n\nconst FOOTER = ` </>\n );\n}`;\n\nconst STEPS: CodeStep[] = [\n {\n startFrame: 4,\n code: ` <BlurReveal text=\"Build faster.\" />\\n`,\n },\n {\n startFrame: SCENES.push1.start,\n code: ` <Transition type=\"spatial-push\" />\\n`,\n highlight: \"spatial-push\",\n },\n {\n startFrame: SCENES.dashboard.start,\n code: ` <DashboardPopulate data={metrics} />\\n`,\n },\n {\n startFrame: SCENES.glassWipe.start,\n code: ` <Transition type=\"glass-wipe\" />\\n`,\n highlight: \"glass-wipe\",\n },\n {\n startFrame: SCENES.maskedSlide.start,\n code: ` <MaskedSlideReveal text=\"Ship to production.\" />\\n`,\n },\n {\n startFrame: SCENES.push2.start,\n code: ` <Transition type=\"spatial-push\" direction=\"left\" />\\n`,\n highlight: \"spatial-push\",\n },\n {\n startFrame: SCENES.terminal.start,\n code: ` <TerminalToBrowserDeploy />\\n`,\n },\n];\n\nconst CHARS_PER_FRAME = 2.2;\n\ninterface BuiltStep extends CodeStep {\n endFrame: number;\n}\n\nconst BUILT_STEPS: BuiltStep[] = STEPS.map((s) => ({\n ...s,\n endFrame: s.startFrame + Math.ceil(s.code.length / CHARS_PER_FRAME),\n}));\n\n/* -------------------------------------------------------------------------- */\n/* Syntax highlight */\n/* -------------------------------------------------------------------------- */\n\ninterface Token {\n text: string;\n color: string;\n glow?: boolean;\n}\n\nfunction tokenizeLine(\n line: string,\n accentColor: string,\n highlightedToken: string | null,\n): Token[] {\n const tokens: Token[] = [];\n const regex =\n /(\\bimport\\b|\\bfrom\\b|\\bexport\\b|\\bdefault\\b|\\bfunction\\b|\\breturn\\b|\\bconst\\b)|(\"[^\"]*\")|(\\b[A-Z][a-zA-Z0-9_]*)|(\\b[a-zA-Z_][a-zA-Z0-9_]*)(?==)|(\\{|\\}|\\(|\\)|<|>|\\/|;)|([0-9]+)/g;\n let lastIndex = 0;\n let m: RegExpExecArray | null = regex.exec(line);\n while (m !== null) {\n if (m.index > lastIndex) {\n tokens.push({\n text: line.slice(lastIndex, m.index),\n color: \"#e4e4e7\",\n });\n }\n if (m[1]) tokens.push({ text: m[1], color: LAVENDER });\n else if (m[2]) {\n // String literal — check if it matches the active highlight\n const inner = m[2].slice(1, -1);\n if (highlightedToken && inner === highlightedToken) {\n tokens.push({ text: m[2], color: LAVENDER, glow: true });\n } else {\n tokens.push({ text: m[2], color: MINT });\n }\n } else if (m[3]) tokens.push({ text: m[3], color: PEACH });\n else if (m[4]) tokens.push({ text: m[4], color: accentColor });\n else if (m[5]) tokens.push({ text: m[5], color: \"#71717a\" });\n else if (m[6]) tokens.push({ text: m[6], color: \"#fbbf24\" });\n lastIndex = regex.lastIndex;\n m = regex.exec(line);\n }\n if (lastIndex < line.length) {\n tokens.push({ text: line.slice(lastIndex), color: \"#e4e4e7\" });\n }\n return tokens;\n}\n\n/* -------------------------------------------------------------------------- */\n/* Code editor */\n/* -------------------------------------------------------------------------- */\n\nfunction CodeEditor({\n frame,\n accentColor,\n}: {\n frame: number;\n accentColor: string;\n}) {\n // Compose the visible code: header + per-step typed amounts + footer (only when fully typed)\n const dynamicChunks: string[] = [];\n let activeHighlight: string | null = null;\n\n for (const step of BUILT_STEPS) {\n if (frame < step.startFrame) break;\n const elapsed = frame - step.startFrame;\n const charsTyped = Math.min(\n step.code.length,\n Math.floor(elapsed * CHARS_PER_FRAME),\n );\n dynamicChunks.push(step.code.slice(0, charsTyped));\n\n // Lavender pulse: active for ~24 frames after fragment finishes typing\n if (step.highlight) {\n const sinceStart = frame - step.startFrame;\n if (sinceStart >= 0 && sinceStart < 60) {\n activeHighlight = step.highlight;\n }\n }\n }\n\n const allTyped = dynamicChunks.join(\"\");\n const lastStep = BUILT_STEPS[BUILT_STEPS.length - 1];\n const showFooter = frame > lastStep.endFrame + 4;\n const visibleCode = HEADER + allTyped + (showFooter ? FOOTER : \"\");\n const lines = visibleCode.split(\"\\n\");\n const lastLineIdx = lines.length - 1;\n const caretOn = Math.floor(frame / 12) % 2 === 0;\n\n return (\n <div\n style={{\n width: \"100%\",\n maxWidth: 540,\n position: \"relative\",\n borderRadius: 16,\n padding: 1,\n background:\n \"linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.06) 100%)\",\n boxShadow: \"0 40px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.4)\",\n }}\n >\n <div\n style={{\n borderRadius: 15,\n background: \"rgba(12,12,14,0.9)\",\n backdropFilter: \"blur(20px)\",\n overflow: \"hidden\",\n }}\n >\n {/* Title bar */}\n <div\n style={{\n height: 40,\n display: \"flex\",\n alignItems: \"center\",\n padding: \"0 16px\",\n borderBottom: \"1px solid rgba(255,255,255,0.06)\",\n gap: 8,\n }}\n >\n {[\"#ff5f57\", \"#febc2e\", \"#28c840\"].map((c) => (\n <div\n key={c}\n style={{\n width: 11,\n height: 11,\n borderRadius: 6,\n background: c,\n opacity: 0.65,\n }}\n />\n ))}\n <div\n style={{\n marginLeft: 12,\n fontSize: 12,\n color: \"rgba(255,255,255,0.5)\",\n fontFamily: MONO_FAMILY,\n }}\n >\n scene.tsx\n </div>\n </div>\n\n {/* Code body */}\n <div\n style={{\n padding: \"20px 22px\",\n fontFamily: MONO_FAMILY,\n fontSize: 12.5,\n lineHeight: 1.7,\n color: \"#e4e4e7\",\n minHeight: 480,\n boxShadow: \"inset 0 1px 0 rgba(255,255,255,0.04)\",\n }}\n >\n {lines.map((line, i) => {\n const tokens = tokenizeLine(line, accentColor, activeHighlight);\n const isLast = i === lastLineIdx;\n return (\n <div\n // biome-ignore lint/suspicious/noArrayIndexKey: stable per frame\n key={i}\n style={{ display: \"flex\", whiteSpace: \"pre\" }}\n >\n <span\n style={{\n width: 26,\n color: \"rgba(255,255,255,0.18)\",\n userSelect: \"none\",\n flexShrink: 0,\n }}\n >\n {i + 1}\n </span>\n <span>\n {tokens.length === 0 ? (\n <span> </span>\n ) : (\n tokens.map((t, j) => (\n <span\n // biome-ignore lint/suspicious/noArrayIndexKey: stable per line\n key={j}\n style={{\n color: t.color,\n textShadow: t.glow\n ? `0 0 12px ${LAVENDER}, 0 0 24px ${LAVENDER}80`\n : undefined,\n }}\n >\n {t.text}\n </span>\n ))\n )}\n {isLast && caretOn && (\n <span\n style={{\n display: \"inline-block\",\n width: 7,\n height: 14,\n marginLeft: 1,\n verticalAlign: \"text-bottom\",\n background: accentColor,\n }}\n />\n )}\n </span>\n </div>\n );\n })}\n </div>\n </div>\n </div>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Soft pastel scene wrappers */\n/* -------------------------------------------------------------------------- */\n\n/** Warm pastel canvas — the dark stage every scene sits on */\nfunction PastelStage({\n background = STAGE_BG,\n children,\n}: {\n background?: string;\n children: ReactNode;\n}) {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n overflow: \"hidden\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background:\n \"radial-gradient(ellipse at 20% 30%, rgba(255,179,142,0.08), transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(212,179,255,0.06), transparent 60%)\",\n }}\n />\n {children}\n </div>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Scene factories */\n/* -------------------------------------------------------------------------- */\n/*\n Note: BlurReveal and MaskedSlideReveal primitives bake in a `background:\n white` div. To keep the warm-dark stage we re-implement just the visual\n here (not a fork — both effects are simple text + filter). The orchestrator\n advertises the primitives in code; the rendered output is faithful to them.\n*/\n\nfunction BlurRevealScene() {\n const frame = useCurrentFrame();\n const opacity = interpolate(frame, [0, 50], [0, 1], {\n extrapolateRight: \"clamp\",\n });\n const blurAmount = interpolate(frame, [0, 50], [22, 0], {\n extrapolateRight: \"clamp\",\n });\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <span\n style={{\n opacity,\n filter: `blur(${blurAmount}px)`,\n fontSize: 96,\n fontWeight: 600,\n color: PEACH,\n letterSpacing: \"-0.04em\",\n fontFamily: FONT_FAMILY,\n textShadow: `0 0 60px ${PEACH}40`,\n }}\n >\n Build faster.\n </span>\n </div>\n );\n}\n\nfunction DashboardScene() {\n return (\n <div style={{ position: \"absolute\", inset: 0 }}>\n <DashboardPopulate accentColor={PEACH} />\n </div>\n );\n}\n\nfunction MaskedSlideScene() {\n const frame = useCurrentFrame();\n const { fps } = useVideoConfig();\n const words = \"Ship to production.\".split(\" \");\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <span\n style={{\n fontSize: 92,\n fontWeight: 700,\n color: MINT,\n letterSpacing: \"-0.03em\",\n fontFamily: FONT_FAMILY,\n textShadow: `0 0 40px ${MINT}30`,\n }}\n >\n {words.map((word, i) => {\n const t = spring({\n frame: frame - i * 4,\n fps,\n config: { damping: 18, stiffness: 120 },\n });\n return (\n <span\n // biome-ignore lint/suspicious/noArrayIndexKey: stable word list\n key={i}\n style={{\n display: \"inline-block\",\n overflow: \"hidden\",\n verticalAlign: \"bottom\",\n lineHeight: 1.05,\n marginRight: \"0.25em\",\n }}\n >\n <span\n style={{\n display: \"inline-block\",\n transform: `translateY(${(1 - t) * 110}%)`,\n }}\n >\n {word}\n </span>\n </span>\n );\n })}\n </span>\n </div>\n );\n}\n\nfunction TerminalScene() {\n return (\n <div style={{ position: \"absolute\", inset: 0 }}>\n <TerminalToBrowserDeploy accentColor={MINT} siteUrl=\"remocn.dev\" />\n </div>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Right pane */\n/* -------------------------------------------------------------------------- */\n\nfunction RightPane() {\n return (\n <div\n style={{\n position: \"relative\",\n width: \"100%\",\n height: \"100%\",\n background: STAGE_BG,\n overflow: \"hidden\",\n borderRadius: 18,\n }}\n >\n {/* ── BASE LAYER: each scene runs in its own Sequence so its\n internal useCurrentFrame() starts at 0 within the window. ── */}\n\n <Sequence\n from={SCENES.blur.start}\n durationInFrames={SCENES.blur.duration + SCENES.push1.duration}\n >\n <PastelStage>\n <BlurRevealScene />\n </PastelStage>\n </Sequence>\n\n <Sequence\n from={SCENES.dashboard.start}\n durationInFrames={SCENES.dashboard.duration + SCENES.glassWipe.duration}\n >\n <PastelStage>\n <DashboardScene />\n </PastelStage>\n </Sequence>\n\n <Sequence\n from={SCENES.maskedSlide.start}\n durationInFrames={SCENES.maskedSlide.duration + SCENES.push2.duration}\n >\n <PastelStage>\n <MaskedSlideScene />\n </PastelStage>\n </Sequence>\n\n <Sequence\n from={SCENES.terminal.start}\n durationInFrames={SCENES.terminal.duration + SCENES.endHold}\n >\n <PastelStage>\n <TerminalScene />\n </PastelStage>\n </Sequence>\n\n {/* ── TRANSITION OVERLAYS: each one displays the previous scene's\n end-state (Freeze) while wiping in the next scene's start-state. ── */}\n\n <Sequence\n from={SCENES.push1.start}\n durationInFrames={SCENES.push1.duration}\n >\n <SpatialPush\n transitionStart={0}\n transitionDuration={SCENES.push1.duration}\n direction=\"up\"\n from={\n <Freeze frame={SCENES.push1.start - SCENES.blur.start - 1}>\n <PastelStage>\n <BlurRevealScene />\n </PastelStage>\n </Freeze>\n }\n to={\n <Freeze frame={0}>\n <PastelStage>\n <DashboardScene />\n </PastelStage>\n </Freeze>\n }\n />\n </Sequence>\n\n <Sequence\n from={SCENES.glassWipe.start}\n durationInFrames={SCENES.glassWipe.duration}\n >\n <FrostedGlassWipe\n transitionStart={0}\n transitionDuration={SCENES.glassWipe.duration}\n glassBlur={28}\n from={\n <Freeze frame={SCENES.dashboard.duration - 1}>\n <PastelStage>\n <DashboardScene />\n </PastelStage>\n </Freeze>\n }\n to={\n <Freeze frame={0}>\n <PastelStage>\n <MaskedSlideScene />\n </PastelStage>\n </Freeze>\n }\n />\n </Sequence>\n\n <Sequence\n from={SCENES.push2.start}\n durationInFrames={SCENES.push2.duration}\n >\n <SpatialPush\n transitionStart={0}\n transitionDuration={SCENES.push2.duration}\n direction=\"left\"\n from={\n <Freeze frame={SCENES.maskedSlide.duration - 1}>\n <PastelStage>\n <MaskedSlideScene />\n </PastelStage>\n </Freeze>\n }\n to={\n <Freeze frame={0}>\n <PastelStage>\n <TerminalScene />\n </PastelStage>\n </Freeze>\n }\n />\n </Sequence>\n </div>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Main */\n/* -------------------------------------------------------------------------- */\n\nexport function LandingCodeShowcase({\n accentColor = \"#FFB38E\",\n speed = 1,\n}: LandingCodeShowcaseProps) {\n const rawFrame = useCurrentFrame();\n const frame = rawFrame * speed;\n\n /* ---- Final \"deploy success\" glow on both panes ---- */\n const successGlow = interpolate(\n frame,\n [SCENES.terminal.start + 70, SCENES.terminal.start + 100],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n return (\n <AbsoluteFill\n style={{\n background: PANEL_BG,\n fontFamily: FONT_FAMILY,\n overflow: \"hidden\",\n }}\n >\n {/* Backdrop wash */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background:\n \"radial-gradient(ellipse at 20% 30%, rgba(255,179,142,0.06), transparent 55%), radial-gradient(ellipse at 80% 70%, rgba(212,179,255,0.06), transparent 55%)\",\n }}\n />\n\n {/* ---------------- LEFT: code editor ---------------- */}\n <div\n style={{\n position: \"absolute\",\n left: 0,\n top: 0,\n bottom: 0,\n width: \"38%\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n padding: 48,\n }}\n >\n <CodeEditor frame={frame} accentColor={accentColor} />\n </div>\n\n {/* ---------------- RIGHT: live preview ---------------- */}\n <div\n style={{\n position: \"absolute\",\n right: 0,\n top: 0,\n bottom: 0,\n width: \"62%\",\n borderLeft: \"1px solid rgba(255,255,255,0.05)\",\n }}\n >\n {/* Preview label */}\n <div\n style={{\n position: \"absolute\",\n top: 22,\n left: 24,\n display: \"flex\",\n alignItems: \"center\",\n gap: 8,\n zIndex: 5,\n }}\n >\n <div\n style={{\n width: 8,\n height: 8,\n borderRadius: 4,\n background: MINT,\n boxShadow: `0 0 ${10 + successGlow * 12}px ${MINT}`,\n }}\n />\n <div\n style={{\n fontSize: 11,\n fontFamily: MONO_FAMILY,\n color: \"rgba(255,255,255,0.5)\",\n textTransform: \"uppercase\",\n letterSpacing: \"0.1em\",\n }}\n >\n Preview · HMR\n </div>\n </div>\n\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n boxShadow: `inset 0 0 ${60 * successGlow}px rgba(161,238,189,${successGlow * 0.45})`,\n }}\n >\n <RightPane />\n </div>\n </div>\n </AbsoluteFill>\n );\n}\n\n// Re-export the schedule so config.ts (or callers) can read the canonical\n// total length without duplicating constants.\nexport const LANDING_CODE_SHOWCASE_DURATION = TOTAL_DURATION;\n",
+ "type": "registry:component",
+ "target": "components/remocn/landing-code-showcase.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/live-code-compilation.json b/public/r/live-code-compilation.json
new file mode 100644
index 00000000..ba168b72
--- /dev/null
+++ b/public/r/live-code-compilation.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "live-code-compilation",
+ "title": "Live Code Compilation",
+ "description": "Split-screen where typed code on the left snaps a live UI preview on the right, HMR-style.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/live-code-compilation/index.tsx",
+ "content": "\"use client\";\n\nimport { useCurrentFrame } from \"remotion\";\n\nexport interface LiveCodeCompilationProps {\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\ninterface UIState {\n background?: string;\n color?: string;\n padding?: string;\n borderRadius?: string;\n fontWeight?: number;\n label?: string;\n}\n\ninterface CodeEvent {\n code: string;\n ui: UIState;\n}\n\nconst EVENTS: CodeEvent[] = [\n {\n code: \"export function Button() {\\n return (\\n <button\",\n ui: {},\n },\n { code: \"\\n style={{\", ui: {} },\n {\n code: '\\n background: \"#3b82f6\",',\n ui: { background: \"#3b82f6\" },\n },\n {\n code: '\\n color: \"white\",',\n ui: { color: \"white\" },\n },\n {\n code: '\\n padding: \"12px 28px\",',\n ui: { padding: \"12px 28px\" },\n },\n {\n code: '\\n borderRadius: \"999px\",',\n ui: { borderRadius: \"999px\" },\n },\n {\n code: \"\\n fontWeight: 600,\",\n ui: { fontWeight: 600 },\n },\n {\n code: \"\\n }}\\n >\\n Ship it\\n </button>\\n );\\n}\",\n ui: { label: \"Ship it\" },\n },\n];\n\nconst CHARS_PER_FRAME = 1.6;\nconst DWELL_FRAMES = 5;\nconst INITIAL_OFFSET = 8;\n\ninterface TimelineEntry extends CodeEvent {\n start: number;\n end: number;\n}\n\nconst TIMELINE: TimelineEntry[] = (() => {\n let cursor = INITIAL_OFFSET;\n return EVENTS.map((ev) => {\n const start = cursor;\n const end = start + Math.ceil(ev.code.length / CHARS_PER_FRAME);\n cursor = end + DWELL_FRAMES;\n return { ...ev, start, end };\n });\n})();\nconst TIMELINE_END = TIMELINE[TIMELINE.length - 1].end;\n\nfunction highlightLine(line: string, accentColor: string) {\n // very simple tokenizer: keywords, strings, props\n const tokens: { text: string; color: string }[] = [];\n const regex =\n /(\\bexport\\b|\\bfunction\\b|\\breturn\\b)|(\"[^\"]*\")|(\\b[a-zA-Z_][a-zA-Z0-9_]*)(?=:)|(\\{|\\}|\\(|\\)|<|>|\\/)|([0-9]+)/g;\n let lastIndex = 0;\n let m: RegExpExecArray | null = regex.exec(line);\n while (m !== null) {\n if (m.index > lastIndex) {\n tokens.push({\n text: line.slice(lastIndex, m.index),\n color: \"#e4e4e7\",\n });\n }\n if (m[1]) tokens.push({ text: m[1], color: \"#c084fc\" });\n else if (m[2]) tokens.push({ text: m[2], color: \"#86efac\" });\n else if (m[3]) tokens.push({ text: m[3], color: accentColor });\n else if (m[4]) tokens.push({ text: m[4], color: \"#71717a\" });\n else if (m[5]) tokens.push({ text: m[5], color: \"#fbbf24\" });\n lastIndex = regex.lastIndex;\n m = regex.exec(line);\n }\n if (lastIndex < line.length) {\n tokens.push({ text: line.slice(lastIndex), color: \"#e4e4e7\" });\n }\n return tokens;\n}\n\nexport function LiveCodeCompilation({\n accentColor = \"#3b82f6\",\n speed = 1,\n className,\n}: LiveCodeCompilationProps) {\n const frame = useCurrentFrame() * speed;\n\n // Build the visible code character-by-character from the auto-staggered\n // timeline. UI state only flips once a fragment is fully typed.\n let visibleCode = \"\";\n const ui: UIState = {};\n for (const t of TIMELINE) {\n if (frame < t.start) break;\n const elapsed = frame - t.start;\n const charsTyped = Math.min(\n t.code.length,\n Math.floor(elapsed * CHARS_PER_FRAME),\n );\n visibleCode += t.code.slice(0, charsTyped);\n if (frame >= t.end) Object.assign(ui, t.ui);\n }\n\n const lines = visibleCode.split(\"\\n\");\n const buttonLabel = ui.label ?? \"Button\";\n\n // Blinking caret while typing is still in progress.\n const cursorVisible =\n frame < TIMELINE_END && Math.floor(frame / 12) % 2 === 0;\n const lastLineIndex = lines.length - 1;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background: \"#070708\",\n overflow: \"hidden\",\n fontFamily: FONT_FAMILY,\n display: \"flex\",\n }}\n >\n {/* subtle backdrop gradient */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background:\n \"radial-gradient(ellipse at 20% 30%, rgba(59,130,246,0.08), transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(168,85,247,0.06), transparent 60%)\",\n }}\n />\n\n {/* LEFT: Glass code window */}\n <div\n style={{\n flex: 1,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n padding: 48,\n position: \"relative\",\n }}\n >\n <div\n style={{\n width: \"100%\",\n maxWidth: 560,\n position: \"relative\",\n borderRadius: 14,\n padding: 1,\n background:\n \"linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.06) 100%)\",\n boxShadow: \"0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.4)\",\n }}\n >\n <div\n style={{\n borderRadius: 13,\n background: \"rgba(12,12,14,0.85)\",\n backdropFilter: \"blur(20px)\",\n overflow: \"hidden\",\n }}\n >\n {/* Title bar */}\n <div\n style={{\n height: 38,\n display: \"flex\",\n alignItems: \"center\",\n padding: \"0 16px\",\n borderBottom: \"1px solid rgba(255,255,255,0.06)\",\n gap: 8,\n }}\n >\n <div\n style={{\n width: 11,\n height: 11,\n borderRadius: 6,\n background: \"#ff5f57\",\n opacity: 0.6,\n }}\n />\n <div\n style={{\n width: 11,\n height: 11,\n borderRadius: 6,\n background: \"#febc2e\",\n opacity: 0.6,\n }}\n />\n <div\n style={{\n width: 11,\n height: 11,\n borderRadius: 6,\n background: \"#28c840\",\n opacity: 0.6,\n }}\n />\n <div\n style={{\n marginLeft: 12,\n fontSize: 12,\n color: \"rgba(255,255,255,0.45)\",\n fontFamily: MONO_FAMILY,\n }}\n >\n Button.tsx\n </div>\n </div>\n {/* Code body */}\n <div\n style={{\n padding: \"20px 22px\",\n fontFamily: MONO_FAMILY,\n fontSize: 14,\n lineHeight: 1.65,\n color: \"#e4e4e7\",\n minHeight: 360,\n boxShadow: \"inset 0 1px 0 rgba(255,255,255,0.04)\",\n }}\n >\n {lines.map((line, i) => {\n const tokens = highlightLine(line, accentColor);\n const isLast = i === lastLineIndex;\n return (\n <div key={i} style={{ display: \"flex\", whiteSpace: \"pre\" }}>\n <span\n style={{\n width: 28,\n color: \"rgba(255,255,255,0.2)\",\n userSelect: \"none\",\n flexShrink: 0,\n }}\n >\n {i + 1}\n </span>\n <span>\n {tokens.length === 0 ? (\n <span> </span>\n ) : (\n tokens.map((t, j) => (\n <span key={j} style={{ color: t.color }}>\n {t.text}\n </span>\n ))\n )}\n {isLast && cursorVisible && (\n <span\n style={{\n display: \"inline-block\",\n width: 8,\n height: 16,\n marginLeft: 1,\n verticalAlign: \"text-bottom\",\n background: accentColor,\n }}\n />\n )}\n </span>\n </div>\n );\n })}\n </div>\n </div>\n </div>\n </div>\n\n {/* RIGHT: Live preview */}\n <div\n style={{\n flex: 1,\n position: \"relative\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n borderLeft: \"1px solid rgba(255,255,255,0.05)\",\n background:\n \"repeating-conic-gradient(rgba(255,255,255,0.018) 0deg 90deg, transparent 90deg 180deg) 0 0 / 28px 28px\",\n }}\n >\n {/* Preview label */}\n <div\n style={{\n position: \"absolute\",\n top: 24,\n left: 24,\n display: \"flex\",\n alignItems: \"center\",\n gap: 8,\n }}\n >\n <div\n style={{\n width: 8,\n height: 8,\n borderRadius: 4,\n background: \"#22c55e\",\n boxShadow: \"0 0 8px #22c55e\",\n }}\n />\n <div\n style={{\n fontSize: 11,\n fontFamily: MONO_FAMILY,\n color: \"rgba(255,255,255,0.5)\",\n textTransform: \"uppercase\",\n letterSpacing: \"0.08em\",\n }}\n >\n Preview · HMR\n </div>\n </div>\n\n {/* The button — all styles applied with no transition */}\n <button\n type=\"button\"\n style={{\n background: ui.background ?? \"rgba(255,255,255,0.06)\",\n color: ui.color ?? \"rgba(255,255,255,0.4)\",\n padding: ui.padding ?? \"10px 20px\",\n borderRadius: ui.borderRadius ?? \"4px\",\n fontWeight: ui.fontWeight ?? 400,\n fontSize: 18,\n fontFamily: FONT_FAMILY,\n border: ui.background\n ? \"none\"\n : \"1px dashed rgba(255,255,255,0.15)\",\n cursor: \"pointer\",\n transition: \"none\",\n boxShadow: ui.background\n ? `0 10px 30px ${ui.background}55, 0 0 0 1px rgba(255,255,255,0.08)`\n : \"none\",\n }}\n >\n {buttonLabel}\n </button>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/live-code-compilation.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/marker-highlight.json b/public/r/marker-highlight.json
index b0a7e9ed..1d64040f 100644
--- a/public/r/marker-highlight.json
+++ b/public/r/marker-highlight.json
@@ -3,7 +3,9 @@
"name": "marker-highlight",
"title": "Marker Highlight",
"description": "Colored marker block draws behind a phrase as the text color shifts.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/marker-highlight/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/masked-slide-reveal.json b/public/r/masked-slide-reveal.json
index 38620d4c..4c7225da 100644
--- a/public/r/masked-slide-reveal.json
+++ b/public/r/masked-slide-reveal.json
@@ -3,7 +3,9 @@
"name": "masked-slide-reveal",
"title": "Masked Slide Reveal",
"description": "Words slide up out of an invisible horizontal mask, one after another.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/masked-slide-reveal/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/matrix-decode.json b/public/r/matrix-decode.json
index 3c4f39ca..5f80b709 100644
--- a/public/r/matrix-decode.json
+++ b/public/r/matrix-decode.json
@@ -3,7 +3,9 @@
"name": "matrix-decode",
"title": "Matrix Decode",
"description": "Random scramble resolves left-to-right into the target text.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/matrix-decode/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/mesh-gradient-bg.json b/public/r/mesh-gradient-bg.json
index f6930f2f..79cf96e8 100644
--- a/public/r/mesh-gradient-bg.json
+++ b/public/r/mesh-gradient-bg.json
@@ -3,7 +3,9 @@
"name": "mesh-gradient-bg",
"title": "Mesh Gradient Background",
"description": "Living gradient with amorphous color blobs slowly drifting across the frame.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/mesh-gradient-bg/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/morphing-modal.json b/public/r/morphing-modal.json
index 96a4943a..81e2cee0 100644
--- a/public/r/morphing-modal.json
+++ b/public/r/morphing-modal.json
@@ -3,14 +3,16 @@
"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"],
+ "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 }}>{sourceBody}</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",
+ "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/perspective-marquee.json b/public/r/perspective-marquee.json
index ae03cf9a..8392a87c 100644
--- a/public/r/perspective-marquee.json
+++ b/public/r/perspective-marquee.json
@@ -3,7 +3,9 @@
"name": "perspective-marquee",
"title": "Perspective Marquee",
"description": "A 3D-tilted infinite marquee with depth-of-field blur on items rolling toward the horizon.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/perspective-marquee/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/pipeline-journey.json b/public/r/pipeline-journey.json
new file mode 100644
index 00000000..5bd92ddd
--- /dev/null
+++ b/public/r/pipeline-journey.json
@@ -0,0 +1,18 @@
+{
+ "$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/pricing-tier-focus.json b/public/r/pricing-tier-focus.json
new file mode 100644
index 00000000..533ae56b
--- /dev/null
+++ b/public/r/pricing-tier-focus.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "pricing-tier-focus",
+ "title": "Pricing Tier Focus",
+ "description": "Three pricing cards where the focused tier rises and brightens while siblings dim and blur.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/pricing-tier-focus/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface PricingTierFocusProps {\n focusedTier?: 0 | 1 | 2 | \"0\" | \"1\" | \"2\";\n accentColor?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\ninterface Tier {\n name: string;\n price: string;\n period: string;\n features: string[];\n cta: string;\n}\n\nconst TIERS: Tier[] = [\n {\n name: \"Free\",\n price: \"$0\",\n period: \"/mo\",\n features: [\"1 project\", \"Community support\", \"1 GB storage\"],\n cta: \"Get started\",\n },\n {\n name: \"Pro\",\n price: \"$24\",\n period: \"/mo\",\n features: [\n \"Unlimited projects\",\n \"Priority support\",\n \"100 GB storage\",\n \"Advanced analytics\",\n ],\n cta: \"Buy Pro\",\n },\n {\n name: \"Enterprise\",\n price: \"$99\",\n period: \"/mo\",\n features: [\"SSO & SAML\", \"Dedicated manager\", \"Unlimited storage\"],\n cta: \"Contact sales\",\n },\n];\n\nexport function PricingTierFocus({\n focusedTier = 1,\n accentColor = \"#22c55e\",\n speed = 1,\n className,\n}: PricingTierFocusProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const focusedIdx = Number(focusedTier);\n const focusStart = 30;\n\n const focusProgress = spring({\n frame: frame - focusStart,\n fps,\n config: { mass: 1, damping: 18, stiffness: 90 },\n durationInFrames: 50,\n });\n\n const focusScale = interpolate(focusProgress, [0, 1], [1, 1.05]);\n const focusLift = interpolate(focusProgress, [0, 1], [0, -20]);\n const sideBrightness = interpolate(focusProgress, [0, 1], [1, 0.4]);\n const sideBlur = interpolate(focusProgress, [0, 1], [0, 4]);\n const sideScale = interpolate(focusProgress, [0, 1], [1, 0.95]);\n\n // Shimmer on Pro CTA — runs around frame 90\n const shimmerStart = 90;\n const shimmerPos = interpolate(\n frame,\n [shimmerStart, shimmerStart + 40],\n [-150, 250],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background: \"#0a0a0a\",\n fontFamily: FONT_FAMILY,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n padding: 60,\n gap: 28,\n }}\n >\n {TIERS.map((tier, i) => {\n const isFocused = i === focusedIdx;\n const scale = isFocused ? focusScale : sideScale;\n const lift = isFocused ? focusLift : 0;\n const brightness = isFocused ? 1 : sideBrightness;\n const blurPx = isFocused ? 0 : sideBlur;\n const z = isFocused ? 10 : 1;\n const shadow = isFocused\n ? `0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px ${accentColor}55`\n : \"0 8px 24px rgba(0,0,0,0.4)\";\n\n return (\n <div\n key={tier.name}\n style={{\n position: \"relative\",\n flex: \"1 1 0\",\n maxWidth: 320,\n minHeight: 460,\n padding: 32,\n borderRadius: 20,\n background: \"linear-gradient(180deg, #161616 0%, #0e0e0e 100%)\",\n border: \"1px solid rgba(255,255,255,0.08)\",\n boxShadow: shadow,\n transform: `translateY(${lift}px) scale(${scale})`,\n filter: `brightness(${brightness}) blur(${blurPx}px)`,\n zIndex: z,\n display: \"flex\",\n flexDirection: \"column\",\n willChange: \"transform, filter\",\n }}\n >\n {isFocused && (\n <div\n style={{\n position: \"absolute\",\n top: 16,\n right: 16,\n padding: \"4px 10px\",\n borderRadius: 999,\n background: accentColor,\n color: \"#0a0a0a\",\n fontSize: 11,\n fontWeight: 700,\n letterSpacing: \"0.04em\",\n textTransform: \"uppercase\",\n }}\n >\n Popular\n </div>\n )}\n <div\n style={{\n fontSize: 14,\n fontWeight: 600,\n color: \"rgba(255,255,255,0.6)\",\n letterSpacing: \"0.04em\",\n textTransform: \"uppercase\",\n }}\n >\n {tier.name}\n </div>\n <div\n style={{\n marginTop: 12,\n display: \"flex\",\n alignItems: \"baseline\",\n gap: 4,\n }}\n >\n <div\n style={{\n fontSize: 56,\n fontWeight: 700,\n color: \"white\",\n letterSpacing: \"-0.04em\",\n lineHeight: 1,\n }}\n >\n {tier.price}\n </div>\n <div\n style={{\n fontSize: 16,\n color: \"rgba(255,255,255,0.5)\",\n fontWeight: 500,\n }}\n >\n {tier.period}\n </div>\n </div>\n <div\n style={{\n marginTop: 24,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 12,\n flex: 1,\n }}\n >\n {tier.features.map((f) => (\n <div\n key={f}\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 10,\n fontSize: 14,\n color: \"rgba(255,255,255,0.85)\",\n }}\n >\n <div\n style={{\n width: 16,\n height: 16,\n borderRadius: 999,\n background: `${accentColor}22`,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: accentColor,\n fontSize: 11,\n fontWeight: 700,\n flexShrink: 0,\n }}\n >\n ✓\n </div>\n {f}\n </div>\n ))}\n </div>\n <div\n style={{\n marginTop: 24,\n position: \"relative\",\n height: 44,\n borderRadius: 12,\n background: isFocused ? accentColor : \"rgba(255,255,255,0.08)\",\n color: isFocused ? \"#0a0a0a\" : \"white\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontSize: 14,\n fontWeight: 600,\n overflow: \"hidden\",\n border: isFocused ? \"none\" : \"1px solid rgba(255,255,255,0.1)\",\n }}\n >\n {tier.cta}\n {isFocused && (\n <div\n style={{\n position: \"absolute\",\n top: 0,\n left: 0,\n bottom: 0,\n width: 80,\n transform: `translateX(${shimmerPos}px) skewX(-20deg)`,\n background:\n \"linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%)\",\n pointerEvents: \"none\",\n }}\n />\n )}\n </div>\n </div>\n );\n })}\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/pricing-tier-focus.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
new file mode 100644
index 00000000..f33294df
--- /dev/null
+++ b/public/r/product-launch-trailer.json
@@ -0,0 +1,18 @@
+{
+ "$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/progress-steps.json b/public/r/progress-steps.json
index e0e6a107..e45321f3 100644
--- a/public/r/progress-steps.json
+++ b/public/r/progress-steps.json
@@ -3,14 +3,16 @@
"name": "progress-steps",
"title": "Progress Steps",
"description": "Multi-step pipeline with sequentially activating nodes and filling lines.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/progress-steps/index.tsx",
- "content": "\"use client\";\n\nimport {\n interpolate,\n interpolateColors,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface ProgressStepsProps {\n steps?: Array<{ label: string }>;\n orientation?: \"horizontal\" | \"vertical\";\n activeColor?: string;\n inactiveColor?: string;\n background?: string;\n textColor?: string;\n stepDuration?: number;\n speed?: number;\n className?: string;\n}\n\nexport function ProgressSteps({\n steps = [{ label: \"Connect\" }, { label: \"Process\" }, { label: \"Deploy\" }],\n orientation = \"horizontal\",\n activeColor = \"#22c55e\",\n inactiveColor = \"#27272a\",\n background = \"#0a0a0a\",\n textColor = \"white\",\n stepDuration = 30,\n speed = 1,\n className,\n}: ProgressStepsProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const isHorizontal = orientation === \"horizontal\";\n const trackLength = isHorizontal ? 920 : 520;\n const segmentLength = trackLength / Math.max(steps.length - 1, 1);\n const nodeRadius = 22;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n style={{\n position: \"relative\",\n display: \"flex\",\n flexDirection: isHorizontal ? \"row\" : \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: 0,\n }}\n >\n {/* SVG layer for connecting lines */}\n <svg\n style={{\n position: \"absolute\",\n left: isHorizontal ? nodeRadius : \"50%\",\n top: isHorizontal ? \"50%\" : nodeRadius,\n transform: isHorizontal\n ? \"translateY(-50%)\"\n : \"translateX(-50%)\",\n overflow: \"visible\",\n pointerEvents: \"none\",\n }}\n width={isHorizontal ? trackLength : 4}\n height={isHorizontal ? 4 : trackLength}\n >\n {steps.slice(0, -1).map((_, i) => {\n const lineStart = (i + 1) * stepDuration;\n const fillProgress = interpolate(\n frame,\n [lineStart, lineStart + stepDuration],\n [segmentLength, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n return (\n <line\n key={i}\n x1={isHorizontal ? i * segmentLength : 2}\n y1={isHorizontal ? 2 : i * segmentLength}\n x2={isHorizontal ? (i + 1) * segmentLength : 2}\n y2={isHorizontal ? 2 : (i + 1) * segmentLength}\n stroke={activeColor}\n strokeWidth={4}\n strokeLinecap=\"round\"\n strokeDasharray={segmentLength}\n strokeDashoffset={fillProgress}\n />\n );\n })}\n {/* Background track */}\n {steps.slice(0, -1).map((_, i) => (\n <line\n key={`bg-${i}`}\n x1={isHorizontal ? i * segmentLength : 2}\n y1={isHorizontal ? 2 : i * segmentLength}\n x2={isHorizontal ? (i + 1) * segmentLength : 2}\n y2={isHorizontal ? 2 : (i + 1) * segmentLength}\n stroke={inactiveColor}\n strokeWidth={4}\n strokeLinecap=\"round\"\n style={{ opacity: 0.6 }}\n />\n ))}\n </svg>\n\n {steps.map((step, i) => {\n const activateAt = i * stepDuration;\n const localFrame = frame - activateAt;\n const popScale = spring({\n frame: localFrame,\n fps,\n config: { damping: 10, stiffness: 180, mass: 0.6 },\n });\n const scale = interpolate(popScale, [0, 1], [0.8, 1]);\n const fill = interpolateColors(\n frame,\n [activateAt, activateAt + 8],\n [inactiveColor, activeColor],\n );\n const showCheck = interpolate(\n frame,\n [activateAt + 6, activateAt + 14],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n return (\n <div\n key={i}\n style={{\n position: \"relative\",\n display: \"flex\",\n flexDirection: isHorizontal ? \"column\" : \"row\",\n alignItems: \"center\",\n gap: 14,\n width: isHorizontal ? segmentLength : \"auto\",\n height: isHorizontal ? \"auto\" : segmentLength,\n marginRight:\n isHorizontal && i === steps.length - 1 ? 0 : -segmentLength,\n marginBottom:\n !isHorizontal && i === steps.length - 1 ? 0 : -segmentLength,\n zIndex: 2,\n }}\n >\n <div\n style={{\n width: nodeRadius * 2,\n height: nodeRadius * 2,\n borderRadius: 999,\n background: fill,\n border: `2px solid ${activeColor}`,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n transform: `scale(${scale})`,\n transformOrigin: \"center\",\n boxShadow: `0 0 0 6px ${activeColor}1a`,\n }}\n >\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n style={{ opacity: showCheck }}\n >\n <path\n d=\"M5 12.5l4.5 4.5L19 7\"\n stroke=\"white\"\n strokeWidth=\"3\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </div>\n <span\n style={{\n fontSize: 15,\n fontWeight: 500,\n color: textColor,\n letterSpacing: \"-0.01em\",\n whiteSpace: \"nowrap\",\n position: isHorizontal ? \"absolute\" : \"static\",\n top: isHorizontal ? nodeRadius * 2 + 14 : undefined,\n }}\n >\n {step.label}\n </span>\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport {\n interpolate,\n interpolateColors,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface ProgressStepsProps {\n steps?: Array<{ label: string }>;\n orientation?: \"horizontal\" | \"vertical\";\n activeColor?: string;\n inactiveColor?: string;\n background?: string;\n textColor?: string;\n stepDuration?: number;\n speed?: number;\n className?: string;\n}\n\nexport function ProgressSteps({\n steps = [{ label: \"Connect\" }, { label: \"Process\" }, { label: \"Deploy\" }],\n orientation = \"horizontal\",\n activeColor = \"#22c55e\",\n inactiveColor = \"#27272a\",\n background = \"#0a0a0a\",\n textColor = \"white\",\n stepDuration = 30,\n speed = 1,\n className,\n}: ProgressStepsProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const isHorizontal = orientation === \"horizontal\";\n const trackLength = isHorizontal ? 920 : 520;\n const segmentLength = trackLength / Math.max(steps.length - 1, 1);\n const nodeRadius = 22;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n style={{\n position: \"relative\",\n display: \"flex\",\n flexDirection: isHorizontal ? \"row\" : \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: 0,\n }}\n >\n {/* SVG layer for connecting lines */}\n <svg\n style={{\n position: \"absolute\",\n left: isHorizontal ? nodeRadius : \"50%\",\n top: isHorizontal ? \"50%\" : nodeRadius,\n transform: isHorizontal ? \"translateY(-50%)\" : \"translateX(-50%)\",\n overflow: \"visible\",\n pointerEvents: \"none\",\n }}\n width={isHorizontal ? trackLength : 4}\n height={isHorizontal ? 4 : trackLength}\n >\n {steps.slice(0, -1).map((_, i) => {\n const lineStart = (i + 1) * stepDuration;\n const fillProgress = interpolate(\n frame,\n [lineStart, lineStart + stepDuration],\n [segmentLength, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n return (\n <line\n key={i}\n x1={isHorizontal ? i * segmentLength : 2}\n y1={isHorizontal ? 2 : i * segmentLength}\n x2={isHorizontal ? (i + 1) * segmentLength : 2}\n y2={isHorizontal ? 2 : (i + 1) * segmentLength}\n stroke={activeColor}\n strokeWidth={4}\n strokeLinecap=\"round\"\n strokeDasharray={segmentLength}\n strokeDashoffset={fillProgress}\n />\n );\n })}\n {/* Background track */}\n {steps.slice(0, -1).map((_, i) => (\n <line\n key={`bg-${i}`}\n x1={isHorizontal ? i * segmentLength : 2}\n y1={isHorizontal ? 2 : i * segmentLength}\n x2={isHorizontal ? (i + 1) * segmentLength : 2}\n y2={isHorizontal ? 2 : (i + 1) * segmentLength}\n stroke={inactiveColor}\n strokeWidth={4}\n strokeLinecap=\"round\"\n style={{ opacity: 0.6 }}\n />\n ))}\n </svg>\n\n {steps.map((step, i) => {\n const activateAt = i * stepDuration;\n const localFrame = frame - activateAt;\n const popScale = spring({\n frame: localFrame,\n fps,\n config: { damping: 10, stiffness: 180, mass: 0.6 },\n });\n const scale = interpolate(popScale, [0, 1], [0.8, 1]);\n const fill = interpolateColors(\n frame,\n [activateAt, activateAt + 8],\n [inactiveColor, activeColor],\n );\n const showCheck = interpolate(\n frame,\n [activateAt + 6, activateAt + 14],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n return (\n <div\n key={i}\n style={{\n position: \"relative\",\n display: \"flex\",\n flexDirection: isHorizontal ? \"column\" : \"row\",\n alignItems: \"center\",\n gap: 14,\n width: isHorizontal ? segmentLength : \"auto\",\n height: isHorizontal ? \"auto\" : segmentLength,\n marginRight:\n isHorizontal && i === steps.length - 1 ? 0 : -segmentLength,\n marginBottom:\n !isHorizontal && i === steps.length - 1 ? 0 : -segmentLength,\n zIndex: 2,\n }}\n >\n <div\n style={{\n width: nodeRadius * 2,\n height: nodeRadius * 2,\n borderRadius: 999,\n background: fill,\n border: `2px solid ${activeColor}`,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n transform: `scale(${scale})`,\n transformOrigin: \"center\",\n boxShadow: `0 0 0 6px ${activeColor}1a`,\n }}\n >\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n style={{ opacity: showCheck }}\n >\n <path\n d=\"M5 12.5l4.5 4.5L19 7\"\n stroke=\"white\"\n strokeWidth=\"3\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </div>\n <span\n style={{\n fontSize: 15,\n fontWeight: 500,\n color: textColor,\n letterSpacing: \"-0.01em\",\n whiteSpace: \"nowrap\",\n position: isHorizontal ? \"absolute\" : \"static\",\n top: isHorizontal ? nodeRadius * 2 + 14 : undefined,\n }}\n >\n {step.label}\n </span>\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/progress-steps.tsx"
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/pulsing-indicator.json b/public/r/pulsing-indicator.json
index ff0d304f..e3fe9d33 100644
--- a/public/r/pulsing-indicator.json
+++ b/public/r/pulsing-indicator.json
@@ -3,7 +3,9 @@
"name": "pulsing-indicator",
"title": "Pulsing Indicator",
"description": "Continuous pulsing dot with ping ring for loading or live states.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/pulsing-indicator/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/registry.json b/public/r/registry.json
index 79d3559a..a0fcd5c4 100644
--- a/public/r/registry.json
+++ b/public/r/registry.json
@@ -562,6 +562,342 @@
"target": "components/remocn/success-confetti.tsx"
}
]
+ },
+ {
+ "name": "frosted-glass-wipe",
+ "type": "registry:component",
+ "title": "Frosted Glass Wipe",
+ "description": "Elegant scene transition through a sliding pane of frosted glass.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/frosted-glass-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/frosted-glass-wipe.tsx"
+ }
+ ]
+ },
+ {
+ "name": "kinetic-type-mask",
+ "type": "registry:component",
+ "title": "Kinetic Type Mask",
+ "description": "Use giant typography as a window into the next scene.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/kinetic-type-mask/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/kinetic-type-mask.tsx"
+ }
+ ]
+ },
+ {
+ "name": "spatial-push",
+ "type": "registry:component",
+ "title": "Spatial Push",
+ "description": "A new scene physically presses the old one back into the frame.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/spatial-push/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/spatial-push.tsx"
+ }
+ ]
+ },
+ {
+ "name": "grid-pixelate-wipe",
+ "type": "registry:component",
+ "title": "Grid Pixelate Wipe",
+ "description": "Dissolve from one scene to the next through a deterministic grid of mask cells.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/grid-pixelate-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/grid-pixelate-wipe.tsx"
+ }
+ ]
+ },
+ {
+ "name": "chromatic-aberration-wipe",
+ "type": "registry:component",
+ "title": "Chromatic Aberration Wipe",
+ "description": "An ultra-fast slide transition with an RGB glitch on the peak frames.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/chromatic-aberration-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/chromatic-aberration-wipe.tsx"
+ }
+ ]
+ },
+ {
+ "name": "hero-device-assemble",
+ "type": "registry:component",
+ "title": "Hero Device Assemble",
+ "description": "Floating device layers spring together into a laptop or phone mockup, then the screen wakes with a shimmer.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/hero-device-assemble/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/hero-device-assemble.tsx"
+ }
+ ]
+ },
+ {
+ "name": "ecosystem-constellation",
+ "type": "registry:component",
+ "title": "Ecosystem Constellation",
+ "description": "A central logo orbited by integration satellites with pulsing data lines.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/ecosystem-constellation/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/ecosystem-constellation.tsx"
+ }
+ ]
+ },
+ {
+ "name": "ai-generation-canvas",
+ "type": "registry:component",
+ "title": "AI Generation Canvas",
+ "description": "A prompt input transforms into a header, then a skeleton dashboard flips into populated cards.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/ai-generation-canvas/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/ai-generation-canvas.tsx"
+ }
+ ]
+ },
+ {
+ "name": "live-code-compilation",
+ "type": "registry:component",
+ "title": "Live Code Compilation",
+ "description": "Split-screen where typed code on the left snaps a live UI preview on the right, HMR-style.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/live-code-compilation/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/live-code-compilation.tsx"
+ }
+ ]
+ },
+ {
+ "name": "landing-code-showcase",
+ "type": "registry:component",
+ "title": "Landing Code Showcase",
+ "description": "Magical split-screen: code types itself on the left while the preview reactively re-renders on the right with sparks and tactile bounce.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/landing-code-showcase/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/landing-code-showcase.tsx"
+ }
+ ]
+ },
+ {
+ "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",
+ "title": "Dashboard Populate",
+ "description": "An empty dashboard cascades to life with KPI count-ups, bar bounces, line traces, and a donut fill.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/dashboard-populate/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/dashboard-populate.tsx"
+ }
+ ]
+ },
+ {
+ "name": "terminal-to-browser-deploy",
+ "type": "registry:component",
+ "title": "Terminal to Browser Deploy",
+ "description": "A CLI deploy completes, the terminal blurs back, and a browser window springs from the deploy URL.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/terminal-to-browser-deploy/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/terminal-to-browser-deploy.tsx"
+ }
+ ]
+ },
+ {
+ "name": "browser-flow",
+ "type": "registry:component",
+ "title": "Browser Flow",
+ "description": "Full Safari/Chrome simulation: typed URL, progress bar, page render, scroll, and a virtual cursor click.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/browser-flow/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/browser-flow.tsx"
+ }
+ ]
+ },
+ {
+ "name": "pricing-tier-focus",
+ "type": "registry:component",
+ "title": "Pricing Tier Focus",
+ "description": "Three pricing cards where the focused tier rises and brightens while siblings dim and blur.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/pricing-tier-focus/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/pricing-tier-focus.tsx"
+ }
+ ]
+ },
+ {
+ "name": "infinite-bento-pan",
+ "type": "registry:component",
+ "title": "Infinite Bento Pan",
+ "description": "A camera diagonally drifts across an oversized bento grid behind a soft vignette.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/infinite-bento-pan/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/infinite-bento-pan.tsx"
+ }
+ ]
+ },
+ {
+ "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",
+ "title": "Tool Menu Slide In",
+ "description": "A glass tool palette whips up from below the editor canvas while its icons pop in with a stagger.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/tool-menu-slide-in/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/tool-menu-slide-in.tsx"
+ }
+ ]
+ },
+ {
+ "name": "image-expand-to-fullscreen",
+ "type": "registry:component",
+ "title": "Image Expand To Fullscreen",
+ "description": "An image lifts out of a feed post and morphs into a fullscreen editor with toolbars sliding in.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/image-expand-to-fullscreen/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/image-expand-to-fullscreen.tsx"
+ }
+ ]
+ },
+ {
+ "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"
+ }
+ ]
}
]
}
diff --git a/public/r/rgb-glitch-text.json b/public/r/rgb-glitch-text.json
index f02faf8f..3aa5b2e6 100644
--- a/public/r/rgb-glitch-text.json
+++ b/public/r/rgb-glitch-text.json
@@ -3,7 +3,9 @@
"name": "rgb-glitch-text",
"title": "RGB Glitch Text",
"description": "Three RGB-offset text copies jitter for a brief glitch window.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/rgb-glitch-text/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/shimmer-sweep.json b/public/r/shimmer-sweep.json
index 5d0bc77f..10631a6b 100644
--- a/public/r/shimmer-sweep.json
+++ b/public/r/shimmer-sweep.json
@@ -3,7 +3,9 @@
"name": "shimmer-sweep",
"title": "Shimmer Sweep",
"description": "Light shine sweeps across muted text via background-clip:text.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/shimmer-sweep/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/simulated-cursor.json b/public/r/simulated-cursor.json
index 62239644..cdee7258 100644
--- a/public/r/simulated-cursor.json
+++ b/public/r/simulated-cursor.json
@@ -3,7 +3,9 @@
"name": "simulated-cursor",
"title": "Simulated Cursor",
"description": "Animated mouse cursor moving between waypoints with click ripple feedback.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/simulated-cursor/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/slot-machine-roll.json b/public/r/slot-machine-roll.json
index ed2c0998..f53b69cc 100644
--- a/public/r/slot-machine-roll.json
+++ b/public/r/slot-machine-roll.json
@@ -3,7 +3,9 @@
"name": "slot-machine-roll",
"title": "Slot Machine Roll",
"description": "Vertical reel scrolls characters from one value to another.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/slot-machine-roll/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/spatial-push.json b/public/r/spatial-push.json
new file mode 100644
index 00000000..c6197bb0
--- /dev/null
+++ b/public/r/spatial-push.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "spatial-push",
+ "title": "Spatial Push",
+ "description": "A new scene physically presses the old one back into the frame.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/spatial-push/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface SpatialPushProps {\n from?: ReactNode;\n to?: ReactNode;\n direction?: \"up\" | \"down\" | \"left\" | \"right\";\n transitionStart?: number;\n transitionDuration?: number;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction DefaultPanel({ label, color }: { label: string; color: string }) {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: color,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 96,\n fontWeight: 700,\n letterSpacing: \"-0.05em\",\n }}\n >\n {label}\n </div>\n );\n}\n\nexport function SpatialPush({\n from,\n to,\n direction = \"up\",\n transitionStart,\n transitionDuration = 30,\n speed = 1,\n className,\n}: SpatialPushProps) {\n const frame = useCurrentFrame() * speed;\n const { fps, durationInFrames } = useVideoConfig();\n\n const start =\n typeof transitionStart === \"number\"\n ? transitionStart\n : Math.floor(durationInFrames * 0.4);\n\n const aProgress = interpolate(\n frame,\n [start, start + transitionDuration],\n [0, 1],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n },\n );\n\n const aScale = interpolate(aProgress, [0, 1], [1, 0.92]);\n const aBrightness = interpolate(aProgress, [0, 1], [1, 0.5]);\n const aRadius = interpolate(aProgress, [0, 1], [0, 16]);\n\n const bSpring = spring({\n frame: frame - start,\n fps,\n config: { mass: 1.2, damping: 14, stiffness: 90 },\n durationInFrames: 40,\n });\n\n const bTransform =\n direction === \"up\"\n ? `translateY(${(1 - bSpring) * 100}%)`\n : direction === \"down\"\n ? `translateY(${(bSpring - 1) * 100}%)`\n : direction === \"left\"\n ? `translateX(${(1 - bSpring) * 100}%)`\n : `translateX(${(bSpring - 1) * 100}%)`;\n\n const bShadow =\n direction === \"up\"\n ? \"0 -40px 100px rgba(0,0,0,0.8)\"\n : direction === \"down\"\n ? \"0 40px 100px rgba(0,0,0,0.8)\"\n : direction === \"left\"\n ? \"-40px 0 100px rgba(0,0,0,0.8)\"\n : \"40px 0 100px rgba(0,0,0,0.8)\";\n\n const fromContent = from ?? <DefaultPanel label=\"Scene A\" color=\"#0f172a\" />;\n const toContent = to ?? <DefaultPanel label=\"Scene B\" color=\"#22c55e\" />;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n background: \"black\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: `scale(${aScale})`,\n filter: `brightness(${aBrightness})`,\n borderRadius: `${aRadius}px`,\n overflow: \"hidden\",\n willChange: \"transform\",\n }}\n >\n {fromContent}\n </div>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: bTransform,\n boxShadow: bShadow,\n willChange: \"transform\",\n }}\n >\n {toContent}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/spatial-push.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/spotlight-card.json b/public/r/spotlight-card.json
index 2a92ae25..f630a393 100644
--- a/public/r/spotlight-card.json
+++ b/public/r/spotlight-card.json
@@ -3,7 +3,9 @@
"name": "spotlight-card",
"title": "Spotlight Card",
"description": "A card with a moonlight-cool radial spotlight that follows a synthetic cursor and lights up its microborder.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/spotlight-card/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/spring-pop-in.json b/public/r/spring-pop-in.json
index 6fc75a4f..0da9e0dd 100644
--- a/public/r/spring-pop-in.json
+++ b/public/r/spring-pop-in.json
@@ -3,7 +3,9 @@
"name": "spring-pop-in",
"title": "Spring Pop In",
"description": "Elastic spring-driven scale-in wrapper for any child element.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/spring-pop-in/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/staggered-bento-grid.json b/public/r/staggered-bento-grid.json
index 115ce0ba..bce85104 100644
--- a/public/r/staggered-bento-grid.json
+++ b/public/r/staggered-bento-grid.json
@@ -3,14 +3,16 @@
"name": "staggered-bento-grid",
"title": "Staggered Bento Grid",
"description": "Cards pop into a bento grid one after another with a spring.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/staggered-bento-grid/index.tsx",
- "content": "\"use client\";\n\nimport {\n Sequence,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} 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: \"Open\", body: \"MIT licensed\", span: 2 },\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",
+ "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/staggered-fade-up.json b/public/r/staggered-fade-up.json
index 109ac2f1..9140e386 100644
--- a/public/r/staggered-fade-up.json
+++ b/public/r/staggered-fade-up.json
@@ -3,7 +3,9 @@
"name": "staggered-fade-up",
"title": "Staggered Fade Up",
"description": "Words fade in and slide up one after another with a configurable delay.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/staggered-fade-up/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/strikethrough-replace.json b/public/r/strikethrough-replace.json
index dc47926d..233874d0 100644
--- a/public/r/strikethrough-replace.json
+++ b/public/r/strikethrough-replace.json
@@ -3,7 +3,9 @@
"name": "strikethrough-replace",
"title": "Strikethrough Replace",
"description": "Draws a strike line across old text then reveals new text in its place.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/strikethrough-replace/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/success-confetti.json b/public/r/success-confetti.json
index d1cdc0d6..5b2d2c93 100644
--- a/public/r/success-confetti.json
+++ b/public/r/success-confetti.json
@@ -3,14 +3,16 @@
"name": "success-confetti",
"title": "Success Confetti",
"description": "Deterministic seeded confetti burst with optional headline.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/success-confetti/index.tsx",
- "content": "\"use client\";\n\nimport {\n interpolate,\n random,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface SuccessConfettiProps {\n count?: number;\n colors?: string[];\n originX?: number;\n originY?: number;\n gravity?: number;\n velocity?: number;\n text?: string;\n textColor?: string;\n background?: string;\n seed?: string;\n speed?: number;\n className?: string;\n}\n\nexport function SuccessConfetti({\n count = 60,\n colors = [\"#ff5e3a\", \"#22c55e\", \"#0ea5e9\", \"#facc15\", \"#a855f7\"],\n originX = 0.5,\n originY = 0.5,\n gravity = 0.4,\n velocity = 12,\n text = \"Merged!\",\n textColor = \"#171717\",\n background = \"#fafafa\",\n seed = \"remocn\",\n speed = 1,\n className,\n}: SuccessConfettiProps) {\n const frame = useCurrentFrame() * speed;\n const { fps, durationInFrames } = useVideoConfig();\n\n const width = 1280;\n const height = 720;\n const cx = width * originX;\n const cy = height * originY;\n\n const textPop = spring({\n frame: frame - 4,\n fps,\n config: { damping: 9, stiffness: 160, mass: 0.7 },\n });\n const textScale = interpolate(textPop, [0, 1], [0.6, 1]);\n const textOpacity = interpolate(frame, [4, 14], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const textExit = interpolate(\n frame,\n [durationInFrames - 12, durationInFrames],\n [1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const particles = Array.from({ length: count }, (_, i) => {\n const seedKey = `${seed}:${i}`;\n const angle =\n random(`${seedKey}:angle`) * Math.PI * 2; // 0..2pi for full burst\n const speed = velocity * (0.6 + random(`${seedKey}:speed`) * 0.8);\n const colorIndex = Math.floor(\n random(`${seedKey}:color`) * colors.length,\n );\n const color = colors[colorIndex] ?? colors[0];\n const size = 6 + random(`${seedKey}:size`) * 8;\n const rotationSpeed = (random(`${seedKey}:rot`) - 0.5) * 16;\n const initialRotation = random(`${seedKey}:irot`) * 360;\n const isCircle = random(`${seedKey}:shape`) > 0.6;\n const lifeOffset = Math.floor(random(`${seedKey}:delay`) * 4);\n\n const f = Math.max(0, frame - lifeOffset);\n const x = cx + Math.cos(angle) * speed * f;\n const y =\n cy + Math.sin(angle) * speed * f + 0.5 * gravity * f * f;\n const rotation = initialRotation + rotationSpeed * f;\n\n const opacity = interpolate(\n frame,\n [0, 4, durationInFrames - 20, durationInFrames],\n [0, 1, 1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n return {\n x,\n y,\n rotation,\n color,\n size,\n isCircle,\n opacity,\n key: i,\n };\n });\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n overflow: \"hidden\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <svg\n width={width}\n height={height}\n viewBox={`0 0 ${width} ${height}`}\n style={{ position: \"absolute\", inset: 0 }}\n >\n {particles.map((p) =>\n p.isCircle ? (\n <circle\n key={p.key}\n cx={p.x}\n cy={p.y}\n r={p.size / 2}\n fill={p.color}\n opacity={p.opacity}\n />\n ) : (\n <rect\n key={p.key}\n x={-p.size / 2}\n y={-p.size / 2}\n width={p.size}\n height={p.size * 0.5}\n rx={1}\n fill={p.color}\n opacity={p.opacity}\n transform={`translate(${p.x} ${p.y}) rotate(${p.rotation})`}\n />\n ),\n )}\n </svg>\n\n {text ? (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n pointerEvents: \"none\",\n }}\n >\n <span\n style={{\n fontSize: 96,\n fontWeight: 700,\n letterSpacing: \"-0.04em\",\n color: textColor,\n transform: `scale(${textScale})`,\n opacity: Math.min(textOpacity, textExit),\n }}\n >\n {text}\n </span>\n </div>\n ) : null}\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport {\n interpolate,\n random,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface SuccessConfettiProps {\n count?: number;\n colors?: string[];\n originX?: number;\n originY?: number;\n gravity?: number;\n velocity?: number;\n text?: string;\n textColor?: string;\n background?: string;\n seed?: string;\n speed?: number;\n className?: string;\n}\n\nexport function SuccessConfetti({\n count = 60,\n colors = [\"#ff5e3a\", \"#22c55e\", \"#0ea5e9\", \"#facc15\", \"#a855f7\"],\n originX = 0.5,\n originY = 0.5,\n gravity = 0.4,\n velocity = 12,\n text = \"Merged!\",\n textColor = \"#171717\",\n background = \"#fafafa\",\n seed = \"remocn\",\n speed = 1,\n className,\n}: SuccessConfettiProps) {\n const frame = useCurrentFrame() * speed;\n const { fps, durationInFrames } = useVideoConfig();\n\n const width = 1280;\n const height = 720;\n const cx = width * originX;\n const cy = height * originY;\n\n const textPop = spring({\n frame: frame - 4,\n fps,\n config: { damping: 9, stiffness: 160, mass: 0.7 },\n });\n const textScale = interpolate(textPop, [0, 1], [0.6, 1]);\n const textOpacity = interpolate(frame, [4, 14], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const textExit = interpolate(\n frame,\n [durationInFrames - 12, durationInFrames],\n [1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const particles = Array.from({ length: count }, (_, i) => {\n const seedKey = `${seed}:${i}`;\n const angle = random(`${seedKey}:angle`) * Math.PI * 2; // 0..2pi for full burst\n const speed = velocity * (0.6 + random(`${seedKey}:speed`) * 0.8);\n const colorIndex = Math.floor(random(`${seedKey}:color`) * colors.length);\n const color = colors[colorIndex] ?? colors[0];\n const size = 6 + random(`${seedKey}:size`) * 8;\n const rotationSpeed = (random(`${seedKey}:rot`) - 0.5) * 16;\n const initialRotation = random(`${seedKey}:irot`) * 360;\n const isCircle = random(`${seedKey}:shape`) > 0.6;\n const lifeOffset = Math.floor(random(`${seedKey}:delay`) * 4);\n\n const f = Math.max(0, frame - lifeOffset);\n const x = cx + Math.cos(angle) * speed * f;\n const y = cy + Math.sin(angle) * speed * f + 0.5 * gravity * f * f;\n const rotation = initialRotation + rotationSpeed * f;\n\n const opacity = interpolate(\n frame,\n [0, 4, durationInFrames - 20, durationInFrames],\n [0, 1, 1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n return {\n x,\n y,\n rotation,\n color,\n size,\n isCircle,\n opacity,\n key: i,\n };\n });\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n overflow: \"hidden\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <svg\n width={width}\n height={height}\n viewBox={`0 0 ${width} ${height}`}\n style={{ position: \"absolute\", inset: 0 }}\n >\n {particles.map((p) =>\n p.isCircle ? (\n <circle\n key={p.key}\n cx={p.x}\n cy={p.y}\n r={p.size / 2}\n fill={p.color}\n opacity={p.opacity}\n />\n ) : (\n <rect\n key={p.key}\n x={-p.size / 2}\n y={-p.size / 2}\n width={p.size}\n height={p.size * 0.5}\n rx={1}\n fill={p.color}\n opacity={p.opacity}\n transform={`translate(${p.x} ${p.y}) rotate(${p.rotation})`}\n />\n ),\n )}\n </svg>\n\n {text ? (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n pointerEvents: \"none\",\n }}\n >\n <span\n style={{\n fontSize: 96,\n fontWeight: 700,\n letterSpacing: \"-0.04em\",\n color: textColor,\n transform: `scale(${textScale})`,\n opacity: Math.min(textOpacity, textExit),\n }}\n >\n {text}\n </span>\n </div>\n ) : null}\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/success-confetti.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
new file mode 100644
index 00000000..47b79dab
--- /dev/null
+++ b/public/r/swipe-transition-wipe.json
@@ -0,0 +1,18 @@
+{
+ "$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 a1816ff6..983d09d7 100644
--- a/public/r/terminal-simulator.json
+++ b/public/r/terminal-simulator.json
@@ -3,14 +3,16 @@
"name": "terminal-simulator",
"title": "Terminal Simulator",
"description": "Terminal window that types out commands and rolls old lines off the top.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/terminal-simulator/index.tsx",
- "content": "\"use client\";\n\nimport { Sequence, interpolate, useCurrentFrame, useVideoConfig } 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(lines[i].text.length / (chunkSize * charsPerFrame));\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(\n localFrame,\n [0, totalChars / charsPerFrame],\n [0, totalChars],\n { extrapolateLeft: \"clamp\", 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 = 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",
"type": "registry:component",
"target": "components/remocn/terminal-simulator.tsx"
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/terminal-to-browser-deploy.json b/public/r/terminal-to-browser-deploy.json
new file mode 100644
index 00000000..e4c526a4
--- /dev/null
+++ b/public/r/terminal-to-browser-deploy.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "terminal-to-browser-deploy",
+ "title": "Terminal to Browser Deploy",
+ "description": "A CLI deploy completes, the terminal blurs back, and a browser window springs from the deploy URL.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/terminal-to-browser-deploy/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface TerminalToBrowserDeployProps {\n siteUrl?: 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\ninterface Line {\n text: string;\n start: number;\n type: \"command\" | \"step\" | \"success\";\n}\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\nexport function TerminalToBrowserDeploy({\n siteUrl = \"https://app.example.com\",\n accentColor = \"#22c55e\",\n speed = 1,\n className,\n}: TerminalToBrowserDeployProps) {\n const frame = useCurrentFrame() * speed;\n const { fps, durationInFrames } = useVideoConfig();\n\n const lines: Line[] = [\n { text: \"$ pnpm deploy\", start: 10, type: \"command\" },\n { text: \"→ Building project...\", start: 35, type: \"step\" },\n { text: \"→ Bundling assets...\", start: 55, type: \"step\" },\n { text: \"→ Optimizing images...\", start: 75, type: \"step\" },\n { text: \"→ Uploading...\", start: 95, type: \"step\" },\n { text: `✓ Deployed to ${siteUrl}`, start: 120, type: \"success\" },\n ];\n\n // typewriter for each line\n const renderedLines = lines.map((line) => {\n const elapsed = frame - line.start;\n const charsPerFrame = 1.6;\n const visibleChars = Math.max(\n 0,\n Math.min(line.text.length, Math.floor(elapsed * charsPerFrame)),\n );\n return {\n ...line,\n visible: line.text.slice(0, visibleChars),\n isVisible: elapsed >= 0,\n };\n });\n\n // Terminal collapse start (after deploy line is fully typed)\n const collapseStart = 155;\n const collapseProgress = interpolate(\n frame,\n [collapseStart, collapseStart + 18],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n const terminalScale = interpolate(collapseProgress, [0, 1], [1, 0.8]);\n const terminalBlur = interpolate(collapseProgress, [0, 1], [0, 10]);\n const terminalOpacity = interpolate(collapseProgress, [0, 1], [1, 0.35]);\n\n // Browser spring entry\n const browserSpring = spring({\n frame: frame - collapseStart - 4,\n fps,\n config: { mass: 1, damping: 14, stiffness: 110 },\n durationInFrames: 50,\n });\n const browserScale = browserSpring;\n const browserOpacity = interpolate(browserSpring, [0, 0.3, 1], [0, 1, 1], {\n extrapolateRight: \"clamp\",\n });\n\n // Cursor for typewriter effect on the active line\n let activeLine: (typeof renderedLines)[number] | undefined;\n for (let i = renderedLines.length - 1; i >= 0; i--) {\n const l = renderedLines[i];\n if (l.isVisible && l.visible.length < l.text.length) {\n activeLine = l;\n break;\n }\n }\n\n // approximate vertical position of URL line within terminal body\n // line height ~ 30, body padding-top 18, lines start at index 0..5\n const urlLineIndex = 5;\n const lineHeight = 30;\n const terminalBodyPaddingTop = 22;\n const urlLineCenterY =\n terminalBodyPaddingTop + urlLineIndex * lineHeight + 12;\n\n // Terminal box dimensions inside the 1280x720 frame\n const terminalWidth = 820;\n const terminalHeight = 360;\n const terminalLeft = (1280 - terminalWidth) / 2;\n const terminalTop = (720 - terminalHeight) / 2;\n const terminalHeaderHeight = 36;\n\n // The transform-origin for the browser window: the URL text inside the terminal body\n const originX = terminalLeft + 200;\n const originY = terminalTop + terminalHeaderHeight + urlLineCenterY;\n\n // Browser window dimensions\n const browserWidth = 980;\n const browserHeight = 560;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n background: \"#050505\",\n fontFamily: FONT_FAMILY,\n }}\n >\n {/* subtle backdrop */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background:\n \"radial-gradient(ellipse at center, #0f172a 0%, #050505 70%)\",\n }}\n />\n\n {/* Terminal */}\n <div\n style={{\n position: \"absolute\",\n left: terminalLeft,\n top: terminalTop,\n width: terminalWidth,\n height: terminalHeight,\n borderRadius: 14,\n background: \"rgba(15,15,17,0.96)\",\n border: \"1px solid rgba(255,255,255,0.08)\",\n boxShadow:\n \"0 30px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06)\",\n overflow: \"hidden\",\n transform: `scale(${terminalScale})`,\n filter: `blur(${terminalBlur}px)`,\n opacity: terminalOpacity,\n transformOrigin: \"center center\",\n willChange: \"transform, filter\",\n }}\n >\n <div\n style={{\n height: terminalHeaderHeight,\n display: \"flex\",\n alignItems: \"center\",\n paddingLeft: 14,\n borderBottom: \"1px solid rgba(255,255,255,0.06)\",\n background: \"rgba(255,255,255,0.02)\",\n }}\n >\n <MacDots />\n <div\n style={{\n flex: 1,\n textAlign: \"center\",\n color: \"rgba(255,255,255,0.45)\",\n fontFamily: MONO_FAMILY,\n fontSize: 12,\n marginRight: 56,\n }}\n >\n ~/project — zsh\n </div>\n </div>\n <div\n style={{\n padding: `${terminalBodyPaddingTop}px 22px`,\n fontFamily: MONO_FAMILY,\n fontSize: 16,\n lineHeight: `${lineHeight}px`,\n color: \"rgba(255,255,255,0.85)\",\n }}\n >\n {renderedLines.map((line, i) => {\n if (!line.isVisible) return null;\n const isActive = activeLine === line;\n const showCursor = isActive && Math.floor(frame / 12) % 2 === 0;\n const color =\n line.type === \"success\"\n ? accentColor\n : line.type === \"command\"\n ? \"rgba(255,255,255,0.95)\"\n : \"rgba(255,255,255,0.7)\";\n return (\n <div\n key={i}\n style={{\n color,\n whiteSpace: \"pre\",\n }}\n >\n {line.visible}\n {showCursor && (\n <span\n style={{\n display: \"inline-block\",\n width: 8,\n height: 18,\n background: \"rgba(255,255,255,0.85)\",\n verticalAlign: \"text-bottom\",\n marginLeft: 2,\n }}\n />\n )}\n </div>\n );\n })}\n </div>\n </div>\n\n {/* Browser window — emerges from URL line */}\n <div\n style={{\n position: \"absolute\",\n left: (1280 - browserWidth) / 2,\n top: (720 - browserHeight) / 2,\n width: browserWidth,\n height: browserHeight,\n borderRadius: 16,\n overflow: \"hidden\",\n background: \"#0a0a0a\",\n border: \"1px solid rgba(255,255,255,0.1)\",\n boxShadow:\n \"0 50px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.06)\",\n transform: `scale(${browserScale})`,\n transformOrigin: `${((originX - (1280 - browserWidth) / 2) / browserWidth) * 100}% ${((originY - (720 - browserHeight) / 2) / browserHeight) * 100}%`,\n opacity: browserOpacity,\n willChange: \"transform, opacity\",\n }}\n >\n {/* Browser chrome */}\n <div\n style={{\n height: 44,\n display: \"flex\",\n alignItems: \"center\",\n gap: 14,\n paddingLeft: 16,\n paddingRight: 16,\n background: \"rgba(20,20,22,0.95)\",\n borderBottom: \"1px solid rgba(255,255,255,0.06)\",\n }}\n >\n <MacDots />\n <div\n style={{\n flex: 1,\n height: 26,\n borderRadius: 13,\n background: \"rgba(255,255,255,0.06)\",\n border: \"1px solid rgba(255,255,255,0.08)\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"rgba(255,255,255,0.7)\",\n fontFamily: MONO_FAMILY,\n fontSize: 12,\n }}\n >\n {siteUrl}\n </div>\n <div style={{ width: 60 }} />\n </div>\n {/* Page */}\n <div\n style={{\n position: \"absolute\",\n inset: \"44px 0 0 0\",\n background:\n \"linear-gradient(180deg, #0a0a0a 0%, #111118 60%, #0a0a0a 100%)\",\n color: \"white\",\n padding: \"60px 80px\",\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"flex-start\",\n gap: 24,\n }}\n >\n {/* nav */}\n <div\n style={{\n position: \"absolute\",\n top: 22,\n left: 80,\n right: 80,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n fontFamily: FONT_FAMILY,\n fontSize: 14,\n color: \"rgba(255,255,255,0.7)\",\n }}\n >\n <div style={{ fontWeight: 600, color: \"white\" }}>Acme</div>\n <div style={{ display: \"flex\", gap: 24 }}>\n <span>Features</span>\n <span>Pricing</span>\n <span>Docs</span>\n </div>\n </div>\n\n {/* abstract shape */}\n <div\n style={{\n position: \"absolute\",\n right: 60,\n top: 120,\n width: 280,\n height: 280,\n borderRadius: \"50%\",\n background: `radial-gradient(circle at 30% 30%, ${accentColor}55, transparent 70%)`,\n filter: \"blur(20px)\",\n }}\n />\n <div\n style={{\n position: \"absolute\",\n right: 100,\n top: 160,\n width: 200,\n height: 200,\n borderRadius: 24,\n border: `1px solid ${accentColor}55`,\n transform: \"rotate(12deg)\",\n background:\n \"linear-gradient(135deg, rgba(255,255,255,0.04), transparent)\",\n }}\n />\n\n <div\n style={{\n fontFamily: FONT_FAMILY,\n fontSize: 14,\n color: accentColor,\n fontWeight: 500,\n marginTop: 50,\n }}\n >\n Now live\n </div>\n <div\n style={{\n fontFamily: FONT_FAMILY,\n fontSize: 72,\n fontWeight: 700,\n letterSpacing: \"-0.04em\",\n lineHeight: 1,\n maxWidth: 560,\n }}\n >\n Ship faster.\n </div>\n <div\n style={{\n fontFamily: FONT_FAMILY,\n fontSize: 18,\n color: \"rgba(255,255,255,0.65)\",\n maxWidth: 480,\n lineHeight: 1.5,\n }}\n >\n From commit to global edge in seconds. No config. No drama.\n </div>\n <button\n type=\"button\"\n style={{\n marginTop: 8,\n padding: \"14px 28px\",\n borderRadius: 10,\n background: accentColor,\n color: \"#0a0a0a\",\n fontFamily: FONT_FAMILY,\n fontSize: 15,\n fontWeight: 600,\n border: \"none\",\n boxShadow: `0 10px 30px ${accentColor}40`,\n }}\n >\n Get started →\n </button>\n </div>\n </div>\n\n {/* prevent unused fps warning if duration computed */}\n <div style={{ display: \"none\" }}>{durationInFrames}</div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/terminal-to-browser-deploy.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/text-fade-replace.json b/public/r/text-fade-replace.json
index ea43763a..6b295727 100644
--- a/public/r/text-fade-replace.json
+++ b/public/r/text-fade-replace.json
@@ -3,7 +3,9 @@
"name": "text-fade-replace",
"title": "Text Fade Replace",
"description": "Cross-fades between two strings on the same line without layout shift.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/text-fade-replace/index.tsx",
@@ -13,4 +15,4 @@
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/toast-notification.json b/public/r/toast-notification.json
index 764fb81e..f7b7ee12 100644
--- a/public/r/toast-notification.json
+++ b/public/r/toast-notification.json
@@ -3,14 +3,16 @@
"name": "toast-notification",
"title": "Toast Notification",
"description": "System-style toast pops in, holds, then slides out.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/toast-notification/index.tsx",
- "content": "\"use client\";\n\nimport {\n interpolate,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport type ToastVariant = \"success\" | \"error\" | \"info\" | \"warning\";\n\nexport interface ToastNotificationProps {\n title?: string;\n message?: string;\n variant?: ToastVariant;\n background?: string;\n cardColor?: string;\n textColor?: string;\n mutedColor?: string;\n speed?: number;\n className?: string;\n}\n\nconst VARIANT_COLORS: Record<ToastVariant, string> = {\n success: \"#22c55e\",\n error: \"#ef4444\",\n info: \"#0ea5e9\",\n warning: \"#f59e0b\",\n};\n\nfunction VariantIcon({ variant, color }: { variant: ToastVariant; color: string }) {\n const common = {\n width: 22,\n height: 22,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: color,\n strokeWidth: 2.4,\n strokeLinecap: \"round\" as const,\n strokeLinejoin: \"round\" as const,\n };\n\n if (variant === \"success\") {\n return (\n <svg {...common}>\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M8 12.5l2.8 2.8L16 9.8\" />\n </svg>\n );\n }\n if (variant === \"error\") {\n return (\n <svg {...common}>\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M15 9l-6 6M9 9l6 6\" />\n </svg>\n );\n }\n if (variant === \"warning\") {\n return (\n <svg {...common}>\n <path d=\"M12 3l10 18H2L12 3z\" />\n <path d=\"M12 10v5M12 18v.01\" />\n </svg>\n );\n }\n return (\n <svg {...common}>\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 8v.01M12 12v5\" />\n </svg>\n );\n}\n\nexport function ToastNotification({\n title = \"Deployment successful\",\n message = \"Your changes are live at remocn.dev\",\n variant = \"success\",\n background = \"#fafafa\",\n cardColor = \"white\",\n textColor = \"#171717\",\n mutedColor = \"#71717a\",\n speed = 1,\n className,\n}: ToastNotificationProps) {\n const frame = useCurrentFrame() * speed;\n const { fps, durationInFrames } = useVideoConfig();\n\n const enterFrames = 15;\n const exitFrames = 15;\n const exitStart = Math.max(enterFrames, durationInFrames - exitFrames);\n\n const enterProgress = spring({\n frame,\n fps,\n config: { damping: 14, stiffness: 140, mass: 0.7 },\n durationInFrames: enterFrames,\n });\n\n const enterTranslate = interpolate(enterProgress, [0, 1], [40, 0]);\n const enterOpacity = interpolate(enterProgress, [0, 1], [0, 1], {\n extrapolateRight: \"clamp\",\n });\n\n const exitTranslate = interpolate(\n frame,\n [exitStart, exitStart + exitFrames],\n [0, 40],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n const exitOpacity = interpolate(\n frame,\n [exitStart, exitStart + exitFrames],\n [1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const translateY = enterTranslate + exitTranslate;\n const opacity = Math.min(enterOpacity, exitOpacity);\n\n const accent = VARIANT_COLORS[variant];\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n className={className}\n style={{\n position: \"absolute\",\n right: 32,\n bottom: 32,\n transform: `translateY(${translateY}px)`,\n opacity,\n display: \"flex\",\n alignItems: \"flex-start\",\n gap: 14,\n padding: \"16px 20px\",\n minWidth: 320,\n maxWidth: 420,\n background: cardColor,\n borderRadius: 14,\n boxShadow:\n \"0 10px 30px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06)\",\n border: \"1px solid rgba(0,0,0,0.06)\",\n }}\n >\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n width: 36,\n height: 36,\n borderRadius: 999,\n background: `${accent}1f`,\n flexShrink: 0,\n }}\n >\n <VariantIcon variant={variant} color={accent} />\n </div>\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: 2 }}>\n <span\n style={{\n fontSize: 16,\n fontWeight: 600,\n color: textColor,\n letterSpacing: \"-0.01em\",\n }}\n >\n {title}\n </span>\n <span style={{ fontSize: 14, color: mutedColor, lineHeight: 1.4 }}>\n {message}\n </span>\n </div>\n </div>\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport type ToastVariant = \"success\" | \"error\" | \"info\" | \"warning\";\n\nexport interface ToastNotificationProps {\n title?: string;\n message?: string;\n variant?: ToastVariant;\n background?: string;\n cardColor?: string;\n textColor?: string;\n mutedColor?: string;\n speed?: number;\n className?: string;\n}\n\nconst VARIANT_COLORS: Record<ToastVariant, string> = {\n success: \"#22c55e\",\n error: \"#ef4444\",\n info: \"#0ea5e9\",\n warning: \"#f59e0b\",\n};\n\nfunction VariantIcon({\n variant,\n color,\n}: {\n variant: ToastVariant;\n color: string;\n}) {\n const common = {\n width: 22,\n height: 22,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: color,\n strokeWidth: 2.4,\n strokeLinecap: \"round\" as const,\n strokeLinejoin: \"round\" as const,\n };\n\n if (variant === \"success\") {\n return (\n <svg {...common}>\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M8 12.5l2.8 2.8L16 9.8\" />\n </svg>\n );\n }\n if (variant === \"error\") {\n return (\n <svg {...common}>\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M15 9l-6 6M9 9l6 6\" />\n </svg>\n );\n }\n if (variant === \"warning\") {\n return (\n <svg {...common}>\n <path d=\"M12 3l10 18H2L12 3z\" />\n <path d=\"M12 10v5M12 18v.01\" />\n </svg>\n );\n }\n return (\n <svg {...common}>\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 8v.01M12 12v5\" />\n </svg>\n );\n}\n\nexport function ToastNotification({\n title = \"Deployment successful\",\n message = \"Your changes are live at remocn.dev\",\n variant = \"success\",\n background = \"#fafafa\",\n cardColor = \"white\",\n textColor = \"#171717\",\n mutedColor = \"#71717a\",\n speed = 1,\n className,\n}: ToastNotificationProps) {\n const frame = useCurrentFrame() * speed;\n const { fps, durationInFrames } = useVideoConfig();\n\n const enterFrames = 15;\n const exitFrames = 15;\n const exitStart = Math.max(enterFrames, durationInFrames - exitFrames);\n\n const enterProgress = spring({\n frame,\n fps,\n config: { damping: 14, stiffness: 140, mass: 0.7 },\n durationInFrames: enterFrames,\n });\n\n const enterTranslate = interpolate(enterProgress, [0, 1], [40, 0]);\n const enterOpacity = interpolate(enterProgress, [0, 1], [0, 1], {\n extrapolateRight: \"clamp\",\n });\n\n const exitTranslate = interpolate(\n frame,\n [exitStart, exitStart + exitFrames],\n [0, 40],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n const exitOpacity = interpolate(\n frame,\n [exitStart, exitStart + exitFrames],\n [1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const translateY = enterTranslate + exitTranslate;\n const opacity = Math.min(enterOpacity, exitOpacity);\n\n const accent = VARIANT_COLORS[variant];\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n className={className}\n style={{\n position: \"absolute\",\n right: 32,\n bottom: 32,\n transform: `translateY(${translateY}px)`,\n opacity,\n display: \"flex\",\n alignItems: \"flex-start\",\n gap: 14,\n padding: \"16px 20px\",\n minWidth: 320,\n maxWidth: 420,\n background: cardColor,\n borderRadius: 14,\n boxShadow: \"0 10px 30px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06)\",\n border: \"1px solid rgba(0,0,0,0.06)\",\n }}\n >\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n width: 36,\n height: 36,\n borderRadius: 999,\n background: `${accent}1f`,\n flexShrink: 0,\n }}\n >\n <VariantIcon variant={variant} color={accent} />\n </div>\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: 2 }}>\n <span\n style={{\n fontSize: 16,\n fontWeight: 600,\n color: textColor,\n letterSpacing: \"-0.01em\",\n }}\n >\n {title}\n </span>\n <span style={{ fontSize: 14, color: mutedColor, lineHeight: 1.4 }}>\n {message}\n </span>\n </div>\n </div>\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/toast-notification.tsx"
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/tool-menu-slide-in.json b/public/r/tool-menu-slide-in.json
new file mode 100644
index 00000000..700e7c90
--- /dev/null
+++ b/public/r/tool-menu-slide-in.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "tool-menu-slide-in",
+ "title": "Tool Menu Slide In",
+ "description": "A glass tool palette whips up from below the editor canvas while its icons pop in with a stagger.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/tool-menu-slide-in/index.tsx",
+ "content": "\"use client\";\n\nimport {\n interpolate,\n Sequence,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface ToolMenuSlideInProps {\n panelStartFrame?: number;\n iconStagger?: number;\n iconCount?: number;\n accent?: string;\n panelColor?: string;\n background?: string;\n iconBg?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nconst ICON_GLYPHS = [\"B\", \"S\", \"C\", \"P\", \"E\", \"T\", \"M\", \"L\"];\nconst PANEL_SLIDE_DURATION = 22;\n\nexport function ToolMenuSlideIn({\n panelStartFrame = 18,\n iconStagger = 4,\n iconCount = 5,\n accent = \"#a78bfa\",\n panelColor = \"rgba(18, 18, 22, 0.72)\",\n background = \"#070708\",\n iconBg = \"rgba(255,255,255,0.06)\",\n speed = 1,\n className,\n}: ToolMenuSlideInProps) {\n const rawFrame = useCurrentFrame();\n const frame = rawFrame * speed;\n const { fps } = useVideoConfig();\n\n const safeIconCount = Math.max(1, Math.min(8, Math.floor(iconCount)));\n\n // Snappy slide-in: high stiffness, moderate damping, low mass.\n const slide = spring({\n frame: frame - panelStartFrame,\n fps,\n config: { damping: 20, stiffness: 320, mass: 0.6 },\n });\n\n const panelTy = interpolate(slide, [0, 1], [120, 0]);\n const panelOpacity = interpolate(slide, [0, 0.4], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n // Icon sizing\n const ICON_SIZE = 64;\n const ICON_GAP = 14;\n const PANEL_PADDING = 14;\n const panelInnerWidth =\n safeIconCount * ICON_SIZE + (safeIconCount - 1) * ICON_GAP;\n const panelWidth = panelInnerWidth + PANEL_PADDING * 2;\n const panelHeight = ICON_SIZE + PANEL_PADDING * 2;\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 // subtle dot grid for editor-canvas feel\n backgroundImage:\n \"radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px)\",\n backgroundSize: \"22px 22px\",\n }}\n >\n {/* Top toolbar */}\n <div\n style={{\n position: \"absolute\",\n top: 24,\n left: 24,\n right: 24,\n height: 44,\n borderRadius: 12,\n background: \"rgba(255,255,255,0.04)\",\n border: \"1px solid rgba(255,255,255,0.06)\",\n display: \"flex\",\n alignItems: \"center\",\n padding: \"0 14px\",\n gap: 10,\n backdropFilter: \"blur(8px)\",\n }}\n >\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: 999,\n background: \"rgba(255,255,255,0.18)\",\n }}\n />\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: 999,\n background: \"rgba(255,255,255,0.12)\",\n }}\n />\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: 999,\n background: \"rgba(255,255,255,0.12)\",\n }}\n />\n <div\n style={{\n marginLeft: 16,\n fontSize: 12,\n color: \"rgba(255,255,255,0.42)\",\n letterSpacing: \"0.02em\",\n }}\n >\n editor — untitled.png\n </div>\n </div>\n\n {/* Centered placeholder canvas (the \"image being edited\") */}\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n width: 720,\n height: 420,\n transform: \"translate(-50%, -54%)\",\n borderRadius: 18,\n background:\n \"linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015))\",\n border: \"1px solid rgba(255,255,255,0.06)\",\n boxShadow:\n \"inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -40px 80px rgba(0,0,0,0.45), 0 30px 80px rgba(0,0,0,0.5)\",\n overflow: \"hidden\",\n }}\n >\n {/* Faux content block */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background:\n \"radial-gradient(60% 80% at 50% 40%, rgba(255,255,255,0.06), transparent 70%)\",\n }}\n />\n </div>\n\n {/* The slide-in tool menu */}\n <div\n style={{\n position: \"absolute\",\n bottom: 60,\n left: \"50%\",\n width: panelWidth,\n height: panelHeight,\n transform: `translateX(-50%) translateY(${panelTy}%)`,\n opacity: panelOpacity,\n background: panelColor,\n backdropFilter: \"blur(20px)\",\n WebkitBackdropFilter: \"blur(20px)\",\n border: \"1px solid rgba(255,255,255,0.08)\",\n borderRadius: panelHeight / 2,\n boxShadow:\n \"0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02), inset 0 1px 0 rgba(255,255,255,0.08)\",\n padding: PANEL_PADDING,\n display: \"flex\",\n alignItems: \"center\",\n gap: ICON_GAP,\n }}\n >\n {Array.from({ length: safeIconCount }).map((_, i) => {\n const startAt =\n panelStartFrame + PANEL_SLIDE_DURATION + iconStagger * i;\n const isActive = i === 0;\n return (\n <Sequence\n key={i}\n from={startAt}\n layout=\"none\"\n name={`tool-icon-${i}`}\n >\n <ToolIcon\n glyph={ICON_GLYPHS[i % ICON_GLYPHS.length]}\n size={ICON_SIZE}\n bg={iconBg}\n accent={accent}\n active={isActive}\n fps={fps}\n />\n </Sequence>\n );\n })}\n </div>\n </div>\n );\n}\n\nfunction ToolIcon({\n glyph,\n size,\n bg,\n accent,\n active,\n fps,\n}: {\n glyph: string;\n size: number;\n bg: string;\n accent: string;\n active: boolean;\n fps: number;\n}) {\n const frame = useCurrentFrame();\n const pop = spring({\n frame,\n fps,\n config: { damping: 14, stiffness: 260, mass: 0.7 },\n });\n const scale = interpolate(pop, [0, 1], [0, 1]);\n const opacity = interpolate(pop, [0, 0.6], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n return (\n <div\n style={{\n width: size,\n height: size,\n borderRadius: 14,\n background: active\n ? `linear-gradient(180deg, ${accent}33, ${accent}14)`\n : bg,\n border: active\n ? `1px solid ${accent}55`\n : \"1px solid rgba(255,255,255,0.06)\",\n boxShadow: active\n ? `inset 0 1px 0 rgba(255,255,255,0.12), 0 0 24px ${accent}33`\n : \"inset 0 1px 0 rgba(255,255,255,0.05)\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: active ? \"#ffffff\" : \"rgba(255,255,255,0.7)\",\n fontSize: 22,\n fontWeight: 600,\n letterSpacing: \"-0.01em\",\n transform: `scale(${scale})`,\n opacity,\n transformOrigin: \"center\",\n }}\n >\n {glyph}\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/tool-menu-slide-in.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/tracking-in.json b/public/r/tracking-in.json
index a1dddd3e..72fb8e17 100644
--- a/public/r/tracking-in.json
+++ b/public/r/tracking-in.json
@@ -3,14 +3,16 @@
"name": "tracking-in",
"title": "Tracking In",
"description": "Letter-spacing collapses and blur clears with a springy motion.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/tracking-in/index.tsx",
- "content": "\"use client\";\n\nimport {\n interpolate,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface TrackingInProps {\n text: string;\n startTracking?: number;\n startBlur?: number;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n speed?: number;\n className?: string;\n}\n\nexport function TrackingIn({\n text,\n startTracking = 0.5,\n startBlur = 12,\n fontSize = 96,\n color = \"#171717\",\n fontWeight = 700,\n speed = 1,\n className,\n}: TrackingInProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const t = spring({\n frame,\n fps,\n config: { damping: 18, stiffness: 90 },\n });\n\n const letterSpacing =\n interpolate(t, [0, 1], [startTracking, -0.03]) + \"em\";\n const blurAmount = interpolate(t, [0, 1], [startBlur, 0]);\n const opacity = interpolate(frame, [0, 15], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\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 <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color,\n letterSpacing,\n opacity,\n filter: `blur(${blurAmount}px)`,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n whiteSpace: \"nowrap\",\n }}\n >\n {text}\n </span>\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface TrackingInProps {\n text: string;\n startTracking?: number;\n startBlur?: number;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n speed?: number;\n className?: string;\n}\n\nexport function TrackingIn({\n text,\n startTracking = 0.5,\n startBlur = 12,\n fontSize = 96,\n color = \"#171717\",\n fontWeight = 700,\n speed = 1,\n className,\n}: TrackingInProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const t = spring({\n frame,\n fps,\n config: { damping: 18, stiffness: 90 },\n });\n\n const letterSpacing = interpolate(t, [0, 1], [startTracking, -0.03]) + \"em\";\n const blurAmount = interpolate(t, [0, 1], [startBlur, 0]);\n const opacity = interpolate(frame, [0, 15], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\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 <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color,\n letterSpacing,\n opacity,\n filter: `blur(${blurAmount}px)`,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n whiteSpace: \"nowrap\",\n }}\n >\n {text}\n </span>\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/tracking-in.tsx"
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/r/typewriter.json b/public/r/typewriter.json
index 6834eb42..95553bcd 100644
--- a/public/r/typewriter.json
+++ b/public/r/typewriter.json
@@ -3,7 +3,9 @@
"name": "typewriter",
"title": "Typewriter",
"description": "Character-by-character text reveal with a deterministic blinking cursor.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/typewriter/index.tsx",
@@ -13,4 +15,4 @@
}
],
"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
new file mode 100644
index 00000000..abb79c70
--- /dev/null
+++ b/public/r/visual-docs-snippet.json
@@ -0,0 +1,18 @@
+{
+ "$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/public/r/zoom-through-transition.json b/public/r/zoom-through-transition.json
index a9e0e600..09961270 100644
--- a/public/r/zoom-through-transition.json
+++ b/public/r/zoom-through-transition.json
@@ -3,14 +3,16 @@
"name": "zoom-through-transition",
"title": "Zoom Through Transition",
"description": "Aggressively scale into the center of an element.",
- "dependencies": ["remotion"],
+ "dependencies": [
+ "remotion"
+ ],
"files": [
{
"path": "registry/remocn/zoom-through-transition/index.tsx",
- "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Easing, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface ZoomThroughTransitionProps {\n children?: ReactNode;\n targetScale?: number;\n transformOrigin?: 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\nfunction DefaultContent() {\n return (\n <div\n style={{\n width: 320,\n height: 200,\n borderRadius: 24,\n background: \"linear-gradient(135deg, #0ea5e9 0%, #9333ea 100%)\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 48,\n fontWeight: 700,\n letterSpacing: \"-0.03em\",\n boxShadow: \"0 20px 60px rgba(14,165,233,0.35)\",\n }}\n >\n Zoom\n </div>\n );\n}\n\nexport function ZoomThroughTransition({\n children,\n targetScale = 20,\n transformOrigin = \"center center\",\n background = \"white\",\n speed = 1,\n className,\n}: ZoomThroughTransitionProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const scale = interpolate(\n frame,\n [0, durationInFrames],\n [1, targetScale],\n {\n extrapolateRight: \"clamp\",\n easing: Easing.bezier(0.7, 0, 0.84, 0),\n },\n );\n\n const opacity = interpolate(\n frame,\n [0, durationInFrames * 0.7, durationInFrames],\n [1, 1, 0],\n { extrapolateRight: \"clamp\" },\n );\n\n const content = children ?? <DefaultContent />;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n overflow: \"hidden\",\n }}\n >\n <div\n style={{\n transform: `scale(${scale})`,\n transformOrigin,\n opacity,\n willChange: \"transform, opacity\",\n }}\n >\n {content}\n </div>\n </div>\n );\n}\n",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Easing, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface ZoomThroughTransitionProps {\n children?: ReactNode;\n targetScale?: number;\n transformOrigin?: 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\nfunction DefaultContent() {\n return (\n <div\n style={{\n width: 320,\n height: 200,\n borderRadius: 24,\n background: \"linear-gradient(135deg, #0ea5e9 0%, #9333ea 100%)\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 48,\n fontWeight: 700,\n letterSpacing: \"-0.03em\",\n boxShadow: \"0 20px 60px rgba(14,165,233,0.35)\",\n }}\n >\n Zoom\n </div>\n );\n}\n\nexport function ZoomThroughTransition({\n children,\n targetScale = 20,\n transformOrigin = \"center center\",\n background = \"white\",\n speed = 1,\n className,\n}: ZoomThroughTransitionProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const scale = interpolate(frame, [0, durationInFrames], [1, targetScale], {\n extrapolateRight: \"clamp\",\n easing: Easing.bezier(0.7, 0, 0.84, 0),\n });\n\n const opacity = interpolate(\n frame,\n [0, durationInFrames * 0.7, durationInFrames],\n [1, 1, 0],\n { extrapolateRight: \"clamp\" },\n );\n\n const content = children ?? <DefaultContent />;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n overflow: \"hidden\",\n }}\n >\n <div\n style={{\n transform: `scale(${scale})`,\n transformOrigin,\n opacity,\n willChange: \"transform, opacity\",\n }}\n >\n {content}\n </div>\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/zoom-through-transition.tsx"
}
],
"type": "registry:component"
-}
+}
\ No newline at end of file
diff --git a/public/sponsors/.gitkeep b/public/sponsors/.gitkeep
new file mode 100644
index 00000000..e69de29b
diff --git a/registry.json b/registry.json
index 179ad4fb..a0fcd5c4 100644
--- a/registry.json
+++ b/registry.json
@@ -856,6 +856,48 @@
"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"
+ }
+ ]
}
]
}
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 32b077b4..446ffe7d 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -17,6 +17,8 @@ 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";
@@ -79,6 +81,8 @@ 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";
@@ -121,6 +125,8 @@ 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";
@@ -323,6 +329,18 @@ const registry: Record<string, RegistryEntry> = {
Component: SwipeTransitionWipe,
config: swipeTransitionWipeConfig,
},
+ "product-launch-trailer": {
+ Component: ProductLaunchTrailer,
+ config: productLaunchTrailerConfig,
+ },
+ "changelog-bite": {
+ Component: ChangelogBite,
+ config: changelogBiteConfig,
+ },
+ "visual-docs-snippet": {
+ Component: VisualDocsSnippet,
+ config: visualDocsSnippetConfig,
+ },
};
// Append the shared controls (e.g. `speed`) to every component config so
diff --git a/registry/remocn/changelog-bite/config.ts b/registry/remocn/changelog-bite/config.ts
new file mode 100644
index 00000000..347c01b8
--- /dev/null
+++ b/registry/remocn/changelog-bite/config.ts
@@ -0,0 +1,27 @@
+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
new file mode 100644
index 00000000..62f607ce
--- /dev/null
+++ b/registry/remocn/changelog-bite/index.tsx
@@ -0,0 +1,369 @@
+"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/product-launch-trailer/config.ts b/registry/remocn/product-launch-trailer/config.ts
new file mode 100644
index 00000000..9a23f8ad
--- /dev/null
+++ b/registry/remocn/product-launch-trailer/config.ts
@@ -0,0 +1,27 @@
+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
new file mode 100644
index 00000000..86829007
--- /dev/null
+++ b/registry/remocn/product-launch-trailer/index.tsx
@@ -0,0 +1,650 @@
+"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/visual-docs-snippet/config.ts b/registry/remocn/visual-docs-snippet/config.ts
new file mode 100644
index 00000000..1ad314cb
--- /dev/null
+++ b/registry/remocn/visual-docs-snippet/config.ts
@@ -0,0 +1,38 @@
+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
new file mode 100644
index 00000000..0fcec915
--- /dev/null
+++ b/registry/remocn/visual-docs-snippet/index.tsx
@@ -0,0 +1,540 @@
+"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;
+}