Skip to content

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

feat: use aiforui skills

kapishdimaed8737d05349
diff --git a/app/(home)/blog/[slug]/page.tsx b/app/(home)/blog/[slug]/page.tsx
index 9aaff2a1..44086464 100644
--- a/app/(home)/blog/[slug]/page.tsx
+++ b/app/(home)/blog/[slug]/page.tsx
@@ -5,6 +5,7 @@ import { notFound } from "next/navigation";
import { blog } from "@/.source/server";
import { GuideVideo } from "@/components/docs/guide-video";
import { blogDateFormatter, blogSlug } from "@/lib/blog";
+import { sortByDateDesc } from "@/lib/changelog";
import { getMDXComponents } from "@/mdx-components";
type PageProps = { params: Promise<{ slug: string }> };
@@ -34,6 +35,7 @@ export async function generateMetadata({
alternates: { canonical: url },
openGraph: {
type: "article",
+ publishedTime: post.date.toISOString(),
url,
siteName: "Remocn",
title,
@@ -59,24 +61,34 @@ export default async function BlogPostPage({ params }: PageProps) {
const iso = post.date.toISOString().slice(0, 10);
const MDX = post.body;
+ const sorted = sortByDateDesc(blog);
+ const index = sorted.findIndex((p) => blogSlug(p) === slug);
+ const next = index === -1 ? undefined : sorted[index + 1];
return (
<section className="pt-10 pb-24 sm:pt-14">
<div className="section flex flex-col gap-8">
<Link
href="/blog"
- className="inline-flex w-fit items-center gap-1.5 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground"
+ className="group relative inline-flex w-fit items-center gap-1.5 text-sm font-medium text-muted-foreground transition-colors before:absolute before:inset-x-0 before:-inset-y-2 before:content-[''] hover:text-foreground"
>
- <ArrowLeft className="size-4" aria-hidden="true" />
+ <ArrowLeft
+ className="size-4 transition-transform group-hover:-translate-x-0.5"
+ aria-hidden="true"
+ />
Blog
</Link>
{post.video ? (
- <GuideVideo src={post.video} poster={post.videoPoster} />
+ <GuideVideo
+ src={post.video}
+ poster={post.videoPoster}
+ label={post.title}
+ />
) : null}
<div className="flex flex-col gap-3">
- <h1 className="text-3xl font-semibold leading-tight tracking-tight text-foreground sm:text-4xl">
+ <h1 className="text-balance text-3xl font-semibold leading-[1.1] tracking-tight text-foreground sm:text-4xl">
{post.title}
</h1>
<time
@@ -87,9 +99,41 @@ export default async function BlogPostPage({ params }: PageProps) {
</time>
</div>
- <div className="typeset typeset-docs">
+ <div className="typeset typeset-docs max-w-2xl">
<MDX components={postComponents} />
</div>
+
+ <div className="max-w-2xl border-t border-border pt-8">
+ {next ? (
+ <>
+ <p className="font-mono text-xs font-medium text-muted-foreground">
+ Read next
+ </p>
+ <Link
+ href={`/blog/${blogSlug(next)}`}
+ className="group mt-3 flex flex-col gap-1"
+ >
+ <span className="text-balance text-lg font-semibold tracking-tight text-foreground group-hover:underline">
+ {next.title}
+ </span>
+ <span className="text-pretty text-sm leading-relaxed text-muted-foreground">
+ {next.description}
+ </span>
+ </Link>
+ </>
+ ) : (
+ <Link
+ href="/blog"
+ className="group relative inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground transition-colors before:absolute before:inset-x-0 before:-inset-y-2 before:content-[''] hover:text-foreground"
+ >
+ <ArrowLeft
+ className="size-4 transition-transform group-hover:-translate-x-0.5"
+ aria-hidden="true"
+ />
+ All posts
+ </Link>
+ )}
+ </div>
</div>
</section>
);
diff --git a/app/(home)/blog/page.tsx b/app/(home)/blog/page.tsx
index 4b8bb951..7241ff5a 100644
--- a/app/(home)/blog/page.tsx
+++ b/app/(home)/blog/page.tsx
@@ -11,7 +11,10 @@ const DESCRIPTION =
export const metadata: Metadata = {
title: "Blog",
description: DESCRIPTION,
- alternates: { canonical: "/blog" },
+ alternates: {
+ canonical: "/blog",
+ types: { "application/rss+xml": "/blog/rss.xml" },
+ },
openGraph: {
type: "website",
url: "/blog",
@@ -41,7 +44,7 @@ export default function BlogPage() {
<h1 className="text-4xl font-semibold leading-[1.05] tracking-tight text-foreground sm:text-5xl">
Blog
</h1>
- <p className="mt-4 max-w-2xl text-balance text-base leading-relaxed text-muted-foreground sm:text-lg">
+ <p className="mt-4 max-w-2xl text-pretty text-base leading-relaxed text-muted-foreground sm:text-lg">
{DESCRIPTION}
</p>
</div>
@@ -55,10 +58,9 @@ export default function BlogPage() {
return (
<li key={slug}>
- <Link
- href={`/blog/${slug}`}
+ <article
className={cn(
- "group grid gap-4 py-8 md:grid-cols-[7rem_1fr_16rem] md:gap-8",
+ "group relative grid gap-4 py-8 md:grid-cols-[7rem_1fr_16rem] md:gap-8",
index > 0 && "border-t border-border",
)}
>
@@ -70,25 +72,30 @@ export default function BlogPage() {
</time>
<div className="flex min-w-0 flex-col gap-2">
- <h2 className="text-xl font-semibold tracking-tight text-foreground group-hover:underline sm:text-2xl">
- {post.title}
+ <h2 className="text-balance text-xl font-semibold tracking-tight text-foreground group-hover:underline sm:text-2xl">
+ <Link
+ href={`/blog/${slug}`}
+ className="after:absolute after:inset-0"
+ >
+ {post.title}
+ </Link>
</h2>
- <p className="text-balance text-sm leading-relaxed text-muted-foreground">
+ <p className="text-pretty text-sm leading-relaxed text-muted-foreground">
{post.description}
</p>
</div>
- <div className="aspect-video overflow-hidden rounded-lg bg-muted">
+ <div className="aspect-video overflow-hidden rounded-lg bg-muted outline-1 -outline-offset-1 outline-black/10 dark:outline-white/10">
{post.videoPoster ? (
<img
src={post.videoPoster}
alt=""
loading="lazy"
- className="size-full object-cover transition-transform duration-500 group-hover:scale-[1.02]"
+ className="size-full object-cover transition-transform duration-300 group-hover:scale-[1.02]"
/>
) : null}
</div>
- </Link>
+ </article>
</li>
);
})}
diff --git a/app/(home)/blog/rss.xml/route.ts b/app/(home)/blog/rss.xml/route.ts
new file mode 100644
index 00000000..16fcc56e
--- /dev/null
+++ b/app/(home)/blog/rss.xml/route.ts
@@ -0,0 +1,51 @@
+import { blog } from "@/.source/server";
+import { blogSlug } from "@/lib/blog";
+import { sortByDateDesc } from "@/lib/changelog";
+
+const SITE_URL = "https://remocn.dev";
+const CHANNEL_DESCRIPTION =
+ "Making-of stories behind the videos we build with remocn — the storyboard, the decisions that made each one work, and the prompt that rebuilds it.";
+
+function escapeXml(value: string): string {
+ return value
+ .replaceAll("&", "&amp;")
+ .replaceAll("<", "&lt;")
+ .replaceAll(">", "&gt;")
+ .replaceAll('"', "&quot;");
+}
+
+export const dynamic = "force-static";
+
+export function GET() {
+ const items = sortByDateDesc(blog)
+ .map((post) => {
+ const url = `${SITE_URL}/blog/${blogSlug(post)}`;
+ return [
+ "<item>",
+ `<title>${escapeXml(post.title)}</title>`,
+ `<link>${url}</link>`,
+ `<guid>${url}</guid>`,
+ `<pubDate>${post.date.toUTCString()}</pubDate>`,
+ `<description>${escapeXml(post.description ?? "")}</description>`,
+ "</item>",
+ ].join("");
+ })
+ .join("");
+
+ const xml = [
+ '<?xml version="1.0" encoding="UTF-8"?>',
+ '<rss version="2.0">',
+ "<channel>",
+ "<title>remocn blog</title>",
+ `<link>${SITE_URL}/blog</link>`,
+ `<description>${escapeXml(CHANNEL_DESCRIPTION)}</description>`,
+ "<language>en</language>",
+ items,
+ "</channel>",
+ "</rss>",
+ ].join("");
+
+ return new Response(xml, {
+ headers: { "Content-Type": "application/rss+xml; charset=utf-8" },
+ });
+}
diff --git a/app/(home)/components/hero-badge.tsx b/app/(home)/components/hero-badge.tsx
index 37972c79..aaccbbc7 100644
--- a/app/(home)/components/hero-badge.tsx
+++ b/app/(home)/components/hero-badge.tsx
@@ -14,7 +14,7 @@ export function HeroBadge() {
return (
<Badge
variant="outline"
- className="mb-5 h-7 gap-1.5 rounded-full px-3 text-xs"
+ className="group relative mb-5 h-7 gap-1.5 rounded-full px-3 text-xs before:absolute before:inset-x-0 before:-inset-y-2 before:content-['']"
render={
<Link
href={HERO_BADGE_HREF}
@@ -31,10 +31,11 @@ export function HeroBadge() {
<span aria-hidden className="text-muted-foreground/60">
·
</span>
- <span className="text-muted-foreground">
- <span className="text-foreground">Stop Motion Animations</span>
- </span>
- <ArrowRight className="size-3" aria-hidden="true" />
+ <span className="text-foreground">Stop Motion Animations</span>
+ <ArrowRight
+ className="size-3 transition-transform group-hover:translate-x-0.5"
+ aria-hidden="true"
+ />
</Badge>
);
}
diff --git a/app/(home)/components/sections/faq.tsx b/app/(home)/components/sections/faq.tsx
index c55dbbcc..27ea9a8e 100644
--- a/app/(home)/components/sections/faq.tsx
+++ b/app/(home)/components/sections/faq.tsx
@@ -1,7 +1,6 @@
import { FAQ_ITEMS } from "@/config/landing";
import { SUPPORT_EMAIL } from "@/config/site";
import { cn } from "@/lib/utils";
-import { FadeUp } from "../fade-up";
import { SectionHeading } from "../section-heading";
const EYEBROW = "Questions";
@@ -13,10 +12,14 @@ export function Faq({ className }: { className?: string }) {
return (
<section id="faq" className={cn("relative py-14 sm:py-20", className)}>
<div className="section">
- <SectionHeading eyebrow={EYEBROW} title={TITLE} lead={LEAD} />
+ <SectionHeading
+ eyebrow={EYEBROW}
+ title={TITLE}
+ lead={LEAD}
+ animated={false}
+ />
- <FadeUp className="mt-10 sm:mt-14">
- <dl className="max-w-3xl">
+ <dl className="mt-10 max-w-2xl sm:mt-14">
{FAQ_ITEMS.map((item, i) => (
<div
key={item.question}
@@ -33,11 +36,9 @@ export function Faq({ className }: { className?: string }) {
</dd>
</div>
))}
- </dl>
- </FadeUp>
+ </dl>
- <FadeUp delay={0.1}>
- <p className="mt-8 max-w-3xl border-t border-border/60 pt-8 text-sm text-muted-foreground sm:text-base">
+ <p className="mt-8 max-w-2xl border-t border-border/60 pt-8 text-sm text-muted-foreground sm:text-base">
Still stuck?{" "}
<a
href={`mailto:${SUPPORT_EMAIL}`}
@@ -45,9 +46,8 @@ export function Faq({ className }: { className?: string }) {
>
Email us
</a>{" "}
- and we'll walk you through it.
- </p>
- </FadeUp>
+ and we’ll walk you through it.
+ </p>
</div>
</section>
);
diff --git a/app/(home)/components/sections/final-cta.tsx b/app/(home)/components/sections/final-cta.tsx
index ea44d08f..98f8d2ce 100644
--- a/app/(home)/components/sections/final-cta.tsx
+++ b/app/(home)/components/sections/final-cta.tsx
@@ -1,94 +1,61 @@
"use client";
import { ArrowRight } from "lucide-react";
-import { motion, useInView, useReducedMotion } from "motion/react";
import Link from "next/link";
-import { useRef } from "react";
import { Button } from "@/components/ui/button";
-import {
- GITHUB_URL,
- LAVENDER,
- MINT,
- PEACH,
- SPRING_BOUNCE,
-} from "@/config/site";
+import { GITHUB_URL } from "@/config/site";
import { useTrackEvent } from "@/lib/analytics";
-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();
const trackEvent = useTrackEvent();
return (
<section className="relative py-14 sm:py-28">
<div className="section">
<div className="surface-card relative overflow-hidden rounded-3xl px-6 py-12 text-center sm:px-12 sm:py-20">
- {/* Restrained accent wash — low opacity so it reads in both themes. */}
- <div
- aria-hidden
- className="pointer-events-none absolute inset-0 -z-10 opacity-60 dark:opacity-40"
- style={{
- background: `radial-gradient(50% 60% at 50% 0%, ${LAVENDER}22, transparent 70%), radial-gradient(40% 50% at 15% 100%, ${PEACH}18, transparent 60%), radial-gradient(40% 50% at 85% 100%, ${MINT}18, transparent 60%)`,
- }}
- />
-
- <motion.h2
- ref={ref}
- className="mx-auto max-w-2xl text-balance text-3xl font-semibold tracking-tight text-foreground sm:text-4xl md:text-5xl"
- initial={
- reduced ? false : { opacity: 0, y: 24, filter: "blur(10px)" }
- }
- animate={
- inView
- ? { opacity: 1, y: 0, filter: "blur(0px)" }
- : { opacity: 0, y: 24, filter: "blur(10px)" }
- }
- transition={{ ...SPRING_BOUNCE, duration: 0.8 }}
- >
+ <h2 className="mx-auto max-w-2xl text-balance text-3xl font-semibold tracking-tight text-foreground sm:text-4xl md:text-5xl">
Your product deserves better than a screen recording.
- </motion.h2>
+ </h2>
- <FadeUp delay={0.2}>
- <p className="mx-auto mt-5 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg">
- An agent, an empty folder, ten minutes. It's open source, all the
- way down.
- </p>
- </FadeUp>
+ <p className="mx-auto mt-5 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg">
+ An agent, an empty folder, ten minutes. It’s open source, all the
+ way down.
+ </p>
- <FadeUp delay={0.28}>
- <div className="mt-9 flex flex-col items-center justify-center gap-3 sm:flex-row">
- <Button
- size="lg"
- className="h-11 gap-2 rounded-full px-6 text-sm"
- render={
- <Link
- href="/docs/guides/setup"
- onClick={() =>
- trackEvent("cta_clicked", {
- cta: "final_cta",
- destination: "/docs/guides/setup",
- })
- }
- />
- }
- >
- Make your first video
- <ArrowRight className="size-4" aria-hidden="true" />
- </Button>
- <Button
- variant="outline"
- size="lg"
- className="h-11 rounded-full px-6 text-sm"
- render={
- <Link href={GITHUB_URL} target="_blank" rel="noreferrer" />
- }
- >
- Star on GitHub
- </Button>
- </div>
- </FadeUp>
+ <div className="mt-9 flex flex-col items-center justify-center gap-3 sm:flex-row">
+ <Button
+ size="lg"
+ className="h-11 gap-2 rounded-full px-6 text-sm"
+ render={
+ <Link
+ href="/docs/guides/setup"
+ onClick={() =>
+ trackEvent("cta_clicked", {
+ cta: "final_cta",
+ destination: "/docs/guides/setup",
+ })
+ }
+ />
+ }
+ >
+ Make your first video
+ <ArrowRight
+ data-icon="inline-end"
+ className="size-4"
+ aria-hidden="true"
+ />
+ </Button>
+ <Button
+ variant="outline"
+ size="lg"
+ className="h-11 rounded-full px-6 text-sm"
+ render={
+ <Link href={GITHUB_URL} target="_blank" rel="noreferrer" />
+ }
+ >
+ Star on GitHub
+ </Button>
+ </div>
</div>
</div>
</section>
diff --git a/app/(home)/components/sections/hero-scroll-video.tsx b/app/(home)/components/sections/hero-scroll-video.tsx
index 9496b09c..65013a24 100644
--- a/app/(home)/components/sections/hero-scroll-video.tsx
+++ b/app/(home)/components/sections/hero-scroll-video.tsx
@@ -19,8 +19,7 @@ const SCRUB_MIN_WIDTH = 1024;
type Viewport = { w: number; h: number };
export function HeroScrollVideo() {
- const sectionRef = useRef<HTMLDivElement>(null);
- const videoRef = useRef<HTMLVideoElement>(null);
+ const sectionRef = useRef<HTMLElement>(null);
const [viewport, setViewport] = useState<Viewport | null>(null);
const reduceMotion = useReducedMotion();
@@ -32,39 +31,54 @@ export function HeroScrollVideo() {
return () => window.removeEventListener("resize", update);
}, []);
- const scrubEnabled = viewport !== null && viewport.w >= SCRUB_MIN_WIDTH;
+ if (reduceMotion) {
+ return <StaticCard />;
+ }
- if (reduceMotion || !viewport || !scrubEnabled) {
- return (
- <div className="section">
- <div className="relative mt-8 flex w-full justify-center sm:mt-12">
- <div className="w-full max-w-[1120px]">
- <VideoCard
- videoRef={videoRef}
- className="aspect-video rounded-2xl sm:rounded-3xl"
- />
- </div>
- </div>
+ const isNarrow = viewport !== null && viewport.w < SCRUB_MIN_WIDTH;
+ const isWide = viewport !== null && !isNarrow;
+
+ return (
+ <>
+ <div className="lg:hidden">
+ {(viewport === null || isNarrow) && <StaticCard />}
</div>
- );
- }
+ <section
+ ref={sectionRef}
+ data-hero-zoom
+ className="relative hidden h-[380vh] lg:block"
+ >
+ <div className="sticky top-0 flex h-screen w-full items-center justify-center overflow-hidden">
+ {isWide ? (
+ <ScrollStage sectionRef={sectionRef} viewport={viewport} />
+ ) : (
+ <div className="w-[min(92vw,1120px)]">
+ <VideoCard className="aspect-video rounded-3xl border border-border" />
+ </div>
+ )}
+ </div>
+ </section>
+ </>
+ );
+}
+function StaticCard() {
return (
- <ScrollStage
- sectionRef={sectionRef}
- videoRef={videoRef}
- viewport={viewport}
- />
+ <div className="section">
+ <div className="relative mt-8 flex w-full justify-center sm:mt-12">
+ <div className="w-full max-w-[1120px]">
+ <VideoCard className="aspect-video rounded-2xl sm:rounded-3xl" />
+ </div>
+ </div>
+ </div>
);
}
function ScrollStage({
sectionRef,
- videoRef,
viewport,
}: {
- sectionRef: RefObject<HTMLDivElement | null>;
- videoRef: RefObject<HTMLVideoElement | null>;
+ sectionRef: RefObject<HTMLElement | null>;
viewport: Viewport;
}) {
const { scrollYProgress } = useScroll({
@@ -74,22 +88,10 @@ function ScrollStage({
const restWidth = Math.min(viewport.w * REST_WIDTH_RATIO, REST_MAX_WIDTH);
const restHeight = restWidth * CARD_ASPECT;
- const restScaleX = restWidth / viewport.w;
- const restScaleY = restHeight / viewport.h;
+ const cover = Math.max(viewport.w / restWidth, viewport.h / restHeight);
const keyframes = [0, GROW_END, HOLD_END, 1];
- const scaleX = useTransform(scrollYProgress, keyframes, [
- restScaleX,
- 1,
- 1,
- restScaleX,
- ]);
- const scaleY = useTransform(scrollYProgress, keyframes, [
- restScaleY,
- 1,
- 1,
- restScaleY,
- ]);
+ const scale = useTransform(scrollYProgress, keyframes, [1, cover, cover, 1]);
const borderRadius = useTransform(scrollYProgress, keyframes, [
REST_RADIUS,
0,
@@ -99,41 +101,24 @@ function ScrollStage({
const frameOpacity = useTransform(scrollYProgress, keyframes, [1, 0, 0, 1]);
return (
- <section ref={sectionRef} data-hero-zoom className="relative h-[380vh]">
- <div className="sticky top-0 flex h-screen w-full items-center justify-center overflow-hidden">
- <motion.div
- style={{
- width: viewport.w,
- height: viewport.h,
- scaleX,
- scaleY,
- borderRadius,
- }}
- className="group relative overflow-hidden will-change-transform"
- >
- <VideoCard videoRef={videoRef} className="h-full w-full" />
- <motion.div
- aria-hidden
- style={{ borderRadius, opacity: frameOpacity }}
- className="pointer-events-none absolute inset-0 border border-border"
- />
- </motion.div>
- </div>
- </section>
+ <motion.div
+ style={{ width: restWidth, height: restHeight, scale, borderRadius }}
+ className="relative overflow-hidden will-change-transform"
+ >
+ <VideoCard className="h-full w-full" />
+ <motion.div
+ aria-hidden
+ style={{ borderRadius, opacity: frameOpacity }}
+ className="pointer-events-none absolute inset-0 border border-border"
+ />
+ </motion.div>
);
}
-function VideoCard({
- videoRef,
- className,
-}: {
- videoRef: RefObject<HTMLVideoElement | null>;
- className?: string;
-}) {
+function VideoCard({ className }: { className?: string }) {
return (
<div className={`relative overflow-hidden ${className ?? ""}`}>
<video
- ref={videoRef}
src="https://cdn.remocn.dev/videos/intoducing-remocn.mp4"
autoPlay
muted
diff --git a/app/(home)/components/sections/hero.tsx b/app/(home)/components/sections/hero.tsx
index 1bcec848..428c9be5 100644
--- a/app/(home)/components/sections/hero.tsx
+++ b/app/(home)/components/sections/hero.tsx
@@ -21,7 +21,11 @@ export function Hero() {
<div className="section">
<div className="flex flex-col items-center text-center">
- <FadeUp delay={0.06} className="flex flex-col items-center">
+ <FadeUp
+ gate="landing-intro"
+ delay={0.06}
+ className="flex flex-col items-center"
+ >
<HeroBadge />
<h1 className="max-w-3xl text-balance text-3xl font-semibold leading-[1.1] tracking-tight text-foreground sm:text-4xl md:text-5xl">
You want the video,
@@ -29,14 +33,14 @@ export function Hero() {
</h1>
</FadeUp>
- <FadeUp delay={0.12}>
+ <FadeUp gate="landing-intro" delay={0.12}>
<p className="mt-4 max-w-2xl text-balance text-base leading-relaxed text-muted-foreground sm:text-lg">
Describe your product to your AI agent. It builds the demo video
from ready-made pieces while you watch in the browser.
</p>
</FadeUp>
- <FadeUp delay={0.18}>
+ <FadeUp gate="landing-intro" delay={0.18}>
<div className="mt-7 flex flex-col items-center gap-3 sm:flex-row">
<Button
size="lg"
@@ -54,7 +58,11 @@ export function Hero() {
}
>
Make your first video
- <ArrowRight className="size-4" aria-hidden="true" />
+ <ArrowRight
+ data-icon="inline-end"
+ className="size-4"
+ aria-hidden="true"
+ />
</Button>
<Button
variant="secondary"
diff --git a/app/(home)/components/sections/how-it-works.tsx b/app/(home)/components/sections/how-it-works.tsx
index b997137a..a2c2a7e3 100644
--- a/app/(home)/components/sections/how-it-works.tsx
+++ b/app/(home)/components/sections/how-it-works.tsx
@@ -7,7 +7,6 @@ import { useRef } from "react";
import { HOW_IT_WORKS_STEPS, type HowItWorksStep } from "@/config/landing";
import { useTrackEvent } from "@/lib/analytics";
import { cn } from "@/lib/utils";
-import { FadeUp } from "../fade-up";
import { SectionHeading } from "../section-heading";
import {
AgentWindowViz,
@@ -37,11 +36,14 @@ function StepColumn({ step, index }: { step: HowItWorksStep; index: number }) {
index < HOW_IT_WORKS_STEPS.length - 1 && "lg:pr-8",
)}
>
- <span className="flex size-6 shrink-0 items-center justify-center rounded-full border border-border font-mono text-[11px] text-muted-foreground/70">
+ <span className="flex size-6 shrink-0 items-center justify-center rounded-full border border-border font-mono text-xs text-muted-foreground">
{index + 1}
</span>
- <div className="aspect-[4/3] w-full">
+ <div
+ aria-hidden
+ className="pointer-events-none aspect-[4/3] w-full select-none"
+ >
<Viz play={inView} />
</div>
@@ -66,31 +68,35 @@ export function HowItWorks({ className }: { className?: string }) {
className={cn("relative pt-6 pb-14 sm:pt-0 sm:pb-20", className)}
>
<div className="section">
- <SectionHeading eyebrow={EYEBROW} title={TITLE} lead={LEAD} />
+ <SectionHeading
+ eyebrow={EYEBROW}
+ title={TITLE}
+ lead={LEAD}
+ animated={false}
+ />
- <FadeUp className="mt-10 sm:mt-14">
- <div className="grid grid-cols-1 border-y border-border/60 lg:grid-cols-3">
- {HOW_IT_WORKS_STEPS.map((step, i) => (
- <StepColumn key={step.title} step={step} index={i} />
- ))}
- </div>
- </FadeUp>
+ <div className="mt-10 grid grid-cols-1 border-y border-border/60 sm:mt-14 lg:grid-cols-3">
+ {HOW_IT_WORKS_STEPS.map((step, i) => (
+ <StepColumn key={step.title} step={step} index={i} />
+ ))}
+ </div>
- <FadeUp delay={0.1}>
- <Link
- href="/docs/guides/setup"
- onClick={() =>
- trackEvent("cta_clicked", {
- cta: "how_it_works_setup",
- destination: "/docs/guides/setup",
- })
- }
- className="mt-10 inline-flex items-center gap-1.5 text-sm text-muted-foreground transition-colors hover:text-foreground sm:text-base"
- >
- First time? The setup guide takes ten minutes
- <ArrowRight aria-hidden className="size-4" />
- </Link>
- </FadeUp>
+ <Link
+ href="/docs/guides/setup"
+ onClick={() =>
+ trackEvent("cta_clicked", {
+ cta: "how_it_works_setup",
+ destination: "/docs/guides/setup",
+ })
+ }
+ className="group relative mt-10 inline-flex items-center gap-1.5 text-sm text-muted-foreground transition-colors before:absolute before:inset-x-0 before:-inset-y-2 before:content-[''] hover:text-foreground sm:text-base"
+ >
+ First time? The setup guide takes ten minutes
+ <ArrowRight
+ aria-hidden
+ className="size-4 transition-transform group-hover:translate-x-0.5 group-focus-visible:translate-x-0.5"
+ />
+ </Link>
</div>
</section>
);
diff --git a/app/(home)/components/sections/landing-partners.tsx b/app/(home)/components/sections/landing-partners.tsx
index bb01182a..0098ec6f 100644
--- a/app/(home)/components/sections/landing-partners.tsx
+++ b/app/(home)/components/sections/landing-partners.tsx
@@ -2,7 +2,6 @@ import { ArrowRight } from "lucide-react";
import Link from "next/link";
import { getLandingSponsors, type Sponsor } from "@/config/sponsors";
import { cn } from "@/lib/utils";
-import { FadeUp } from "../fade-up";
import { SectionHeading } from "../section-heading";
function SponsorLogoCard({ sponsor }: { sponsor: Sponsor }) {
@@ -17,6 +16,7 @@ function SponsorLogoCard({ sponsor }: { sponsor: Sponsor }) {
<img
src={sponsor.logoUrl}
alt={sponsor.name}
+ loading="lazy"
className={cn(
"max-h-10 w-auto object-contain opacity-70 grayscale transition-opacity duration-300 group-hover:opacity-100 dark:[filter:grayscale(1)_brightness(0)_invert(1)]",
sponsor.customStyles,
@@ -47,36 +47,36 @@ export function LandingPartners() {
eyebrow="Sponsors"
title="Backed by the community"
lead="remocn is free and MIT-licensed. Sponsors keep the registry growing and the renders fast."
+ animated={false}
/>
{ordered.length > 0 && (
- <FadeUp delay={0.1}>
- <div
- className={cn(
- "mx-auto mt-12 grid max-w-3xl gap-4 sm:gap-6",
- ordered.length === 1
- ? "max-w-sm grid-cols-1"
- : "grid-cols-2 lg:grid-cols-3",
- )}
- >
- {ordered.map((s) => (
- <SponsorLogoCard key={s.id} sponsor={s} />
- ))}
- </div>
- </FadeUp>
+ <div
+ className={cn(
+ "mx-auto mt-12 grid max-w-3xl gap-4 sm:gap-6",
+ ordered.length === 1
+ ? "max-w-sm grid-cols-1"
+ : "grid-cols-2 lg:grid-cols-3",
+ )}
+ >
+ {ordered.map((s) => (
+ <SponsorLogoCard key={s.id} sponsor={s} />
+ ))}
+ </div>
)}
- <FadeUp delay={0.16}>
- <div className="mt-10 flex justify-center">
+ <div className="mt-10 flex justify-center">
<Link
href="/sponsors"
- className="inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:text-foreground focus-visible:outline-none"
+ className="group relative inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground transition-colors before:absolute before:inset-x-0 before:-inset-y-2 before:content-[''] hover:text-foreground focus-visible:text-foreground focus-visible:outline-none"
>
Become a sponsor
- <ArrowRight className="size-4" aria-hidden="true" />
+ <ArrowRight
+ className="size-4 transition-transform group-hover:translate-x-0.5 group-focus-visible:translate-x-0.5"
+ aria-hidden="true"
+ />
</Link>
</div>
- </FadeUp>
</div>
</section>
);
diff --git a/app/(home)/components/sections/testimonials.tsx b/app/(home)/components/sections/testimonials.tsx
index ea0133cb..df93eaa5 100644
--- a/app/(home)/components/sections/testimonials.tsx
+++ b/app/(home)/components/sections/testimonials.tsx
@@ -1,6 +1,5 @@
import { COMPONENT_COUNT } from "@/config/site";
import { type Testimonial, testimonials } from "@/config/testimonials";
-import { FadeUp } from "../fade-up";
import { SectionHeading } from "../section-heading";
const FACTS = [
@@ -28,7 +27,7 @@ function TestimonialCard({
src={authorAvatar}
alt={authorName}
loading="lazy"
- className="size-10 rounded-full border border-border object-cover"
+ className="size-10 rounded-full object-cover outline-1 -outline-offset-1 outline-black/10 dark:outline-white/10"
/>
<span className="text-sm font-medium text-foreground">
{authorName}
@@ -49,7 +48,7 @@ function MarqueeRow({
reverse?: boolean;
}) {
return (
- <div className="group flex overflow-hidden">
+ <div className="group -my-3 flex overflow-hidden py-3">
<div
className="flex shrink-0 gap-4 pr-4 animate-marquee group-hover:[animation-play-state:paused] motion-reduce:[animation:none]"
style={reverse ? { animationDirection: "reverse" } : undefined}
@@ -57,9 +56,11 @@ function MarqueeRow({
{items.map((t, i) => (
<TestimonialCard key={`${t.authorName}-${i}`} {...t} />
))}
- {items.map((t, i) => (
- <TestimonialCard key={`${t.authorName}-${i}-dup`} {...t} />
- ))}
+ <div aria-hidden inert className="contents">
+ {items.map((t, i) => (
+ <TestimonialCard key={`${t.authorName}-${i}-dup`} {...t} />
+ ))}
+ </div>
</div>
</div>
);
@@ -77,26 +78,23 @@ export function Testimonials() {
eyebrow="Wall of love"
title="Builders are shipping with remocn"
lead="Builders who needed a demo video for their product and shipped one the same day."
+ animated={false}
/>
- <FadeUp delay={0.06}>
- <dl className="mt-8 flex flex-wrap items-center justify-center gap-x-8 gap-y-3 text-sm sm:gap-x-12 sm:text-base">
- {FACTS.map((fact) => (
- <div key={fact.label} className="flex items-baseline gap-2">
- <dt className="font-semibold text-foreground">{fact.value}</dt>
- <dd className="text-muted-foreground">{fact.label}</dd>
- </div>
- ))}
- </dl>
- </FadeUp>
+ <dl className="mt-8 flex flex-wrap items-center justify-center gap-x-8 gap-y-3 text-sm sm:gap-x-12 sm:text-base">
+ {FACTS.map((fact) => (
+ <div key={fact.label} className="flex items-baseline gap-2">
+ <dt className="font-semibold text-foreground">{fact.value}</dt>
+ <dd className="text-muted-foreground">{fact.label}</dd>
+ </div>
+ ))}
+ </dl>
</div>
- <FadeUp delay={0.1}>
- <div className="marquee-edge-fade mt-12 flex flex-col gap-4">
- <MarqueeRow items={topRow} />
- <MarqueeRow items={bottomRow} reverse />
- </div>
- </FadeUp>
+ <div className="marquee-edge-fade mt-9 -mb-3 flex flex-col gap-4 py-3">
+ <MarqueeRow items={topRow} />
+ <MarqueeRow items={bottomRow} reverse />
+ </div>
</section>
);
}
diff --git a/app/(home)/components/sections/whats-inside.tsx b/app/(home)/components/sections/whats-inside.tsx
index 1c8a8606..575d6aa0 100644
--- a/app/(home)/components/sections/whats-inside.tsx
+++ b/app/(home)/components/sections/whats-inside.tsx
@@ -14,7 +14,6 @@ import Link from "next/link";
import { type ComponentType, useRef } from "react";
import { SPRING_SOFT } from "@/config/site";
import { cn } from "@/lib/utils";
-import { FadeUp } from "../fade-up";
import { SectionHeading } from "../section-heading";
// The shader viz is the only tile that pulls @remotion/player + the shader
@@ -28,7 +27,7 @@ const ShadersViz = dynamic(
},
);
-const EYEBROW = "What's inside";
+const EYEBROW = "What’s inside";
const TITLE = "Five kinds of building blocks";
const LEAD =
"Every remocn component belongs to one of these families. Your agent composes them on the timeline, one scene at a time.";
@@ -249,7 +248,7 @@ const CATEGORIES: Category[] = [
},
{
title: "Transitions",
- description: "Cuts between scenes that don't look like a slideshow.",
+ description: "Cuts between scenes that don’t look like a slideshow.",
href: "/docs/transitions",
icon: Shuffle,
Viz: TransitionsViz,
@@ -274,54 +273,54 @@ const CATEGORIES: Category[] = [
},
];
-function CategoryCard({
- category,
- index,
-}: {
- category: Category;
- index: number;
-}) {
+function CategoryCard({ category }: { category: Category }) {
const ref = useRef<HTMLElement>(null);
const inView = useInView(ref, { amount: 0.4 });
+ const reduced = useReducedMotion();
const { Viz, icon: Icon } = category;
return (
- <FadeUp delay={index * 0.06} className={cn("h-full", category.span)}>
+ <div className={cn("h-full", category.span)}>
<Link
href={category.href}
aria-label={`Explore ${category.title}`}
className="group block h-full rounded-3xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40"
>
- <motion.article
- ref={ref}
- whileHover={{ y: -4 }}
- transition={SPRING_SOFT}
- className="relative flex h-full flex-col overflow-hidden rounded-3xl border border-border bg-card"
- >
- <div className="relative flex h-40 items-center justify-center overflow-hidden border-b border-border bg-muted/20 sm:h-44 [background-image:radial-gradient(circle,color-mix(in_oklab,var(--color-foreground)_6%,transparent)_1px,transparent_1px)] [background-size:16px_16px]">
- <Viz play={inView} />
- </div>
- <div className="flex flex-1 flex-col p-5 sm:p-6">
- <div className="flex items-center gap-2">
- <Icon
- aria-hidden
- className="size-4 shrink-0 text-muted-foreground"
- />
- <h3 className="text-base font-semibold tracking-tight text-foreground">
- {category.title}
- </h3>
- <ArrowUpRight
- aria-hidden
- className="ml-auto size-4 shrink-0 text-muted-foreground/40 transition-colors group-hover:text-foreground"
- />
+ <motion.div whileHover="hover" className="h-full">
+ <motion.article
+ ref={ref}
+ variants={reduced ? undefined : { hover: { y: -4 } }}
+ transition={SPRING_SOFT}
+ className="surface-card relative flex h-full flex-col overflow-hidden rounded-3xl"
+ >
+ <div
+ aria-hidden
+ className="bg-dot-grid pointer-events-none relative flex h-40 select-none items-center justify-center overflow-hidden border-b border-border bg-muted/20 sm:h-44"
+ >
+ <Viz play={inView} />
</div>
- <p className="mt-2 text-sm leading-relaxed text-pretty text-muted-foreground">
- {category.description}
- </p>
- </div>
- </motion.article>
+ <div className="flex flex-1 flex-col p-5 sm:p-6">
+ <div className="flex items-center gap-2">
+ <Icon
+ aria-hidden
+ className="size-4 shrink-0 text-muted-foreground"
+ />
+ <h3 className="text-base font-semibold tracking-tight text-foreground">
+ {category.title}
+ </h3>
+ <ArrowUpRight
+ aria-hidden
+ className="ml-auto size-4 shrink-0 text-muted-foreground/40 transition-colors group-hover:text-foreground"
+ />
+ </div>
+ <p className="mt-2 text-sm leading-relaxed text-pretty text-muted-foreground">
+ {category.description}
+ </p>
+ </div>
+ </motion.article>
+ </motion.div>
</Link>
- </FadeUp>
+ </div>
);
}
@@ -332,11 +331,16 @@ export function WhatsInside() {
className="relative py-14 sm:py-20 [content-visibility:auto] [contain-intrinsic-size:auto_640px]"
>
<div className="section">
- <SectionHeading eyebrow={EYEBROW} title={TITLE} lead={LEAD} />
+ <SectionHeading
+ eyebrow={EYEBROW}
+ title={TITLE}
+ lead={LEAD}
+ animated={false}
+ />
<div className="mt-10 grid grid-cols-1 gap-4 sm:mt-12 sm:grid-cols-2 sm:gap-5 lg:grid-cols-6 lg:gap-6">
- {CATEGORIES.map((category, i) => (
- <CategoryCard key={category.title} category={category} index={i} />
+ {CATEGORIES.map((category) => (
+ <CategoryCard key={category.title} category={category} />
))}
</div>
</div>
diff --git a/app/(home)/components/sections/why-remocn.tsx b/app/(home)/components/sections/why-remocn.tsx
index 8e09a51a..102d3a3a 100644
--- a/app/(home)/components/sections/why-remocn.tsx
+++ b/app/(home)/components/sections/why-remocn.tsx
@@ -9,13 +9,12 @@ import {
import type { ComponentType } from "react";
import { REASONS } from "@/config/landing";
import { cn } from "@/lib/utils";
-import { FadeUp } from "../fade-up";
import { SectionHeading } from "../section-heading";
const EYEBROW = "Why remocn";
const TITLE = "Every other way costs you something.";
const LEAD =
- "A designer's invoice, a weekend in After Effects, or a screen recording you're not proud of. remocn hands the animation to your agent already built.";
+ "A designer’s invoice, a weekend in After Effects, or a screen recording you’re not proud of. remocn hands the animation to your agent already built.";
const ICONS: ComponentType<{ className?: string }>[] = [
Wallet,
@@ -33,14 +32,18 @@ export function WhyRemocn({ className }: { className?: string }) {
className={cn("relative py-14 sm:py-20", className)}
>
<div className="section">
- <SectionHeading eyebrow={EYEBROW} title={TITLE} lead={LEAD} />
+ <SectionHeading
+ eyebrow={EYEBROW}
+ title={TITLE}
+ lead={LEAD}
+ animated={false}
+ />
<div className="mt-12 grid grid-cols-1 gap-x-8 gap-y-10 sm:mt-16 sm:grid-cols-2 lg:grid-cols-3 lg:gap-x-12">
{REASONS.map((reason, i) => {
const Icon = ICONS[i];
return (
- <FadeUp key={reason.title} delay={i * 0.05}>
- <div className="min-w-0">
+ <div key={reason.title} className="min-w-0">
<div className="flex items-center gap-2">
<Icon
aria-hidden
@@ -53,8 +56,7 @@ export function WhyRemocn({ className }: { className?: string }) {
<p className="mt-2 text-sm leading-relaxed text-pretty text-muted-foreground sm:text-base">
{reason.detail}
</p>
- </div>
- </FadeUp>
+ </div>
);
})}
</div>
diff --git a/app/(home)/components/site-footer.tsx b/app/(home)/components/site-footer.tsx
index 05e16b08..22b355f3 100644
--- a/app/(home)/components/site-footer.tsx
+++ b/app/(home)/components/site-footer.tsx
@@ -4,7 +4,7 @@ import { NavFooter } from "./header-nav";
export function SiteFooter() {
return (
<div className="section">
- <footer className="flex flex-col items-start justify-between gap-4 border-t border-border pt-8 pb-12 text-sm text-muted-foreground md:flex-row md:items-center">
+ <footer className="flex flex-col items-start justify-between gap-4 border-t border-border pt-8 pb-[calc(3rem+env(safe-area-inset-bottom))] text-sm text-muted-foreground md:flex-row md:items-center">
<div className="flex flex-col gap-1">
<span suppressHydrationWarning>
© {new Date().getFullYear()} remocn — MIT licensed
diff --git a/app/(home)/sponsors/components/sections/hero.tsx b/app/(home)/sponsors/components/sections/hero.tsx
index b68936e5..cd4d74ee 100644
--- a/app/(home)/sponsors/components/sections/hero.tsx
+++ b/app/(home)/sponsors/components/sections/hero.tsx
@@ -54,7 +54,7 @@ export function Hero() {
</p>
</FadeUp>
<FadeUp gate={INTRO_GATE} delay={0.1}>
- <h1 className="max-w-3xl text-balance text-4xl font-semibold leading-[1.05] tracking-tight text-foreground sm:text-6xl">
+ <h1 className="max-w-3xl text-balance text-4xl font-semibold leading-[1.05] tracking-tight text-foreground sm:text-5xl">
Support the future of video
</h1>
</FadeUp>
@@ -73,7 +73,11 @@ export function Hero() {
render={<Link href="#tiers" />}
>
Become a sponsor
- <ArrowRight className="size-4" aria-hidden="true" />
+ <ArrowRight
+ data-icon="inline-end"
+ className="size-4"
+ aria-hidden="true"
+ />
</Button>
<Button
variant="outline"
@@ -89,7 +93,11 @@ export function Hero() {
>
<OpenPanelLogo className="h-4 w-auto" />
See our live traffic
- <ArrowUpRight className="size-4" aria-hidden="true" />
+ <ArrowUpRight
+ data-icon="inline-end"
+ className="size-4"
+ aria-hidden="true"
+ />
</Button>
</div>
</FadeUp>
diff --git a/app/(home)/sponsors/components/sections/tiers.tsx b/app/(home)/sponsors/components/sections/tiers.tsx
index 71399119..006fdd43 100644
--- a/app/(home)/sponsors/components/sections/tiers.tsx
+++ b/app/(home)/sponsors/components/sections/tiers.tsx
@@ -165,7 +165,11 @@ function TierCard({
render={<a href={checkoutUrl} target="_blank" rel="noreferrer" />}
>
Become a {tier.name}
- <ArrowRight className="size-4" aria-hidden="true" />
+ <ArrowRight
+ data-icon="inline-end"
+ className="size-4"
+ aria-hidden="true"
+ />
</Button>
</div>
</motion.article>
diff --git a/app/(home)/sponsors/components/sections/wall-of-love.tsx b/app/(home)/sponsors/components/sections/wall-of-love.tsx
index 9381fc76..4a648323 100644
--- a/app/(home)/sponsors/components/sections/wall-of-love.tsx
+++ b/app/(home)/sponsors/components/sections/wall-of-love.tsx
@@ -113,7 +113,11 @@ export function WallOfLove() {
render={<Link href="#tiers" />}
>
Become a sponsor
- <ArrowRight className="size-4" aria-hidden="true" />
+ <ArrowRight
+ data-icon="inline-end"
+ className="size-4"
+ aria-hidden="true"
+ />
</Button>
</div>
) : (
diff --git a/app/docs/[[...slug]]/page.tsx b/app/docs/[[...slug]]/page.tsx
index 2550a02c..8bf94a70 100644
--- a/app/docs/[[...slug]]/page.tsx
+++ b/app/docs/[[...slug]]/page.tsx
@@ -1,5 +1,6 @@
import { DocsDescription, DocsPage, DocsTitle } from "fumadocs-ui/page";
import { notFound } from "next/navigation";
+import { CopyMarkdownButton } from "@/components/docs/copy-markdown-button";
import { DocsAdRail } from "@/components/docs/docs-ad-rail";
import { getMDXComponents } from "@/mdx-components";
import { source } from "@/source";
@@ -25,13 +26,16 @@ export default async function Page(props: {
>
<DocsTitle
style={{ fontFamily: "var(--font-display)" }}
- className="text-4xl font-semibold tracking-tight text-balance md:text-5xl lg:text-6xl"
+ className="text-4xl font-semibold tracking-tight text-balance md:text-5xl"
>
{data.title}
</DocsTitle>
- <DocsDescription className="mt-3 mb-0 max-w-3xl text-balance text-lg text-muted-foreground md:text-xl">
+ <DocsDescription className="mt-3 mb-0 max-w-3xl text-pretty text-lg text-muted-foreground md:text-xl">
{data.description}
</DocsDescription>
+ {params.slug?.length ? (
+ <CopyMarkdownButton url={`${page.url}.md`} className="mt-4" />
+ ) : null}
<div className="typeset typeset-docs mt-8 flex-1">
<MDX components={getMDXComponents()} />
</div>
diff --git a/app/globals.css b/app/globals.css
index 512c7391..60edfd87 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -188,6 +188,10 @@
}
}
+::selection {
+ background-color: color-mix(in oklab, #d4b3ff 35%, transparent);
+}
+
.section {
@apply mx-auto w-full max-w-6xl px-4 sm:px-6 min-[1440px]:max-w-5xl;
}
@@ -210,6 +214,15 @@
mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 75%);
}
+.bg-dot-grid {
+ background-image: radial-gradient(
+ circle,
+ color-mix(in oklab, var(--color-foreground) 6%, transparent) 1px,
+ transparent 1px
+ );
+ background-size: 16px 16px;
+}
+
.divider-soft {
background: linear-gradient(
to right,
@@ -270,6 +283,12 @@
/* biome-ignore lint/complexity/noImportantStyles: see above */
background-color: transparent !important;
}
+.typeset figure.shiki pre,
+[data-rehype-pretty-code-figure] pre {
+ scrollbar-width: thin;
+ scrollbar-color: color-mix(in oklab, currentColor 25%, transparent)
+ transparent;
+}
[data-rehype-pretty-code-figure] {
position: relative;
diff --git a/app/typeset.css b/app/typeset.css
index 0e3f380a..8efc80bb 100644
--- a/app/typeset.css
+++ b/app/typeset.css
@@ -104,6 +104,10 @@
color: var(--typeset-muted);
margin-block-start: calc(var(--typeset-flow) / 0.8125);
}
+ &:where(h1, h2, h3, h4) {
+ text-wrap: balance;
+ }
+
/* Anchors. */
&:where([id]) {
scroll-margin-block-start: var(--typeset-flow);
@@ -121,7 +125,9 @@
&:where(a) {
color: inherit;
font-weight: 500;
- text-decoration-line: none;
+ text-decoration-line: underline;
+ text-decoration-thickness: from-font;
+ text-underline-offset: 0.2em;
text-decoration-color: color-mix(in oklab, currentColor 30%, transparent);
}
&:where(a:hover) {
@@ -134,6 +140,7 @@
}
&:where(:is(h1, h2, h3, h4, h5, h6) :is(a)) {
font-weight: inherit;
+ text-decoration-line: none;
}
/* Inline semantics. */
@@ -304,6 +311,9 @@
border-radius: var(--radius, 0.5em);
padding: 0.75em 1em;
overflow-x: auto;
+ scrollbar-width: thin;
+ scrollbar-color: color-mix(in oklab, currentColor 25%, transparent)
+ transparent;
margin-block-start: calc(var(--typeset-flow) / 0.875);
margin-block-end: 0;
}
diff --git a/components/docs/code-block-command.tsx b/components/docs/code-block-command.tsx
index 518015cc..ac6b4972 100644
--- a/components/docs/code-block-command.tsx
+++ b/components/docs/code-block-command.tsx
@@ -94,7 +94,7 @@ export function CodeBlockCommand({
"absolute bottom-0 left-0 -z-1",
"w-(--active-tab-width) translate-x-(--active-tab-left)",
"h-0.5 rounded-none bg-foreground",
- "transition-[width,translate] duration-200 ease-in-out",
+ "transition-[width,translate] duration-200 ease-out",
)}
/>
</TabsPrimitive.List>
@@ -102,7 +102,7 @@ export function CodeBlockCommand({
{tabsFiltered.map(([key, value]) => (
<TabsPrimitive.Panel key={key} value={key} className="outline-none">
- <pre className="overflow-x-auto overscroll-x-contain p-4">
+ <pre tabIndex={0} className="overflow-x-auto overscroll-x-contain p-4">
<code
data-slot="code-block"
data-language="bash"
diff --git a/components/docs/component-customizer.tsx b/components/docs/component-customizer.tsx
index 8c384ccc..c94c271d 100644
--- a/components/docs/component-customizer.tsx
+++ b/components/docs/component-customizer.tsx
@@ -120,7 +120,7 @@ function NumberInputPill({
commit(e.target.value);
}}
onBlur={() => setDraft(String(committed.current))}
- className="min-w-0 flex-1 bg-transparent text-right font-mono text-sm font-medium text-foreground outline-none placeholder:text-muted-foreground/50 [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
+ className="min-w-0 flex-1 bg-transparent text-right font-mono text-base font-medium text-foreground outline-none placeholder:text-muted-foreground/50 sm:text-sm [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
/>
</div>
);
@@ -174,16 +174,19 @@ function Control({
case "boolean":
return (
- <div className={cn(PILL, "justify-between")}>
- <Label htmlFor={id} className="font-medium text-muted-foreground">
+ <label
+ htmlFor={id}
+ className={cn(PILL, "cursor-pointer justify-between")}
+ >
+ <span className="font-medium text-muted-foreground">
{ctrl.label}
- </Label>
+ </span>
<Switch
id={id}
checked={value as boolean}
onCheckedChange={onChange}
/>
- </div>
+ </label>
);
case "color":
@@ -223,9 +226,11 @@ function Control({
<input
id={id}
type="text"
+ spellCheck={false}
+ autoComplete="off"
value={value as string}
onChange={(e) => onChange(e.target.value)}
- className="min-w-0 flex-1 bg-transparent text-right font-mono text-sm font-medium text-foreground outline-none placeholder:text-muted-foreground/50"
+ className="min-w-0 flex-1 bg-transparent text-right font-mono text-base font-medium text-foreground outline-none placeholder:text-muted-foreground/50 sm:text-sm"
/>
</div>
);
diff --git a/components/docs/component-preview.tsx b/components/docs/component-preview.tsx
index 33e395d8..b6f30c8d 100644
--- a/components/docs/component-preview.tsx
+++ b/components/docs/component-preview.tsx
@@ -134,7 +134,7 @@ function Preview({
</TabsContent>
</Tabs>
- <div className="overflow-hidden ">
+ <div className="overflow-hidden">
<div className="flex items-center justify-between pt-4 pb-2">
<span className="text-sm font-medium text-foreground">Customize</span>
<div className="flex items-center gap-1">
@@ -144,7 +144,7 @@ function Preview({
onClick={handleCopyLink}
aria-label="Copy share link"
title="Copy share link"
- className="text-muted-foreground hover:text-foreground"
+ className="relative text-muted-foreground before:absolute before:-inset-x-0.5 before:-inset-y-1.5 before:content-[''] hover:text-foreground"
>
{copied ? (
<CheckIcon className="size-3.5" />
@@ -159,7 +159,7 @@ function Preview({
disabled={isDefault}
aria-label="Reset to defaults"
title="Reset to defaults"
- className="text-muted-foreground hover:text-foreground disabled:opacity-40"
+ className="relative text-muted-foreground before:absolute before:-inset-x-0.5 before:-inset-y-1.5 before:content-[''] hover:text-foreground disabled:opacity-40"
>
<RotateCcwIcon className="size-3.5" />
</Button>
diff --git a/components/docs/copy-button.tsx b/components/docs/copy-button.tsx
index 276c88ee..88e5b266 100644
--- a/components/docs/copy-button.tsx
+++ b/components/docs/copy-button.tsx
@@ -29,7 +29,7 @@ export function CopyButton({
setTimeout(() => setCopied(false), 1500);
}}
className={cn(
- "border-fd-border bg-fd-background text-fd-muted-foreground hover:bg-fd-accent hover:text-fd-accent-foreground",
+ "relative border-fd-border bg-fd-background text-fd-muted-foreground before:absolute before:-inset-2.5 before:content-[''] hover:bg-fd-accent hover:text-fd-accent-foreground",
className,
)}
>
diff --git a/components/docs/copy-markdown-button.tsx b/components/docs/copy-markdown-button.tsx
new file mode 100644
index 00000000..d9409b03
--- /dev/null
+++ b/components/docs/copy-markdown-button.tsx
@@ -0,0 +1,56 @@
+"use client";
+
+import { Check, Copy } from "lucide-react";
+import { useState } from "react";
+import { Button } from "@/components/ui/button";
+import { useTrackEvent } from "@/lib/analytics";
+import { cn } from "@/lib/utils";
+
+type CopyState = "idle" | "loading" | "copied";
+
+export function CopyMarkdownButton({
+ url,
+ className,
+}: {
+ url: string;
+ className?: string;
+}) {
+ const [state, setState] = useState<CopyState>("idle");
+ const trackEvent = useTrackEvent();
+
+ const handleCopy = async () => {
+ if (state !== "idle") return;
+ setState("loading");
+ const text = await fetch(url)
+ .then((res) => (res.ok ? res.text() : null))
+ .catch(() => null);
+ if (text === null) {
+ setState("idle");
+ return;
+ }
+ await navigator.clipboard.writeText(text).catch(() => undefined);
+ setState("copied");
+ trackEvent("docs_markdown_copied", { page: url });
+ setTimeout(() => setState("idle"), 1500);
+ };
+
+ return (
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={handleCopy}
+ disabled={state === "loading"}
+ className={cn(
+ "w-fit gap-1.5 rounded-full text-xs text-muted-foreground hover:text-foreground",
+ className,
+ )}
+ >
+ {state === "copied" ? (
+ <Check className="size-3.5" />
+ ) : (
+ <Copy className="size-3.5" />
+ )}
+ Copy as Markdown
+ </Button>
+ );
+}
diff --git a/components/docs/guide-video.tsx b/components/docs/guide-video.tsx
index d3fff8bb..9baa6dcd 100644
--- a/components/docs/guide-video.tsx
+++ b/components/docs/guide-video.tsx
@@ -3,7 +3,15 @@
import { useEffect, useRef, useState } from "react";
import { usePrefersReducedMotion } from "@/lib/use-prefers-reduced-motion";
-export function GuideVideo({ src, poster }: { src: string; poster?: string }) {
+export function GuideVideo({
+ src,
+ poster,
+ label,
+}: {
+ src: string;
+ poster?: string;
+ label?: string;
+}) {
const videoRef = useRef<HTMLVideoElement>(null);
const reducedMotion = usePrefersReducedMotion();
const [hovered, setHovered] = useState(false);
@@ -24,9 +32,13 @@ export function GuideVideo({ src, poster }: { src: string; poster?: string }) {
ref={videoRef}
src={src}
poster={poster}
+ aria-label={label}
controls={hovered || reducedMotion}
+ tabIndex={0}
onPointerEnter={() => setHovered(true)}
onPointerLeave={() => setHovered(false)}
+ onFocus={() => setHovered(true)}
+ onBlur={() => setHovered(false)}
muted
loop
playsInline
diff --git a/components/docs/props-table.tsx b/components/docs/props-table.tsx
index 93952a7d..8cfe5bde 100644
--- a/components/docs/props-table.tsx
+++ b/components/docs/props-table.tsx
@@ -9,7 +9,7 @@ export interface PropDef {
export function PropsTable({ rows }: { rows: PropDef[] }) {
return (
<div className="surface-card not-prose my-6 max-w-4xl overflow-hidden rounded-2xl">
- <div className="overflow-x-auto">
+ <div tabIndex={0} className="overflow-x-auto">
<table className="w-full border-collapse text-sm">
<thead>
<tr className="border-b border-border/60">
diff --git a/config/landing.ts b/config/landing.ts
index c6cbf27e..d48a9161 100644
--- a/config/landing.ts
+++ b/config/landing.ts
@@ -22,7 +22,7 @@ export const REASONS: Reason[] = [
{
title: "Not a screen recording",
detail:
- "A cursor wandering across your app isn't a demo. This looks like something you shipped on purpose.",
+ "A cursor wandering across your app isn’t a demo. This looks like something you shipped on purpose.",
},
{
title: "Yours to keep",
@@ -32,7 +32,7 @@ export const REASONS: Reason[] = [
{
title: "Changes in seconds",
detail:
- "Say what feels wrong and watch it change. No revision round, no waiting on someone else's queue.",
+ "Say what feels wrong and watch it change. No revision round, no waiting on someone else’s queue.",
},
];
@@ -53,7 +53,7 @@ export const HOW_IT_WORKS_STEPS: HowItWorksStep[] = [
},
{
title: "A player opens in your browser",
- detail: "That's your video. Say what to change and it changes.",
+ detail: "That’s your video. Say what to change and it changes.",
},
];
@@ -66,7 +66,7 @@ export const FAQ_ITEMS: FaqItem[] = [
{
question: "Do I need to know how to code?",
answer:
- "No, but you'll be working through an AI coding agent. If you've used Claude Code, Cursor or ChatGPT to build something before, you're already set. If not, the setup guide walks you through it in about ten minutes.",
+ "No, but you’ll be working through an AI coding agent. If you’ve used Claude Code, Cursor or ChatGPT to build something before, you’re already set. If not, the setup guide walks you through it in about ten minutes.",
},
{
question: "Do I need After Effects or a video editor?",
@@ -79,14 +79,14 @@ export const FAQ_ITEMS: FaqItem[] = [
"A small video project on your machine, plus the pieces your video uses. Your agent sets it up. Nothing runs on our servers and nothing phones home.",
},
{
- question: "Can I change things after it's built?",
+ question: "Can I change things after it’s built?",
answer:
"Yes, by saying what to change. The preview updates while you watch, so you react to the video instead of guessing at settings.",
},
{
question: "Is it free?",
answer:
- "MIT. Everything copies onto your machine and it's yours — no account, no runtime, no lock-in.",
+ "MIT. Everything copies onto your machine and it’s yours — no account, no runtime, no lock-in.",
},
{
question: "How long does the first video take?",
diff --git a/content/blog/claude-opus-5-launch-video.mdx b/content/blog/claude-opus-5-launch-video.mdx
index e84b8fa4..44e926a3 100644
--- a/content/blog/claude-opus-5-launch-video.mdx
+++ b/content/blog/claude-opus-5-launch-video.mdx
@@ -1,12 +1,12 @@
---
title: Making a launch video for Claude Opus 5
-description: One continuous canvas, twelve beats, and a brand mark that eats its own end card — a launch spot built entirely from Claude's own tokens
+description: One continuous canvas, twelve beats, and a brand mark that eats its own end card — a launch spot built entirely from Claude’s own tokens
date: 2026-07-24
video: https://cdn.remocn.dev/videos/introducing-opus.mp4
videoPoster: https://cdn.remocn.dev/posters/introducing-opus.png
---
-Anthropic shipped Claude Opus 5 today. Nobody asked us for a video, so we made one anyway — fifty-five seconds, twelve beats, every claim on screen lifted from the launch post itself. This is the hardest kind of unofficial spot to get away with: the brand is one most people look at daily, so a color that's a shade off or a serif that isn't quite the right serif reads instantly. Nothing here is eyeballed.
+Anthropic shipped Claude Opus 5 today. Nobody asked us for a video, so we made one anyway — fifty-five seconds, twelve beats, every claim on screen lifted from the launch post itself. This is the hardest kind of unofficial spot to get away with: the brand is one most people look at daily, so a color that’s a shade off or a serif that isn’t quite the right serif reads instantly. Nothing here is eyeballed.
### The storyboard
@@ -16,16 +16,16 @@ Anthropic shipped Claude Opus 5 today. Nobody asked us for a video, so we made o
4. **Frontier-Bench** — two bars grow on an asymmetric plot: Opus 4.8 in muted grey, then Opus 5 in clay past double its height, a count-up landing on the spoken "double" while the cost line falls beside it.
5. **The board** — four benchmark rows arrive from the right, one per cue, each a name → ratio pair with the ratio following through behind its label. One benchmark becomes a sweep.
6. **The mechanism** — a dark stage and an agent transcript writing itself: the FreeCAD ask types in, three steps check off in olive, and the receipt lands in serif — "No competing model solved it in five attempts."
-7. **The outside voice** — Framer's line set as a hanging quote under a short clay rule, held near-still.
+7. **The outside voice** — Framer’s line set as a hanging quote under a short clay rule, held near-still.
8. **The bill** — three efficiency counters on oat, the biggest number last and in clay, attribution ruled off underneath.
9. **Alignment** — one claim, one number, and a held frame. The breather before the close.
10. **The price** — $5 and $25 land as a pair, the pair anticipates downward and lifts to make room for "The same price as Opus 4.8", then `claude-opus-5` arrives in clay.
11. **The end card that eats itself** — the real Claude lockup holds, the spark winds up with a counter-move, then launches right and swallows the wordmark letter by letter on its way off-screen, blurring out into its own speed.
12. **The sting** — black. Nothing, for a full second past where the film should have ended. Then "Available today." fades up dead-center and never moves.
-### Director's notes
+### Director’s notes
-**The brand is Claude's own, down to the woff2.** The palette is read off claude.com's live stylesheet — the gray ramp for the stages, `--color-oat`, `--color-olive` for anything verified, and `--color-clay` `#d97757` as the one accent, spent only on the payoff word, the winning bar and the spark. The type is the three faces the site actually serves, vendored and gated behind `delayRender` so a frame never catches the fallback mid-swap, set at the site's own scale. The spark, the wordmark and the "By Anthropic" mark are the shipped SVG paths — and for the outro the wordmark is split at its subpath boundaries into six glyphs that each keep their counter, so C-l-a-u-d-e animate independently while staying Anthropic's own letterforms. Taken apart, never redrawn.
+**The brand is Claude’s own, down to the woff2.** The palette is read off claude.com’s live stylesheet — the gray ramp for the stages, `--color-oat`, `--color-olive` for anything verified, and `--color-clay` `#d97757` as the one accent, spent only on the payoff word, the winning bar and the spark. The type is the three faces the site actually serves, vendored and gated behind `delayRender` so a frame never catches the fallback mid-swap, set at the site’s own scale. The spark, the wordmark and the "By Anthropic" mark are the shipped SVG paths — and for the outro the wordmark is split at its subpath boundaries into six glyphs that each keep their counter, so C-l-a-u-d-e animate independently while staying Anthropic’s own letterforms. Taken apart, never redrawn.
**Transitions are chosen by tone, not by variety.** Three grammars carry the whole film: a lateral slide (the outgoing scene shoved left, the incoming springing in from the right), a vertical rise, and a settle (the outgoing scene shrinking away as one group, one empty gap frame, the incoming items landing from above-1 scale). A slide hands the stage over while the content is still travelling, so the stage color has to crossfade across the slide window — gorgeous between two scenes in the same tonal world, and six frames of flat mid-grey when paper dissolves into near-black. So every big tonal jump takes the settle, whose color change happens inside the empty gap frame and lands instantly; the lateral moves ride the pairs that already share a tone. Twelve scenes, one continuous canvas, no slideshow.
@@ -33,7 +33,7 @@ Anthropic shipped Claude Opus 5 today. Nobody asked us for a video, so we made o
**Two properties of one element never share a curve.** Opacity rides a short quad ramp; transform rides a long exponential or a damped spring roughly three times its length. Stagger compresses rather than marching — `pow(i, 0.8) × base` with a deterministic one-to-two-frame jitter — and children follow through, a check landing a few frames after its row on a looser damping. It is the difference between a slide that faded in and something that arrived.
-**The outro is driven by position, not by frames.** The spark's travel is one unbroken curve: a short counter-move to wind up, an accelerating sweep that eats the line, and a hand-off — with the slope still high — into a continuing acceleration straight off-scene. Each glyph's fate is a function of where the mark *is*, not of what frame it is, so the bite always lands exactly as the spark passes over, whatever the curve does. The spin is one constant rate, held from launch to the last blurred frame; it survives that speed because the mark has no rotational symmetry to alias against.
+**The outro is driven by position, not by frames.** The spark’s travel is one unbroken curve: a short counter-move to wind up, an accelerating sweep that eats the line, and a hand-off — with the slope still high — into a continuing acceleration straight off-scene. Each glyph’s fate is a function of where the mark *is*, not of what frame it is, so the bite always lands exactly as the spark passes over, whatever the curve does. The spin is one constant rate, held from launch to the last blurred frame; it survives that speed because the mark has no rotational symmetry to alias against.
### The prompt
@@ -112,4 +112,4 @@ install pills, no bounce as a default.
### Make one for your product
-The generic recipe is [Launch video](/docs/guides/launch-video); the part that makes a spot feel like it came from inside the company — pointing your agent at the site's own tokens — is [Your brand](/docs/guides/your-brand).
+The generic recipe is [Launch video](/docs/guides/launch-video); the part that makes a spot feel like it came from inside the company — pointing your agent at the site’s own tokens — is [Your brand](/docs/guides/your-brand).
diff --git a/content/blog/introducing-remocn.mdx b/content/blog/introducing-remocn.mdx
index 36491a36..7f41f1e0 100644
--- a/content/blog/introducing-remocn.mdx
+++ b/content/blog/introducing-remocn.mdx
@@ -6,23 +6,23 @@ video: https://cdn.remocn.dev/videos/intoducing-remocn.mp4
videoPoster: https://cdn.remocn.dev/posters/intoducing-remocn.png
---
-You shipped a product. Now you need a demo video — for the landing page, the launch post, the Product Hunt gallery. The usual options are all bad if you're a React developer: learn After Effects (a profession, not a weekend), hire an editor (a slow feedback loop that restarts every time your UI changes), or screen-record and accept whatever comes out.
+You shipped a product. Now you need a demo video — for the landing page, the launch post, the Product Hunt gallery. The usual options are all bad if you’re a React developer: learn After Effects (a profession, not a weekend), hire an editor (a slow feedback loop that restarts every time your UI changes), or screen-record and accept whatever comes out.
-There's a fourth option that fits how you already work: write the video in React. [Remotion](https://remotion.dev) has made that possible for years — a real `.mp4` rendered from React components, where motion is a pure function of the current frame. What's been missing is the layer above it. Nobody wants to hand-build a typewriter effect again, tune a whip-pan's motion blur from scratch, or figure out why their WebGL background flickers in headless renders. Every Remotion project starts from zero.
+There’s a fourth option that fits how you already work: write the video in React. [Remotion](https://remotion.dev) has made that possible for years — a real `.mp4` rendered from React components, where motion is a pure function of the current frame. What’s been missing is the layer above it. Nobody wants to hand-build a typewriter effect again, tune a whip-pan’s motion blur from scratch, or figure out why their WebGL background flickers in headless renders. Every Remotion project starts from zero.
[Remocn](https://remocn.dev) is that layer: 234 production-ready components for Remotion, delivered the shadcn way — copied into your project as TypeScript source you own.
## The shadcn workflow, for video
-If you've used [shadcn/ui](https://ui.shadcn.com), you already know the model. Components aren't an npm dependency you configure through props and fight through overrides. The CLI copies the source file into your project, and from that moment it's your code:
+If you’ve used [shadcn/ui](https://ui.shadcn.com), you already know the model. Components aren’t an npm dependency you configure through props and fight through overrides. The CLI copies the source file into your project, and from that moment it’s your code:
```bash
npx shadcn@latest add @remocn/soft-blur-in
```
-That drops `soft-blur-in.tsx` into `components/remocn/`. Want the blur to start softer, the spring to settle faster, the easing to feel different? Open the file and change it. There's no library API standing between you and the animation.
+That drops `soft-blur-in.tsx` into `components/remocn/`. Want the blur to start softer, the spring to settle faster, the easing to feel different? Open the file and change it. There’s no library API standing between you and the animation.
-The registry also carries dependency metadata: installing `whip-pan` brings in `@remotion/transitions` automatically, installing a scripted UI flow pulls the primitives it's built from. One command, working code.
+The registry also carries dependency metadata: installing `whip-pan` brings in `@remotion/transitions` automatically, installing a scripted UI flow pulls the primitives it’s built from. One command, working code.
## Sixty seconds to a rendered video
@@ -52,13 +52,13 @@ npx remotion render HelloWorld out.mp4
Two seconds of video, text resolving out of a soft blur, rendered to a file. Every component page on [remocn.dev](https://remocn.dev/docs) mounts a real `@remotion/player`, so you can scrub any animation frame by frame before installing it.
-## What's in the registry
+## What’s in the registry
**34 text animations.** Product videos are mostly words on screen, so this is the deepest section: `staggered-fade-up`, `per-character-rise`, `typewriter` (with a deterministic blinking cursor), `kinetic-center-build` (words push the line sideways while the phrase stays centered — it measures real word widths), `slot-machine-roll`, `matrix-decode`, `number-wheel` and `rolling-number` for metrics, `value-swap` and `rolodex-flip` for word substitutions.
<GuideVideo src="https://cdn.remocn.dev/videos/typography.mp4" poster="https://cdn.remocn.dev/posters/typography.png" />
-**12 transitions.** Four camera moves — `whip-pan`, `push-through`, `focus-pull`, `zoom-blur` — modeled on how editors actually hide cuts, plus eight GPU dissolves (`grain-dissolve`, `smoke-dissolve`, `ripple-zoom`, and friends) for texture. They're presentation functions for `@remotion/transitions`, so they slot into a `TransitionSeries` you may already have:
+**12 transitions.** Four camera moves — `whip-pan`, `push-through`, `focus-pull`, `zoom-blur` — modeled on how editors actually hide cuts, plus eight GPU dissolves (`grain-dissolve`, `smoke-dissolve`, `ripple-zoom`, and friends) for texture. They’re presentation functions for `@remotion/transitions`, so they slot into a `TransitionSeries` you may already have:
<GuideVideo src="https://cdn.remocn.dev/videos/new-transitions.mp4" poster="https://cdn.remocn.dev/posters/new-transitions.png" />
@@ -80,7 +80,7 @@ import { whipPan } from "@/components/remocn/whip-pan";
</TransitionSeries>
```
-**18 WebGL shader backgrounds.** Mesh gradients, god rays, metaballs, liquid metal — each wraps a shader from [paper-design/shaders](https://github.com/paper-design/shaders) and adapts it for video rendering (more on why that's necessary below).
+**18 WebGL shader backgrounds.** Mesh gradients, god rays, metaballs, liquid metal — each wraps a shader from [paper-design/shaders](https://github.com/paper-design/shaders) and adapts it for video rendering (more on why that’s necessary below).
<GuideVideo src="https://cdn.remocn.dev/videos/paper-shaders.mp4" poster="https://cdn.remocn.dev/posters/paper-shaders.png" />
@@ -96,24 +96,24 @@ import { whipPan } from "@/components/remocn/whip-pan";
## The boring hard parts are handled
-Video rendering is stricter than the browser you're used to. Remotion renders frame 47 in isolation — possibly on a different worker than frame 46, possibly out of order — and expects identical pixels every time it asks for that frame. A cursor blinking off `setInterval`, a `Math.random()` in a particle field, a CSS animation: all of them produce renders that flicker or desync.
+Video rendering is stricter than the browser you’re used to. Remotion renders frame 47 in isolation — possibly on a different worker than frame 46, possibly out of order — and expects identical pixels every time it asks for that frame. A cursor blinking off `setInterval`, a `Math.random()` in a particle field, a CSS animation: all of them produce renders that flicker or desync.
-Every remocn component derives its motion from `useCurrentFrame()` and nothing else. The shader backgrounds go further: a shader normally animates against a wall clock, so the wrappers freeze it and drive its frame uniform from the timeline, gating the first paint with `delayRender()` so headless capture never grabs an uninitialized canvas. Scrubbing, looping, and multi-pass renders stay deterministic — which is exactly the class of bug you don't want to discover at render time, on a deadline.
+Every remocn component derives its motion from `useCurrentFrame()` and nothing else. The shader backgrounds go further: a shader normally animates against a wall clock, so the wrappers freeze it and drive its frame uniform from the timeline, gating the first paint with `delayRender()` so headless capture never grabs an uninitialized canvas. Scrubbing, looping, and multi-pass renders stay deterministic — which is exactly the class of bug you don’t want to discover at render time, on a deadline.
The other handled part is taste. Springs come pre-tuned, transition durations ship with sane defaults (a whip-pan lives on speed at ~26 frames; a focus-pull needs ~46 to breathe), and components render transparent so your background — a `backdrop` fill or a shader — is one wrapper away.
## Stop screen-recording your product
-The technique I'd point any founder to first: don't record your app, simulate it. The scripted UI flows replay a signup, a checkout, a chat conversation, a command-menu search — at retina sharpness, with a cursor that never fumbles, on a timeline you control frame by frame. When your product ships a redesign, you update props and re-render instead of re-recording every asset. That's the difference between a demo video that rots and one that lives in your repo next to the code it demos.
+The technique I’d point any founder to first: don’t record your app, simulate it. The scripted UI flows replay a signup, a checkout, a chat conversation, a command-menu search — at retina sharpness, with a cursor that never fumbles, on a timeline you control frame by frame. When your product ships a redesign, you update props and re-render instead of re-recording every asset. That’s the difference between a demo video that rots and one that lives in your repo next to the code it demos.
## Free, MIT, yours
-Everything above is MIT-licensed and free. There's no version to upgrade and no breaking API changes to absorb, because there's no dependency — the code lands in `components/remocn/` and belongs to you. Remotion itself is the only prerequisite (free for individuals and companies of up to 3 people; larger companies need their [company license](https://remotion.dev/license)).
+Everything above is MIT-licensed and free. There’s no version to upgrade and no breaking API changes to absorb, because there’s no dependency — the code lands in `components/remocn/` and belongs to you. Remotion itself is the only prerequisite (free for individuals and companies of up to 3 people; larger companies need their [company license](https://remotion.dev/license)).
## Start here
- [Docs and live previews](https://remocn.dev/docs) — every component with a scrubbable player
-- [Installation guide](https://remocn.dev/docs/getting-started/installation) — two commands and you're rendering
+- [Installation guide](https://remocn.dev/docs/getting-started/installation) — two commands and you’re rendering
- [GitHub](https://github.com/Remocn/remocn) — a star helps more people find it
-If you build something with it, I'd genuinely like to see the result.
+If you build something with it, I’d genuinely like to see the result.
diff --git a/content/blog/nextjs-launch-video.mdx b/content/blog/nextjs-launch-video.mdx
index 791bf8bb..71549c5e 100644
--- a/content/blog/nextjs-launch-video.mdx
+++ b/content/blog/nextjs-launch-video.mdx
@@ -13,26 +13,26 @@ Nobody at Vercel asked for this video. We make unofficial launch videos for prod
1. **The eclipse** — a backlit black triangle over a grainy halo of light, the hook line beneath. The camera dives into the triangle until its flat black swallows the frame.
2. **The tunnel** — we fell into a triangle, so we fall through triangles: concentric outlines rushing past the lens, born small at the vanishing point.
3. **The logotype writes itself** — the official wordmark traced left to right, fills rising behind the tracing line, timed to start the exact frame the tunnel hands over.
-4. **The hero** — nextjs.org's own dashed construction lines and marker circles draw themselves around the real headline and `npx create-next-app@latest`.
+4. **The hero** — nextjs.org’s own dashed construction lines and marker circles draw themselves around the real headline and `npx create-next-app@latest`.
5. **The receipts** — five real customer names on a slow perspective marquee.
-6. **The features** — three whip-pan stations, each of the homepage's feature cards rebuilt as a live illustration: pixel mountains assembling, a wireframe streaming in with traveling pulses, a component tree growing sphere by sphere.
+6. **The features** — three whip-pan stations, each of the homepage’s feature cards rebuilt as a live illustration: pixel mountains assembling, a wireframe streaming in with traveling pulses, a component tree growing sphere by sphere.
7. **Powered by** — a chip with circuit traces drawing outward and colored pulses riding the wires.
8. **The numbers** — two real performance figures landing on odometer digits.
9. **The command and the blueprint** — the install command types itself over a grain cover, then the lockup sits on a breathing blueprint grid.
-### Director's notes
+### Director’s notes
-**The register is stolen honestly.** Everything comes from nextjs.org's dark theme: pure black canvas, `#ededed` ink, Geist weighted exactly as the site weights it. The video is strictly monochrome — the only color allowed lives *inside* the rebuilt illustrations, where the site itself uses it. When you borrow a brand, borrow its discipline too.
+**The register is stolen honestly.** Everything comes from nextjs.org’s dark theme: pure black canvas, `#ededed` ink, Geist weighted exactly as the site weights it. The video is strictly monochrome — the only color allowed lives *inside* the rebuilt illustrations, where the site itself uses it. When you borrow a brand, borrow its discipline too.
**One transition family.** Every cut is a dive, a push, or a pan — the same family of camera moves — and a slow camera creep runs under the whole piece without ever resetting at a cut. `fade` is spent exactly once, on the final breath into the lockup. That is why forty seconds read as one take.
-**Facts are verified, not vibed.** Every customer name and figure on screen was checked against nextjs.org the day the video was built, kept verbatim or cut. The GitHub star count is deliberately absent — the site doesn't lead with it, so neither do we. And the logo is the official brand SVG, embedded path for path, never redrawn.
+**Facts are verified, not vibed.** Every customer name and figure on screen was checked against nextjs.org the day the video was built, kept verbatim or cut. The GitHub star count is deliberately absent — the site doesn’t lead with it, so neither do we. And the logo is the official brand SVG, embedded path for path, never redrawn.
**The tunnel is geometry, not a shader.** A grayscale ripple shader reads as circles at best and a soft glow at worst. The triangle is the brand — so the tunnel is hand-built triangle strokes on an exponential scale cycle.
### The prompt
-This is the video's brief, written as a prompt you can hand to your agent (we validate every prompt we publish against a clean project and the [remocn skill](/docs/ai/agent-skill)):
+This is the video’s brief, written as a prompt you can hand to your agent (we validate every prompt we publish against a clean project and the [remocn skill](/docs/ai/agent-skill)):
```text
I'm making an unofficial launch video for Next.js with remocn (remocn.dev)
diff --git a/content/blog/prisma-launch-video.mdx b/content/blog/prisma-launch-video.mdx
index 95f33a87..06bb1466 100644
--- a/content/blog/prisma-launch-video.mdx
+++ b/content/blog/prisma-launch-video.mdx
@@ -6,23 +6,23 @@ video: https://cdn.remocn.dev/videos/introducing-prisma.mp4
videoPoster: https://cdn.remocn.dev/posters/introducing-prisma.png
---
-Another unofficial one — Prisma didn't commission this. Forty-six seconds, and the whole video happens inside the logo: an indigo-and-teal smoke field lives behind everything, masked to the prism silhouette, so every beat plays out within the brand mark itself.
+Another unofficial one — Prisma didn’t commission this. Forty-six seconds, and the whole video happens inside the logo: an indigo-and-teal smoke field lives behind everything, masked to the prism silhouette, so every beat plays out within the brand mark itself.
### The storyboard
1. **The pain conveyor** — "Raw SQL strings" / "No autocomplete" / "Schema drift", each arriving from the right, holding alone, exiting left.
2. **The reveal** — a beam of white light strikes the prism outline, an indigo-to-teal spectrum fan swallows the scene, and the official mark draws itself on: contour first, fill rising, then the wordmark docks in glyph by glyph.
-3. **What it is** — the homepage's own words, "Agent infrastructure for TypeScript", assembling word by word.
+3. **What it is** — the homepage’s own words, "Agent infrastructure for TypeScript", assembling word by word.
4. **The mechanism** — the one idea the product rests on, acted out: `schema.prisma` cascades line by line, `npx prisma generate` flashes, and the generated client appears with the `: User[]` inlay hint popping in — the guarantee shown the way your editor shows it.
5. **The montage** — five stations whip-panning left: a live autocomplete menu fed by the schema, two model cards with the relation curve drawing itself, a migration applying, the provider value flipping through five databases, and a Studio table populating and saving a record.
6. **The platform** — "Start with the ORM / Add Postgres when you need it / Deploy on Compute."
7. **The proof** — a counter easing into the real GitHub star count.
-8. **The action** — a terminal types the real `npx prisma init` / `npx prisma generate` flow with the CLI's real answers, then yields to "Start at prisma.io".
+8. **The action** — a terminal types the real `npx prisma init` / `npx prisma generate` flow with the CLI’s real answers, then yields to "Start at prisma.io".
9. **The lockup** — the field opens to full brightness — the smoke the whole video lived inside, finally seen at scale — and the official lockup stands alone.
-### Director's notes
+### Director’s notes
-**Tokens come from the live stylesheet, not from memory.** The canvas, the ink, the indigo ramp, the Postgres teal — all lifted from prisma.io's CSS the day the video was built. Even the code cards run Prisma's own editor theme. A brand video that eyeballs its colors is off by exactly enough to feel wrong.
+**Tokens come from the live stylesheet, not from memory.** The canvas, the ink, the indigo ramp, the Postgres teal — all lifted from prisma.io’s CSS the day the video was built. Even the code cards run Prisma’s own editor theme. A brand video that eyeballs its colors is off by exactly enough to feel wrong.
**One branded transition, used exactly twice.** The refraction — light strikes the prism, the spectrum fan opens, folds back, and the refracting element *becomes* the logo — appears at the opening turn and the final stamp, nowhere else. A signature move you repeat five times stops being a signature.
diff --git a/content/blog/shadcn-launch-video.mdx b/content/blog/shadcn-launch-video.mdx
index c8c7b2e2..be6dc197 100644
--- a/content/blog/shadcn-launch-video.mdx
+++ b/content/blog/shadcn-launch-video.mdx
@@ -6,7 +6,7 @@ video: https://cdn.remocn.dev/videos/introducing-shadcn.mp4
videoPoster: https://cdn.remocn.dev/posters/introducing-shadcn.png
---
-This one is a gift — an introducing spot for shadcn/ui made by a fan, not the owner. Fifty-five seconds, and by the end the viewer should know one thing: shadcn/ui is not a component library, it's how you build your own. remocn exists because of the shadcn model, so this video is also a thank-you note.
+This one is a gift — an introducing spot for shadcn/ui made by a fan, not the owner. Fifty-five seconds, and by the end the viewer should know one thing: shadcn/ui is not a component library, it’s how you build your own. remocn exists because of the shadcn model, so this video is also a thank-you note.
### The storyboard
@@ -19,13 +19,13 @@ This one is a gift — an introducing spot for shadcn/ui made by a fan, not the
7. **The preset story** — the ui.shadcn.com/create builder flips Style, Base Color, Theme, and Font while a live sign-in card reshapes; the choices condense into one preset code; the code flips and the same installed components re-theme live. "Switch it any time."
8. **The ownership line** — "And the code is yours."
9. **The proof** — a count slams into 1,000,000 apps a month, a whip-pan carries into Startups / YC / Fortune 500s, and the kicker lands: "Everyone needs UI."
-10. **The lockup** — a muted smoke ring, the name, "Open Source. Open Code." No URL anywhere. It's a gift, not an ad.
+10. **The lockup** — a muted smoke ring, the name, "Open Source. Open Code." No URL anywhere. It’s a gift, not an ad.
-### Director's notes
+### Director’s notes
**The hook is the product, not an illustration of it.** The opening wall and the category montage are real shadcn/ui components running live inside the video pipeline (Tailwind enabled in Remotion). Recognition does the persuading — you have met these cards in the wild.
-**Color lives only where the brand allows it.** The video is monochrome — zinc-950, ink, Geist at regular weight only, nothing bolder anywhere. The only color in the whole piece sits inside the shader covers between scenes, and even that was sampled from shadcn's X avatar and heavily muted. Restraint is the brand.
+**Color lives only where the brand allows it.** The video is monochrome — zinc-950, ink, Geist at regular weight only, nothing bolder anywhere. The only color in the whole piece sits inside the shader covers between scenes, and even that was sampled from shadcn’s X avatar and heavily muted. Restraint is the brand.
**Every line is its own beat.** No headline ever carries a subtitle. A statement lands alone, plays its exit, and yields. That single rule is most of why the typography feels calm at fifty-five seconds.
diff --git a/content/blog/tenkit-launch-video.mdx b/content/blog/tenkit-launch-video.mdx
index c7808047..d7767a22 100644
--- a/content/blog/tenkit-launch-video.mdx
+++ b/content/blog/tenkit-launch-video.mdx
@@ -20,11 +20,11 @@ Tenkit turns one Expo codebase into many branded apps — white-label, multi-ten
8. **Create** — a package manager cycles through pnpm, bun, npm, then locks into `pnpm create tenkit@latest`.
9. **Outro** — the three tenant dots converge, turn white, collapse into a single point, and grow into the Tenkit mark; the wordmark and tenkit.dev resolve beneath.
-### Director's notes
+### Director’s notes
-**The shader is the pitch.** Voronoi — one surface partitioned into many cells — literally is "one codebase, many apps." The field stays neutral zinc until the turn, when the cells re-light in the three tenant colors and bloom over the cut into the showcase. The metaphor is never spoken; it's the geometry the whole video sits on.
+**The shader is the pitch.** Voronoi — one surface partitioned into many cells — literally is "one codebase, many apps." The field stays neutral zinc until the turn, when the cells re-light in the three tenant colors and bloom over the cut into the showcase. The metaphor is never spoken; it’s the geometry the whole video sits on.
-**Color only ever means "a tenant."** The film is `#09090b` and `#fafafa`; the only colors — blue `#208AEF`, orange `#EF8520`, teal `#2DD4A8` — appear exclusively as tenant identity: the three copies, the three phones, the bloom. Because color has exactly one job, the viewer learns the product's core idea without a sentence explaining it.
+**Color only ever means "a tenant."** The film is `#09090b` and `#fafafa`; the only colors — blue `#208AEF`, orange `#EF8520`, teal `#2DD4A8` — appear exclusively as tenant identity: the three copies, the three phones, the bloom. Because color has exactly one job, the viewer learns the product’s core idea without a sentence explaining it.
**The motion is the thesis, run forward then backward.** Division always moves outward — the hook fans, the phones split, the cells expand. The outro reverses it precisely: three dots converge, go white, collapse to a point, and grow into the mark. The video ends by proving its own claim in reverse.
diff --git a/content/blog/videorc-launch-video.mdx b/content/blog/videorc-launch-video.mdx
index 85cb66dd..022528e7 100644
--- a/content/blog/videorc-launch-video.mdx
+++ b/content/blog/videorc-launch-video.mdx
@@ -6,12 +6,12 @@ video: https://cdn.remocn.dev/videos/introducing-videorc.mp4
videoPoster: https://cdn.remocn.dev/posters/introducing-videorc.png
---
-Videorc is OrcDev's open-source Mac studio — record your screen in 4K, go live to five platforms at once, and let its AI do the publishing chores. We'd already cut OrcDev a sponsor video, so this one is a proper introduction: twenty-two seconds, monochrome zinc with exactly one red, and framed as if Videorc were recording the spot itself.
+Videorc is OrcDev’s open-source Mac studio — record your screen in 4K, go live to five platforms at once, and let its AI do the publishing chores. We’d already cut OrcDev a sponsor video, so this one is a proper introduction: twenty-two seconds, monochrome zinc with exactly one red, and framed as if Videorc were recording the spot itself.
### The storyboard
1. **● REC** — the record lockup lands dead-center, the dot blinking on a camcorder cycle. After two blinks the camera dives into the dot until flat red swallows the frame.
-2. **Meet Videorc** — we fall through the dot into a grain tunnel and land on the orc mark alone; then the wordmark drives in from the right and physically pushes the mark left, the two locking into one rigid body, and the site's tagline rises word by word: "The future of video starts here."
+2. **Meet Videorc** — we fall through the dot into a grain tunnel and land on the orc mark alone; then the wordmark drives in from the right and physically pushes the mark left, the two locking into one rigid body, and the site’s tagline rises word by word: "The future of video starts here."
3. **The verbs** — three hard cuts on the beat: Record. Stream. Publish.
4. **One window** — the positioning line assembles word by word: "Everything you need in one window."
5. **Capture** — a whip-pan left into the first station: a screen surface draws itself in, a red dot with a running timecode docks top-left, a camera bubble sits bottom-right, a mic waveform breathes below, and "3840×2160 · 60 fps" waits quiet in the corner — recording in 4K, free, no watermark.
@@ -20,13 +20,13 @@ Videorc is OrcDev's open-source Mac studio — record your screen in 4K, go live
8. **The values** — a grain swell washes the montage away upward and the calm world returns; three claims slide in and hold: open source and free forever, 4K on your Mac, from stop to published.
9. **Lockup** — a push-through dive into the last frame: the app icon springs in, "Videorc" glides in beside it, the timecode freezes, the red dot goes solid, and the recording chrome lifts away — saved. "Open source, built by OrcDev" settles beneath.
-### Director's notes
+### Director’s notes
-**One red, and it's the product's own.** Everything else is Videorc's zinc — `#18181b` canvas, `#f5f5f6` ink — and the single accent allowed is record-red `#ff3b30`: the logo's eyes, the record dot, the blinking timecode marker, and nothing else. When a monochrome video has exactly one color and that color is the product's, restraint does the branding for you.
+**One red, and it’s the product’s own.** Everything else is Videorc’s zinc — `#18181b` canvas, `#f5f5f6` ink — and the single accent allowed is record-red `#ff3b30`: the logo’s eyes, the record dot, the blinking timecode marker, and nothing else. When a monochrome video has exactly one color and that color is the product’s, restraint does the branding for you.
-**The record dot is the transition — and there's only one shader.** The hook dives into the blinking dot and falls out the other side into a grain tunnel; the brand mark itself carries the cut, so there is nothing to fade. And the two statement transitions — ripple-zoom and wave-wipe — are the *same* grain-gradient shader in different shapes, so the backdrop and the cuts speak one language. (No swirl — that one's been used to death.)
+**The record dot is the transition — and there’s only one shader.** The hook dives into the blinking dot and falls out the other side into a grain tunnel; the brand mark itself carries the cut, so there is nothing to fade. And the two statement transitions — ripple-zoom and wave-wipe — are the *same* grain-gradient shader in different shapes, so the backdrop and the cuts speak one language. (No swirl — that one’s been used to death.)
-**The video wears the product's chrome.** From the reveal on, a mono timecode with a blinking red dot ticks along the bottom-left, as if Videorc were recording the spot. At the lockup it freezes, the dot goes solid, and the chrome lifts away — the recording is saved. The frame story and the product demo are the same gesture.
+**The video wears the product’s chrome.** From the reveal on, a mono timecode with a blinking red dot ticks along the bottom-left, as if Videorc were recording the spot. At the lockup it freezes, the dot goes solid, and the chrome lifts away — the recording is saved. The frame story and the product demo are the same gesture.
### The prompt
@@ -79,4 +79,4 @@ left; nothing fades without a direction; no trailing periods on screen.
### Make one for your product
-The generic recipe is [Launch video](/docs/guides/launch-video); the trick that makes a spot feel like the real product — pointing your agent at the site's own tokens — is [Your brand](/docs/guides/your-brand).
+The generic recipe is [Launch video](/docs/guides/launch-video); the trick that makes a spot feel like the real product — pointing your agent at the site’s own tokens — is [Your brand](/docs/guides/your-brand).
diff --git a/lib/ui-preview-internals.tsx b/lib/ui-preview-internals.tsx
index b055e39c..059c3062 100644
--- a/lib/ui-preview-internals.tsx
+++ b/lib/ui-preview-internals.tsx
@@ -117,7 +117,7 @@ export function PreviewStage({
// we drive play() via the ref on the next animation frame, retrying once if
// the first call didn't take. Mirrors stars/hooks/use-player-controls.ts.
useEffect(() => {
- if (!mounted) return;
+ if (!mounted || reducedMotion) return;
let raf1 = 0;
let raf2 = 0;
raf1 = requestAnimationFrame(() => {
@@ -132,7 +132,33 @@ export function PreviewStage({
if (raf1) cancelAnimationFrame(raf1);
if (raf2) cancelAnimationFrame(raf2);
};
- }, [mounted]);
+ }, [mounted, reducedMotion]);
+
+ const pausedByStage = useRef(false);
+ useEffect(() => {
+ if (!mounted || reducedMotion) return;
+ const el = frameRef.current;
+ if (!el || typeof IntersectionObserver === "undefined") return;
+ const observer = new IntersectionObserver(
+ (entries) => {
+ const visible = entries.some((entry) => entry.isIntersecting);
+ const player = playerRef.current;
+ if (!player) return;
+ if (visible) {
+ if (pausedByStage.current) {
+ pausedByStage.current = false;
+ player.play();
+ }
+ } else if (player.isPlaying()) {
+ pausedByStage.current = true;
+ player.pause();
+ }
+ },
+ { rootMargin: "100px 0px" },
+ );
+ observer.observe(el);
+ return () => observer.disconnect();
+ }, [mounted, reducedMotion]);
const compProps = useMemo<
// biome-ignore lint/suspicious/noExplicitAny: dynamically-loaded Remotion composition, props shape varies per component
@@ -163,11 +189,10 @@ export function PreviewStage({
return (
<div
ref={frameRef}
- // Slightly shorter than 16:9 so the player takes a touch less vertical
- // space. Compositions are a strict 1280×720 (16:9), so the Player letterboxes
- // the small delta against the surface-card background while staying full-width
- // and aligned with the tabs/customize panel. The Suspense fallback above uses
- // the same ratio to keep zero layout shift.
+ // Compositions are a strict 1280×720 (16:9) and the stage matches
+ // (aspect-video), staying full-width and aligned with the tabs/customize
+ // panel. The Suspense fallback above uses the same ratio to keep zero
+ // layout shift.
className="surface-card aspect-video w-full overflow-hidden rounded-2xl"
>
{mounted ? (
diff --git a/mdx-components.tsx b/mdx-components.tsx
index 4451068a..8b8c1348 100644
--- a/mdx-components.tsx
+++ b/mdx-components.tsx
@@ -40,8 +40,9 @@ function Pre({ className, ...props }: ComponentProps<"pre">) {
return (
<pre
data-not-typeset
+ tabIndex={0}
className={cn(
- "no-scrollbar min-w-0 overflow-x-auto px-4 py-3.5 outline-none has-data-line-numbers:px-0",
+ "min-w-0 overflow-x-auto px-4 py-3.5 has-data-line-numbers:px-0",
className,
)}
{...props}