Skip to content

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

faet: remove unessassary blocks, rewrite why_remocn, rewrite getting_started

kapishdimaf35fba38b4f5
diff --git a/app/(home)/components/copyable-block.tsx b/app/(home)/components/copyable-block.tsx
deleted file mode 100644
index 4de0cc7d..00000000
--- a/app/(home)/components/copyable-block.tsx
+++ /dev/null
@@ -1,105 +0,0 @@
-"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 CopyEvent = {
- component: string;
- packageManager: "pnpm" | "npm" | "yarn" | "bun" | "prompt";
- surface: "docs" | "landing" | "bento";
-};
-
-function useCopy(value: string, event: CopyEvent) {
- const [copied, setCopied] = useState(false);
- const trackEvent = useTrackEvent();
-
- return {
- copied,
- copy: () => {
- navigator.clipboard.writeText(value);
- setCopied(true);
- trackEvent("install_command_copied", {
- component: event.component,
- package_manager: event.packageManager,
- surface: event.surface,
- });
- setTimeout(() => setCopied(false), 1500);
- },
- };
-}
-
-export function CopyableButton({
- value,
- label,
- event,
- className,
-}: {
- value: string;
- label: string;
- event: CopyEvent;
- className?: string;
-}) {
- const { copied, copy } = useCopy(value, event);
-
- return (
- <Button
- variant="secondary"
- onClick={copy}
- aria-label={`Copy ${label.toLowerCase()}`}
- size="lg"
- className={cn("rounded-full font-medium", className)}
- >
- <span className="text-foreground">{label}</span>
- <span aria-hidden className="text-muted-foreground/70">
- {copied ? (
- <Check className="size-4 text-foreground" />
- ) : (
- <Copy className="size-4" />
- )}
- </span>
- </Button>
- );
-}
-
-export function CopyablePanel({
- value,
- caption,
- event,
- className,
-}: {
- value: string;
- caption?: string;
- event: CopyEvent;
- className?: string;
-}) {
- const { copied, copy } = useCopy(value, event);
-
- return (
- <div className={cn("flex flex-col gap-2", className)}>
- {caption && (
- <p className="text-sm text-muted-foreground">{caption}</p>
- )}
- <div className="surface-card relative flex items-start gap-3 rounded-2xl p-4 text-left sm:p-5">
- <p className="min-w-0 flex-1 text-pretty text-sm leading-relaxed text-foreground sm:text-base">
- {value}
- </p>
- <Button
- variant="ghost"
- size="icon"
- onClick={copy}
- aria-label="Copy prompt"
- className="shrink-0 rounded-full"
- >
- {copied ? (
- <Check className="size-4 text-foreground" />
- ) : (
- <Copy className="size-4 text-muted-foreground" />
- )}
- </Button>
- </div>
- </div>
- );
-}
diff --git a/app/(home)/components/install-all.tsx b/app/(home)/components/install-all.tsx
deleted file mode 100644
index 87d4b0da..00000000
--- a/app/(home)/components/install-all.tsx
+++ /dev/null
@@ -1,19 +0,0 @@
-"use client";
-
-import { INSTALL_ALL_COMMAND } from "@/config/site";
-import { CopyableButton } from "./copyable-block";
-
-export function InstallAll({ className }: { className?: string }) {
- return (
- <CopyableButton
- value={INSTALL_ALL_COMMAND}
- label="Install all"
- event={{
- component: "install_all",
- packageManager: "npm",
- surface: "landing",
- }}
- className={className}
- />
- );
-}
diff --git a/app/(home)/components/prompt-quickstart.tsx b/app/(home)/components/prompt-quickstart.tsx
deleted file mode 100644
index 0bb58a5d..00000000
--- a/app/(home)/components/prompt-quickstart.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-"use client";
-
-import { QUICKSTART_PROMPT } from "@/config/site";
-import { CopyablePanel } from "./copyable-block";
-
-export function PromptQuickstart({
- caption,
- className,
-}: {
- caption?: string;
- className?: string;
-}) {
- return (
- <CopyablePanel
- value={QUICKSTART_PROMPT}
- caption={caption}
- event={{
- component: "quickstart_prompt",
- packageManager: "prompt",
- surface: "landing",
- }}
- className={className}
- />
- );
-}
diff --git a/app/(home)/components/sections/developer-entry.tsx b/app/(home)/components/sections/developer-entry.tsx
deleted file mode 100644
index 7b5cd5b0..00000000
--- a/app/(home)/components/sections/developer-entry.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-"use client";
-
-import { ArrowRight } from "lucide-react";
-import Link from "next/link";
-import { INSTALL_ALL_NAMES } from "@/config/site";
-import { useTrackEvent } from "@/lib/analytics";
-import { cn } from "@/lib/utils";
-import { FadeUp } from "../fade-up";
-import { InstallAll } from "../install-all";
-
-export function DeveloperEntry({ className }: { className?: string }) {
- const trackEvent = useTrackEvent();
-
- return (
- <section
- id="for-developers"
- className={cn("relative py-14 sm:py-20", className)}
- >
- <div className="section">
- <FadeUp>
- <div className="surface-card flex flex-col gap-6 rounded-3xl p-6 sm:p-8 lg:flex-row lg:items-center lg:justify-between">
- <div className="max-w-xl">
- <h2 className="text-2xl font-semibold tracking-tight text-balance text-foreground sm:text-3xl">
- Already write React?
- </h2>
- <p className="mt-3 text-base leading-relaxed text-pretty text-muted-foreground">
- Skip all of the above. It's a shadcn registry —{" "}
- {INSTALL_ALL_NAMES.length} components, MIT, built on Remotion.
- Install what you need and own the code.
- </p>
- </div>
-
- <div className="flex shrink-0 flex-col items-start gap-3 sm:flex-row sm:items-center">
- <InstallAll />
- <Link
- href="/docs/getting-started/introduction"
- onClick={() =>
- trackEvent("cta_clicked", {
- cta: "developer_docs",
- destination: "/docs/getting-started/introduction",
- })
- }
- className="inline-flex items-center gap-1.5 text-sm text-muted-foreground transition-colors hover:text-foreground"
- >
- Component docs
- <ArrowRight aria-hidden className="size-4" />
- </Link>
- </div>
- </div>
- </FadeUp>
- </div>
- </section>
- );
-}
diff --git a/app/(home)/components/sections/director-quotes.tsx b/app/(home)/components/sections/director-quotes.tsx
deleted file mode 100644
index add62720..00000000
--- a/app/(home)/components/sections/director-quotes.tsx
+++ /dev/null
@@ -1,67 +0,0 @@
-"use client";
-
-import { ArrowRight } from "lucide-react";
-import Link from "next/link";
-import { DIRECTOR_QUOTES } from "@/config/landing";
-import { useTrackEvent } from "@/lib/analytics";
-import { cn } from "@/lib/utils";
-import { FadeUp } from "../fade-up";
-import { SectionHeading } from "../section-heading";
-
-const EYEBROW = "Direction";
-const TITLE = "Talk to it like a director.";
-const LEAD =
- "You don't set easing curves or keyframes. You say what feels wrong, and it fixes it.";
-
-function Quote({ text, index }: { text: string; index: number }) {
- return (
- <FadeUp delay={index * 0.06}>
- <p
- className={cn(
- "surface-card rounded-2xl px-5 py-4 text-base leading-relaxed text-pretty text-foreground sm:text-lg",
- )}
- >
- &ldquo;{text}&rdquo;
- </p>
- </FadeUp>
- );
-}
-
-export function DirectorQuotes({ className }: { className?: string }) {
- const trackEvent = useTrackEvent();
-
- return (
- <section id="direction" className={cn("relative py-14 sm:py-20", className)}>
- <div className="section">
- <SectionHeading eyebrow={EYEBROW} title={TITLE} lead={LEAD} />
-
- <div className="mt-10 grid grid-cols-1 gap-3 sm:mt-12 sm:grid-cols-2 sm:gap-4">
- {DIRECTOR_QUOTES.map((quote, i) => (
- <Quote key={quote} text={quote} index={i} />
- ))}
- </div>
-
- <FadeUp delay={0.1}>
- <p className="mt-8 max-w-2xl text-base leading-relaxed text-pretty text-muted-foreground">
- Every piece in remocn is documented for agents as much as for people
- — what it does, how long it runs, when to reach for it. Your agent
- picks, you react.
- </p>
- <Link
- href="/docs/guides/directing-your-agent"
- onClick={() =>
- trackEvent("cta_clicked", {
- cta: "director_guide",
- destination: "/docs/guides/directing-your-agent",
- })
- }
- className="mt-4 inline-flex items-center gap-1.5 text-sm text-muted-foreground transition-colors hover:text-foreground sm:text-base"
- >
- How to direct your agent
- <ArrowRight aria-hidden className="size-4" />
- </Link>
- </FadeUp>
- </div>
- </section>
- );
-}
diff --git a/app/(home)/components/sections/faq.tsx b/app/(home)/components/sections/faq.tsx
index abeb90d3..c55dbbcc 100644
--- a/app/(home)/components/sections/faq.tsx
+++ b/app/(home)/components/sections/faq.tsx
@@ -1,36 +1,52 @@
-import {
- Accordion,
- AccordionContent,
- AccordionItem,
- AccordionTrigger,
-} from "@/components/ui/accordion";
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";
const TITLE = "Before you ask";
+const LEAD =
+ "The things people want to know before they open a terminal for the first time.";
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} />
+ <SectionHeading eyebrow={EYEBROW} title={TITLE} lead={LEAD} />
- <FadeUp className="mt-10 sm:mt-12">
- <Accordion className="max-w-3xl">
- {FAQ_ITEMS.map((item) => (
- <AccordionItem key={item.question} value={item.question}>
- <AccordionTrigger className="text-base sm:text-lg">
+ <FadeUp className="mt-10 sm:mt-14">
+ <dl className="max-w-3xl">
+ {FAQ_ITEMS.map((item, i) => (
+ <div
+ key={item.question}
+ className={cn(
+ "py-6 sm:py-7",
+ i > 0 && "border-t border-border/60",
+ )}
+ >
+ <dt className="text-base font-medium text-balance text-foreground sm:text-lg">
{item.question}
- </AccordionTrigger>
- <AccordionContent className="text-sm leading-relaxed text-pretty text-muted-foreground sm:text-base">
+ </dt>
+ <dd className="mt-2 text-sm leading-relaxed text-pretty text-muted-foreground sm:text-base">
{item.answer}
- </AccordionContent>
- </AccordionItem>
+ </dd>
+ </div>
))}
- </Accordion>
+ </dl>
+ </FadeUp>
+
+ <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">
+ Still stuck?{" "}
+ <a
+ href={`mailto:${SUPPORT_EMAIL}`}
+ className="text-foreground underline underline-offset-4 transition-colors hover:text-muted-foreground"
+ >
+ Email us
+ </a>{" "}
+ and we'll walk you through it.
+ </p>
</FadeUp>
</div>
</section>
diff --git a/app/(home)/components/sections/get-started.tsx b/app/(home)/components/sections/get-started.tsx
deleted file mode 100644
index 909459c5..00000000
--- a/app/(home)/components/sections/get-started.tsx
+++ /dev/null
@@ -1,156 +0,0 @@
-import Link from "next/link";
-import { CodeBlockCommand } from "@/components/docs/code-block-command";
-import {
- ADD,
- INIT,
- RENDER,
- SAMPLE_COMPONENTS,
- START,
- type Step,
-} from "@/lib/config/snippets";
-import { convertNpmCommand } from "@/lib/convert-npm-command";
-import { cn } from "@/lib/utils";
-import { FadeUp } from "../fade-up";
-import { SectionHeading } from "../section-heading";
-import { Tok, TypewriterCodeBlock } from "../typewriter-code-block";
-
-function StepBadge({ n, accent }: { n: number; accent: string }) {
- return (
- <span
- className="flex size-8 shrink-0 items-center justify-center rounded-full border font-mono text-sm font-medium text-foreground tabular-nums"
- style={{
- backgroundColor: `color-mix(in oklab, ${accent} 16%, transparent)`,
- borderColor: `color-mix(in oklab, ${accent} 45%, transparent)`,
- }}
- >
- {n}
- </span>
- );
-}
-
-function CompactStep({
- step,
- delay,
- className,
-}: {
- step: Step;
- delay: number;
- className?: string;
-}) {
- return (
- <FadeUp delay={delay} className={cn("min-w-0", className)}>
- <div className="surface-card flex min-w-0 flex-col gap-4 rounded-2xl p-5 sm:p-4">
- <div className="flex items-center gap-3">
- <StepBadge n={step.n} accent={step.accent} />
- <h3 className="text-base font-semibold tracking-tight text-foreground">
- {step.title}
- </h3>
- </div>
- <p className="text-sm leading-relaxed text-muted-foreground">
- {step.description}
- </p>
- <CodeBlockCommand
- component={step.component}
- variant="outline"
- {...convertNpmCommand(step.command)}
- />
- </div>
- </FadeUp>
- );
-}
-
-function FeaturedStep({
- step,
- delay,
- className,
-}: {
- step: Step;
- delay: number;
- className?: string;
-}) {
- return (
- <FadeUp delay={delay} className={cn("min-w-0", className)}>
- <div className="surface-card flex min-w-0 flex-col gap-5 rounded-2xl p-6 sm:rounded-3xl sm:p-6">
- <div className="flex items-center gap-3">
- <StepBadge n={step.n} accent={step.accent} />
- <h3 className="text-lg font-semibold tracking-tight text-foreground">
- {step.title}
- </h3>
- </div>
-
- <p className="text-sm leading-relaxed text-muted-foreground sm:text-base">
- {step.description}
- </p>
-
- <CodeBlockCommand
- component={step.component}
- variant="outline"
- {...convertNpmCommand(step.command)}
- />
-
- <TypewriterCodeBlock
- header={false}
- text={<Tok kind="string">"Hello, world"</Tok>}
- fontSize={<Tok kind="number">72</Tok>}
- color={<Tok kind="string">"#171717"</Tok>}
- fontWeight={<Tok kind="number">700</Tok>}
- cursor={<Tok kind="boolean">true</Tok>}
- />
-
- <div className="flex flex-wrap items-center gap-2 pt-1">
- {SAMPLE_COMPONENTS.map((name) => (
- <span
- key={name}
- className="rounded-lg border border-border bg-muted/40 px-2.5 py-1 text-xs text-muted-foreground"
- >
- {name}
- </span>
- ))}
- <Link
- href="/docs/components"
- className="rounded-lg px-2.5 py-1 text-xs text-muted-foreground/70 transition-colors hover:text-foreground focus-visible:text-foreground focus-visible:outline-none"
- >
- + more
- </Link>
- </div>
- </div>
- </FadeUp>
- );
-}
-
-export function GetStarted() {
- return (
- <section id="get-started" className="relative py-14 sm:py-20">
- <div className="section">
- <SectionHeading
- eyebrow="Get started"
- title="Ship your first frame in minutes"
- lead="If you know shadcn/ui, you already know remocn. Three commands and you're rendering — the code lands in your repo, yours to tweak."
- />
-
- <div className="mt-12 grid items-start gap-4 sm:mt-16 sm:gap-6 md:grid-cols-2 md:gap-x-6 md:gap-y-6.5">
- <CompactStep
- step={START}
- delay={0}
- className="md:col-start-1 md:row-start-1"
- />
- <CompactStep
- step={INIT}
- delay={0.08}
- className="md:col-start-1 md:row-start-2"
- />
- <FeaturedStep
- step={ADD}
- delay={0.16}
- className="md:col-start-2 md:row-start-1 md:row-span-3"
- />
- <CompactStep
- step={RENDER}
- delay={0.24}
- className="md:col-start-1 md:row-start-3"
- />
- </div>
- </div>
- </section>
- );
-}
diff --git a/app/(home)/components/sections/how-it-works-viz.tsx b/app/(home)/components/sections/how-it-works-viz.tsx
new file mode 100644
index 00000000..a27583ac
--- /dev/null
+++ b/app/(home)/components/sections/how-it-works-viz.tsx
@@ -0,0 +1,230 @@
+"use client";
+
+import { motion, useReducedMotion } from "motion/react";
+import type { ReactNode } from "react";
+import { cn } from "@/lib/utils";
+
+type VizProps = { play: boolean };
+
+const LOOP = 6;
+
+function WindowFrame({
+ label,
+ children,
+ className,
+}: {
+ label: string;
+ children: ReactNode;
+ className?: string;
+}) {
+ return (
+ <div
+ className={cn(
+ "flex h-full w-full flex-col overflow-hidden rounded-xl border border-border bg-card",
+ className,
+ )}
+ >
+ <div className="flex items-center gap-1.5 border-b border-border px-2.5 py-2">
+ <span className="flex gap-1" aria-hidden>
+ <span className="size-1.5 rounded-full bg-foreground/15" />
+ <span className="size-1.5 rounded-full bg-foreground/15" />
+ <span className="size-1.5 rounded-full bg-foreground/15" />
+ </span>
+ <span className="truncate font-mono text-[10px] text-muted-foreground/70">
+ {label}
+ </span>
+ </div>
+ <div className="min-h-0 flex-1 p-3">{children}</div>
+ </div>
+ );
+}
+
+function Caret({ active }: { active: boolean }) {
+ if (!active) {
+ return <span className="inline-block h-3 w-[2px] bg-foreground/60" />;
+ }
+ return (
+ <motion.span
+ aria-hidden
+ className="inline-block h-3 w-[2px] bg-foreground/60"
+ animate={{ opacity: [1, 1, 0, 0] }}
+ transition={{
+ duration: 1.1,
+ times: [0, 0.5, 0.5, 1],
+ repeat: Number.POSITIVE_INFINITY,
+ ease: "linear",
+ }}
+ />
+ );
+}
+
+export function AgentWindowViz({ play }: VizProps) {
+ const reduced = useReducedMotion();
+ const active = play && !reduced;
+
+ return (
+ <WindowFrame label="~/demo-video">
+ <div className="flex h-full flex-col justify-between">
+ <div className="flex items-center gap-1.5 font-mono text-xs">
+ <span className="text-muted-foreground/50">›</span>
+ <Caret active={active} />
+ </div>
+ <p className="font-mono text-[10px] text-muted-foreground/45">
+ empty folder
+ </p>
+ </div>
+ </WindowFrame>
+ );
+}
+
+const LOG_LINES = ["installing skill", "starting preview"];
+
+export function PromptTypingViz({ play }: VizProps) {
+ const reduced = useReducedMotion();
+ const active = play && !reduced;
+
+ if (!active) {
+ return (
+ <WindowFrame label="~/demo-video">
+ <div className="flex h-full flex-col gap-2">
+ <p className="font-mono text-xs text-foreground">
+ › Set up a remocn project
+ </p>
+ {LOG_LINES.map((line) => (
+ <p
+ key={line}
+ className="font-mono text-[10px] text-muted-foreground/60"
+ >
+ {line}
+ </p>
+ ))}
+ </div>
+ </WindowFrame>
+ );
+ }
+
+ return (
+ <WindowFrame label="~/demo-video">
+ <div className="flex h-full flex-col gap-2">
+ <div className="flex items-center gap-1.5 font-mono text-xs">
+ <span className="shrink-0 text-muted-foreground/50">›</span>
+ <motion.span
+ className="overflow-hidden whitespace-nowrap text-foreground will-change-[width]"
+ animate={{ width: ["0%", "100%", "100%", "100%"] }}
+ transition={{
+ duration: LOOP,
+ times: [0, 0.32, 0.92, 1],
+ repeat: Number.POSITIVE_INFINITY,
+ ease: "linear",
+ }}
+ >
+ Set up a remocn project
+ </motion.span>
+ <Caret active />
+ </div>
+
+ <div className="flex flex-col gap-1.5">
+ {LOG_LINES.map((line, i) => (
+ <motion.p
+ key={line}
+ className="font-mono text-[10px] text-muted-foreground/60 will-change-[transform,opacity]"
+ animate={{ opacity: [0, 0, 1, 1, 0], y: [4, 4, 0, 0, 0] }}
+ transition={{
+ duration: LOOP,
+ times: [0, 0.42 + i * 0.12, 0.54 + i * 0.12, 0.92, 1],
+ repeat: Number.POSITIVE_INFINITY,
+ ease: "easeOut",
+ }}
+ >
+ {line}
+ </motion.p>
+ ))}
+ </div>
+ </div>
+ </WindowFrame>
+ );
+}
+
+function ChatBubble({ w }: { w: string }) {
+ return (
+ <span
+ aria-hidden
+ className="block h-1.5 rounded-full bg-foreground/10"
+ style={{ width: w }}
+ />
+ );
+}
+
+function PlayerBody({ active }: { active: boolean }) {
+ return (
+ <div className="flex h-full flex-col justify-between rounded-lg bg-muted/40 p-2.5">
+ <div className="flex flex-1 items-center justify-center">
+ {active ? (
+ <motion.span
+ className="text-sm font-semibold tracking-tight text-foreground will-change-[transform,opacity]"
+ animate={{ opacity: [0, 1, 1, 0], y: [8, 0, 0, -8] }}
+ transition={{
+ duration: LOOP,
+ times: [0.5, 0.62, 0.88, 1],
+ repeat: Number.POSITIVE_INFINITY,
+ ease: "easeInOut",
+ }}
+ >
+ Your product
+ </motion.span>
+ ) : (
+ <span className="text-sm font-semibold tracking-tight text-foreground">
+ Your product
+ </span>
+ )}
+ </div>
+ <div className="h-1 w-full overflow-hidden rounded-full bg-foreground/10">
+ {active ? (
+ <motion.div
+ className="h-full origin-left rounded-full bg-foreground/40 will-change-transform"
+ animate={{ scaleX: [0, 0, 1, 0] }}
+ transition={{
+ duration: LOOP,
+ times: [0, 0.5, 0.95, 1],
+ repeat: Number.POSITIVE_INFINITY,
+ ease: "linear",
+ }}
+ />
+ ) : (
+ <div className="h-full w-1/2 rounded-full bg-foreground/40" />
+ )}
+ </div>
+ </div>
+ );
+}
+
+export function PlayerRevealViz({ play }: VizProps) {
+ const reduced = useReducedMotion();
+ const active = play && !reduced;
+
+ return (
+ <WindowFrame label="localhost:3000">
+ <div className="flex h-full gap-2">
+ <motion.div
+ className="flex shrink-0 flex-col gap-1.5 overflow-hidden will-change-[width]"
+ style={active ? undefined : { width: "26%" }}
+ initial={active ? { width: "58%" } : false}
+ animate={active ? { width: ["58%", "58%", "26%", "26%"] } : undefined}
+ transition={{
+ duration: LOOP,
+ times: [0, 0.34, 0.5, 1],
+ repeat: Number.POSITIVE_INFINITY,
+ ease: "easeInOut",
+ }}
+ >
+ <ChatBubble w="80%" />
+ <ChatBubble w="55%" />
+ <ChatBubble w="70%" />
+ </motion.div>
+ <div className="min-w-0 flex-1">
+ <PlayerBody active={active} />
+ </div>
+ </div>
+ </WindowFrame>
+ );
+}
diff --git a/app/(home)/components/sections/how-it-works.tsx b/app/(home)/components/sections/how-it-works.tsx
index bddf6f32..b997137a 100644
--- a/app/(home)/components/sections/how-it-works.tsx
+++ b/app/(home)/components/sections/how-it-works.tsx
@@ -1,46 +1,57 @@
"use client";
import { ArrowRight } from "lucide-react";
+import { useInView } from "motion/react";
import Link from "next/link";
-import { type HowItWorksStep, HOW_IT_WORKS_STEPS } from "@/config/landing";
+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 { PromptQuickstart } from "../prompt-quickstart";
import { SectionHeading } from "../section-heading";
+import {
+ AgentWindowViz,
+ PlayerRevealViz,
+ PromptTypingViz,
+} from "./how-it-works-viz";
const EYEBROW = "How it works";
const TITLE = "Two things: an agent and an empty folder.";
const LEAD =
"No editor to learn, no timeline to scrub. You describe, it builds, you watch it happen.";
-function StepRow({
- step,
- index,
- children,
-}: {
- step: HowItWorksStep;
- index: number;
- children?: React.ReactNode;
-}) {
+const VIZ = [AgentWindowViz, PromptTypingViz, PlayerRevealViz];
+
+function StepColumn({ step, index }: { step: HowItWorksStep; index: number }) {
+ const ref = useRef<HTMLDivElement>(null);
+ const inView = useInView(ref, { amount: 0.4 });
+ const Viz = VIZ[index];
+
return (
<div
+ ref={ref}
className={cn(
- "flex flex-col gap-3 py-6 sm:flex-row sm:gap-6",
- index > 0 && "border-t border-border/60",
+ "flex flex-col gap-6 py-8 sm:gap-8 sm:py-10",
+ index > 0 &&
+ "border-t border-border/60 lg:border-t-0 lg:border-l lg:pl-8",
+ index < HOW_IT_WORKS_STEPS.length - 1 && "lg:pr-8",
)}
>
- <span className="shrink-0 font-mono text-sm text-muted-foreground/70 sm:pt-1">
- {String(index + 1).padStart(2, "0")}
+ <span className="flex size-6 shrink-0 items-center justify-center rounded-full border border-border font-mono text-[11px] text-muted-foreground/70">
+ {index + 1}
</span>
- <div className="min-w-0 flex-1">
- <p className="text-base font-medium text-foreground sm:text-lg">
+
+ <div className="aspect-[4/3] w-full">
+ <Viz play={inView} />
+ </div>
+
+ <div className="mt-auto min-w-0">
+ <h3 className="text-base font-semibold tracking-tight text-balance text-foreground sm:text-lg">
{step.title}
- </p>
- <p className="mt-1.5 text-sm leading-relaxed text-pretty text-muted-foreground sm:text-base">
+ </h3>
+ <p className="mt-2 text-sm leading-relaxed text-pretty text-muted-foreground sm:text-base">
{step.detail}
</p>
- {children}
</div>
</div>
);
@@ -52,17 +63,15 @@ export function HowItWorks({ className }: { className?: string }) {
return (
<section
id="how-it-works"
- className={cn("relative py-14 sm:py-20", className)}
+ className={cn("relative pt-6 pb-14 sm:pt-0 sm:pb-20", className)}
>
<div className="section">
<SectionHeading eyebrow={EYEBROW} title={TITLE} lead={LEAD} />
<FadeUp className="mt-10 sm:mt-14">
- <div className="surface-card rounded-3xl px-5 py-1 sm:px-8">
+ <div className="grid grid-cols-1 border-y border-border/60 lg:grid-cols-3">
{HOW_IT_WORKS_STEPS.map((step, i) => (
- <StepRow key={step.title} step={step} index={i}>
- {i === 1 && <PromptQuickstart className="mt-4" />}
- </StepRow>
+ <StepColumn key={step.title} step={step} index={i} />
))}
</div>
</FadeUp>
@@ -76,7 +85,7 @@ export function HowItWorks({ className }: { className?: string }) {
destination: "/docs/guides/setup",
})
}
- className="mt-6 inline-flex items-center gap-1.5 text-sm text-muted-foreground transition-colors hover:text-foreground sm:text-base"
+ 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" />
diff --git a/app/(home)/components/sections/showcase.tsx b/app/(home)/components/sections/showcase.tsx
deleted file mode 100644
index 432306d8..00000000
--- a/app/(home)/components/sections/showcase.tsx
+++ /dev/null
@@ -1,43 +0,0 @@
-import { ArrowRight } from "lucide-react";
-import Link from "next/link";
-import { getShowcases } from "@/lib/showcases";
-import { cn } from "@/lib/utils";
-import { ShowcaseGrid } from "../../showcases/components/showcase-grid";
-import { SectionHeading } from "../section-heading";
-
-const EYEBROW = "Showcase";
-const TITLE = "This is what ships";
-const LEAD =
- "Every video here is React code in someone's repo. Open it, read it, change a number.";
-
-const LIMIT = 6;
-
-export async function Showcase({ className }: { className?: string }) {
- const showcases = await getShowcases().catch(() => []);
- if (showcases.length === 0) return null;
-
- return (
- <section id="showcase" className={cn("relative py-14 sm:py-20", className)}>
- <div className="section">
- <SectionHeading
- eyebrow={EYEBROW}
- title={TITLE}
- lead={LEAD}
- action={
- <Link
- href="/showcases"
- className="inline-flex items-center gap-1.5 text-sm text-muted-foreground transition-colors hover:text-foreground sm:text-base"
- >
- See all
- <ArrowRight aria-hidden className="size-4" />
- </Link>
- }
- />
-
- <div className="mt-10 sm:mt-12">
- <ShowcaseGrid showcases={showcases.slice(0, LIMIT)} />
- </div>
- </div>
- </section>
- );
-}
diff --git a/app/(home)/components/sections/testimonials.tsx b/app/(home)/components/sections/testimonials.tsx
index 5194c52d..3a2257ca 100644
--- a/app/(home)/components/sections/testimonials.tsx
+++ b/app/(home)/components/sections/testimonials.tsx
@@ -1,7 +1,14 @@
+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 = [
+ { value: String(COMPONENT_COUNT), label: "components" },
+ { value: "MIT", label: "licensed" },
+ { value: "Any", label: "coding agent" },
+];
+
function TestimonialCard({
authorAvatar,
authorName,
@@ -71,6 +78,17 @@ export function Testimonials() {
title="Builders are shipping with remocn"
lead="Builders who needed a demo video for their product and shipped one the same day."
/>
+
+ <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>
</div>
<FadeUp delay={0.1}>
diff --git a/app/(home)/components/sections/why-remocn.tsx b/app/(home)/components/sections/why-remocn.tsx
index 891a0132..8e09a51a 100644
--- a/app/(home)/components/sections/why-remocn.tsx
+++ b/app/(home)/components/sections/why-remocn.tsx
@@ -1,177 +1,63 @@
-"use client";
-
import {
- ArrowRight,
Bot,
- Check,
Clapperboard,
+ FileCode2,
MonitorPlay,
Wallet,
+ Zap,
} from "lucide-react";
-import { motion, useInView, useReducedMotion } from "motion/react";
-import { type ComponentType, useRef } from "react";
-import { INSTALL_COMMAND, SPRING_BOUNCE, SPRING_SOFT } from "@/config/site";
+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 MINT = "#3aad78";
-
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.";
-interface Problem {
- icon: ComponentType<{ className?: string }>;
- task: string;
- cost: string;
- gain: string;
-}
-
-const PROBLEMS: Problem[] = [
- {
- icon: Wallet,
- task: "Hiring a motion designer",
- cost: "$600+",
- gain: "$0",
- },
- {
- icon: Clapperboard,
- task: "Learning After Effects",
- cost: "A weekend",
- gain: "Skip it",
- },
- {
- icon: Bot,
- task: "Teaching an AI to keyframe",
- cost: "~40k tokens",
- gain: "Included",
- },
- {
- icon: MonitorPlay,
- task: "Settling for a screen recording",
- cost: "Looks unfinished",
- gain: "Looks shipped",
- },
+const ICONS: ComponentType<{ className?: string }>[] = [
+ Wallet,
+ Clapperboard,
+ Bot,
+ MonitorPlay,
+ FileCode2,
+ Zap,
];
-function InstallLine({ className }: { className?: string }) {
- return (
- <div
- className={cn(
- "flex items-center gap-2.5 overflow-x-auto rounded-xl border border-border bg-muted/40 px-3.5 py-2.5 font-mono text-sm",
- className,
- )}
- >
- <span className="shrink-0 text-muted-foreground/70 select-none">$</span>
- <span className="whitespace-nowrap text-foreground">
- {INSTALL_COMMAND}
- </span>
- </div>
- );
-}
-
-function LedgerRow({ problem, index }: { problem: Problem; index: number }) {
- const ref = useRef<HTMLDivElement>(null);
- const inView = useInView(ref, { once: true, amount: 0.6 });
- const reduced = useReducedMotion();
- const active = inView || reduced;
- const Icon = problem.icon;
-
+export function WhyRemocn({ className }: { className?: string }) {
return (
- <div
- ref={ref}
- className={cn(
- "flex flex-col gap-2.5 py-4 sm:flex-row sm:items-center sm:justify-between sm:gap-4 sm:py-3.5",
- index > 0 && "border-t border-border/60",
- )}
+ <section
+ id="why-remocn"
+ className={cn("relative py-14 sm:py-20", className)}
>
- <div className="flex min-w-0 items-center gap-2.5">
- <Icon aria-hidden className="size-5 shrink-0 text-foreground/55" />
- <p className="min-w-0 text-base font-medium text-foreground">
- {problem.task}
- </p>
- </div>
- <div className="flex items-center gap-2.5 pl-[1.875rem] sm:shrink-0 sm:gap-4 sm:pl-0">
- <span className="relative inline-block text-sm text-foreground/45 sm:text-base">
- {problem.cost}
- <motion.span
- aria-hidden
- className="absolute inset-x-0 top-1/2 h-px origin-left bg-foreground/50"
- initial={reduced ? false : { scaleX: 0 }}
- animate={active ? { scaleX: 1 } : { scaleX: 0 }}
- transition={{
- ...SPRING_SOFT,
- delay: reduced ? 0 : 0.15 + index * 0.12,
- }}
- />
- </span>
- <ArrowRight
- aria-hidden
- className="size-3.5 shrink-0 text-muted-foreground/40"
- />
- <motion.span
- className="inline-flex items-center gap-1.5 text-sm font-semibold text-foreground sm:text-base"
- initial={reduced ? false : { opacity: 0, x: 8 }}
- animate={active ? { opacity: 1, x: 0 } : { opacity: 0, x: 8 }}
- transition={{
- ...SPRING_BOUNCE,
- delay: reduced ? 0 : 0.3 + index * 0.12,
- }}
- >
- <Check
- aria-hidden
- className="size-4 shrink-0"
- style={{ color: MINT }}
- />
- {problem.gain}
- </motion.span>
- </div>
- </div>
- );
-}
-
-export function WhyRemocn() {
- return (
- <section id="why-remocn" className="relative pt-6 pb-14 sm:pt-0 sm:pb-20">
<div className="section">
<SectionHeading eyebrow={EYEBROW} title={TITLE} lead={LEAD} />
- <FadeUp className="mt-10 sm:mt-14">
- <div className="surface-card w-full rounded-3xl p-4 sm:p-5 lg:p-6">
- <div className="mb-1 flex items-end justify-between gap-4 border-b border-border pb-4">
- <div>
- <p className="text-base font-semibold text-foreground sm:text-lg">
- The usual bill
- </p>
- <p className="mt-0.5 hidden text-sm text-muted-foreground sm:block">
- What a video normally costs you
- </p>
- </div>
- <div className="text-right">
- <p className="text-base font-semibold text-foreground sm:text-lg">
- With remocn
- </p>
- <p className="mt-0.5 hidden text-sm text-muted-foreground sm:block">
- Just one command
- </p>
- </div>
- </div>
-
- {PROBLEMS.map((problem, i) => (
- <LedgerRow key={problem.task} problem={problem} index={i} />
- ))}
-
- <div className="mt-4 flex flex-col gap-3 border-t border-border pt-4 sm:flex-row sm:items-center sm:justify-between">
- <p className="text-sm text-muted-foreground sm:text-base">
- Total, the remocn way —{" "}
- <span className="text-foreground">one line.</span>
- </p>
- <InstallLine className="sm:w-auto" />
- </div>
- </div>
- </FadeUp>
+ <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 className="flex items-center gap-2">
+ <Icon
+ aria-hidden
+ className="size-4 shrink-0 text-muted-foreground"
+ />
+ <h3 className="text-base font-medium text-foreground">
+ {reason.title}
+ </h3>
+ </div>
+ <p className="mt-2 text-sm leading-relaxed text-pretty text-muted-foreground sm:text-base">
+ {reason.detail}
+ </p>
+ </div>
+ </FadeUp>
+ );
+ })}
+ </div>
</div>
</section>
);
diff --git a/app/(home)/components/typewriter-code-block.tsx b/app/(home)/components/typewriter-code-block.tsx
deleted file mode 100644
index 271e38be..00000000
--- a/app/(home)/components/typewriter-code-block.tsx
+++ /dev/null
@@ -1,245 +0,0 @@
-"use client";
-
-import { ChevronDown } from "lucide-react";
-import { useTheme } from "next-themes";
-import {
- createContext,
- type ReactNode,
- useContext,
- useEffect,
- useState,
-} from "react";
-import { cn } from "@/lib/utils";
-
-export type CodeTheme = "light" | "dark";
-
-export type SyntaxPalette = {
- keyword: string;
- type: string;
- fn: string;
- prop: string;
- string: string;
- number: string;
- boolean: string;
- punctuation: string;
- plain: string;
-};
-
-// Fixed dark editor palette (mirrors the reference mock).
-export const SYNTAX_DARK: SyntaxPalette = {
- keyword: "#c792ea",
- type: "#c9b3ff",
- fn: "#82aaff",
- prop: "#a6accd",
- string: "#c3e88d",
- number: "#89ddff",
- boolean: "#f78c6c",
- punctuation: "#676e95",
- plain: "#bcc2e0",
-};
-
-// Light editor palette (GitHub-light flavoured) for the same token kinds.
-export const SYNTAX_LIGHT: SyntaxPalette = {
- keyword: "#cf222e",
- type: "#116329",
- fn: "#8250df",
- prop: "#953800",
- string: "#0a3069",
- number: "#0550ae",
- boolean: "#0550ae",
- punctuation: "#6e7781",
- plain: "#1f2328",
-};
-
-export const SYNTAX: Record<CodeTheme, SyntaxPalette> = {
- dark: SYNTAX_DARK,
- light: SYNTAX_LIGHT,
-};
-
-// Chrome (surface, title bar, traffic lights, chip) per theme.
-const CHROME: Record<
- CodeTheme,
- { container: string; titleBar: string; dot: string; chip: string }
-> = {
- dark: {
- container: "bg-[#0f0e17] ring-white/10",
- titleBar: "border-white/[0.06]",
- dot: "bg-white/15",
- chip: "bg-white/5 text-white/55 ring-white/10",
- },
- light: {
- container: "bg-[#f6f8fa] ring-black/[0.08]",
- titleBar: "border-black/[0.06]",
- dot: "bg-black/15",
- chip: "bg-black/[0.04] text-black/55 ring-black/[0.08]",
- },
-};
-
-const PaletteContext = createContext<SyntaxPalette>(SYNTAX_DARK);
-
-export function Token({
- color,
- children,
-}: {
- color: string;
- children: ReactNode;
-}) {
- return <span style={{ color }}>{children}</span>;
-}
-
-/**
- * Token coloured by the active {@link TypewriterCodeBlock} theme. Use this for
- * slot values when the block follows the site theme (no explicit `theme` prop),
- * so the colours track light/dark automatically.
- */
-export function Tok({
- kind,
- children,
-}: {
- kind: keyof SyntaxPalette;
- children: ReactNode;
-}) {
- const palette = useContext(PaletteContext);
- return <span style={{ color: palette[kind] }}>{children}</span>;
-}
-
-/**
- * The `Typewriter` editor card: title bar + syntax-highlighted source.
- *
- * Theme resolution: an explicit `theme` prop always wins; otherwise the block
- * follows the site's next-theme (`resolvedTheme`), falling back to dark before
- * mount to avoid hydration mismatch. The active palette is exposed to slots via
- * context — colour them with {@link Tok} to track the theme, or {@link Token}
- * for a fixed colour. The five JSX prop values are slots, so callers decide
- * whether each is static or an interactive control.
- */
-export function TypewriterCodeBlock({
- text,
- fontSize,
- color,
- fontWeight,
- cursor,
- footer,
- label = "Typewriter",
- theme,
- header = true,
- className,
-}: {
- text: ReactNode;
- fontSize: ReactNode;
- color: ReactNode;
- fontWeight: ReactNode;
- cursor: ReactNode;
- footer?: ReactNode;
- label?: string;
- theme?: CodeTheme;
- header?: boolean;
- className?: string;
-}) {
- const { resolvedTheme } = useTheme();
- const [mounted, setMounted] = useState(false);
-
- // Theme is only known on the client; before mount fall back to dark so SSR
- // and the first client render agree.
- useEffect(() => setMounted(true), []);
-
- const active: CodeTheme =
- theme ?? (mounted && resolvedTheme === "light" ? "light" : "dark");
- const chrome = CHROME[active];
- const palette = SYNTAX[active];
-
- return (
- <PaletteContext.Provider value={palette}>
- <div
- className={cn(
- "relative overflow-hidden rounded-2xl ring-1 sm:rounded-3xl",
- chrome.container,
- className,
- )}
- >
- {/* Title bar */}
- {header && (
- <div
- className={cn(
- "relative flex items-center justify-between border-b px-5 py-4",
- chrome.titleBar,
- )}
- >
- <div className="flex items-center gap-2">
- <span className={cn("size-3 rounded-full", chrome.dot)} />
- <span className={cn("size-3 rounded-full", chrome.dot)} />
- <span className={cn("size-3 rounded-full", chrome.dot)} />
- </div>
- <span
- className={cn(
- "inline-flex items-center gap-1.5 rounded-lg px-2.5 py-1 text-xs font-medium ring-1",
- chrome.chip,
- )}
- >
- {label}
- <ChevronDown className="size-3.5" />
- </span>
- </div>
- )}
-
- {/* Code */}
- <pre className="relative overflow-x-auto px-6 py-6 font-mono text-[13px] leading-[1.95] whitespace-pre [scrollbar-width:none] sm:text-sm [&::-webkit-scrollbar]:hidden">
- <code>
- <Token color={palette.keyword}>import</Token>
- <Token color={palette.plain}>{" { "}</Token>
- <Token color={palette.type}>Typewriter</Token>
- <Token color={palette.plain}>{" } "}</Token>
- <Token color={palette.keyword}>from</Token>{" "}
- <Token color={palette.string}>
- "@/components/remocn/typewriter"
- </Token>
- <Token color={palette.punctuation}>;</Token>
- {"\n\n"}
- <Token color={palette.keyword}>export function</Token>{" "}
- <Token color={palette.fn}>Hero</Token>
- <Token color={palette.punctuation}>{"() {"}</Token>
- {"\n "}
- <Token color={palette.keyword}>return</Token>{" "}
- <Token color={palette.punctuation}>(</Token>
- {"\n "}
- <Token color={palette.punctuation}>{"<"}</Token>
- <Token color={palette.type}>Typewriter</Token>
- {"\n "}
- <Token color={palette.prop}>text</Token>
- <Token color={palette.punctuation}>=</Token>
- {text}
- {"\n "}
- <Token color={palette.prop}>fontSize</Token>
- <Token color={palette.punctuation}>={"{"}</Token>
- {fontSize}
- <Token color={palette.punctuation}>{"}"}</Token>
- {"\n "}
- <Token color={palette.prop}>color</Token>
- <Token color={palette.punctuation}>=</Token>
- {color}
- {"\n "}
- <Token color={palette.prop}>fontWeight</Token>
- <Token color={palette.punctuation}>={"{"}</Token>
- {fontWeight}
- <Token color={palette.punctuation}>{"}"}</Token>
- {"\n "}
- <Token color={palette.prop}>cursor</Token>
- <Token color={palette.punctuation}>={"{"}</Token>
- {cursor}
- <Token color={palette.punctuation}>{"}"}</Token>
- {"\n "}
- <Token color={palette.punctuation}>{"/>"}</Token>
- {"\n "}
- <Token color={palette.punctuation}>)</Token>
- {"\n"}
- <Token color={palette.punctuation}>{"}"}</Token>
- </code>
- </pre>
-
- {footer ? (
- <div className="relative flex justify-end px-6 pb-5">{footer}</div>
- ) : null}
- </div>
- </PaletteContext.Provider>
- );
-}
diff --git a/app/(home)/page.tsx b/app/(home)/page.tsx
index 3b034e5f..46e3d562 100644
--- a/app/(home)/page.tsx
+++ b/app/(home)/page.tsx
@@ -1,7 +1,8 @@
import type { Metadata } from "next";
+import { Faq } from "./components/sections/faq";
import { FinalCTA } from "./components/sections/final-cta";
-import { GetStarted } from "./components/sections/get-started";
import { Hero } from "./components/sections/hero";
+import { HowItWorks } from "./components/sections/how-it-works";
import { LandingPartners } from "./components/sections/landing-partners";
import { Testimonials } from "./components/sections/testimonials";
import { WhatsInside } from "./components/sections/whats-inside";
@@ -15,11 +16,12 @@ export default function Page() {
return (
<>
<Hero />
+ <HowItWorks />
<WhyRemocn />
<WhatsInside />
- <GetStarted />
- <LandingPartners />
<Testimonials />
+ <Faq />
+ <LandingPartners />
<FinalCTA />
</>
);
diff --git a/config/landing.ts b/config/landing.ts
index 8738af59..c6f4c926 100644
--- a/config/landing.ts
+++ b/config/landing.ts
@@ -1,3 +1,41 @@
+export type Reason = {
+ title: string;
+ detail: string;
+};
+
+export const REASONS: Reason[] = [
+ {
+ title: "No motion designer",
+ detail:
+ "A demo video normally runs $600 and two weeks of back-and-forth. This one costs a prompt and an afternoon.",
+ },
+ {
+ title: "No After Effects",
+ detail:
+ "Nothing to install, nothing to learn. If you can describe the video you want, you can make it.",
+ },
+ {
+ title: "No keyframes",
+ detail:
+ "The animation is already built and already timed. Your agent picks the pieces, you react to the result.",
+ },
+ {
+ title: "Not a screen recording",
+ detail:
+ "A cursor wandering across your app isn't a demo. This looks like something you shipped on purpose.",
+ },
+ {
+ title: "Yours to keep",
+ detail:
+ "The code copies into your repo and stays there. MIT, no runtime, no account, nothing to cancel.",
+ },
+ {
+ title: "Changes in seconds",
+ detail:
+ "Say what feels wrong and watch it change. No revision round, no waiting on someone else's queue.",
+ },
+];
+
export type HowItWorksStep = {
title: string;
detail: string;
@@ -20,14 +58,6 @@ export const HOW_IT_WORKS_STEPS: HowItWorksStep[] = [
},
];
-export const DIRECTOR_QUOTES: string[] = [
- "Make the logo land harder.",
- "The middle drags — cut two seconds.",
- "Use my brand colors.",
- "Show the pricing table after the features, not before.",
- "Slow the whole thing down.",
-];
-
export type FaqItem = {
question: string;
answer: string;
diff --git a/config/site.ts b/config/site.ts
index af44cbe8..68cd5574 100644
--- a/config/site.ts
+++ b/config/site.ts
@@ -1,4 +1,5 @@
import remocnRegistry from "@/registry/remocn/registry.json";
+import remocnIconsRegistry from "@/registry/remocn-icons/registry.json";
import remocnUiRegistry from "@/registry/remocn-ui/registry.json";
// Pastel accent palette — peach / lavender / mint.
@@ -11,12 +12,6 @@ export const GITHUB_URL = "https://github.com/Remocn/remocn";
export const SUPPORT_EMAIL = "[email protected]";
-/** Canonical example install command shown on the landing page. */
-export const INSTALL_COMMAND = "npx shadcn@latest add remocn/soft-blur-in";
-
-export const QUICKSTART_PROMPT =
- "Set up a new Remotion video project in this folder, then install the remocn agent skill: npx skills add Remocn/remocn --yes. When you're done, start the preview studio so I can watch while we work. I want to make a demo video for my product.";
-
export const INSTALL_ALL_NAMES: string[] = [
...remocnRegistry.items,
...remocnUiRegistry.items,
@@ -26,6 +21,11 @@ export const INSTALL_ALL_COMMAND = `npx shadcn@latest add ${INSTALL_ALL_NAMES.ma
(name) => `@remocn/${name}`,
).join(" ")}`;
+export const COMPONENT_COUNT =
+ remocnRegistry.items.length +
+ remocnUiRegistry.items.length +
+ remocnIconsRegistry.items.length;
+
export const SPRING_BOUNCE = {
type: "spring" as const,
stiffness: 120,
diff --git a/lib/analytics.ts b/lib/analytics.ts
index 34635e9c..ae2d2849 100644
--- a/lib/analytics.ts
+++ b/lib/analytics.ts
@@ -14,8 +14,6 @@ export type CtaId =
| "hero_showcases"
| "hero_ui_badge"
| "how_it_works_setup"
- | "director_guide"
- | "developer_docs"
| "final_cta"
| "github_header";