Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: landing v1
dev_wandry126bfda75fa8
diff --git a/app/(home)/page.tsx b/app/(home)/page.tsxindex b0e66301..2fc9b94f 100644--- a/app/(home)/page.tsx+++ b/app/(home)/page.tsx@@ -18,6 +18,19 @@ import registry from "@/registry/__index__";/* -------------------------------------------------------------------------- */const APPLE_EASE = "cubic-bezier(0.16, 1, 0.3, 1)";+const SECTION_WRAPPER = "mx-auto w-full max-w-6xl px-6";++function usePrefersReducedMotion() {+ const [reduced, setReduced] = useState(false);+ useEffect(() => {+ const mq = window.matchMedia("(prefers-reduced-motion: reduce)");+ setReduced(mq.matches);+ const listener = (e: MediaQueryListEvent) => setReduced(e.matches);+ mq.addEventListener("change", listener);+ return () => mq.removeEventListener("change", listener);+ }, []);+ return reduced;+}function useInViewReveal<T extends HTMLElement>(threshold = 0.15) {const ref = useRef<T>(null);@@ -53,14 +66,18 @@ function Reveal({className?: string;}) {const { ref, shown } = useInViewReveal<HTMLDivElement>();+ const reduced = usePrefersReducedMotion();+ const visible = reduced || shown;return (<divref={ref}className={className}style={{- opacity: shown ? 1 : 0,- transform: shown ? "translateY(0)" : "translateY(20px)",- transition: `opacity 800ms ${APPLE_EASE} ${delay}ms, transform 800ms ${APPLE_EASE} ${delay}ms`,+ opacity: visible ? 1 : 0,+ transform: visible ? "translateY(0)" : "translateY(20px)",+ transition: reduced+ ? "none"+ : `opacity 800ms ${APPLE_EASE} ${delay}ms, transform 800ms ${APPLE_EASE} ${delay}ms`,}}>{children}@@ -92,6 +109,26 @@ function MacWindow({);}+function GridBackground() {+ // Faint grid that fades out via a radial mask so it never competes for attention.+ const grid =+ "linear-gradient(to right, rgba(255,255,255,0.09) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.09) 1px, transparent 1px)";+ const mask =+ "radial-gradient(ellipse 70% 55% at 50% 35%, black 0%, rgba(0,0,0,0.6) 45%, transparent 80%)";+ return (+ <div+ aria-hidden+ className="pointer-events-none fixed inset-0 z-0"+ style={{+ backgroundImage: grid,+ backgroundSize: "56px 56px",+ maskImage: mask,+ WebkitMaskImage: mask,+ }}+ />+ );+}+function NoiseOverlay() {// Inline SVG turbulence — kills color banding on the void-black background.const svg = `<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>`;@@ -115,35 +152,28 @@ function NoiseOverlay() {function Header() {return (- <header className="fixed inset-x-0 top-0 z-40">+ <header className="fixed inset-x-0 top-0 z-40 border-b border-white/[0.06] bg-black/60 backdrop-blur-xl"><div- className="absolute inset-x-0 bottom-0 h-px bg-white/10"- style={{- maskImage:- "linear-gradient(to right, transparent, black 20%, black 80%, transparent)",- WebkitMaskImage:- "linear-gradient(to right, transparent, black 20%, black 80%, transparent)",- }}- />- <div className="mx-auto flex h-14 max-w-6xl items-center justify-between px-6 backdrop-blur-md">+ className={`flex h-14 items-center justify-between ${SECTION_WRAPPER}`}+ ><Linkhref="/"- className="font-semibold tracking-[-0.02em] text-[#EDEDED]"+ className="font-semibold tracking-[-0.02em] text-[#EDEDED] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/30 focus-visible:rounded-sm">remocn</Link><nav className="flex items-center gap-6 text-sm text-[#888]"><Linkhref="/docs"- className="transition-colors duration-75 hover:text-white"+ className="transition-colors duration-75 hover:text-white focus-visible:text-white focus-visible:outline-none">Docs</Link><Linkhref="https://github.com/remocn/remocn"target="_blank"- rel="noreferrer"- className="flex items-center gap-1.5 transition-colors duration-75 hover:text-white"+ rel="noreferrer noopener"+ className="flex items-center gap-1.5 transition-colors duration-75 hover:text-white focus-visible:text-white focus-visible:outline-none"><svgviewBox="0 0 24 24"@@ -164,9 +194,9 @@ function Header() {}function Hero() {- const heroEntry = registry["hero-device-assemble"];+ const heroEntry = registry["browser-flow"];const [copied, setCopied] = useState(false);- const cmd = "npx shadcn add remocn/hero-device-assemble";+ const cmd = "npx shadcn add remocn/browser-flow";const copy = () => {navigator.clipboard?.writeText(cmd);@@ -175,56 +205,61 @@ function Hero() {};return (- <section className="relative px-6 pt-40 pb-24">- <div className="mx-auto flex max-w-5xl flex-col items-center text-center">+ <section className={`relative ${SECTION_WRAPPER} pt-40 pb-24`}>+ <div className="flex flex-col items-center text-center"><Reveal>- <a+ <Linkhref="/docs"- className="inline-flex items-center gap-2 rounded-full border border-white/10 bg-white/[0.02] px-3 py-1 font-mono text-xs text-[#888] shadow-[0_0_24px_rgba(94,106,210,0.15)_inset] transition-colors hover:text-white"+ className="inline-flex items-center gap-2 rounded-full border border-white/10 bg-white/[0.02] px-3 py-1 font-mono text-xs text-[#888] transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none">- <span className="size-1.5 rounded-full bg-[#5E6AD2] shadow-[0_0_8px_#5E6AD2]" />+ <span className="size-1.5 rounded-full bg-[#5E6AD2]" />v1.0 is live- <ArrowRight className="size-3" />- </a>+ <ArrowRight className="size-3" aria-hidden="true" />+ </Link></Reveal><Reveal delay={80}>- <h1 className="mt-8 max-w-4xl text-balance text-5xl font-semibold leading-[1.05] tracking-[-0.04em] text-[#EDEDED] md:text-7xl">- Cinematic{" "}- <span className="bg-gradient-to-b from-white to-white/50 bg-clip-text text-transparent">- video components- </span>{" "}- for React developers.+ <h1 className="mt-8 max-w-6xl text-balance text-4xl font-semibold leading-[1.05] tracking-[-0.04em] text-[#EDEDED] md:text-6xl">+ Cinematic video components for React developers</h1></Reveal><Reveal delay={160}><p className="mt-6 max-w-2xl text-balance text-lg font-light leading-relaxed text-[#888]">Build launch videos, changelogs, and product demos using code. Copy,- paste, and render in Remotion. Free & open source.+ paste, and render in Remotion. Free & open source</p></Reveal><Reveal delay={240}>- <div className="mt-10 flex flex-col items-center gap-3 sm:flex-row">+ <div className="mt-10 flex flex-col items-stretch gap-3 sm:flex-row sm:items-center"><Linkhref="/docs"- className="inline-flex h-11 items-center gap-2 rounded-full bg-white px-5 text-sm font-medium text-black transition-transform duration-75 hover:scale-[1.02] active:scale-[0.99]"+ className="inline-flex h-12 items-center justify-center gap-2 rounded-full bg-white px-6 text-sm font-medium text-black transition-transform duration-75 hover:scale-[1.02] active:scale-[0.99] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/30 focus-visible:ring-offset-2 focus-visible:ring-offset-black">Browse components- <ArrowRight className="size-4" />+ <ArrowRight className="size-4" aria-hidden="true" /></Link><buttontype="button"onClick={copy}- className="group inline-flex h-11 items-center gap-3 rounded-full border border-white/10 bg-white/[0.02] px-4 font-mono text-sm text-[#888] transition-colors duration-75 hover:border-white/20 hover:text-white"+ aria-label={copied ? "Command copied" : `Copy ${cmd}`}+ className="group inline-flex h-12 items-center gap-3 rounded-full border border-white/10 bg-white/[0.02] px-5 font-mono text-sm text-[#888] transition-colors duration-75 hover:border-white/20 hover:text-white focus-visible:border-white/30 focus-visible:text-white focus-visible:outline-none">- <span className="text-[#5E6AD2]">$</span>+ <span className="text-[#5E6AD2]" aria-hidden="true">+ $+ </span><span>{cmd}</span>{copied ? (- <Check className="size-3.5 text-emerald-400" />+ <Check+ className="size-3.5 text-emerald-400"+ aria-hidden="true"+ />) : (- <Copy className="size-3.5 opacity-60 group-hover:opacity-100" />+ <Copy+ className="size-3.5 opacity-60 group-hover:opacity-100"+ aria-hidden="true"+ />)}</button></div>@@ -232,33 +267,22 @@ function Hero() {<Reveal delay={320} className="w-full"><div className="relative mt-20 w-full">- <div- aria-hidden- className="absolute inset-0 -z-0"- style={{- background:- "radial-gradient(circle at center, rgba(94,106,210,0.18) 0%, rgba(157,78,221,0.06) 30%, transparent 60%)",- filter: "blur(10px)",- }}- />- <MacWindow className="relative mx-auto max-w-4xl">- <div className="aspect-video w-full bg-black">- {heroEntry ? (- <Player- component={heroEntry.Component}- inputProps={{ accentColor: "#5E6AD2" }}- durationInFrames={heroEntry.config.durationInFrames}- fps={heroEntry.config.fps}- compositionWidth={heroEntry.config.compositionWidth}- compositionHeight={heroEntry.config.compositionHeight}- style={{ width: "100%", height: "100%" }}- autoPlay- loop- acknowledgeRemotionLicense- />- ) : null}- </div>- </MacWindow>+ <div className="aspect-video w-full bg-black">+ {heroEntry ? (+ <Player+ component={heroEntry.Component}+ inputProps={{ url: "remocn.dev" }}+ durationInFrames={heroEntry.config.durationInFrames}+ fps={heroEntry.config.fps}+ compositionWidth={heroEntry.config.compositionWidth}+ compositionHeight={heroEntry.config.compositionHeight}+ style={{ width: "100%", height: "100%" }}+ autoPlay+ loop+ acknowledgeRemotionLicense+ />+ ) : null}+ </div></div></Reveal></div>@@ -272,11 +296,11 @@ import { AbsoluteFill } from "remotion";export default function Scene() {return (- <AbsoluteFill style={{ background: "#0A0A0A" }}>+ <AbsoluteFill style={{ background: "#fafafa" }}><StaggeredFadeUptext="Ship faster with remocn"fontSize={88}- color="#EDEDED"+ color="#0A0A0A"staggerDelay={4}/></AbsoluteFill>@@ -286,58 +310,48 @@ export default function Scene() {const entry = registry["staggered-fade-up"];return (- <section className="relative border-t border-white/[0.04] px-6 py-32">- <div className="mx-auto max-w-6xl">+ <section className="relative border-t border-white/[0.04] py-32">+ <div className={SECTION_WRAPPER}><Reveal><div className="mb-16 max-w-2xl"><h2 className="text-4xl font-semibold tracking-[-0.03em] text-[#EDEDED] md:text-5xl">- Code on the left.+ Code on the left<br />- <span className="text-[#666]">Pixels on the right.</span>+ <span className="text-[#666]">pixels on the right</span></h2><p className="mt-4 text-[#888]">- Every component is just React. No timeline editor. No magic.+ Every component is just React. No timeline editor, no magic</p></div></Reveal><Reveal delay={120}>- <div className="relative grid overflow-hidden rounded-2xl border border-white/[0.08] bg-[#0A0A0A] lg:grid-cols-2">+ <div className="grid overflow-hidden rounded-2xl border border-white/[0.08] bg-[#0A0A0A] lg:grid-cols-2 lg:items-stretch">{/* Code side */}- <div className="relative">- <div className="flex items-center gap-1 border-b border-white/[0.06] px-4 py-2">- <span className="rounded-md bg-white/[0.04] px-2.5 py-1 font-mono text-[11px] text-[#EDEDED]">+ <div className="flex flex-col">+ <div className="flex items-center gap-1 border-b border-white/[0.06] px-4 py-2.5">+ <span className="rounded-md bg-white/[0.06] px-2.5 py-1 font-mono text-[11px] text-[#EDEDED]">page.tsx</span><span className="rounded-md px-2.5 py-1 font-mono text-[11px] text-[#666]">Terminal</span></div>- <div className="not-prose [&_pre]:!m-0 [&_pre]:!rounded-none [&_pre]:!border-0 [&_pre]:!bg-transparent [&_pre]:!p-6 [&_pre]:!text-[13px]">+ <div className="flex-1 [&_.shiki]:!bg-transparent [&_figure]:!m-0 [&_figure]:!h-full [&_pre]:!m-0 [&_pre]:!h-full [&_pre]:!max-h-none [&_pre]:!overflow-visible [&_pre]:!rounded-none [&_pre]:!border-0 [&_pre]:!bg-transparent [&_pre]:!p-6 [&_pre]:!text-[13px]"><DynamicCodeBlock lang="tsx" code={sample} /></div></div>- {/* Vertical laser-cut divider */}- <div- aria-hidden- className="pointer-events-none absolute inset-y-0 left-1/2 hidden w-px lg:block"- style={{- background:- "linear-gradient(to bottom, transparent, rgba(255,255,255,0.12) 20%, rgba(255,255,255,0.12) 80%, transparent)",- }}- />-{/* Preview side */}- <div className="flex items-center justify-center border-t border-white/[0.06] bg-black p-6 lg:border-l-0 lg:border-t-0">- <div className="aspect-video w-full overflow-hidden rounded-lg">+ <div className="flex items-center justify-center border-t border-white/[0.06] bg-[#fafafa] p-8 lg:border-l lg:border-t-0">+ <div className="aspect-video w-full overflow-hidden rounded-lg bg-[#fafafa]">{entry ? (<Playercomponent={entry.Component}inputProps={{text: "Ship faster with remocn",fontSize: 88,- color: "#EDEDED",+ color: "#0A0A0A",staggerDelay: 4,distance: 20,fontWeight: "600",@@ -389,7 +403,7 @@ function BentoCard({<divonMouseEnter={handleEnter}onMouseLeave={handleLeave}- className={`group relative overflow-hidden rounded-2xl border border-white/[0.08] bg-[#0A0A0A] ${className}`}+ className={`group relative flex flex-col overflow-hidden rounded-2xl border border-white/[0.08] bg-[#0A0A0A] ${className}`}>{/* Spotlight overlay (driven by parent --mx/--my) */}<div@@ -397,22 +411,7 @@ function BentoCard({className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100"style={{background:- "radial-gradient(600px circle at var(--mx) var(--my), rgba(255,255,255,0.08), transparent 40%)",- }}- />- {/* Border highlight */}- <div- aria-hidden- className="pointer-events-none absolute inset-0 rounded-2xl"- style={{- background:- "radial-gradient(400px circle at var(--mx) var(--my), rgba(94,106,210,0.4), transparent 50%)",- WebkitMask:- "linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",- WebkitMaskComposite: "xor",- mask: "linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",- maskComposite: "exclude",- padding: 1,+ "radial-gradient(600px circle at var(--mx) var(--my), rgba(255,255,255,0.06), transparent 40%)",}}/>@@ -432,7 +431,7 @@ function BentoCard({/>) : null}</div>- <div className="relative p-6">+ <div className="relative flex-1 p-6"><h3 className="text-base font-medium text-[#EDEDED]">{title}</h3><p className="mt-1 text-sm text-[#888]">{description}</p></div>@@ -451,17 +450,29 @@ function BentoRegistry() {};return (- <section className="relative px-6 py-32">- <div className="mx-auto max-w-6xl">+ <section className="relative py-32">+ <div className={SECTION_WRAPPER}><Reveal>- <div className="mb-16 max-w-2xl">- <h2 className="text-4xl font-semibold tracking-[-0.03em] text-[#EDEDED] md:text-5xl">- A registry of motion.- </h2>- <p className="mt-4 text-[#888]">- Transitions, primitives, text reveals — production-ready and- hover-to-play.- </p>+ <div className="mb-16 flex flex-col gap-6 sm:flex-row sm:items-end sm:justify-between">+ <div className="max-w-2xl">+ <h2 className="text-4xl font-semibold tracking-[-0.03em] text-[#EDEDED] md:text-5xl">+ A registry of motion+ </h2>+ <p className="mt-4 text-[#888]">+ Transitions, primitives, text reveals — production-ready and+ hover to play+ </p>+ </div>+ <Link+ href="/docs"+ className="group inline-flex h-11 shrink-0 items-center gap-2 self-start rounded-full border border-white/10 bg-white/[0.02] px-5 text-sm font-medium text-[#EDEDED] transition-colors duration-75 hover:border-white/20 hover:bg-white/[0.04] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/30 sm:self-auto"+ >+ Browse components+ <ArrowRight+ className="size-4 transition-transform duration-150 group-hover:translate-x-0.5"+ aria-hidden="true"+ />+ </Link></div></Reveal>@@ -481,34 +492,38 @@ function BentoRegistry() {<BentoCardname="ai-generation-canvas"title="AI Generation Canvas"- description="From prompt to UI in a single composition."+ description="From prompt to UI in a single composition"className="md:col-span-2 md:row-span-2"/><BentoCardname="shimmer-sweep"title="Shimmer Sweep"- description="Light pass across text for AI accents."- inputProps={{ text: "Generating..." }}+ description="Light pass across text for AI accents"+ inputProps={{ text: "Generating" }}/><BentoCardname="ecosystem-constellation"title="Ecosystem Constellation"- description="Orbits of integration logos around your brand."+ description="Orbits of integration logos around your brand"/></div></Reveal><Reveal delay={200}>- <div className="mt-4 grid gap-4 md:grid-cols-2">+ {/* biome-ignore lint/a11y/noStaticElementInteractions: spotlight cursor tracking is purely visual */}+ <div+ onMouseMove={handleMove}+ className="mt-4 grid gap-4 md:grid-cols-2"+ ><BentoCard- name="kinetic-type-mask"- title="Kinetic Type Mask"- description="Use giant type as a window into the next scene."+ name="grid-pixelate-wipe"+ title="Grid Pixelate Wipe"+ description="The screen breaks into squares and reassembles into a new scene"/><BentoCardname="frosted-glass-wipe"title="Frosted Glass Wipe"- description="An elegant transition through a sheet of glass."+ description="An elegant transition through a sheet of glass"/></div></Reveal>@@ -517,218 +532,225 @@ function BentoRegistry() {);}+/* -------------------------------------------------------------------------- */+/* Use cases */+/* -------------------------------------------------------------------------- */++function CaseChartVisual() {+ return (+ <div className="relative h-full w-full">+ <div className="absolute inset-0 flex items-end gap-2 px-4 pt-4">+ {[34, 52, 28, 71, 44, 88, 64, 95, 76, 100].map((h, i) => (+ <div+ // biome-ignore lint/suspicious/noArrayIndexKey: static demo data+ key={i}+ className="flex-1 rounded-sm bg-white/15"+ style={{ height: `${h}%` }}+ />+ ))}+ </div>+ <div className="absolute inset-x-4 top-3 flex items-center justify-between font-mono text-[10px] text-white/40 tabular-nums">+ <span>upvotes</span>+ <span className="text-emerald-300/70">+412</span>+ </div>+ </div>+ );+}++function CaseChangelogVisual() {+ return (+ <div className="flex h-full flex-col gap-2 p-4 font-mono text-[11px] text-white/50">+ <div className="flex items-center gap-2">+ <span className="rounded-sm border border-white/15 bg-white/[0.04] px-1.5 py-0.5 text-[10px] text-white/70">+ v1.4.0+ </span>+ <span className="text-white/30">just now</span>+ </div>+ <div className="space-y-1 leading-relaxed text-white/40">+ <div>+ added marquee easing</div>+ <div>+ shipped 12 new transitions</div>+ <div className="text-white/30">- removed legacy spring helper</div>+ </div>+ <div className="mt-auto flex items-center gap-1.5 text-[10px] text-white/30">+ <span className="size-1 rounded-full bg-emerald-400/70" />+ rendered & pushed+ </div>+ </div>+ );+}++function CaseDocsVisual() {+ return (+ <div className="grid h-full grid-cols-3 gap-2 p-4">+ {[0, 1, 2, 3, 4, 5].map((i) => (+ <div+ key={i}+ className="rounded-md border border-white/10 bg-white/[0.02] p-2"+ >+ <div className="h-1.5 w-2/3 rounded-full bg-white/15" />+ <div className="mt-1.5 h-1 w-full rounded-full bg-white/8" />+ <div className="mt-1 h-1 w-4/5 rounded-full bg-white/8" />+ </div>+ ))}+ </div>+ );+}+function UseCases() {const cases = [{+ label: "Marketing",title: "Launch videos",- copy: "Ship to Product Hunt with a masterpiece. Wire components, render once, post.",- glow: "rgba(59, 130, 246, 0.18)",- hint: (- <svg- viewBox="0 0 200 80"- className="h-20 w-48 text-blue-400/40"- fill="none"- stroke="currentColor"- strokeWidth="1.5"- role="img"- aria-label="Trend chart"- >- <title>Trend chart</title>- <path d="M0 60 L40 40 L80 50 L120 20 L160 35 L200 10" />- <circle cx="120" cy="20" r="3" fill="currentColor" />- </svg>- ),+ copy: "Ship to Product Hunt with a masterpiece. Wire components, render once, post anywhere",+ stat: "12 PH #1s",+ glow: "rgba(94, 106, 210, 0.18)",+ Visual: CaseChartVisual,},{+ label: "DevRel",title: "Changelogs",- copy: "Turn boring release notes into viral tweets. One commit, one composition.",- glow: "rgba(16, 185, 129, 0.18)",- hint: (- <div className="flex flex-col items-end gap-1.5 font-mono text-[10px] text-emerald-400/40">- <div className="rounded border border-current px-2 py-0.5">- v1.4.0- </div>- <div className="rounded border border-current/60 px-2 py-0.5">- v1.3.2- </div>- <div className="rounded border border-current/40 px-2 py-0.5">- v1.3.1- </div>- </div>- ),+ copy: "Turn boring release notes into viral tweets. One commit, one composition, one render",+ stat: "Render in 8s",+ glow: "rgba(16, 185, 129, 0.16)",+ Visual: CaseChangelogVisual,},{- title: "Documentation",- copy: "Explain complex workflows visually. A 12-second clip beats a thousand words.",- glow: "rgba(239, 68, 68, 0.18)",- hint: (- <svg- viewBox="0 0 160 80"- className="h-20 w-44 text-red-400/40"- fill="none"- stroke="currentColor"- strokeWidth="1.5"- role="img"- aria-label="Workflow diagram"- >- <title>Workflow diagram</title>- <rect x="2" y="20" width="40" height="40" rx="4" />- <rect x="60" y="20" width="40" height="40" rx="4" />- <rect x="118" y="20" width="40" height="40" rx="4" />- <path d="M42 40 L60 40 M100 40 L118 40" />- </svg>- ),+ label: "Documentation",+ title: "Docs that move",+ copy: "Explain complex workflows visually. A twelve second clip beats a thousand words every time",+ stat: "12s clips",+ glow: "rgba(244, 114, 182, 0.14)",+ Visual: CaseDocsVisual,},];return (- <section className="relative border-t border-white/[0.04] px-6 py-32">- <div className="mx-auto max-w-5xl">+ <section className="relative border-t border-white/[0.04] py-32">+ <div className={SECTION_WRAPPER}><Reveal><div className="mb-16 max-w-2xl"><h2 className="text-4xl font-semibold tracking-[-0.03em] text-[#EDEDED] md:text-5xl">- Use cases.+ Built for three jobs</h2>- <p className="mt-4 text-[#888]">Three jobs remocn was built for.</p>+ <p className="mt-4 text-[#888]">+ Marketing launches, release notes, and visual docs — without+ opening a video editor+ </p></div></Reveal>- <div className="flex flex-col gap-4">- {cases.map((c, i) => (- <Reveal key={c.title} delay={i * 80}>- <article- className="group relative flex items-center justify-between overflow-hidden rounded-2xl border border-white/[0.08] bg-[#0A0A0A] p-10"- style={{- boxShadow: `inset -240px 0 220px -120px ${c.glow}`,- }}- >- <div className="max-w-md">- <h3 className="text-2xl font-semibold tracking-[-0.02em] text-[#EDEDED]">- {c.title}- </h3>- <p className="mt-2 text-[#888]">{c.copy}</p>- </div>- <div className="hidden md:block">{c.hint}</div>- </article>- </Reveal>- ))}- </div>- </div>- </section>- );-}--const STACK_ITEMS = [- "Remotion",- "React",- "Next.js",- "Tailwind",- "TypeScript",- "shadcn/ui",- "Framer Motion",- "Vercel",-];--function TechStack() {- return (- <section className="relative border-t border-white/[0.04] py-24">- <Reveal>- <p className="text-center font-mono text-xs uppercase tracking-[0.2em] text-[#666]">- Powered by the best- </p>- </Reveal>-- <div- className="relative mt-10 overflow-hidden"- style={{- maskImage:- "linear-gradient(to right, transparent, black 15%, black 85%, transparent)",- WebkitMaskImage:- "linear-gradient(to right, transparent, black 15%, black 85%, transparent)",- }}- >- <div className="flex w-max animate-[remocn-marquee_30s_linear_infinite] gap-16">- {[...STACK_ITEMS, ...STACK_ITEMS, ...STACK_ITEMS].map((item, i) => (- <span- // biome-ignore lint/suspicious/noArrayIndexKey: marquee duplication- key={i}- className="whitespace-nowrap text-2xl font-medium tracking-[-0.02em] text-white/30"- >- {item}- </span>- ))}+ <div className="grid gap-4 md:grid-cols-3">+ {cases.map((c, i) => {+ const Visual = c.Visual;+ return (+ <Reveal key={c.title} delay={i * 80}>+ <article+ className="group relative flex h-full flex-col overflow-hidden rounded-2xl border border-white/[0.08] bg-[#0A0A0A]"+ style={{+ boxShadow: `inset 0 -120px 140px -100px ${c.glow}`,+ }}+ >+ <div className="relative h-44 w-full overflow-hidden border-b border-white/[0.06] bg-black/40">+ <Visual />+ </div>+ <div className="flex flex-1 flex-col p-6">+ <span className="font-mono text-[11px] text-[#666]">+ {c.label}+ </span>+ <h3 className="mt-2 text-2xl font-semibold tracking-[-0.02em] text-[#EDEDED]">+ {c.title}+ </h3>+ <p className="mt-3 text-sm leading-relaxed text-[#888]">+ {c.copy}+ </p>+ <div className="mt-6 flex items-center justify-between border-t border-white/[0.04] pt-4">+ <span className="font-mono text-[11px] text-[#666] tabular-nums">+ {c.stat}+ </span>+ <Link+ href="/docs"+ className="inline-flex items-center gap-1 text-xs text-[#888] transition-colors duration-75 hover:text-white focus-visible:text-white focus-visible:outline-none"+ >+ Learn more+ <ArrowRight className="size-3" aria-hidden="true" />+ </Link>+ </div>+ </div>+ </article>+ </Reveal>+ );+ })}</div></div>-- <style jsx global>{`- @keyframes remocn-marquee {- 0% { transform: translateX(0); }- 100% { transform: translateX(-33.3333%); }- }- `}</style></section>);}function FinalCTA() {const { ref, shown } = useInViewReveal<HTMLHeadingElement>(0.4);+ const reduced = usePrefersReducedMotion();+ const visible = reduced || shown;return (- <section className="relative border-t border-white/[0.04] px-6 py-40">- <div className="mx-auto flex max-w-4xl flex-col items-center text-center">+ <section className="relative border-t border-white/[0.04] py-40">+ <div+ className={`${SECTION_WRAPPER} flex flex-col items-center text-center`}+ ><h2ref={ref}- className="text-balance text-5xl font-semibold text-[#EDEDED] md:text-6xl"+ className="text-balance text-5xl font-semibold tracking-[-0.03em] text-[#EDEDED] md:text-6xl"style={{- letterSpacing: shown ? "-0.04em" : "0.4em",- filter: shown ? "blur(0px)" : "blur(10px)",- opacity: shown ? 1 : 0,- transition: `letter-spacing 1100ms ${APPLE_EASE}, filter 800ms ${APPLE_EASE}, opacity 800ms ${APPLE_EASE}`,+ opacity: visible ? 1 : 0,+ transform: visible ? "translateY(0)" : "translateY(24px)",+ filter: visible ? "blur(0px)" : "blur(12px)",+ transition: reduced+ ? "none"+ : `opacity 900ms ${APPLE_EASE}, transform 900ms ${APPLE_EASE}, filter 900ms ${APPLE_EASE}`,}}>- Stop fighting keyframes.+ Stop fighting keyframes<br />- Start writing code.+ Start writing code</h2><Reveal delay={300}><Linkhref="/docs"- className="mt-12 inline-flex h-12 items-center gap-2 rounded-full bg-[#0A0A0A] px-6 text-sm font-medium text-[#EDEDED] transition-colors duration-75 hover:bg-[#121212]"- style={{- boxShadow:- "0 0 0 1px rgba(255,255,255,0.1), 0 4px 14px rgba(0,0,0,0.5)",- }}+ className="mt-12 inline-flex h-12 items-center gap-2 rounded-full border border-white/10 bg-[#0A0A0A] px-6 text-sm font-medium text-[#EDEDED] transition-colors duration-75 hover:border-white/20 hover:bg-[#121212] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/30">View documentation- <ArrowRight className="size-4" />+ <ArrowRight className="size-4" aria-hidden="true" /></Link></Reveal></div>- <footer className="mx-auto mt-32 flex max-w-5xl flex-col items-center justify-between gap-4 border-t border-white/[0.04] pt-8 text-xs text-[#666] md:flex-row">- <span>© {new Date().getFullYear()} remocn. MIT licensed.</span>- <nav className="flex gap-6">- <Link- href="/docs"- className="transition-colors duration-75 hover:text-white"- >- Docs- </Link>- <Link- href="https://github.com/remocn/remocn"- className="transition-colors duration-75 hover:text-white"- >- GitHub- </Link>- <Link- href="/docs"- className="transition-colors duration-75 hover:text-white"- >- Components- </Link>- </nav>- </footer>+ <div className={SECTION_WRAPPER}>+ <footer className="mt-32 flex flex-col items-start justify-between gap-4 border-t border-white/[0.04] pt-8 text-xs text-[#666] md:flex-row md:items-center">+ <span suppressHydrationWarning>+ © {new Date().getFullYear()} remocn — MIT licensed+ </span>+ <nav className="flex gap-6">+ <Link+ href="/docs"+ className="transition-colors duration-75 hover:text-white focus-visible:text-white focus-visible:outline-none"+ >+ Docs+ </Link>+ <Link+ href="https://github.com/remocn/remocn"+ className="transition-colors duration-75 hover:text-white focus-visible:text-white focus-visible:outline-none"+ >+ GitHub+ </Link>+ <Link+ href="/docs"+ className="transition-colors duration-75 hover:text-white focus-visible:text-white focus-visible:outline-none"+ >+ Components+ </Link>+ </nav>+ </footer>+ </div></section>);}@@ -739,15 +761,18 @@ function FinalCTA() {export default function Page() {return (- <div className="relative min-h-screen bg-black font-sans text-[#EDEDED] antialiased">+ <div+ className="relative min-h-screen bg-black font-sans text-[#EDEDED] antialiased"+ style={{ colorScheme: "dark" }}+ >+ <GridBackground /><NoiseOverlay /><Header />- <main>+ <main className="relative z-10"><Hero /><DXShowcase /><BentoRegistry /><UseCases />- <TechStack /><FinalCTA /></main></div>