Skip to content

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

feat: perf, search input

kapishdima20e12388764b
diff --git a/app/(home)/components/github-button.tsx b/app/(home)/components/github-button.tsx
index e08f91ef..c2c68d5f 100644
--- a/app/(home)/components/github-button.tsx
+++ b/app/(home)/components/github-button.tsx
@@ -13,7 +13,7 @@ export async function GithubButton() {
data-track="cta_clicked"
data-cta="github_header"
data-destination={GITHUB_URL}
- className="inline-flex h-9 items-center gap-2 rounded-full border-border px-3 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40"
+ className="inline-flex h-9 items-center gap-2 rounded-full px-3 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40"
>
<GitHubIcon className="size-4" />
{stars !== null && (
diff --git a/app/(home)/components/header-parts.tsx b/app/(home)/components/header-parts.tsx
index a8a5436d..7917a75d 100644
--- a/app/(home)/components/header-parts.tsx
+++ b/app/(home)/components/header-parts.tsx
@@ -38,13 +38,27 @@ export function HeaderLogo() {
);
}
-export function HeaderActions() {
+export function HeaderActions({ cta = false }: { cta?: boolean }) {
return (
<div className="flex items-center gap-2">
<div className="hidden sm:block">
<GithubButton />
</div>
<ThemeToggle />
+ {cta && (
+ <Link
+ href="/docs/getting-started/introduction"
+ data-track="cta_clicked"
+ data-cta="get_started_header"
+ data-destination="/docs/getting-started/introduction"
+ className={cn(
+ buttonVariants({ size: "sm" }),
+ "hidden h-9 rounded-full px-4 sm:inline-flex",
+ )}
+ >
+ Get started
+ </Link>
+ )}
<Sheet>
<SheetTrigger
diff --git a/app/(home)/components/hero-terminal-bg.tsx b/app/(home)/components/hero-terminal-bg.tsx
index b4cdfb2a..9aea8d1a 100644
--- a/app/(home)/components/hero-terminal-bg.tsx
+++ b/app/(home)/components/hero-terminal-bg.tsx
@@ -35,6 +35,7 @@ export function HeroTerminalBg() {
tint={light ? "#e879f9" : "#701a75"}
scale={1.5}
digitSize={1.2}
+ dpr={1}
timeScale={reduced ? 0 : 0.3}
pause={reduced}
scanlineIntensity={0.28}
diff --git a/app/(home)/components/sections/shaders-viz.tsx b/app/(home)/components/sections/shaders-viz.tsx
index 3f4a0a24..6e266ef0 100644
--- a/app/(home)/components/sections/shaders-viz.tsx
+++ b/app/(home)/components/sections/shaders-viz.tsx
@@ -27,7 +27,7 @@ export function ShadersViz({ play }: { play: boolean }) {
return (
<div ref={containerRef} className="absolute inset-0 overflow-hidden">
- <div className="absolute top-1/2 left-1/2 aspect-video min-h-full min-w-full -translate-x-1/2 -translate-y-1/2 will-change-transform">
+ <div className="absolute top-1/2 left-1/2 aspect-video min-h-full min-w-full -translate-x-1/2 -translate-y-1/2">
<Player
ref={playerRef}
lazyComponent={loadShaderGrainGradient}
diff --git a/app/(home)/components/sections/transitions-viz.tsx b/app/(home)/components/sections/transitions-viz.tsx
index d82d836d..341682b5 100644
--- a/app/(home)/components/sections/transitions-viz.tsx
+++ b/app/(home)/components/sections/transitions-viz.tsx
@@ -39,7 +39,7 @@ export function TransitionsViz({ play }: { play: boolean }) {
return (
<div ref={containerRef} className="absolute inset-0 overflow-hidden">
- <div className="absolute top-1/2 left-1/2 aspect-video min-h-full min-w-full -translate-x-1/2 -translate-y-1/2 will-change-transform">
+ <div className="absolute top-1/2 left-1/2 aspect-video min-h-full min-w-full -translate-x-1/2 -translate-y-1/2">
<Player
ref={playerRef}
component={BareTransitionScene}
diff --git a/app/(home)/components/site-header.tsx b/app/(home)/components/site-header.tsx
index 4c68f067..f5bccaa6 100644
--- a/app/(home)/components/site-header.tsx
+++ b/app/(home)/components/site-header.tsx
@@ -8,7 +8,7 @@ export function SiteHeader() {
<StickyHeaderShell>
<HeaderLogo />
<NavDesktop links={NAV_LINKS} />
- <HeaderActions />
+ <HeaderActions cta />
</StickyHeaderShell>
);
}
diff --git a/app/(home)/components/sticky-header-shell.tsx b/app/(home)/components/sticky-header-shell.tsx
index b7a74b9d..c1131034 100644
--- a/app/(home)/components/sticky-header-shell.tsx
+++ b/app/(home)/components/sticky-header-shell.tsx
@@ -5,7 +5,7 @@ import { type ReactNode, useEffect, useRef } from "react";
import { useScroll } from "@/hooks/use-scroll";
import { cn } from "@/lib/utils";
-const HEADER_HEIGHT = 88;
+const HEADER_HEIGHT = 64;
const REVEAL_SPRING = {
type: "spring",
stiffness: 480,
@@ -21,9 +21,13 @@ export function StickyHeaderShell({ children }: { children: ReactNode }) {
const animating = useRef(false);
useEffect(() => {
+ let zoom: HTMLElement | null = null;
+
const evaluate = () => {
const height = headerRef.current?.offsetHeight ?? HEADER_HEIGHT;
- const zoom = document.querySelector<HTMLElement>("[data-hero-zoom]");
+ if (!zoom?.isConnected) {
+ zoom = document.querySelector<HTMLElement>("[data-hero-zoom]");
+ }
if (!zoom) {
y.set(0);
@@ -48,12 +52,22 @@ export function StickyHeaderShell({ children }: { children: ReactNode }) {
prevPast.current = past;
};
+ let raf = 0;
+ const schedule = () => {
+ if (raf) return;
+ raf = requestAnimationFrame(() => {
+ raf = 0;
+ evaluate();
+ });
+ };
+
evaluate();
- window.addEventListener("scroll", evaluate, { passive: true });
- window.addEventListener("resize", evaluate);
+ window.addEventListener("scroll", schedule, { passive: true });
+ window.addEventListener("resize", schedule);
return () => {
- window.removeEventListener("scroll", evaluate);
- window.removeEventListener("resize", evaluate);
+ cancelAnimationFrame(raf);
+ window.removeEventListener("scroll", schedule);
+ window.removeEventListener("resize", schedule);
};
}, [y]);
@@ -62,22 +76,22 @@ export function StickyHeaderShell({ children }: { children: ReactNode }) {
<motion.header
ref={headerRef}
style={{ y }}
- className="fixed inset-x-0 top-0 z-40 py-3"
+ className="fixed inset-x-0 top-0 z-40"
>
- <div className="section">
- <div
- className={cn(
- "flex w-full items-center justify-between rounded-3xl border px-4 transition-all duration-300 sm:px-6",
- scrolled
- ? "h-14 border-border bg-background/80 backdrop-blur-xl"
- : "h-16 border-transparent bg-transparent",
- )}
- >
+ <div
+ className={cn(
+ "transition-[height,background-color,box-shadow] duration-300",
+ scrolled
+ ? "h-14 bg-background [box-shadow:var(--elevation-raised)]"
+ : "h-16 bg-transparent shadow-none",
+ )}
+ >
+ <div className="section flex h-full items-center justify-between">
{children}
</div>
</div>
</motion.header>
- <div aria-hidden className="h-[88px]" />
+ <div aria-hidden className="h-16" />
</>
);
}
diff --git a/app/docs/layout.tsx b/app/docs/layout.tsx
index 7c6d987f..e8eb5c61 100644
--- a/app/docs/layout.tsx
+++ b/app/docs/layout.tsx
@@ -5,8 +5,15 @@ import { DocsShell } from "@/components/docs/docs-shell";
import { DocsTabsBar } from "@/components/docs/docs-tabs-bar";
import { splitDocsTree } from "@/lib/docs-tabs";
import { withNewBadges } from "@/lib/with-new-badges";
+import iconsRegistry from "@/registry/remocn-icons/registry.json";
+import uiRegistry from "@/registry/remocn-ui/registry.json";
+import remocnRegistry from "@/registry/remocn/registry.json";
import { source } from "@/source";
+const componentCount = [remocnRegistry, uiRegistry, iconsRegistry]
+ .flatMap((registry) => registry.items)
+ .filter((item) => item.type === "registry:component").length;
+
export default async function Layout({ children }: { children: ReactNode }) {
// Decorate the shared page tree with the animated "NEW" sidebar badge (see
// `withNewBadges`), then split it into the Components / Primitives tab trees
@@ -33,6 +40,7 @@ export default async function Layout({ children }: { children: ReactNode }) {
shadersTree={shaders}
filtersTree={filters}
iconsTree={icons}
+ componentCount={componentCount}
>
{children}
</DocsShell>
diff --git a/app/globals.css b/app/globals.css
index f050deab..507db0ea 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -242,7 +242,6 @@
.surface-card {
background-color: color-mix(in oklab, var(--color-card) 92%, transparent);
box-shadow: var(--elevation-raised);
- backdrop-filter: blur(12px);
}
.surface-card-highlighted {
diff --git a/app/lab/header/header-lab.tsx b/app/lab/header/header-lab.tsx
new file mode 100644
index 00000000..c54fab3c
--- /dev/null
+++ b/app/lab/header/header-lab.tsx
@@ -0,0 +1,441 @@
+"use client";
+
+import { X } from "lucide-react";
+import Link from "next/link";
+import { useEffect, useRef, useState } from "react";
+import { GitHubIcon } from "@/app/(home)/components/github-icon";
+import { HeaderLogo } from "@/app/(home)/components/header-parts";
+import { StarsButton } from "@/app/(home)/components/stars-button";
+import { ThemeToggle } from "@/app/(home)/components/theme-toggle";
+import { ComponentCustomizer } from "@/components/docs/component-customizer";
+import { SlidingHighlight } from "@/components/sliding-highlight";
+import { Button, buttonVariants } from "@/components/ui/button";
+import { Label } from "@/components/ui/label";
+import { Switch } from "@/components/ui/switch";
+import { NAV_LINKS, type NavLink } from "@/config/site";
+import { useScroll } from "@/hooks/use-scroll";
+import { type ControlConfig, getDefaults } from "@/lib/customizer-config";
+import { cn } from "@/lib/utils";
+
+const PANEL_WIDTH = 340;
+
+const CONTROLS: ControlConfig = {
+ mode: {
+ type: "select",
+ default: "island",
+ options: ["island", "bar"],
+ label: "Mode",
+ },
+ heightTop: {
+ type: "number",
+ default: 64,
+ min: 52,
+ max: 80,
+ step: 2,
+ label: "Height at top",
+ },
+ heightScrolled: {
+ type: "number",
+ default: 56,
+ min: 44,
+ max: 72,
+ step: 2,
+ label: "Height scrolled",
+ },
+ radius: {
+ type: "number",
+ default: 24,
+ min: 0,
+ max: 32,
+ step: 2,
+ label: "Radius",
+ },
+ fullRadius: { type: "boolean", default: false, label: "Pill radius" },
+ bgOpacity: {
+ type: "number",
+ default: 80,
+ min: 0,
+ max: 100,
+ step: 5,
+ label: "Background",
+ },
+ blur: {
+ type: "number",
+ default: 24,
+ min: 0,
+ max: 32,
+ step: 2,
+ label: "Blur",
+ },
+ borderOpacity: {
+ type: "number",
+ default: 100,
+ min: 0,
+ max: 100,
+ step: 5,
+ label: "Border",
+ },
+ floatGap: {
+ type: "number",
+ default: 12,
+ min: 0,
+ max: 24,
+ step: 2,
+ label: "Float gap",
+ },
+ duration: {
+ type: "number",
+ default: 300,
+ min: 100,
+ max: 600,
+ step: 50,
+ label: "Duration",
+ },
+ navMuted: { type: "boolean", default: false, label: "Muted nav" },
+ cta: {
+ type: "select",
+ default: "none",
+ options: ["none", "outline", "filled"],
+ label: "CTA",
+ },
+ githubStyle: {
+ type: "select",
+ default: "ghost",
+ options: ["ghost", "outline"],
+ label: "GitHub button",
+ },
+ showStars: { type: "boolean", default: false, label: "Stars button" },
+};
+
+type LabConfig = {
+ mode: "island" | "bar";
+ heightTop: number;
+ heightScrolled: number;
+ radius: number;
+ fullRadius: boolean;
+ bgOpacity: number;
+ blur: number;
+ borderOpacity: number;
+ floatGap: number;
+ duration: number;
+ navMuted: boolean;
+ cta: "none" | "outline" | "filled";
+ githubStyle: "ghost" | "outline";
+ showStars: boolean;
+};
+
+type SavedEntry = {
+ id: number;
+ name: string;
+ values: Record<string, unknown>;
+};
+
+const STORAGE_KEY = "remocn-lab-header";
+
+function LabNav({ links, muted }: { links: NavLink[]; muted: boolean }) {
+ const navRef = useRef<HTMLElement>(null);
+ const [highlight, setHighlight] = useState<{
+ left: number;
+ width: number;
+ } | null>(null);
+
+ const moveTo = (el: HTMLElement | null) => {
+ const nav = navRef.current;
+ if (!nav || !el) return;
+ const navRect = nav.getBoundingClientRect();
+ const elRect = el.getBoundingClientRect();
+ setHighlight({ left: elRect.left - navRect.left, width: elRect.width });
+ };
+
+ return (
+ <nav
+ ref={navRef}
+ onMouseLeave={() => setHighlight(null)}
+ className="relative hidden items-center gap-1 sm:flex"
+ >
+ <SlidingHighlight rect={highlight} />
+ {links.map((link) => (
+ <Link
+ key={link.href}
+ href={link.href}
+ onClick={(event) => event.preventDefault()}
+ onMouseEnter={(event) => moveTo(event.currentTarget)}
+ onFocus={(event) => moveTo(event.currentTarget)}
+ className={cn(
+ "relative rounded-full px-3 py-2 text-sm font-medium focus-visible:outline-none",
+ muted
+ ? "text-muted-foreground transition-colors hover:text-foreground"
+ : "text-foreground",
+ )}
+ >
+ {link.label}
+ </Link>
+ ))}
+ </nav>
+ );
+}
+
+function LabGithubButton({ style }: { style: "ghost" | "outline" }) {
+ return (
+ <span
+ className={cn(
+ "inline-flex h-9 cursor-pointer items-center gap-2 rounded-full px-3 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",
+ style === "outline" && "border border-border",
+ )}
+ >
+ <GitHubIcon className="size-4" />
+ <span className="inline-flex items-center gap-1 tabular-nums text-foreground">
+ 2.4k
+ </span>
+ </span>
+ );
+}
+
+function LabHeader({ cfg, active }: { cfg: LabConfig; active: boolean }) {
+ const island = cfg.mode === "island";
+ const height = active ? cfg.heightScrolled : cfg.heightTop;
+ const radius = cfg.fullRadius ? 999 : cfg.radius;
+ const background = active
+ ? `color-mix(in oklab, var(--background) ${cfg.bgOpacity}%, transparent)`
+ : "transparent";
+ const borderColor = active
+ ? `color-mix(in oklab, var(--border) ${cfg.borderOpacity}%, transparent)`
+ : "transparent";
+ const backdropFilter = `blur(${active ? cfg.blur : 0}px)`;
+ const transition = `height ${cfg.duration}ms ease, background-color ${cfg.duration}ms ease, border-color ${cfg.duration}ms ease, border-radius ${cfg.duration}ms ease, backdrop-filter ${cfg.duration}ms ease`;
+
+ const row = (
+ <>
+ <HeaderLogo />
+ <LabNav links={NAV_LINKS} muted={cfg.navMuted} />
+ <div className="flex items-center gap-2">
+ {cfg.showStars && (
+ <StarsButton onClick={(event) => event.preventDefault()} />
+ )}
+ <LabGithubButton style={cfg.githubStyle} />
+ <ThemeToggle />
+ {cfg.cta !== "none" && (
+ <span
+ className={cn(
+ buttonVariants({
+ variant: cfg.cta === "filled" ? "default" : "outline",
+ size: "sm",
+ }),
+ "h-9 cursor-pointer rounded-full px-4",
+ )}
+ >
+ Get started
+ </span>
+ )}
+ </div>
+ </>
+ );
+
+ return (
+ <header
+ className="fixed top-0 left-0 z-40"
+ style={{ right: PANEL_WIDTH }}
+ >
+ {island ? (
+ <div
+ className="section"
+ style={{ paddingTop: cfg.floatGap, paddingBottom: cfg.floatGap }}
+ >
+ <div
+ className="flex w-full items-center justify-between px-4 sm:px-6"
+ style={{
+ height,
+ borderRadius: radius,
+ backgroundColor: background,
+ border: `1px solid ${borderColor}`,
+ backdropFilter,
+ WebkitBackdropFilter: backdropFilter,
+ transition,
+ }}
+ >
+ {row}
+ </div>
+ </div>
+ ) : (
+ <div
+ style={{
+ height,
+ backgroundColor: background,
+ borderBottom: `1px solid ${borderColor}`,
+ backdropFilter,
+ WebkitBackdropFilter: backdropFilter,
+ transition,
+ }}
+ >
+ <div className="section flex h-full items-center justify-between">
+ {row}
+ </div>
+ </div>
+ )}
+ </header>
+ );
+}
+
+export function HeaderLab() {
+ const scrolled = useScroll();
+ const [values, setValues] = useState<Record<string, unknown>>(() =>
+ getDefaults(CONTROLS),
+ );
+ const [forceScrolled, setForceScrolled] = useState(false);
+ const [saves, setSaves] = useState<SavedEntry[]>([]);
+ const [savedNote, setSavedNote] = useState(false);
+
+ useEffect(() => {
+ try {
+ const raw = localStorage.getItem(STORAGE_KEY);
+ if (raw) setSaves(JSON.parse(raw) as SavedEntry[]);
+ } catch {}
+ }, []);
+
+ const persist = (next: SavedEntry[]) => {
+ setSaves(next);
+ try {
+ localStorage.setItem(STORAGE_KEY, JSON.stringify(next));
+ } catch {}
+ };
+
+ const save = async () => {
+ const entry: SavedEntry = {
+ id: Date.now(),
+ name: `Save ${saves.length + 1}`,
+ values,
+ };
+ persist([...saves, entry]);
+ try {
+ await navigator.clipboard.writeText(JSON.stringify(values, null, 2));
+ } catch {}
+ setSavedNote(true);
+ setTimeout(() => setSavedNote(false), 1500);
+ };
+
+ const cfg = values as unknown as LabConfig;
+ const active = scrolled || forceScrolled;
+ const spacer =
+ cfg.mode === "island" ? cfg.heightTop + cfg.floatGap * 2 : cfg.heightTop;
+
+ return (
+ <div className="min-h-screen bg-background">
+ <LabHeader cfg={cfg} active={active} />
+ <div style={{ height: spacer }} />
+
+ <main style={{ paddingRight: PANEL_WIDTH }}>
+ <div className="section">
+ <div className="flex min-h-[70vh] flex-col items-start justify-center gap-6">
+ <h1 className="max-w-2xl text-5xl font-semibold tracking-tight text-foreground">
+ Make a product demo video with your AI agent
+ </h1>
+ <p className="max-w-xl text-lg text-muted-foreground">
+ Fake landing page. Scroll to watch the header morph, tweak the
+ knobs on the right, save when it clicks.
+ </p>
+ <div className="flex gap-3">
+ <span
+ className={cn(
+ buttonVariants({ size: "lg" }),
+ "cursor-pointer rounded-full",
+ )}
+ >
+ Get started
+ </span>
+ <span
+ className={cn(
+ buttonVariants({ variant: "outline", size: "lg" }),
+ "cursor-pointer rounded-full",
+ )}
+ >
+ Browse components
+ </span>
+ </div>
+ </div>
+ <div className="flex flex-col gap-8 pb-24">
+ {[1, 2, 3, 4].map((n) => (
+ <div
+ key={n}
+ className="flex h-[70vh] items-center justify-center rounded-3xl bg-muted/50 text-sm text-muted-foreground"
+ >
+ Section {n}
+ </div>
+ ))}
+ </div>
+ </div>
+ </main>
+
+ <aside
+ className="fixed inset-y-0 right-0 z-50 overflow-y-auto border-l border-border bg-background p-4"
+ style={{ width: PANEL_WIDTH }}
+ >
+ <div className="flex items-center justify-between">
+ <span className="text-sm font-semibold text-foreground">
+ Header lab
+ </span>
+ <div className="flex items-center gap-2">
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={() => setValues(getDefaults(CONTROLS))}
+ >
+ Reset
+ </Button>
+ <Button size="sm" onClick={save}>
+ {savedNote ? "Copied" : "Save"}
+ </Button>
+ </div>
+ </div>
+
+ <label className="mt-4 flex h-9 items-center justify-between rounded-xl control-surface px-3 text-sm">
+ <span className="font-medium text-muted-foreground">
+ Force scrolled state
+ </span>
+ <Switch checked={forceScrolled} onCheckedChange={setForceScrolled} />
+ </label>
+
+ <div className="mt-3 [&>div]:grid-cols-1!">
+ <ComponentCustomizer
+ controls={CONTROLS}
+ values={values}
+ onChange={(key, value) =>
+ setValues((prev) => ({ ...prev, [key]: value }))
+ }
+ />
+ </div>
+
+ {saves.length > 0 && (
+ <div className="mt-6">
+ <Label className="text-xs text-muted-foreground">Saved</Label>
+ <div className="mt-2 flex flex-col gap-2">
+ {saves.map((entry) => (
+ <div
+ key={entry.id}
+ className="flex h-9 items-center justify-between rounded-xl control-surface px-3 text-sm"
+ >
+ <button
+ type="button"
+ className="flex-1 text-left font-medium text-foreground"
+ onClick={() => setValues(entry.values)}
+ >
+ {entry.name}
+ </button>
+ <button
+ type="button"
+ aria-label={`Delete ${entry.name}`}
+ className="text-muted-foreground hover:text-foreground"
+ onClick={() =>
+ persist(saves.filter((s) => s.id !== entry.id))
+ }
+ >
+ <X className="size-3.5" />
+ </button>
+ </div>
+ ))}
+ </div>
+ </div>
+ )}
+ </aside>
+ </div>
+ );
+}
diff --git a/app/lab/header/page.tsx b/app/lab/header/page.tsx
new file mode 100644
index 00000000..221c25be
--- /dev/null
+++ b/app/lab/header/page.tsx
@@ -0,0 +1,11 @@
+import type { Metadata } from "next";
+import { HeaderLab } from "./header-lab";
+
+export const metadata: Metadata = {
+ title: "Header lab",
+ robots: { index: false, follow: false },
+};
+
+export default function Page() {
+ return <HeaderLab />;
+}
diff --git a/components/FaultyTerminal.tsx b/components/FaultyTerminal.tsx
index dc5f4d14..39b1c7ec 100644
--- a/components/FaultyTerminal.tsx
+++ b/components/FaultyTerminal.tsx
@@ -118,13 +118,10 @@ float pattern(vec2 p, out vec2 q, out vec2 r) {
return fbm(p + r);
}
-float digit(vec2 p){
- vec2 grid = uGridMul * 15.0;
- vec2 s = floor(p * grid) / grid;
- p = p * grid;
+float cellIntensity(vec2 s){
vec2 q, r;
float intensity = pattern(s * 0.1, q, r) * 1.3 - 0.03;
-
+
if(uUseMouse > 0.5){
vec2 mouseWorld = uMouse * uScale;
float distToMouse = distance(s, mouseWorld);
@@ -143,7 +140,13 @@ float digit(vec2 p){
float fadeAlpha = smoothstep(0.0, 1.0, cellProgress);
intensity *= fadeAlpha;
}
-
+
+ return intensity;
+}
+
+float digit(vec2 p, float intensity){
+ vec2 grid = uGridMul * 15.0;
+ p = p * grid;
p = fract(p);
p *= uDigitSize;
@@ -188,12 +191,16 @@ vec3 getColor(vec2 p){
p.x += extra;
}
- float middle = digit(p);
-
+ vec2 grid = uGridMul * 15.0;
+ vec2 s = floor(p * grid) / grid;
+ float intensity = cellIntensity(s);
+
+ float middle = digit(p, intensity);
+
const float off = 0.002;
- float sum = digit(p + vec2(-off, -off)) + digit(p + vec2(0.0, -off)) + digit(p + vec2(off, -off)) +
- digit(p + vec2(-off, 0.0)) + digit(p + vec2(0.0, 0.0)) + digit(p + vec2(off, 0.0)) +
- digit(p + vec2(-off, off)) + digit(p + vec2(0.0, off)) + digit(p + vec2(off, off));
+ float sum = digit(p + vec2(-off, -off), intensity) + digit(p + vec2(0.0, -off), intensity) + digit(p + vec2(off, -off), intensity) +
+ digit(p + vec2(-off, 0.0), intensity) + digit(p, intensity) + digit(p + vec2(off, 0.0), intensity) +
+ digit(p + vec2(-off, off), intensity) + digit(p + vec2(0.0, off), intensity) + digit(p + vec2(off, off), intensity);
vec3 baseColor = vec3(0.9) * middle + sum * 0.1 * vec3(1.0) * bar;
return baseColor;
@@ -412,6 +419,24 @@ export default function FaultyTerminal({
renderer.render({ scene: mesh });
};
+
+ let inViewport = true;
+ const syncRunning = () => {
+ const shouldRun = inViewport && !document.hidden;
+ if (shouldRun && rafRef.current === 0) {
+ rafRef.current = requestAnimationFrame(update);
+ } else if (!shouldRun && rafRef.current !== 0) {
+ cancelAnimationFrame(rafRef.current);
+ rafRef.current = 0;
+ }
+ };
+ const intersectionObserver = new IntersectionObserver(([entry]) => {
+ inViewport = entry.isIntersecting;
+ syncRunning();
+ });
+ intersectionObserver.observe(ctn);
+ document.addEventListener("visibilitychange", syncRunning);
+
rafRef.current = requestAnimationFrame(update);
ctn.appendChild(gl.canvas);
@@ -419,6 +444,9 @@ export default function FaultyTerminal({
return () => {
cancelAnimationFrame(rafRef.current);
+ rafRef.current = 0;
+ intersectionObserver.disconnect();
+ document.removeEventListener("visibilitychange", syncRunning);
resizeObserver.disconnect();
if (mouseReact) ctn.removeEventListener("mousemove", handleMouseMove);
if (gl.canvas.parentElement === ctn) ctn.removeChild(gl.canvas);
diff --git a/components/docs/component-card.tsx b/components/docs/component-card.tsx
index 88803667..bb0abe08 100644
--- a/components/docs/component-card.tsx
+++ b/components/docs/component-card.tsx
@@ -24,7 +24,7 @@ function CardPreview({ item }: { item: CardItem }) {
const preview = slug ? previewManifest[slug] : undefined;
const playerRef = useRef<PlayerRef>(null);
- useAutoplay(playerRef);
+ const { containerRef } = useAutoplay(playerRef);
if (!entry || !preview) {
return (
@@ -35,7 +35,7 @@ function CardPreview({ item }: { item: CardItem }) {
}
return (
- <div className="size-full">
+ <div ref={containerRef} className="size-full">
<Player
ref={playerRef}
lazyComponent={entry.load}
diff --git a/components/docs/docs-search-trigger.tsx b/components/docs/docs-search-trigger.tsx
new file mode 100644
index 00000000..a5bbbedc
--- /dev/null
+++ b/components/docs/docs-search-trigger.tsx
@@ -0,0 +1,31 @@
+"use client";
+
+import { useSearchContext } from "fumadocs-ui/contexts/search";
+import { Search } from "lucide-react";
+
+export function DocsSearchTrigger({
+ count,
+ hideIfDisabled,
+}: {
+ count: number;
+ hideIfDisabled?: boolean;
+}) {
+ const { enabled, setOpenSearch } = useSearchContext();
+ if (hideIfDisabled && !enabled) return null;
+
+ return (
+ <button
+ type="button"
+ data-search-full=""
+ aria-label="Open Search"
+ onClick={() => setOpenSearch(true)}
+ className="inline-flex h-9 w-full items-center gap-2 rounded-xl bg-muted px-3 text-sm font-medium text-muted-foreground control-surface control-surface-interactive outline-none transition-colors hover:bg-muted/70 focus-visible:ring-2 focus-visible:ring-ring/40"
+ >
+ <Search className="size-4" />
+ Search
+ <span className="ms-auto text-xs tabular-nums text-muted-foreground/70">
+ {count} components
+ </span>
+ </button>
+ );
+}
diff --git a/components/docs/docs-shell.tsx b/components/docs/docs-shell.tsx
index a6b2e5d7..e6972fc0 100644
--- a/components/docs/docs-shell.tsx
+++ b/components/docs/docs-shell.tsx
@@ -2,8 +2,10 @@
import type { Root } from "fumadocs-core/page-tree";
import { DocsLayout } from "fumadocs-ui/layouts/docs";
+import { SearchTrigger } from "fumadocs-ui/layouts/shared/slots/search-trigger";
import { usePathname } from "next/navigation";
-import type { ReactNode } from "react";
+import { type ReactNode, useMemo } from "react";
+import { DocsSearchTrigger } from "@/components/docs/docs-search-trigger";
import { getActiveDocsTab } from "@/lib/docs-tabs";
import { baseOptions } from "@/lib/layout.shared";
@@ -43,6 +45,7 @@ export function DocsShell({
shadersTree,
filtersTree,
iconsTree,
+ componentCount,
children,
}: {
componentsTree: Root;
@@ -50,8 +53,17 @@ export function DocsShell({
shadersTree: Root;
filtersTree: Root;
iconsTree: Root;
+ componentCount: number;
children: ReactNode;
}) {
+ const searchTriggerFull = useMemo(() => {
+ function SearchTriggerFull({ hideIfDisabled }: { hideIfDisabled?: boolean }) {
+ return (
+ <DocsSearchTrigger count={componentCount} hideIfDisabled={hideIfDisabled} />
+ );
+ }
+ return SearchTriggerFull;
+ }, [componentCount]);
const pathname = usePathname();
const activeTab = getActiveDocsTab(pathname);
const isIcons = activeTab === "icons";
@@ -70,6 +82,9 @@ export function DocsShell({
{...baseOptions()}
nav={{ enabled: false }}
searchToggle={{ enabled: true }}
+ slots={{
+ searchTrigger: { sm: SearchTrigger, full: searchTriggerFull },
+ }}
themeSwitch={{ enabled: false }}
sidebar={{ collapsible: false, enabled: !isIcons }}
containerProps={{
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index a7316ff8..fcb686b6 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -810,7 +810,7 @@ export function IconsGallery() {
) : (
groups.map((group) => (
<section key={group.category} className="flex flex-col gap-3">
- <h3 className="sticky top-11 z-20 bg-background/80 py-2 text-sm font-medium text-muted-foreground backdrop-blur-xl">
+ <h3 className="sticky top-11 z-20 bg-background py-2 text-sm font-medium text-muted-foreground">
{group.category}
</h3>
<div className="grid grid-cols-[repeat(auto-fill,minmax(132px,1fr))] gap-3">
diff --git a/content/docs/guides/changelog-video.mdx b/content/docs/guides/changelog-video.mdx
new file mode 100644
index 00000000..cce478ae
--- /dev/null
+++ b/content/docs/guides/changelog-video.mdx
@@ -0,0 +1,71 @@
+---
+title: Changelog video
+description: A ~25-second release update for the weeks that ship several small things — same open, same pace, every release
+---
+
+Not every release deserves a launch. Most weeks ship three or four small improvements — a fix, a speedup, a new option — and that's exactly what this video carries. About twenty-five seconds, no big reveal, posted on a rhythm: weekly, monthly, every release. It's the lightweight sibling of the [Feature announcement](/docs/guides/feature-announcement) — when one change deserves the spotlight, use that recipe; when the week shipped several small things, use this one.
+
+## The storyboard
+
+1. **The stamp** — your product name and the date or version land together, like a postmark. This is the recurring open viewers learn to recognize.
+2. **Item one** — the change's name and one line on what it does.
+3. **Item two** — same shape, next change.
+4. **Item three** — same shape again. If a change is visual, show it instead of describing it.
+5. **The nudge** — one line pointing to the full changelog.
+6. **The lockup** — your logo, one short closing line.
+
+The value of this video isn't any single edition — it's the rhythm. Same open, same pace, every release. By the third one, viewers recognize your update in the feed before they read a word. So resist redesigning it each time; change the items, keep the frame.
+
+## Your words
+
+- **Product name**
+- **Version or date** — whatever you stamp releases with
+- **Three or four changes** — each a name plus a one-line payoff, six words or fewer
+- **Changelog URL**
+- **Closing line** — e.g. "Shipping weekly"
+
+Struggling with the payoff lines? [Words on screen](/docs/guides/words-on-screen) is the cheat sheet.
+
+## The prompt
+
+```text
+I'm making a changelog video with remocn (remocn.dev).
+
+Build a ~25-second, 1920×1080, 30fps release update for <PRODUCT NAME> in
+this Remotion project, using remocn components — install anything you need
+with `npx shadcn add @remocn/<name>`:
+
+1. Stamp — "<PRODUCT NAME>" with "<VERSION OR DATE>" beneath it, landing
+ together like a postmark. Short and confident — this open repeats every
+ release, so keep it simple enough to reuse.
+2. Items — one beat per change, every beat built the same way: the change
+ name lands first, its payoff line follows beneath it:
+ - "<CHANGE 1>" — "<PAYOFF 1>"
+ - "<CHANGE 2>" — "<PAYOFF 2>"
+ - "<CHANGE 3>" — "<PAYOFF 3>"
+ If a change is visual, replace its text beat with a small fake app
+ screen showing it happen.
+3. Nudge — one calm line: "Full changelog at <CHANGELOG URL>".
+4. Lockup — my logo (<LOGO FILE, or: use the product name as a wordmark>)
+ with a closing line: "<CLOSING LINE>".
+
+Style: warm dark background (#141318), off-white text, one accent color
+<ACCENT COLOR>, Manrope. One quiet shader-simplex-noise field behind the
+whole video. Keep motion restrained and identical across the item beats —
+this is a stamp, not a show. Use my copy exactly as written.
+```
+
+## Directing the result
+
+- "Item two runs long — tighten it."
+- "Hold the stamp a beat longer."
+- "Change three is visual — show the screen instead of the words."
+- "The items feel different from each other — make the motion identical."
+
+More directing vocabulary: [Directing your agent](/docs/guides/directing-your-agent).
+
+Next release, don't start over — ask your agent to reuse this video and swap the version and the items.
+
+## Get the file
+
+Ask your agent: **"Render the video."** You'll get an `.mp4` in the project folder, ready to post.
diff --git a/content/docs/guides/exporting-your-video.mdx b/content/docs/guides/exporting-your-video.mdx
new file mode 100644
index 00000000..153253ba
--- /dev/null
+++ b/content/docs/guides/exporting-your-video.mdx
@@ -0,0 +1,31 @@
+---
+title: Exporting your video
+description: The preview in your browser is not a file yet — one prompt turns it into an mp4 you can post
+---
+
+The preview studio plays your video, but it isn't a file. Nothing to upload, nothing to send. Rendering fixes that: it turns the preview into a real mp4, and it's one prompt.
+
+## The one move
+
+When the video looks right in the player, paste:
+
+```text
+Render the video to an mp4 in the project folder, and tell me the full path
+to the file when it's done.
+```
+
+That's it. Your agent runs the render and tells you where the file landed.
+
+## What to expect
+
+Rendering builds the file frame by frame — every frame of your video gets drawn and encoded. A thirty-second video takes a few minutes, longer than the video itself. That's normal, not a sign something is stuck. Let it finish; your agent will report back with the path.
+
+## Where the file goes next
+
+The mp4 is ready to upload as-is. X, YouTube and LinkedIn all take the horizontal file directly — no conversion, no export settings, no editor in between.
+
+Posting to Shorts, Reels or TikTok too? Those want a vertical cut of the same video: [One video, three formats](/docs/guides/one-video-three-formats).
+
+## Changed something after rendering?
+
+Just render again. The old file is not precious — a render costs a few minutes, so tweak the video, paste the same prompt, get a fresh mp4. Render as many times as it takes.
diff --git a/content/docs/guides/index.mdx b/content/docs/guides/index.mdx
index 42a795ae..2b6253db 100644
--- a/content/docs/guides/index.mdx
+++ b/content/docs/guides/index.mdx
@@ -12,6 +12,9 @@ First time here? Do the one-time [Setup](/docs/guides/setup) — about ten minut
- [Launch video](/docs/guides/launch-video) — the ~35-second video we launched remocn with, rebuilt around your product.
- [Feature announcement](/docs/guides/feature-announcement) — a ~40-second release video that shows your feature working on camera.
- [Showcase reel](/docs/guides/showcase-reel) — a fast reel where every item in a collection gets its own beat.
+- [Teaser](/docs/guides/teaser) — the ~15-second pre-launch video: something is coming, here is its name, here is the date.
+- [Product demo](/docs/guides/product-demo) — a ~50-second video where your product is on camera doing its job, one flow start to finish.
+- [Changelog video](/docs/guides/changelog-video) — a ~25-second release update on a rhythm viewers learn to recognize.
## The practices
@@ -21,3 +24,6 @@ Recipes tell you what to make. Practices make you better at every one of them:
- [Directing your agent](/docs/guides/directing-your-agent) — from the first cut to the video you meant
- [Words on screen](/docs/guides/words-on-screen) — lines people can read in two seconds
- [Your brand](/docs/guides/your-brand) — hand your brand over once, stay on-brand forever
+- [Music and sound](/docs/guides/music-and-sound) — a music bed is the cheapest upgrade that makes a video feel finished
+- [One video, three formats](/docs/guides/one-video-three-formats) — finish the horizontal video, then re-cut it to vertical and square
+- [Exporting your video](/docs/guides/exporting-your-video) — one prompt turns the browser preview into an mp4 you can post
diff --git a/content/docs/guides/meta.json b/content/docs/guides/meta.json
index 274b1f24..3e4476a9 100644
--- a/content/docs/guides/meta.json
+++ b/content/docs/guides/meta.json
@@ -8,11 +8,17 @@
"launch-video",
"feature-announcement",
"showcase-reel",
+ "teaser",
+ "product-demo",
+ "changelog-video",
"---Practices---",
"how-a-video-is-built",
"directing-your-agent",
"words-on-screen",
- "your-brand"
+ "your-brand",
+ "music-and-sound",
+ "one-video-three-formats",
+ "exporting-your-video"
],
"icon": "BookOpen01Icon"
}
diff --git a/content/docs/guides/music-and-sound.mdx b/content/docs/guides/music-and-sound.mdx
new file mode 100644
index 00000000..92ecf463
--- /dev/null
+++ b/content/docs/guides/music-and-sound.mdx
@@ -0,0 +1,52 @@
+---
+title: Music and sound
+description: The recipes produce silent videos — a music bed is the cheapest upgrade that makes one feel finished
+---
+
+Every recipe on this site produces a silent video. That's on purpose — the cut has to work on its own first. But once it does, a music bed is the single cheapest upgrade left: same video, one track underneath, and it suddenly feels finished.
+
+## Where to get a track
+
+Use a royalty-free library, not a song you like:
+
+- [Pixabay Music](https://pixabay.com/music/) — free, no attribution required
+- [Uppbeat](https://uppbeat.io) — free tier with attribution, curated for creators
+- [YouTube Audio Library](https://studio.youtube.com) — free, inside YouTube Studio
+
+One rule, no exceptions: before you publish, check that the track's license allows commercial use. A product video is commercial use even if the product is free.
+
+## What kind of track works
+
+- **Instrumental.** Vocals fight your words on screen — and your words win the video, so the vocals just lose.
+- **Steady energy.** A track that builds and drops fights your cut. Pick one that holds a level.
+- **Match the mood to the video.** A launch wants drive. A changelog wants calm. A showcase reel wants pulse. If you can imagine the video over the track, it fits.
+
+Thirty seconds of the right track beats three minutes of a great one.
+
+## Handing it to your agent
+
+Drop the audio file into the project folder, then paste:
+
+```text
+There's an audio file in the project folder: <FILE NAME>. Add it as background
+music under the whole video. Keep it quiet enough that it never competes with
+the screen, and fade it out over the outro so the video ends clean.
+```
+
+That's the whole job. Your agent handles the volume, the timing and the fade.
+
+## Directing the sound
+
+Sound takes the same plain sentences as the cut — see [Directing your agent](/docs/guides/directing-your-agent):
+
+- "Start the music on beat 2, not from the first frame."
+- "Duck the music under the demo, bring it back after."
+- "The music is too loud over the value beat."
+- "End the fade exactly with the logo."
+- "Try a harder cut — stop the music dead on the last beat instead of fading."
+
+Watch with sound on, say what's off, watch again. Two rounds is normal.
+
+## When to skip sound
+
+Most feeds autoplay muted. The version of your video most people see is the silent one — which is why every recipe builds the silent version first. Sound is polish on top, not a crutch: if a beat only works with music under it, fix the beat. Then add the track for everyone who taps unmute.
diff --git a/content/docs/guides/one-video-three-formats.mdx b/content/docs/guides/one-video-three-formats.mdx
new file mode 100644
index 00000000..dd6c0300
--- /dev/null
+++ b/content/docs/guides/one-video-three-formats.mdx
@@ -0,0 +1,36 @@
+---
+title: One video, three formats
+description: Every recipe builds a horizontal video — Reels, Shorts and TikTok want vertical, and you re-cut instead of rebuilding
+---
+
+Every recipe on this site builds a horizontal video — 16:9, the shape of YouTube, X and your landing page. But Reels, Shorts and TikTok want vertical (9:16), and some feeds like square (1:1). You don't make three videos. You make one, then re-cut it.
+
+## Finish horizontal first
+
+Direct the horizontal version all the way to done — the words, the pacing, the brand, everything. Formats are the last step, not a fork. If you branch early, every note you give afterwards has to be given three times.
+
+## The ask
+
+When the horizontal version is the one you'd publish, the whole ask is one sentence:
+
+```text
+Make a vertical 9:16 version of this video, keeping every beat.
+```
+
+Your agent reflows the same video into the new shape. Same words, same order, same timing — a taller stage.
+
+## What breaks in vertical
+
+A vertical frame is narrow, and a few things won't survive the move. Watch for them and direct in plain sentences:
+
+- **Long lines wrap or shrink.** A line that sat comfortably across a wide frame now breaks in half or gets small. Don't ask for a smaller font — shorten the line. [Words on screen](/docs/guides/words-on-screen) has the rules; vertical just enforces them harder.
+- **Side-by-side layouts stack.** Anything that sat left-and-right should now sit top-and-bottom. Say it directly: "Stack the two panels vertically."
+- **Keep the important content in the middle.** Platform UI — captions, buttons, your own handle — covers the top and bottom edges of a vertical video. Tell your agent: "Keep text and logos in the middle of the frame, away from the top and bottom edges."
+
+## Square
+
+Same move, one line: "Make a square 1:1 version, keeping every beat." Square sits between the two shapes and mostly just works.
+
+## Watch each one through
+
+Before you publish, watch every format start to finish — not just the beats you expect to break. A re-cut is a new video, and you direct it like one: same plain sentences, same standard. More vocabulary: [Directing your agent](/docs/guides/directing-your-agent).
diff --git a/content/docs/guides/product-demo.mdx b/content/docs/guides/product-demo.mdx
new file mode 100644
index 00000000..df2e881f
--- /dev/null
+++ b/content/docs/guides/product-demo.mdx
@@ -0,0 +1,77 @@
+---
+title: Product demo
+description: A ~50-second video where your product is on camera doing its job — one flow, start to finish
+---
+
+This is the video where your product does the talking. A recreated app screen acts out your core flow — something is clicked, the UI responds, the result lands — pixel-perfect and scripted, which is why it looks better than any screen recording. No cursor hunting for a button, no loading spinners, no stray notifications. In the [Feature announcement](/docs/guides/feature-announcement) this is one beat called the demo; here that beat grows into the whole video.
+
+## The storyboard
+
+1. **The setup** — one line naming who this is for and the job to be done.
+2. **The screen appears** — your app UI slides in, calm, no action yet. Let the viewer see where they are.
+3. **Step one** — the flow begins: something is clicked or typed, the UI responds.
+4. **Step two** — the next step of the same flow, given room to be seen.
+5. **Step three** — the last step; the flow completes on camera.
+6. **The payoff** — the outcome on screen, plus one line saying what just happened in the user's terms.
+7. **The close** — a terminal types your install command or URL, then your logo.
+
+The three flow steps are most of the runtime. Everything else frames them.
+
+## Your words
+
+- **Product name**
+- **Setup line** — who this is for and the job, one sentence
+- **The one flow** — told as three steps, each a short sentence describing what happens on screen ("the user pastes a link", "a preview builds itself", "the share button lights up")
+- **Payoff line** — what the user just got, in their words
+- **Install command or URL** — one, not both
+- **Closing line**
+- **Accent color** — one hex value; optional, the default lime looks good
+
+Pick one flow. A demo that shows three features demos none — the viewer should finish the video able to retell the flow from memory. If your product has three flows worth showing, that's three videos.
+
+Have a logo? Drop the SVG into the project folder and mention the file name in the prompt. No logo — your agent will use the product name as a wordmark.
+
+Struggling with the lines? [Words on screen](/docs/guides/words-on-screen) is the cheat sheet.
+
+## The prompt
+
+```text
+I'm making a product demo video with remocn (remocn.dev).
+
+Build a ~50-second, 1920×1080, 30fps demo video for <PRODUCT NAME> in this
+Remotion project, using remocn components — install anything you need with
+`npx shadcn add @remocn/<name>`:
+
+1. Setup — one calm line: "<SETUP LINE>".
+2. The screen — a recreated app screen for <PRODUCT NAME> slides in and
+ settles. No action yet — just the interface at rest.
+3. Step one — <FLOW STEP 1>. Show the interaction and the UI responding.
+4. Step two — <FLOW STEP 2>. Same screen, the flow continuing.
+5. Step three — <FLOW STEP 3>. The flow completes on camera.
+6. Payoff — the outcome stays on screen while one line lands:
+ "<PAYOFF LINE>".
+7. Close — a terminal line that types itself: `<INSTALL COMMAND OR URL>`,
+ then my logo (<LOGO FILE, or: use the product name as a wordmark>) with
+ a closing line: "<CLOSING LINE>".
+
+The app screen is the star: recreate a clean, believable version of my UI
+and script every interaction — deliberate clicks, typing that a viewer can
+follow, responses that land with a beat of rest. Give the three flow steps
+the most screen time. Style: warm dark background (#141318), off-white
+text, one accent color <ACCENT COLOR>, Manrope. Keep transitions restrained
+— the screen holds still, the flow moves. Use my copy exactly as written.
+```
+
+## Directing the result
+
+- "Step two goes by too fast — I can't see what was clicked."
+- "The screen should look more like my app — here's a screenshot."
+- "Hold the payoff longer before the close."
+- "The typing is too quick — slow it to a human pace."
+- "Cut straight from the setup line to the screen."
+
+More directing vocabulary: [Directing your agent](/docs/guides/directing-your-agent).
+
+## Get the file
+
+Ask your agent: **"Render the video."** You'll get an `.mp4` in the project folder, ready to post.
diff --git a/content/docs/guides/teaser.mdx b/content/docs/guides/teaser.mdx
new file mode 100644
index 00000000..c7f17249
--- /dev/null
+++ b/content/docs/guides/teaser.mdx
@@ -0,0 +1,68 @@
+---
+title: Teaser
+description: The ~15-second pre-launch video — something is coming, here is its name, here is the date
+---
+
+The teaser is the shortest video in these guides. Fifteen seconds, one job: something is coming, here is its name, here is the date or the waitlist link. You make it before launch day — when there's nothing to demo yet and the whole point is the itch. Short is the feature: a fifteen-second teaser loops well in a feed and earns rewatches. Resist adding beats.
+
+## The storyboard
+
+1. **The itch** — one line naming the problem or the hunger. No product yet.
+2. **The tease** — a second line promising something is coming. Still no name.
+3. **The reveal** — the product name lands, with one quiet line on what it is.
+4. **The date** — the launch date, or "Join the waitlist", big and alone.
+5. **The lockup** — your logo or wordmark and the URL.
+
+Five beats is the ceiling. If you're tempted to add a sixth, you're making a [Launch video](/docs/guides/launch-video) — save it for launch day.
+
+## Your words
+
+Six blanks, and most of them are one line:
+
+- **Product name**
+- **Two tease lines** — six words or fewer each; the first names the itch, the second promises relief
+- **What-it-is line** — one plain line for under the name
+- **The date or CTA** — "March 12" or "Join the waitlist"
+- **The URL**
+- **Accent color** — one hex value; optional, the default lime looks good
+
+Have a logo? Drop the SVG into the project folder and mention the file name in the prompt. No logo — your agent will use the product name as a wordmark.
+
+Struggling with the lines? [Words on screen](/docs/guides/words-on-screen) is the cheat sheet.
+
+## The prompt
+
+```text
+I'm making a pre-launch teaser with remocn (remocn.dev).
+
+Build a ~15-second, 1920×1080, 30fps teaser for <PRODUCT NAME> in this
+Remotion project, using remocn components — install anything you need with
+`npx shadcn add @remocn/<name>`:
+
+1. The itch — one line lands alone: "<TEASE LINE 1>".
+2. The tease — the second line takes its place: "<TEASE LINE 2>".
+3. The reveal — "<PRODUCT NAME>" lands big, uncovered by a swirling shader
+ transition (shader-swirl as a transition cover), with one quiet line
+ under it: "<WHAT-IT-IS LINE>".
+4. The date — "<DATE OR CTA>" alone on screen, big.
+5. The lockup — my logo (<LOGO FILE, or: use the product name as a wordmark>)
+ with the URL underneath: "<URL>".
+
+Style: warm dark background (#141318), off-white text, one accent color
+<ACCENT COLOR>, Manrope. One quiet shader-simplex-noise field runs behind the
+entire video with a radial scrim for readability. Five beats, no filler —
+each beat holds just long enough to read. Use my copy exactly as written.
+```
+
+## Directing the result
+
+- "The tease lines go by too fast — hold each one longer."
+- "The reveal should hit harder — bigger, faster in."
+- "Put the date in the accent color."
+- "Tighten it to twelve seconds."
+
+More directing vocabulary: [Directing your agent](/docs/guides/directing-your-agent).
+
+## Get the file
+
+Ask your agent: **"Render the video."** You'll get an `.mp4` in the project folder, ready to post.
diff --git a/hooks/use-scroll.ts b/hooks/use-scroll.ts
index 308cbe16..4029d550 100644
--- a/hooks/use-scroll.ts
+++ b/hooks/use-scroll.ts
@@ -3,7 +3,6 @@ import { useEffect, useState } from "react";
export const useScroll = () => {
const [scrolled, setScrolled] = useState(false);
- // Collapse the full-width bar into a floating, container-width pill on scroll.
useEffect(() => {
const onScroll = () => setScrolled(window.scrollY > 8);
onScroll();