Skip to content

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

feat: make header sticky

dev_wandry28d43e2c0b15
diff --git a/app/(home)/components/install-command.tsx b/app/(home)/components/install-command.tsx
new file mode 100644
index 00000000..0f88110d
--- /dev/null
+++ b/app/(home)/components/install-command.tsx
@@ -0,0 +1,53 @@
+"use client";
+
+import { Check, Copy } from "lucide-react";
+import { useState } from "react";
+import { useTrackEvent } from "@/lib/analytics";
+import { cn } from "@/lib/utils";
+
+/** Compact single-line, copyable install command pill. */
+export function InstallCommand({
+ command,
+ className,
+}: {
+ command: string;
+ className?: string;
+}) {
+ const [copied, setCopied] = useState(false);
+ const trackEvent = useTrackEvent();
+
+ const copy = () => {
+ navigator.clipboard.writeText(command);
+ setCopied(true);
+ trackEvent("install_command_copied", {
+ component: "hero",
+ package_manager: "npm",
+ surface: "landing",
+ });
+ setTimeout(() => setCopied(false), 1500);
+ };
+
+ return (
+ <button
+ type="button"
+ onClick={copy}
+ aria-label="Copy install command"
+ className={cn(
+ "group inline-flex h-11 items-center gap-3 rounded-full border border-border bg-card/60 px-4 font-mono text-sm text-muted-foreground backdrop-blur-sm transition-colors hover:border-foreground/20 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",
+ className,
+ )}
+ >
+ <span aria-hidden className="select-none text-muted-foreground/50">
+ $
+ </span>
+ <span className="truncate text-foreground">{command}</span>
+ <span aria-hidden className="text-muted-foreground/70">
+ {copied ? (
+ <Check className="size-4 text-foreground" />
+ ) : (
+ <Copy className="size-4" />
+ )}
+ </span>
+ </button>
+ );
+}
diff --git a/app/(home)/components/page-shell.tsx b/app/(home)/components/page-shell.tsx
index 65d0fa33..a9341b36 100644
--- a/app/(home)/components/page-shell.tsx
+++ b/app/(home)/components/page-shell.tsx
@@ -2,10 +2,7 @@ import type { ReactNode } from "react";
export function PageShell({ children }: { children: ReactNode }) {
return (
- <div
- className="relative min-h-screen overflow-hidden bg-black font-sans text-[#EDEDED] antialiased"
- style={{ colorScheme: "dark" }}
- >
+ <div className="page-shell relative flex min-h-screen flex-col bg-background font-sans text-foreground antialiased">
{children}
</div>
);
diff --git a/app/(home)/components/section-heading.tsx b/app/(home)/components/section-heading.tsx
new file mode 100644
index 00000000..50e754f8
--- /dev/null
+++ b/app/(home)/components/section-heading.tsx
@@ -0,0 +1,60 @@
+import type { ReactNode } from "react";
+import { cn } from "@/lib/utils";
+import { FadeUp } from "./fade-up";
+
+/**
+ * Canonical section header used across the landing page so the type
+ * hierarchy stays consistent everywhere:
+ * eyebrow (xs, muted, mono) → title (h2) → lead (body, muted)
+ * An optional `action` slot sits inline on the right at desktop widths.
+ */
+export function SectionHeading({
+ eyebrow,
+ title,
+ lead,
+ action,
+ align = "start",
+ className,
+}: {
+ eyebrow?: string;
+ title: ReactNode;
+ lead?: ReactNode;
+ action?: ReactNode;
+ align?: "start" | "center";
+ className?: string;
+}) {
+ const centered = align === "center";
+
+ return (
+ <FadeUp>
+ <div
+ className={cn(
+ "flex flex-col gap-6 sm:flex-row sm:items-end sm:justify-between",
+ className,
+ )}
+ >
+ <div
+ className={cn(
+ "max-w-2xl",
+ centered && "mx-auto text-center sm:items-center",
+ )}
+ >
+ {eyebrow && (
+ <p className="mb-3 font-mono text-xs font-medium tracking-[0.18em] text-muted-foreground uppercase">
+ {eyebrow}
+ </p>
+ )}
+ <h2 className="text-3xl font-semibold tracking-tight text-balance text-foreground sm:text-4xl">
+ {title}
+ </h2>
+ {lead && (
+ <p className="mt-4 text-base leading-relaxed text-pretty text-muted-foreground sm:text-lg">
+ {lead}
+ </p>
+ )}
+ </div>
+ {action && <div className="shrink-0">{action}</div>}
+ </div>
+ </FadeUp>
+ );
+}
diff --git a/app/(home)/components/sections/bento-registry.tsx b/app/(home)/components/sections/bento-registry.tsx
index 19f9becf..243e39ab 100644
--- a/app/(home)/components/sections/bento-registry.tsx
+++ b/app/(home)/components/sections/bento-registry.tsx
@@ -10,6 +10,7 @@ import { SECTION, SPRING_SOFT } from "@/config/landing";
import { useTrackEvent } from "@/lib/analytics";
import registry from "@/registry/__index__";
import { FadeUp } from "../fade-up";
+import { SectionHeading } from "../section-heading";
function BentoCard({
name,
@@ -71,22 +72,19 @@ function BentoCard({
onMouseLeave={handleLeave}
whileHover={{ y: -4 }}
transition={SPRING_SOFT}
- className={`group relative flex flex-col overflow-hidden rounded-2xl sm:rounded-3xl border border-white/[0.06] bg-white/[0.03] backdrop-blur-2xl ${className}`}
- style={{
- boxShadow: `0 20px 50px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06)`,
- }}
+ className={`surface-card group relative flex flex-col overflow-hidden rounded-2xl shadow-xl shadow-black/5 sm:rounded-3xl dark:shadow-black/30 ${className}`}
>
- {/* Spotlight overlay (driven by parent --mx/--my) */}
+ {/* Spotlight overlay (driven by parent --mx/--my) — theme-aware. */}
<div
aria-hidden
className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100"
style={{
background:
- "radial-gradient(500px circle at var(--mx) var(--my), rgba(255,255,255,0.07), transparent 40%)",
+ "radial-gradient(500px circle at var(--mx) var(--my), color-mix(in oklab, var(--color-foreground) 8%, transparent), transparent 40%)",
}}
/>
- <div className="relative aspect-[16/9] w-full overflow-hidden bg-[#0A090E]">
+ <div className="relative aspect-[16/9] w-full overflow-hidden bg-muted">
{entry ? (
<Player
ref={playerRef}
@@ -105,11 +103,11 @@ function BentoCard({
type="button"
onClick={togglePlay}
aria-label={playing ? "Pause preview" : "Play preview"}
- className="absolute inset-0 flex items-center justify-center bg-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 sm:hidden"
+ className="absolute inset-0 flex items-center justify-center bg-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40 sm:hidden"
>
<span
aria-hidden
- className="pointer-events-none flex size-12 items-center justify-center rounded-full bg-black/50 text-white backdrop-blur-md"
+ className="pointer-events-none flex size-12 items-center justify-center rounded-full bg-background/70 text-foreground backdrop-blur-md"
>
{playing ? (
<Pause className="size-4" />
@@ -119,11 +117,13 @@ function BentoCard({
</span>
</button>
</div>
- <div className="relative flex-1 p-5 sm:p-6">
- <h3 className="font-[var(--font-display)] text-base font-medium text-[#EDEDED]">
+ <div className="relative flex-1 border-t border-border p-5 sm:p-6">
+ <h3 className="text-base font-semibold tracking-tight text-foreground">
{title}
</h3>
- <p className="mt-1 text-sm text-[#8B8A91]">{description}</p>
+ <p className="mt-1.5 text-sm leading-relaxed text-muted-foreground">
+ {description}
+ </p>
</div>
</motion.div>
);
@@ -147,46 +147,34 @@ export function BentoRegistry() {
return (
<section id="components" className="relative py-20 sm:py-32">
<div className={SECTION}>
- <FadeUp>
- <div className="mb-12 sm:mb-16 flex flex-col gap-6 sm:flex-row sm:items-end sm:justify-between">
- <div className="max-w-2xl">
- <h2 className="text-3xl sm:text-4xl font-semibold -tracking-wide text-[#EDEDED] md:text-5xl">
- A registry of motion
- </h2>
- <p className="mt-4 text-[#8B8A91]">
- Transitions, primitives, text reveals — production-ready and
- hover to play
- </p>
- </div>
- <motion.div
- whileHover={{ scale: 1.03 }}
- whileTap={{ scale: 0.97 }}
- transition={SPRING_SOFT}
- >
- <Button
- variant="outline"
- size="lg"
- className="h-11 rounded-full border-white/10 bg-white/4 px-5 text-[#EDEDED] backdrop-blur-xl hover:border-white/20 hover:bg-white/6 hover:text-[#EDEDED]"
- >
+ <SectionHeading
+ eyebrow="The registry"
+ title="A registry of motion"
+ lead="Transitions, primitives and text reveals — production-ready and hover to play."
+ action={
+ <Button
+ variant="outline"
+ size="lg"
+ className="h-11 gap-2 rounded-full px-5"
+ render={
<Link
- href="/docs/getting-started/introduction"
- className="inline-flex items-center gap-2"
+ href="/docs/components"
onClick={() =>
trackEvent("cta_clicked", {
cta: "bento_browse",
- destination: "/docs/getting-started/introduction",
+ destination: "/docs/components",
})
}
- >
- Browse components
- <ArrowRight className="size-4" aria-hidden="true" />
- </Link>
- </Button>
- </motion.div>
- </div>
- </FadeUp>
+ />
+ }
+ >
+ Browse all
+ <ArrowRight className="size-4" aria-hidden="true" />
+ </Button>
+ }
+ />
- <FadeUp delay={0.1}>
+ <FadeUp delay={0.1} className="mt-12 sm:mt-16">
{/* biome-ignore lint/a11y/noStaticElementInteractions: spotlight cursor tracking is purely visual */}
<div
ref={gridRef}
@@ -219,7 +207,7 @@ export function BentoRegistry() {
<div
ref={grid2Ref}
onMouseMove={(e) => handleMove(e, grid2Ref.current)}
- className="mt-4 sm:mt-6 grid gap-4 sm:gap-6 md:grid-cols-2"
+ className="mt-4 grid gap-4 sm:mt-6 sm:gap-6 md:grid-cols-2"
style={{ "--mx": "50%", "--my": "50%" } as CSSProperties}
>
<BentoCard
diff --git a/app/(home)/components/sections/final-cta.tsx b/app/(home)/components/sections/final-cta.tsx
index ff163f70..d9a48f98 100644
--- a/app/(home)/components/sections/final-cta.tsx
+++ b/app/(home)/components/sections/final-cta.tsx
@@ -4,13 +4,14 @@ 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,
SECTION,
SPRING_BOUNCE,
- SPRING_SOFT,
} from "@/config/landing";
import { useTrackEvent } from "@/lib/analytics";
import { FadeUp } from "../fade-up";
@@ -22,58 +23,72 @@ export function FinalCTA() {
const trackEvent = useTrackEvent();
return (
- <section className="relative overflow-hidden py-24 sm:py-40">
- <div
- aria-hidden
- className="absolute inset-0 -z-10"
- style={{
- background: `radial-gradient(60% 50% at 50% 50%, ${LAVENDER}15, transparent 70%), radial-gradient(40% 40% at 20% 80%, ${PEACH}12, transparent 60%), radial-gradient(40% 40% at 80% 20%, ${MINT}12, transparent 60%)`,
- filter: "blur(40px)",
- }}
- />
- <div className={`${SECTION} flex flex-col items-center text-center`}>
- <motion.h2
- ref={ref}
- className="text-balance font-[var(--font-display)] text-3xl sm:text-5xl font-semibold -tracking-wide text-[#EDEDED] md:text-6xl"
- initial={
- reduced ? false : { opacity: 0, y: 30, filter: "blur(14px)" }
- }
- animate={
- inView
- ? { opacity: 1, y: 0, filter: "blur(0px)" }
- : { opacity: 0, y: 30, filter: "blur(14px)" }
- }
- transition={{ ...SPRING_BOUNCE, duration: 1 }}
- >
- Stop fighting keyframes
- <br />
- Start writing code
- </motion.h2>
+ <section className="relative py-20 sm:py-28">
+ <div className={SECTION}>
+ <div className="surface-card relative overflow-hidden rounded-3xl px-6 py-16 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%)`,
+ }}
+ />
- <FadeUp delay={0.3}>
- <motion.div
- whileHover={{ scale: 1.03 }}
- whileTap={{ scale: 0.97 }}
- transition={SPRING_SOFT}
+ <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 }}
>
- <Link
- href="/docs/getting-started/introduction"
- onClick={() =>
- trackEvent("cta_clicked", {
- cta: "final_cta",
- destination: "/docs/getting-started/introduction",
- })
- }
- className="mt-12 inline-flex h-14 items-center gap-2 rounded-full bg-white px-8 text-base font-medium text-[#141318] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 focus-visible:ring-offset-2 focus-visible:ring-offset-[#141318]"
- style={{
- boxShadow: `0 0 0 1px rgba(255,255,255,0.2), 0 12px 50px ${LAVENDER}40, inset 0 1px 0 rgba(255,255,255,0.6)`,
- }}
- >
- View documentation
- <ArrowRight className="size-5" aria-hidden="true" />
- </Link>
- </motion.div>
- </FadeUp>
+ Stop fighting keyframes. Start writing code.
+ </motion.h2>
+
+ <FadeUp delay={0.2}>
+ <p className="mx-auto mt-5 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg">
+ Install your first component and render a video today. It's open
+ source, all the way down.
+ </p>
+ </FadeUp>
+
+ <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/getting-started/introduction"
+ onClick={() =>
+ trackEvent("cta_clicked", {
+ cta: "final_cta",
+ destination: "/docs/getting-started/introduction",
+ })
+ }
+ />
+ }
+ >
+ Read the documentation
+ <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>
</div>
</section>
);
diff --git a/app/(home)/components/sections/get-started.tsx b/app/(home)/components/sections/get-started.tsx
new file mode 100644
index 00000000..64a1b1d6
--- /dev/null
+++ b/app/(home)/components/sections/get-started.tsx
@@ -0,0 +1,90 @@
+import { ArrowRight } from "lucide-react";
+import Link from "next/link";
+import { CodeBlockCommand } from "@/components/docs/code-block-command";
+import { SECTION } from "@/config/landing";
+import { convertNpmCommand } from "@/lib/convert-npm-command";
+import { FadeUp } from "../fade-up";
+import { SectionHeading } from "../section-heading";
+
+type Step = {
+ title: string;
+ description: string;
+ command: string;
+ component?: string;
+};
+
+const STEPS: Step[] = [
+ {
+ title: "Start with Remotion",
+ description:
+ "Already have a Remotion project? Skip ahead. Otherwise scaffold one in seconds.",
+ command: "npx create-video@latest",
+ },
+ {
+ title: "Add a component",
+ description:
+ "Pull any primitive or composition straight into your project with the shadcn CLI.",
+ command: "npx shadcn@latest add remocn/blur-reveal",
+ component: "blur-reveal",
+ },
+ {
+ title: "Render your video",
+ description:
+ "Drop the component into a composition and export an mp4 — no editor required.",
+ command: "npx remotion render",
+ },
+];
+
+export function GetStarted() {
+ return (
+ <section id="get-started" className="relative py-20 sm:py-32">
+ <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 flex flex-col gap-px overflow-hidden rounded-2xl border border-border bg-border sm:mt-16">
+ {STEPS.map((step, i) => (
+ <FadeUp key={step.title} delay={i * 0.08}>
+ <div className="flex flex-col gap-5 bg-background p-6 sm:flex-row sm:items-center sm:gap-8 sm:p-8">
+ <div className="flex items-start gap-4 sm:w-2/5">
+ <span className="flex size-8 shrink-0 items-center justify-center rounded-full border border-border font-mono text-sm font-medium text-muted-foreground tabular-nums">
+ {i + 1}
+ </span>
+ <div>
+ <h3 className="text-lg font-semibold tracking-tight text-foreground">
+ {step.title}
+ </h3>
+ <p className="mt-1.5 text-sm leading-relaxed text-muted-foreground">
+ {step.description}
+ </p>
+ </div>
+ </div>
+ <div className="sm:flex-1">
+ <CodeBlockCommand
+ component={step.component}
+ {...convertNpmCommand(step.command)}
+ />
+ </div>
+ </div>
+ </FadeUp>
+ ))}
+ </div>
+
+ <FadeUp delay={0.1}>
+ <div className="mt-8 flex justify-center">
+ <Link
+ href="/docs/getting-started/installation"
+ 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"
+ >
+ Read the full installation guide
+ <ArrowRight className="size-4" aria-hidden="true" />
+ </Link>
+ </div>
+ </FadeUp>
+ </div>
+ </section>
+ );
+}
diff --git a/app/(home)/components/sections/hero.tsx b/app/(home)/components/sections/hero.tsx
index 1eec7a76..89b1a026 100644
--- a/app/(home)/components/sections/hero.tsx
+++ b/app/(home)/components/sections/hero.tsx
@@ -5,12 +5,12 @@ import { ArrowRight, Pause, Play } from "lucide-react";
import { motion } from "motion/react";
import Link from "next/link";
import { useCallback, useRef, useState } from "react";
-import Dither from "@/components/Dither";
import { Button } from "@/components/ui/button";
-import { SECTION, SPRING_BOUNCE, SPRING_SOFT } from "@/config/landing";
+import { INSTALL_COMMAND, SECTION, SPRING_BOUNCE } from "@/config/landing";
import { useTrackEvent } from "@/lib/analytics";
import registry from "@/registry/__index__";
import { FadeUp } from "../fade-up";
+import { InstallCommand } from "../install-command";
export function Hero() {
const heroEntry = registry["browser-flow"];
@@ -44,77 +44,75 @@ export function Hero() {
: "16 / 9";
return (
- <section className="relative overflow-hidden pt-32 pb-20 sm:pt-44 sm:pb-28">
- <div className="w-full h-screen absolute top-0 left-0">
- <Dither
- waveColor={[
- 0.25098039215686274, 0.25098039215686274, 0.25098039215686274,
- ]}
- disableAnimation={false}
- enableMouseInteraction={false}
- mouseRadius={1}
- colorNum={6}
- pixelSize={2}
- waveAmplitude={0.35}
- waveFrequency={5.5}
- waveSpeed={0.01}
- />
+ <section className="relative overflow-hidden pt-28 pb-16 sm:pt-36 sm:pb-24">
+ {/* Theme-aware backdrop: dotted grid that fades out + a soft top glow. */}
+ <div aria-hidden className="absolute inset-0 -z-10">
+ <div className="absolute inset-0 bg-grid-fade" />
+ <div className="absolute inset-x-0 top-0 h-[420px] bg-[radial-gradient(60%_100%_at_50%_0%,var(--color-muted),transparent_70%)] opacity-70" />
</div>
+
<div className={SECTION}>
<div className="flex flex-col items-center text-center">
- <FadeUp delay={0.08}>
- <h1 className="mt-8 max-w-8xl text-balance font-sans text-4xl font-semibold leading-[1.05] -tracking-[0.04em] text-[#EDEDED] sm:text-5xl md:text-7xl">
- Cinematic video components
- <br />
- Now copy-pasteable
+ <FadeUp delay={0.04}>
+ <Link
+ href="/docs/getting-started/introduction"
+ className="inline-flex items-center gap-2 rounded-full border border-border bg-card/50 px-3 py-1 text-sm text-muted-foreground backdrop-blur-sm transition-colors hover:text-foreground"
+ >
+ <span className="size-1.5 rounded-full bg-foreground/70" />
+ Open source · MIT licensed
+ </Link>
+ </FadeUp>
+
+ <FadeUp delay={0.1}>
+ <h1 className="mt-6 max-w-4xl text-balance text-4xl font-semibold leading-[1.05] tracking-tight text-foreground sm:text-6xl md:text-7xl">
+ Cinematic video components,
+ <br className="hidden sm:block" /> now copy-pasteable
</h1>
</FadeUp>
<FadeUp delay={0.16}>
- <p className="mt-6 max-w-2xl text-balance text-base sm:text-xl font-light leading-relaxed text-white">
- Build product demos, changelogs, and launch videos in React. Open
- source and delightfully easy
+ <p className="mt-6 max-w-2xl text-balance text-base leading-relaxed text-muted-foreground sm:text-xl">
+ Production-ready Remotion animations, transitions and backgrounds.
+ Install with the shadcn CLI and own every line of code.
</p>
</FadeUp>
- <FadeUp delay={0.24}>
- <div className="mt-10 flex flex-col items-center gap-3 sm:flex-row">
- <motion.div
- whileHover={{ scale: 1.03 }}
- whileTap={{ scale: 0.97 }}
- transition={SPRING_SOFT}
- >
- <Button className="hover:bg-white h-14 px-10">
+ <FadeUp delay={0.22}>
+ <div className="mt-9 flex flex-col items-center gap-3 sm:flex-row">
+ <Button
+ size="lg"
+ className="h-11 gap-2 rounded-full px-6 text-sm"
+ render={
<Link
href="/docs/getting-started/introduction"
- className="inline-flex items-center gap-2"
onClick={() =>
trackEvent("cta_clicked", {
cta: "hero_browse",
destination: "/docs/getting-started/introduction",
})
}
- >
- Browse components
- <ArrowRight className="size-4" aria-hidden="true" />
- </Link>
- </Button>
- </motion.div>
+ />
+ }
+ >
+ Browse components
+ <ArrowRight className="size-4" aria-hidden="true" />
+ </Button>
+ <InstallCommand command={INSTALL_COMMAND} />
</div>
</FadeUp>
</div>
</div>
- <FadeUp delay={0.32} className="relative mt-10 w-full">
+ <FadeUp delay={0.3} className="relative mt-14 w-full">
<motion.div
- className="relative flex justify-center"
- initial={{ y: 40 }}
- whileInView={{ y: 0 }}
+ className="relative flex justify-center px-4 sm:px-6"
+ initial={{ y: 40, opacity: 0 }}
+ whileInView={{ y: 0, opacity: 1 }}
viewport={{ once: true, amount: 0.2 }}
- transition={{ ...SPRING_BOUNCE, delay: 0.1 }}
+ transition={{ ...SPRING_BOUNCE, delay: 0.05 }}
>
<div
- className="group relative w-[92vw] max-w-6xl overflow-hidden rounded-2xl sm:rounded-3xl"
+ className="group surface-card relative w-full max-w-5xl overflow-hidden rounded-2xl shadow-2xl shadow-black/5 sm:rounded-3xl dark:shadow-black/40"
style={{ aspectRatio }}
>
{heroEntry ? (
@@ -126,11 +124,7 @@ export function Hero() {
fps={heroEntry.config.fps}
compositionWidth={heroEntry.config.compositionWidth}
compositionHeight={heroEntry.config.compositionHeight}
- style={{
- width: "100%",
- height: "100%",
- display: "block",
- }}
+ style={{ width: "100%", height: "100%", display: "block" }}
autoPlay
loop
acknowledgeRemotionLicense
@@ -140,12 +134,12 @@ export function Hero() {
type="button"
onClick={togglePlay}
aria-label={playing ? "Pause preview" : "Play preview"}
- className="absolute inset-0 flex items-center justify-center bg-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 focus-visible:ring-offset-0"
+ className="absolute inset-0 flex items-center justify-center bg-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40"
>
<span
aria-hidden
- className="pointer-events-none flex size-14 items-center justify-center rounded-full bg-black/50 text-white opacity-0 backdrop-blur-md transition-opacity duration-200 group-hover:opacity-100 motion-reduce:transition-none data-[show=true]:opacity-100"
data-show={!playing}
+ className="pointer-events-none flex size-14 items-center justify-center rounded-full bg-background/70 text-foreground opacity-0 backdrop-blur-md transition-opacity duration-200 group-hover:opacity-100 motion-reduce:transition-none data-[show=true]:opacity-100"
>
{playing ? (
<Pause className="size-5" />
diff --git a/app/(home)/components/sections/landing-code-showcase.tsx b/app/(home)/components/sections/landing-code-showcase.tsx
index a505fb73..b27d073f 100644
--- a/app/(home)/components/sections/landing-code-showcase.tsx
+++ b/app/(home)/components/sections/landing-code-showcase.tsx
@@ -8,6 +8,7 @@ import { PEACH, SECTION, SPRING_SOFT } from "@/config/landing";
import { useTrackEvent } from "@/lib/analytics";
import registry from "@/registry/__index__";
import { FadeUp } from "../fade-up";
+import { SectionHeading } from "../section-heading";
export function LandingCodeShowcase() {
const entry = registry["landing-code-showcase"];
@@ -41,33 +42,21 @@ export function LandingCodeShowcase() {
return (
<section id="showcase" className="relative py-20 sm:py-32">
- {/* Header sits inside the standard SECTION width for readable copy */}
<div className={SECTION}>
- <FadeUp>
- <div className="mb-12 sm:mb-16 max-w-2xl">
- <h2 className="text-3xl sm:text-4xl font-semibold -tracking-wide text-[#EDEDED] md:text-5xl">
- Type a prop
- <span className="text-[#8B8A91]"> ship a frame</span>
- </h2>
- <p className="mt-4 text-[#8B8A91]">
- Every component is just React. Watch the preview react to your
- code in real time
- </p>
- </div>
- </FadeUp>
+ <SectionHeading
+ eyebrow="It's just React"
+ title="Type a prop, ship a frame"
+ lead="Every component is plain React driven by the Remotion API. Change a value and the preview reacts in real time — no timeline scrubbing."
+ />
</div>
- {/* Showcase block breaks out of the section width so the player has
- room for the wide composition. */}
- <div className="mx-auto w-full max-w-[100rem] px-4 sm:px-6">
+ {/* Break out of the section width so the wide composition has room. */}
+ <div className="mx-auto mt-12 w-full max-w-[100rem] px-4 sm:mt-16 sm:px-6">
<FadeUp delay={0.1}>
<motion.div
whileHover={{ y: -4 }}
transition={SPRING_SOFT}
- className="group relative overflow-hidden rounded-2xl sm:rounded-3xl border border-white/6 bg-white/2 backdrop-blur-2xl"
- style={{
- boxShadow: `0 30px 80px -30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05)`,
- }}
+ className="surface-card group relative overflow-hidden rounded-2xl shadow-2xl shadow-black/5 sm:rounded-3xl dark:shadow-black/40"
>
<div className="w-full" style={{ aspectRatio }}>
{entry ? (
@@ -90,12 +79,12 @@ export function LandingCodeShowcase() {
type="button"
onClick={togglePlay}
aria-label={playing ? "Pause preview" : "Play preview"}
- className="absolute inset-0 flex items-center justify-center bg-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40"
+ className="absolute inset-0 flex items-center justify-center bg-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40"
>
<span
aria-hidden
data-show={!playing}
- className="pointer-events-none flex size-14 items-center justify-center rounded-full bg-black/50 text-white opacity-0 backdrop-blur-md transition-opacity duration-200 group-hover:opacity-100 motion-reduce:transition-none data-[show=true]:opacity-100"
+ className="pointer-events-none flex size-14 items-center justify-center rounded-full bg-background/70 text-foreground opacity-0 backdrop-blur-md transition-opacity duration-200 group-hover:opacity-100 motion-reduce:transition-none data-[show=true]:opacity-100"
>
{playing ? (
<Pause className="size-5" />
diff --git a/app/(home)/components/sections/landing-partners.tsx b/app/(home)/components/sections/landing-partners.tsx
index 633d9f1a..a42b9fe4 100644
--- a/app/(home)/components/sections/landing-partners.tsx
+++ b/app/(home)/components/sections/landing-partners.tsx
@@ -1,23 +1,27 @@
-"use client";
-
+import { ArrowRight } from "lucide-react";
+import Link from "next/link";
import { SECTION } from "@/config/landing";
import { type Sponsor, sponsors } from "@/config/sponsors";
import { cn } from "@/lib/utils";
import { FadeUp } from "../fade-up";
+import { SectionHeading } from "../section-heading";
-function PartnerLogoCard({ sponsor }: { sponsor: Sponsor }) {
+function SponsorLogoCard({ sponsor }: { sponsor: Sponsor }) {
return (
<a
href={sponsor.website}
target="_blank"
- className="group relative flex items-center justify-center overflow-hidden rounded-2xl border border-white/[0.05] bg-white/[0.02] px-6 py-10 transition-colors duration-300 hover:border-white/[0.1] hover:bg-white/[0.05] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/30"
+ rel="noreferrer"
+ className="group surface-card flex items-center justify-center rounded-2xl px-8 py-10 transition-colors hover:border-foreground/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40"
>
{/** biome-ignore lint/performance/noImgElement: sponsor logos are SVGs of arbitrary sizes */}
<img
src={sponsor.logoUrl}
alt={sponsor.name}
className={cn(
- "max-h-20 w-auto object-contain opacity-60 transition-all duration-300 [filter:grayscale(1)_brightness(0)_invert(1)] group-hover:opacity-100",
+ // Monochrome by default, theme-aware: dark inverts to white,
+ // light keeps it dark. Color blooms on hover.
+ "max-h-10 w-auto object-contain opacity-70 grayscale transition-all duration-300 group-hover:opacity-100 group-hover:grayscale-0 dark:[filter:grayscale(1)_brightness(0)_invert(1)] dark:group-hover:[filter:none]",
sponsor.customStyles,
)}
style={{ transform: `scale(${sponsor.logoScale ?? 1})` }}
@@ -28,27 +32,43 @@ function PartnerLogoCard({ sponsor }: { sponsor: Sponsor }) {
export function LandingPartners() {
const partners = sponsors.filter((s) => s.tier === "partner");
- if (partners.length === 0) return null;
return (
- <section id="partners" className="relative py-24">
+ <section id="partners" className="relative py-20 sm:py-28">
<div className={SECTION}>
- <FadeUp>
- <div className="mb-12 max-w-2xl">
- <h2 className="text-4xl font-semibold -tracking-wide text-[#EDEDED] md:text-5xl">
- Trusted by builders
- </h2>
- <p className="mt-4 text-[#8B8A91]">
- Companies powering their videos with remocn
- </p>
- </div>
- </FadeUp>
+ <SectionHeading
+ align="center"
+ eyebrow="Sponsors"
+ title="Backed by the community"
+ lead="remocn is free and MIT-licensed. Sponsors keep the registry growing and the renders fast."
+ />
+
+ {partners.length > 0 && (
+ <FadeUp delay={0.1}>
+ <div
+ className={cn(
+ "mx-auto mt-12 grid max-w-3xl gap-4 sm:gap-6",
+ partners.length === 1
+ ? "max-w-sm grid-cols-1"
+ : "grid-cols-2 lg:grid-cols-3",
+ )}
+ >
+ {partners.map((s) => (
+ <SponsorLogoCard key={s.id} sponsor={s} />
+ ))}
+ </div>
+ </FadeUp>
+ )}
- <FadeUp delay={0.1}>
- <div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
- {partners.map((s) => (
- <PartnerLogoCard key={s.id} sponsor={s} />
- ))}
+ <FadeUp delay={0.16}>
+ <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"
+ >
+ Become a sponsor
+ <ArrowRight className="size-4" aria-hidden="true" />
+ </Link>
</div>
</FadeUp>
</div>
diff --git a/app/(home)/components/sections/stack-marquee.tsx b/app/(home)/components/sections/stack-marquee.tsx
deleted file mode 100644
index bb067a0f..00000000
--- a/app/(home)/components/sections/stack-marquee.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import { STACK } from "@/config/landing";
-
-export function StackMarquee() {
- return (
- <section className="relative py-12 sm:py-20">
- <div
- className="relative overflow-hidden"
- style={{
- maskImage:
- "linear-gradient(to right, transparent, black 15%, black 85%, transparent)",
- WebkitMaskImage:
- "linear-gradient(to right, transparent, black 15%, black 85%, transparent)",
- }}
- >
- <div className="flex w-max animate-[remocn-marquee_36s_linear_infinite] gap-10 sm:gap-16 motion-reduce:animate-none motion-reduce:flex-wrap motion-reduce:justify-center">
- {[...STACK, ...STACK, ...STACK].map((item, i) => (
- <span
- // biome-ignore lint/suspicious/noArrayIndexKey: marquee duplication
- key={i}
- className="whitespace-nowrap font-[var(--font-display)] text-lg sm:text-2xl font-medium -tracking-wide text-white/30"
- >
- {item}
- </span>
- ))}
- </div>
- </div>
- </section>
- );
-}
diff --git a/app/(home)/components/sections/use-cases.tsx b/app/(home)/components/sections/use-cases.tsx
deleted file mode 100644
index e3ec3b97..00000000
--- a/app/(home)/components/sections/use-cases.tsx
+++ /dev/null
@@ -1,218 +0,0 @@
-"use client";
-
-import { ArrowRight } from "lucide-react";
-import { motion } from "motion/react";
-import Link from "next/link";
-import type { ReactNode } from "react";
-import { Badge } from "@/components/ui/badge";
-import { Separator } from "@/components/ui/separator";
-import {
- LAVENDER,
- MINT,
- PEACH,
- SECTION,
- SPRING_BOUNCE,
-} from "@/config/landing";
-import { FadeUp } from "../fade-up";
-
-function CaseChartVisual() {
- return (
- <div className="relative h-full w-full">
- <div className="absolute inset-0 flex items-end gap-2 px-4 pt-4">
- {[34, 52, 28, 71, 44, 88, 64, 95, 76, 100].map((h, i) => (
- <div
- // biome-ignore lint/suspicious/noArrayIndexKey: static demo data
- key={i}
- className="flex-1 rounded-t-md"
- style={{
- height: `${h}%`,
- background: `linear-gradient(to top, ${PEACH}50, ${PEACH}10)`,
- }}
- />
- ))}
- </div>
- <div className="absolute inset-x-4 top-3 flex items-center justify-between font-mono text-[10px] text-white/40 tabular-nums">
- <span>upvotes</span>
- <span style={{ color: PEACH }}>+412</span>
- </div>
- </div>
- );
-}
-
-function CaseChangelogVisual() {
- return (
- <div className="flex h-full flex-col gap-2 p-5 font-mono text-[11px] text-white/50">
- <div className="flex items-center gap-2">
- <Badge
- variant="outline"
- className="h-auto rounded-full px-2 py-0.5 text-[10px]"
- style={{
- borderColor: `${MINT}40`,
- color: MINT,
- background: `${MINT}10`,
- }}
- >
- v1.4.0
- </Badge>
- <span className="text-white/30">just now</span>
- </div>
- <div className="space-y-1 leading-relaxed text-white/50">
- <div>+ added marquee easing</div>
- <div>+ shipped 12 new transitions</div>
- <div className="text-white/30">- removed legacy spring helper</div>
- </div>
- <div className="mt-auto flex items-center gap-1.5 text-[10px] text-white/40">
- <span
- className="size-1.5 rounded-full"
- style={{ background: MINT, boxShadow: `0 0 8px ${MINT}` }}
- />
- rendered &amp; pushed
- </div>
- </div>
- );
-}
-
-function CaseDocsVisual() {
- return (
- <div className="grid h-full grid-cols-3 gap-2 p-5">
- {[0, 1, 2, 3, 4, 5].map((i) => (
- <div
- key={i}
- className="rounded-xl border border-white/10 bg-white/[0.03] p-2.5"
- >
- <div
- className="h-1.5 w-2/3 rounded-full"
- style={{ background: `${LAVENDER}50` }}
- />
- <div className="mt-1.5 h-1 w-full rounded-full bg-white/10" />
- <div className="mt-1 h-1 w-4/5 rounded-full bg-white/10" />
- </div>
- ))}
- </div>
- );
-}
-
-function UseCaseCard({
- label,
- title,
- copy,
- stat,
- glow,
- href,
- children,
-}: {
- label: string;
- title: string;
- copy: string;
- stat: string;
- glow: string;
- href: string;
- children: ReactNode;
-}) {
- return (
- <motion.article
- whileHover={{ y: -6 }}
- transition={SPRING_BOUNCE}
- className="group relative flex h-full flex-col overflow-hidden rounded-3xl border border-white/[0.06] bg-white/[0.03] backdrop-blur-2xl"
- >
- <div
- aria-hidden
- className="pointer-events-none absolute -bottom-20 -right-20 h-60 w-60 rounded-full opacity-60 transition-opacity group-hover:opacity-100"
- style={{
- background: `radial-gradient(circle, ${glow}40, transparent 60%)`,
- filter: "blur(40px)",
- }}
- />
- <div className="relative h-44 w-full overflow-hidden border-b border-white/[0.05]">
- {children}
- </div>
- <div className="relative flex flex-1 flex-col p-6">
- <Badge
- variant="outline"
- className="h-auto self-start rounded-none border-0 bg-transparent p-0 font-mono text-[11px] text-[#666]"
- >
- {label}
- </Badge>
- <h3 className="mt-2 font-[var(--font-display)] text-2xl font-semibold -tracking-wide text-[#EDEDED]">
- {title}
- </h3>
- <p className="mt-3 text-sm leading-relaxed text-[#8B8A91]">{copy}</p>
- <Separator className="mt-6 bg-white/[0.04]" />
- <div className="mt-4 flex items-center justify-between">
- <span
- className="font-mono text-[11px] tabular-nums"
- style={{ color: glow }}
- >
- {stat}
- </span>
- <Link
- href={href}
- className="inline-flex items-center gap-1 text-xs text-[#8B8A91] transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none"
- >
- Learn more
- <ArrowRight className="size-3" aria-hidden="true" />
- </Link>
- </div>
- </div>
- </motion.article>
- );
-}
-
-export function UseCases() {
- return (
- <section id="use-cases" className="relative py-20 sm:py-32">
- <div className={SECTION}>
- <FadeUp>
- <div className="mb-12 sm:mb-16 max-w-2xl">
- <h2 className="font-[var(--font-display)] text-3xl sm:text-4xl font-semibold -tracking-wide text-[#EDEDED] md:text-5xl">
- Built for three jobs
- </h2>
- <p className="mt-4 text-[#8B8A91]">
- Marketing launches, release notes, and visual docs — without
- opening a video editor
- </p>
- </div>
- </FadeUp>
-
- <div className="grid gap-4 sm:gap-6 md:grid-cols-3">
- <FadeUp delay={0}>
- <UseCaseCard
- label="Marketing"
- title="Launch videos"
- copy="Ship to Product Hunt with a masterpiece. Wire components, render once, post anywhere"
- stat="12 PH #1s"
- glow={PEACH}
- href="/docs/compositions/product-launch-trailer"
- >
- <CaseChartVisual />
- </UseCaseCard>
- </FadeUp>
- <FadeUp delay={0.08}>
- <UseCaseCard
- label="DevRel"
- title="Changelogs"
- copy="Turn boring release notes into viral tweets. One commit, one composition, one render"
- stat="Render in 8s"
- glow={MINT}
- href="/docs/compositions/changelog-bite"
- >
- <CaseChangelogVisual />
- </UseCaseCard>
- </FadeUp>
- <FadeUp delay={0.16}>
- <UseCaseCard
- label="Documentation"
- title="Docs that move"
- copy="Explain complex workflows visually. A twelve second clip beats a thousand words every time"
- stat="12s clips"
- glow={LAVENDER}
- href="/docs/compositions/visual-docs-snippet"
- >
- <CaseDocsVisual />
- </UseCaseCard>
- </FadeUp>
- </div>
- </div>
- </section>
- );
-}
diff --git a/app/(home)/components/sections/works-with.tsx b/app/(home)/components/sections/works-with.tsx
new file mode 100644
index 00000000..dffd3333
--- /dev/null
+++ b/app/(home)/components/sections/works-with.tsx
@@ -0,0 +1,28 @@
+import { SECTION, STACK } from "@/config/landing";
+import { FadeUp } from "../fade-up";
+
+export function WorksWith() {
+ return (
+ <section className="relative border-y border-border py-12 sm:py-16">
+ <div className={SECTION}>
+ <FadeUp>
+ <div className="flex flex-col items-center gap-8">
+ <p className="font-mono text-xs font-medium tracking-[0.18em] text-muted-foreground uppercase">
+ Built on tools you already use
+ </p>
+ <ul className="flex flex-wrap items-center justify-center gap-x-8 gap-y-4 sm:gap-x-10">
+ {STACK.map((tool) => (
+ <li
+ key={tool}
+ className="text-lg font-medium tracking-tight text-muted-foreground transition-colors hover:text-foreground sm:text-xl"
+ >
+ {tool}
+ </li>
+ ))}
+ </ul>
+ </div>
+ </FadeUp>
+ </div>
+ </section>
+ );
+}
diff --git a/app/(home)/components/site-footer.tsx b/app/(home)/components/site-footer.tsx
index bfbbb453..8bf7bc34 100644
--- a/app/(home)/components/site-footer.tsx
+++ b/app/(home)/components/site-footer.tsx
@@ -10,20 +10,31 @@ export function SiteFooter({
}) {
return (
<div className={`${SECTION} ${className}`}>
- <footer className="flex flex-col items-start justify-between gap-4 border-t border-white/[0.05] pt-8 pb-12 text-xs text-[#666] md:flex-row md:items-center">
+ <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">
<span suppressHydrationWarning>
© {new Date().getFullYear()} remocn — MIT licensed
</span>
<nav className="flex gap-6">
- {navLinks.map((link) => (
- <Link
- key={link.href}
- href={link.href}
- className="transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none"
- >
- {link.label}
- </Link>
- ))}
+ {navLinks.map((link) => {
+ const external = link.href.startsWith("http");
+ const className =
+ "transition-colors hover:text-foreground focus-visible:text-foreground focus-visible:outline-none";
+ return external ? (
+ <a
+ key={link.href}
+ href={link.href}
+ target="_blank"
+ rel="noreferrer"
+ className={className}
+ >
+ {link.label}
+ </a>
+ ) : (
+ <Link key={link.href} href={link.href} className={className}>
+ {link.label}
+ </Link>
+ );
+ })}
</nav>
</footer>
</div>
diff --git a/app/(home)/components/site-header.tsx b/app/(home)/components/site-header.tsx
index 88f20ab4..d5ae775a 100644
--- a/app/(home)/components/site-header.tsx
+++ b/app/(home)/components/site-header.tsx
@@ -1,9 +1,10 @@
"use client";
-import { Menu } from "lucide-react";
+import { Menu, Star } from "lucide-react";
import Image from "next/image";
import Link from "next/link";
-import { useState } from "react";
+import { useEffect, useState } from "react";
+import { Button } from "@/components/ui/button";
import {
Sheet,
SheetContent,
@@ -11,8 +12,11 @@ import {
SheetTitle,
SheetTrigger,
} from "@/components/ui/sheet";
-import { type NavLink, SECTION } from "@/config/landing";
+import { type NavLink } from "@/config/landing";
import { useTrackEvent } from "@/lib/analytics";
+import { formatStars } from "@/lib/github";
+import { cn } from "@/lib/utils";
+import { ThemeToggle } from "./theme-toggle";
const GITHUB_URL = "https://github.com/kapishdima/remocn";
@@ -29,8 +33,42 @@ const GitHubIcon = ({ className }: { className?: string }) => (
</svg>
);
-export function SiteHeader({ navLinks }: { navLinks: NavLink[] }) {
+function GitHubStars({
+ stars,
+ onClick,
+}: {
+ stars: number | null;
+ onClick?: () => void;
+}) {
+ return (
+ <Link
+ href={GITHUB_URL}
+ target="_blank"
+ rel="noreferrer"
+ onClick={onClick}
+ className="inline-flex h-9 items-center gap-2 rounded-full border border-border px-3 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40"
+ >
+ <GitHubIcon className="size-4" />
+ <span className="hidden sm:inline">Star</span>
+ {stars !== null && (
+ <span className="inline-flex items-center gap-1 tabular-nums text-foreground">
+ <Star className="size-3.5 fill-current" />
+ {formatStars(stars)}
+ </span>
+ )}
+ </Link>
+ );
+}
+
+export function SiteHeader({
+ navLinks,
+ githubStars = null,
+}: {
+ navLinks: NavLink[];
+ githubStars?: number | null;
+}) {
const [open, setOpen] = useState(false);
+ const [scrolled, setScrolled] = useState(false);
const trackEvent = useTrackEvent();
const trackGitHubClick = () =>
trackEvent("cta_clicked", {
@@ -38,12 +76,36 @@ export function SiteHeader({ navLinks }: { navLinks: NavLink[] }) {
destination: GITHUB_URL,
});
+ // Collapse the full-width bar into a floating, container-width pill on scroll.
+ useEffect(() => {
+ const onScroll = () => setScrolled(window.scrollY > 8);
+ onScroll();
+ window.addEventListener("scroll", onScroll, { passive: true });
+ return () => window.removeEventListener("scroll", onScroll);
+ }, []);
+
return (
- <header className="fixed inset-x-0 top-0 z-40 border-b border-white/[0.05] bg-[#141318]/60 backdrop-blur-2xl">
- <div className={`flex h-16 items-center justify-between ${SECTION}`}>
+ <header
+ className={cn(
+ "sticky inset-x-0 top-0 z-40 border-b transition-[background-color,border-color,padding] duration-300",
+ scrolled
+ ? "border-transparent bg-transparent py-3"
+ : "border-border bg-background/70 backdrop-blur-xl",
+ )}
+ >
+ {/* Inner bar uses the page `container`, so when scrolled it becomes a
+ floating pill exactly the width of the page content. */}
+ <div
+ className={cn(
+ "container flex items-center justify-between border transition-all duration-300",
+ scrolled
+ ? "h-14 rounded-2xl border-border bg-background/80 shadow-lg shadow-black/5 backdrop-blur-xl dark:shadow-black/30"
+ : "h-16 border-transparent",
+ )}
+ >
<Link
href="/"
- className="flex items-center gap-2 font-[var(--font-display)] text-lg font-semibold -tracking-wide text-[#EDEDED] focus-visible:outline-none"
+ className="flex items-center gap-2 text-lg font-semibold tracking-tight text-foreground focus-visible:outline-none"
>
<Image
src="/logo.svg"
@@ -51,78 +113,83 @@ export function SiteHeader({ navLinks }: { navLinks: NavLink[] }) {
width={24}
height={24}
priority
+ className="rounded-md"
/>
remocn
</Link>
{/* Desktop nav */}
- <nav className="hidden sm:flex items-center gap-7 text-sm text-[#8B8A91]">
+ <nav className="hidden items-center gap-1 sm:flex">
{navLinks.map((link) => (
<Link
key={link.href}
href={link.href}
- className="transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none"
+ className="rounded-full px-3 py-2 text-sm text-muted-foreground transition-colors hover:text-foreground focus-visible:text-foreground focus-visible:outline-none"
>
{link.label}
</Link>
))}
- <Link
- href={GITHUB_URL}
- target="_blank"
- onClick={trackGitHubClick}
- className="flex items-center gap-1.5 transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none"
- >
- <GitHubIcon className="size-4" />
- GitHub
- </Link>
</nav>
- {/* Mobile nav trigger */}
- <Sheet open={open} onOpenChange={setOpen}>
- <SheetTrigger
- render={
- <button
- type="button"
- aria-label="Open menu"
- className="sm:hidden inline-flex size-11 items-center justify-center rounded-md text-[#EDEDED] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40"
- />
- }
- >
- <Menu className="size-5" aria-hidden="true" />
- </SheetTrigger>
- <SheetContent
- side="right"
- className="border-white/[0.06] bg-[#141318]/95 text-[#EDEDED] backdrop-blur-2xl"
- >
- <SheetHeader>
- <SheetTitle className="text-[#EDEDED]">Menu</SheetTitle>
- </SheetHeader>
- <nav className="flex flex-col px-6 pb-6 text-base">
- {navLinks.map((link) => (
- <Link
- key={link.href}
- href={link.href}
- onClick={() => setOpen(false)}
- className="py-3 text-[#EDEDED]/90 transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none"
+ <div className="flex items-center gap-2">
+ <div className="hidden sm:block">
+ <GitHubStars stars={githubStars} onClick={trackGitHubClick} />
+ </div>
+ <ThemeToggle />
+
+ {/* Mobile nav trigger */}
+ <Sheet open={open} onOpenChange={setOpen}>
+ <SheetTrigger
+ render={
+ <button
+ type="button"
+ aria-label="Open menu"
+ className="inline-flex size-9 items-center justify-center rounded-full border border-border text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40 sm:hidden"
+ />
+ }
+ >
+ <Menu className="size-4" aria-hidden="true" />
+ </SheetTrigger>
+ <SheetContent side="right" className="bg-background">
+ <SheetHeader>
+ <SheetTitle>Menu</SheetTitle>
+ </SheetHeader>
+ <nav className="flex flex-col px-6 pb-6 text-base">
+ {navLinks.map((link) => (
+ <Link
+ key={link.href}
+ href={link.href}
+ onClick={() => setOpen(false)}
+ className="py-3 text-foreground/90 transition-colors hover:text-foreground focus-visible:text-foreground focus-visible:outline-none"
+ >
+ {link.label}
+ </Link>
+ ))}
+ <div className="mt-4">
+ <GitHubStars
+ stars={githubStars}
+ onClick={() => {
+ setOpen(false);
+ trackGitHubClick();
+ }}
+ />
+ </div>
+ <Button
+ size="lg"
+ className="mt-4 h-11 w-full rounded-full"
+ render={
+ <Link
+ href="/docs/getting-started/introduction"
+ onClick={() => setOpen(false)}
+ />
+ }
>
- {link.label}
- </Link>
- ))}
- <Link
- href={GITHUB_URL}
- target="_blank"
- onClick={() => {
- setOpen(false);
- trackGitHubClick();
- }}
- className="mt-2 inline-flex items-center gap-2 py-3 text-[#EDEDED]/90 transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none"
- >
- <GitHubIcon className="size-4" />
- GitHub
- </Link>
- </nav>
- </SheetContent>
- </Sheet>
+ Get started
+ </Button>
+ </nav>
+ </SheetContent>
+ </Sheet>
+ </div>
</div>
</header>
);
diff --git a/app/(home)/components/theme-toggle.tsx b/app/(home)/components/theme-toggle.tsx
new file mode 100644
index 00000000..1307f900
--- /dev/null
+++ b/app/(home)/components/theme-toggle.tsx
@@ -0,0 +1,44 @@
+"use client";
+
+import { Moon, Sun } from "lucide-react";
+import { useTheme } from "next-themes";
+import { useEffect, useState } from "react";
+import { cn } from "@/lib/utils";
+
+export function ThemeToggle({ className }: { className?: string }) {
+ const { resolvedTheme, setTheme } = useTheme();
+ const [mounted, setMounted] = useState(false);
+
+ // Avoid hydration mismatch — theme is only known on the client.
+ useEffect(() => setMounted(true), []);
+
+ const isDark = resolvedTheme === "dark";
+
+ return (
+ <button
+ type="button"
+ aria-label={
+ !mounted
+ ? "Toggle theme"
+ : isDark
+ ? "Switch to light theme"
+ : "Switch to dark theme"
+ }
+ onClick={() => setTheme(isDark ? "light" : "dark")}
+ className={cn(
+ "inline-flex size-9 items-center justify-center rounded-full border border-border text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",
+ className,
+ )}
+ >
+ {mounted ? (
+ isDark ? (
+ <Sun className="size-4" />
+ ) : (
+ <Moon className="size-4" />
+ )
+ ) : (
+ <span className="size-4" />
+ )}
+ </button>
+ );
+}
diff --git a/app/(home)/page.tsx b/app/(home)/page.tsx
index ec0682cc..b37f7262 100644
--- a/app/(home)/page.tsx
+++ b/app/(home)/page.tsx
@@ -1,23 +1,28 @@
import { FOOTER_NAV, HOME_NAV } from "@/config/landing";
+import { getGitHubStars } from "@/lib/github";
import { PageShell } from "./components/page-shell";
import { BentoRegistry } from "./components/sections/bento-registry";
import { FinalCTA } from "./components/sections/final-cta";
+import { GetStarted } from "./components/sections/get-started";
import { Hero } from "./components/sections/hero";
import { LandingCodeShowcase } from "./components/sections/landing-code-showcase";
import { LandingPartners } from "./components/sections/landing-partners";
-import { UseCases } from "./components/sections/use-cases";
+import { WorksWith } from "./components/sections/works-with";
import { SiteFooter } from "./components/site-footer";
import { SiteHeader } from "./components/site-header";
-export default function Page() {
+export default async function Page() {
+ const githubStars = await getGitHubStars();
+
return (
<PageShell>
- <SiteHeader navLinks={HOME_NAV} />
- <main className="relative">
+ <SiteHeader navLinks={HOME_NAV} githubStars={githubStars} />
+ <main className="relative flex-1">
<Hero />
+ <WorksWith />
<LandingCodeShowcase />
<BentoRegistry />
- <UseCases />
+ <GetStarted />
<LandingPartners />
<FinalCTA />
<SiteFooter navLinks={FOOTER_NAV} className="mt-12" />
diff --git a/app/(home)/sponsors/components/sections/hero.tsx b/app/(home)/sponsors/components/sections/hero.tsx
index 6c03387f..dc4931eb 100644
--- a/app/(home)/sponsors/components/sections/hero.tsx
+++ b/app/(home)/sponsors/components/sections/hero.tsx
@@ -3,25 +3,28 @@ import { FadeUp } from "../../../components/fade-up";
export function Hero() {
return (
- <section className="relative overflow-hidden pt-44 pb-20">
+ <section className="relative overflow-hidden pt-24 pb-16 sm:pt-28 sm:pb-20">
<div
aria-hidden
- className="pointer-events-none absolute inset-0 -z-10"
+ className="pointer-events-none absolute inset-0 -z-10 opacity-70 dark:opacity-40"
style={{
- background: `radial-gradient(60% 50% at 50% 30%, ${LAVENDER}18, transparent 70%), radial-gradient(40% 40% at 20% 80%, ${PEACH}12, transparent 60%), radial-gradient(40% 40% at 80% 20%, ${MINT}12, transparent 60%)`,
- filter: "blur(40px)",
+ background: `radial-gradient(60% 50% at 50% 20%, ${LAVENDER}22, transparent 70%), radial-gradient(40% 40% at 20% 80%, ${PEACH}18, transparent 60%), radial-gradient(40% 40% at 80% 20%, ${MINT}18, transparent 60%)`,
}}
/>
<div className={SECTION}>
<div className="flex flex-col items-center text-center">
- <FadeUp delay={0.08}>
- <h1 className="max-w-4xl text-balance font-sans text-5xl font-semibold leading-[1.05] -tracking-[0.04em] text-[#EDEDED] md:text-7xl">
- Support the future of video.
+ <FadeUp delay={0.06}>
+ <p className="mb-3 font-mono text-xs font-medium tracking-[0.18em] text-muted-foreground uppercase">
+ Sponsors
+ </p>
+ </FadeUp>
+ <FadeUp delay={0.1}>
+ <h1 className="max-w-3xl text-balance text-4xl font-semibold leading-[1.05] tracking-tight text-foreground sm:text-6xl">
+ Support the future of video
</h1>
</FadeUp>
-
<FadeUp delay={0.16}>
- <p className="mt-6 max-w-2xl text-balance text-xl font-light leading-relaxed text-white">
+ <p className="mt-6 max-w-2xl text-balance text-base leading-relaxed text-muted-foreground sm:text-lg">
remocn is open-source and free. Your sponsorship helps us spend
more time building premium animations and keeping the project
alive.
diff --git a/app/(home)/sponsors/components/sections/tiers.tsx b/app/(home)/sponsors/components/sections/tiers.tsx
index 95f472e9..80f18269 100644
--- a/app/(home)/sponsors/components/sections/tiers.tsx
+++ b/app/(home)/sponsors/components/sections/tiers.tsx
@@ -5,6 +5,7 @@ import { motion } from "motion/react";
import Link from "next/link";
import { type CSSProperties, useRef, useState } from "react";
import { Badge } from "@/components/ui/badge";
+import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
import { SECTION, SPRING_BOUNCE, SPRING_SOFT } from "@/config/landing";
import { type BillingMode, type Tier, tiers } from "@/config/sponsors";
@@ -24,7 +25,7 @@ function BillingToggle({
];
return (
- <div className="inline-flex rounded-full border border-white/10 bg-white/[0.04] p-1 backdrop-blur-xl">
+ <div className="inline-flex rounded-full border border-border bg-card p-1">
{options.map((opt) => {
const active = opt.id === value;
return (
@@ -34,13 +35,15 @@ function BillingToggle({
onClick={() => onChange(opt.id)}
className={cn(
"relative rounded-full px-5 py-2 text-sm font-medium transition-colors focus-visible:outline-none",
- active ? "text-[#141318]" : "text-[#8B8A91] hover:text-white",
+ active
+ ? "text-background"
+ : "text-muted-foreground hover:text-foreground",
)}
>
{active && (
<motion.div
layoutId="billing-thumb"
- className="absolute inset-0 rounded-full bg-white"
+ className="absolute inset-0 rounded-full bg-foreground"
transition={SPRING_SOFT}
/>
)}
@@ -67,10 +70,10 @@ function TierCard({
<motion.article
whileHover={{ y: -4 }}
transition={SPRING_BOUNCE}
- className="group relative flex h-full flex-col overflow-hidden rounded-3xl border border-white/[0.06] bg-white/[0.03] p-8 backdrop-blur-2xl"
- style={{
- boxShadow: `0 20px 50px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06)`,
- }}
+ className={cn(
+ "surface-card group relative flex h-full flex-col overflow-hidden rounded-3xl p-8 shadow-xl shadow-black/5 dark:shadow-black/30",
+ tier.highlighted && "ring-1 ring-foreground/15",
+ )}
>
{/* Spotlight overlay (driven by parent --mx/--my) */}
<div
@@ -83,10 +86,10 @@ function TierCard({
<div className="relative flex items-start justify-between gap-3">
<div>
- <span className="font-mono text-[11px] text-[#666]">
+ <span className="font-mono text-xs text-muted-foreground">
{tier.tagline}
</span>
- <h3 className="mt-2 font-[var(--font-display)] text-2xl font-semibold -tracking-wide text-[#EDEDED]">
+ <h3 className="mt-2 text-2xl font-semibold tracking-tight text-foreground">
{tier.name}
</h3>
</div>
@@ -101,20 +104,20 @@ function TierCard({
transition={SPRING_SOFT}
className="flex items-baseline gap-2"
>
- <span className="font-[var(--font-display)] text-5xl font-semibold -tracking-wide text-[#EDEDED]">
+ <span className="text-5xl font-semibold tracking-tight text-foreground">
${tier.price}
</span>
- <span className="text-sm text-[#8B8A91]">{priceSuffix}</span>
+ <span className="text-sm text-muted-foreground">{priceSuffix}</span>
</motion.div>
</div>
- <Separator className="relative my-6 bg-white/[0.04]" />
+ <Separator className="relative my-6 bg-border" />
<ul className="relative flex flex-col gap-3">
{tier.perks.map((perk) => (
<li
key={perk}
- className="flex items-start gap-3 text-sm text-[#C8C7CC]"
+ className="flex items-start gap-3 text-sm text-muted-foreground"
>
<Check
className="mt-[3px] size-3.5 shrink-0"
@@ -127,14 +130,15 @@ function TierCard({
</ul>
<div className="relative mt-8 pt-2">
- <Link
- href={checkoutUrl}
- target="_blank"
- className="inline-flex h-12 w-full items-center justify-center gap-2 rounded-full border border-white/10 bg-white/[0.04] text-sm font-medium text-[#EDEDED] backdrop-blur-xl transition-colors hover:border-white/20 hover:bg-white/[0.08] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/30"
+ <Button
+ variant={tier.highlighted ? "default" : "outline"}
+ size="lg"
+ className="h-11 w-full gap-2 rounded-full"
+ render={<Link href={checkoutUrl} target="_blank" rel="noreferrer" />}
>
Become a {tier.name}
<ArrowRight className="size-4" aria-hidden="true" />
- </Link>
+ </Button>
</div>
</motion.article>
);
@@ -153,7 +157,7 @@ export function Tiers() {
};
return (
- <section id="tiers" className="relative py-24">
+ <section id="tiers" className="relative py-20 sm:py-24">
<div className={SECTION}>
<FadeUp>
<div className="mb-10 flex justify-center">
diff --git a/app/(home)/sponsors/components/sections/wall-of-love.tsx b/app/(home)/sponsors/components/sections/wall-of-love.tsx
index ac3f301a..3de47a7b 100644
--- a/app/(home)/sponsors/components/sections/wall-of-love.tsx
+++ b/app/(home)/sponsors/components/sections/wall-of-love.tsx
@@ -1,12 +1,11 @@
-"use client";
-
import { ArrowRight } from "lucide-react";
-import { motion } from "motion/react";
import Link from "next/link";
-import { LAVENDER, SECTION, SPRING_SOFT } from "@/config/landing";
+import { Button } from "@/components/ui/button";
+import { SECTION } from "@/config/landing";
import { type Sponsor, sponsors } from "@/config/sponsors";
import { cn } from "@/lib/utils";
import { FadeUp } from "../../../components/fade-up";
+import { SectionHeading } from "../../../components/section-heading";
function SponsorLogoCard({
sponsor,
@@ -19,7 +18,8 @@ function SponsorLogoCard({
<a
href={sponsor.website}
target="_blank"
- className="group relative flex items-center justify-center overflow-hidden rounded-2xl border border-white/[0.05] bg-white/[0.02] p-6 transition-colors duration-300 hover:border-white/[0.1] hover:bg-white/[0.05] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/30"
+ rel="noreferrer"
+ className="group surface-card flex h-full items-center justify-center rounded-2xl p-6 transition-colors hover:border-foreground/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40"
>
{/** biome-ignore lint/performance/noImgElement: sponsor logos are SVGs of arbitrary sizes */}
<img
@@ -27,7 +27,8 @@ function SponsorLogoCard({
alt={sponsor.name}
className={cn(
maxH,
- "w-auto object-contain opacity-60 transition-all duration-300 grauscale invert group-hover:opacity-100 ",
+ // Monochrome + theme-aware; color blooms on hover.
+ "w-auto object-contain opacity-70 grayscale transition-all duration-300 group-hover:opacity-100 group-hover:grayscale-0 dark:[filter:grayscale(1)_brightness(0)_invert(1)] dark:group-hover:[filter:none]",
sponsor.customStyles,
)}
style={{ transform: `scale(${sponsor.logoScale ?? 1})` }}
@@ -52,7 +53,9 @@ function SponsorGroup({
if (items.length === 0) return null;
return (
<div className="mb-12">
- <div className="mb-4 text-md text-[#666]">{label}</div>
+ <div className="mb-4 font-mono text-xs font-medium tracking-[0.18em] text-muted-foreground uppercase">
+ {label}
+ </div>
<div className={gridClassName}>
{items.map((s) => (
<div key={s.id} className={aspectClassName}>
@@ -71,46 +74,29 @@ export function WallOfLove() {
const isEmpty = sponsors.length === 0;
return (
- <section id="wall-of-love" className="relative py-32">
+ <section id="wall-of-love" className="relative py-20 sm:py-28">
<div className={SECTION}>
- <FadeUp>
- <div className="mb-16 max-w-2xl">
- <h2 className="text-4xl font-semibold -tracking-wide text-[#EDEDED] md:text-5xl">
- Wall of love
- </h2>
- <p className="mt-4 text-[#8B8A91]">
- The wonderful people and companies keeping remocn alive
- </p>
- </div>
- </FadeUp>
+ <SectionHeading
+ eyebrow="Wall of love"
+ title="The people keeping remocn alive"
+ lead="The wonderful people and companies powering their videos with remocn."
+ className="mb-12 sm:mb-16"
+ />
{isEmpty ? (
<FadeUp delay={0.1}>
- <div
- className="flex flex-col items-center justify-center gap-6 rounded-3xl border border-white/[0.06] bg-white/[0.02] px-8 py-20 text-center backdrop-blur-2xl"
- style={{
- boxShadow: `0 20px 50px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05)`,
- }}
- >
- <p className="max-w-md text-balance text-lg text-[#C8C7CC]">
+ <div className="surface-card flex flex-col items-center justify-center gap-6 rounded-3xl px-8 py-20 text-center">
+ <p className="max-w-md text-balance text-lg text-foreground">
Be the first to support remocn. Your logo could live right here.
</p>
- <motion.div
- whileHover={{ scale: 1.03 }}
- whileTap={{ scale: 0.97 }}
- transition={SPRING_SOFT}
+ <Button
+ size="lg"
+ className="h-11 gap-2 rounded-full px-6 text-sm"
+ render={<Link href="#tiers" />}
>
- <Link
- href="#tiers"
- className="inline-flex h-12 items-center gap-2 rounded-full bg-white px-6 text-sm font-medium text-[#141318] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 focus-visible:ring-offset-2 focus-visible:ring-offset-[#141318]"
- style={{
- boxShadow: `0 0 0 1px rgba(255,255,255,0.2), 0 12px 40px ${LAVENDER}40, inset 0 1px 0 rgba(255,255,255,0.6)`,
- }}
- >
- Become a sponsor
- <ArrowRight className="size-4" aria-hidden="true" />
- </Link>
- </motion.div>
+ Become a sponsor
+ <ArrowRight className="size-4" aria-hidden="true" />
+ </Button>
</div>
</FadeUp>
) : (
diff --git a/app/(home)/sponsors/page.tsx b/app/(home)/sponsors/page.tsx
index 6d53c0fd..7666fe24 100644
--- a/app/(home)/sponsors/page.tsx
+++ b/app/(home)/sponsors/page.tsx
@@ -1,4 +1,5 @@
import { FOOTER_NAV, SPONSORS_NAV } from "@/config/landing";
+import { getGitHubStars } from "@/lib/github";
import { PageShell } from "../components/page-shell";
import { SiteFooter } from "../components/site-footer";
import { SiteHeader } from "../components/site-header";
@@ -6,11 +7,13 @@ import { Hero } from "./components/sections/hero";
import { Tiers } from "./components/sections/tiers";
import { WallOfLove } from "./components/sections/wall-of-love";
-export default function SponsorsPage() {
+export default async function SponsorsPage() {
+ const githubStars = await getGitHubStars();
+
return (
<PageShell>
- <SiteHeader navLinks={SPONSORS_NAV} />
- <main className="relative">
+ <SiteHeader navLinks={SPONSORS_NAV} githubStars={githubStars} />
+ <main className="relative flex-1">
<Hero />
<Tiers />
<WallOfLove />
diff --git a/app/globals.css b/app/globals.css
index 5d914961..765f8170 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -127,6 +127,9 @@
}
body {
@apply bg-background text-foreground;
+ font-feature-settings: "cv11", "ss01";
+ -webkit-font-smoothing: antialiased;
+ text-rendering: optimizeLegibility;
}
html {
@apply font-sans;
@@ -135,6 +138,62 @@
}
}
+/* ── Landing primitives ─────────────────────────────────────────────
+ Theme-aware surfaces and decorative backgrounds for app/(home).
+ Everything derives from design tokens so light/dark stay unified. */
+
+/* Page width container — single source of truth for the landing/sponsors
+ content width. Scoped under `.page-shell` (applied only on the home/sponsors
+ PageShell, never on the docs tree) so it can't override the precompiled
+ Tailwind/fumadocs `.container` utility that ships in the docs preset CSS. */
+.page-shell .container {
+ width: 100%;
+ max-width: 72rem; /* == max-w-6xl */
+ margin-inline: auto;
+ padding-inline: 1rem; /* == px-4 */
+}
+@media (min-width: 640px) {
+ .page-shell .container {
+ padding-inline: 1.5rem; /* == sm:px-6 */
+ }
+}
+
+/* Subtle dotted grid — fades toward the edges. Used behind the hero. */
+.bg-grid-fade {
+ background-image: radial-gradient(
+ color-mix(in oklab, var(--color-foreground) 9%, transparent) 1px,
+ transparent 1px
+ );
+ background-size: 28px 28px;
+ -webkit-mask-image: radial-gradient(
+ ellipse 70% 60% at 50% 0%,
+ black,
+ transparent 75%
+ );
+ mask-image: radial-gradient(
+ ellipse 70% 60% at 50% 0%,
+ black,
+ transparent 75%
+ );
+}
+
+/* Hairline that reads in both themes. */
+.divider-soft {
+ background: linear-gradient(
+ to right,
+ transparent,
+ var(--color-border),
+ transparent
+ );
+}
+
+/* Card surface used across landing sections — adapts to theme. */
+.surface-card {
+ background-color: color-mix(in oklab, var(--color-card) 92%, transparent);
+ border: 1px solid var(--color-border);
+ backdrop-filter: blur(12px);
+}
+
/* Match fumadocs MDX code blocks (```tsx ... ```) to the CodeBlockCommand look */
.prose figure.shiki {
background-color: var(--muted) !important;
@@ -168,16 +227,6 @@
@apply max-w-3xl;
}
-/* Landing page marquee (used by app/(home)/components/sections/stack-marquee.tsx) */
-@keyframes remocn-marquee {
- 0% {
- transform: translateX(0);
- }
- 100% {
- transform: translateX(-33.3333%);
- }
-}
-
/* Sidebar tightening — fumadocs sidebar typography */
#nd-sidebar a {
font-size: 0.8125rem;
diff --git a/app/layout.tsx b/app/layout.tsx
index de7d2d13..1795988e 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -25,11 +25,11 @@ const outfit = Outfit({
export const metadata: Metadata = {
title: {
- default: "Remocn - Greate demo one command",
+ default: "remocn — Cinematic video components for React",
template: "%s · remocn",
},
description:
- "Production-ready Remotion animations, transitions and backgrounds. Install with shadcn CLI",
+ "Production-ready Remotion animations, transitions and backgrounds. Install with the shadcn CLI and own the code.",
};
export default function RootLayout({
@@ -42,7 +42,6 @@ export default function RootLayout({
lang="en"
suppressHydrationWarning
className={cn(
- "dark",
"h-full",
"antialiased",
geistSans.variable,
@@ -51,15 +50,13 @@ export default function RootLayout({
"font-sans",
inter.variable,
)}
- style={{ colorScheme: "dark" }}
>
<body className="min-h-full flex flex-col">
<NuqsAdapter>
<RootProvider
theme={{
- defaultTheme: "dark",
- forcedTheme: "dark",
- enableSystem: false,
+ defaultTheme: "system",
+ enableSystem: true,
}}
>
{children}
diff --git a/config/landing.ts b/config/landing.ts
index ce98321f..b170bbce 100644
--- a/config/landing.ts
+++ b/config/landing.ts
@@ -1,9 +1,17 @@
-// Pastel accent palette — peach / lavender / mint
+// Pastel accent palette — peach / lavender / mint.
+// Used sparingly as low-opacity decorative glows; the base system is neutral.
export const PEACH = "#FFB38E";
export const LAVENDER = "#D4B3FF";
export const MINT = "#A1EEBD";
-export const SECTION = "mx-auto w-full max-w-6xl px-4 sm:px-6";
+// Page width wrapper. Implemented as the scoped `.page-shell .container`
+// CSS class (see app/globals.css) so it stays a single source of truth.
+export const SECTION = "container";
+
+export const GITHUB_URL = "https://github.com/kapishdima/remocn";
+
+/** Canonical example install command shown on the landing page. */
+export const INSTALL_COMMAND = "npx shadcn@latest add remocn/blur-reveal";
export const SPRING_BOUNCE = {
type: "spring" as const,
@@ -34,9 +42,9 @@ export type NavLink = {
};
export const HOME_NAV: NavLink[] = [
- { href: "/docs/components", label: "Components", smOnly: true },
+ { href: "#components", label: "Components", smOnly: true },
{ href: "#showcase", label: "Showcase", smOnly: true },
- { href: "#use-cases", label: "Use cases", smOnly: true },
+ { href: "#get-started", label: "Get started", smOnly: true },
{ href: "/sponsors", label: "Sponsors", smOnly: true },
{ href: "/docs/getting-started/introduction", label: "Docs" },
];
@@ -50,6 +58,6 @@ export const SPONSORS_NAV: NavLink[] = [
export const FOOTER_NAV: NavLink[] = [
{ href: "/docs/getting-started/introduction", label: "Docs" },
- { href: "https://github.com/remocn/remocn", label: "GitHub" },
+ { href: GITHUB_URL, label: "GitHub" },
{ href: "/sponsors", label: "Sponsors" },
];
diff --git a/config/sponsors.ts b/config/sponsors.ts
index f6e784f5..f53a3b5f 100644
--- a/config/sponsors.ts
+++ b/config/sponsors.ts
@@ -17,8 +17,8 @@ export type Sponsor = {
export const sponsors: Sponsor[] = [
{
- id: "efferd",
- name: "Efferd",
+ id: "shadcnblocks",
+ name: "Shadcnblocks.com",
logoUrl: "/sponsors/shadcnblocks.svg",
website: "https://shadcnblocks.com/?utm_source=remocn&utm_medium=sponsor&utm_campaign=remocn_sponsors_page",
tier: "partner",
diff --git a/lib/github.ts b/lib/github.ts
new file mode 100644
index 00000000..ba53733c
--- /dev/null
+++ b/lib/github.ts
@@ -0,0 +1,30 @@
+const GITHUB_REPO = "kapishdima/remocn";
+
+/**
+ * Fetches the repository star count from the GitHub REST API.
+ * Cached at the edge for an hour so we never hammer the (unauthenticated)
+ * rate limit. Returns `null` on any failure so callers can degrade
+ * gracefully to a bare GitHub link.
+ */
+export async function getGitHubStars(): Promise<number | null> {
+ try {
+ const res = await fetch(`https://api.github.com/repos/${GITHUB_REPO}`, {
+ headers: { Accept: "application/vnd.github+json" },
+ next: { revalidate: 3600 },
+ });
+ if (!res.ok) return null;
+ const data = (await res.json()) as { stargazers_count?: number };
+ return typeof data.stargazers_count === "number"
+ ? data.stargazers_count
+ : null;
+ } catch {
+ return null;
+ }
+}
+
+/** 1234 → "1.2k", 980 → "980". */
+export function formatStars(count: number): string {
+ if (count < 1000) return String(count);
+ const k = count / 1000;
+ return `${k >= 10 ? Math.round(k) : k.toFixed(1).replace(/\.0$/, "")}k`;
+}
diff --git a/lib/op.ts b/lib/op.ts
deleted file mode 100644
index cbd8b6c9..00000000
--- a/lib/op.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import "server-only";
-
-import { OpenPanel } from "@openpanel/nextjs";
-
-export const op = new OpenPanel({
- clientId: process.env.NEXT_PUBLIC_OPENPANEL_CLIENT_ID as string,
- clientSecret: process.env.OPENPANEL_CLIENT_SECRET as string,
- apiUrl: process.env.NEXT_PUBLIC_OPENPANEL_API_URL,
-});