Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
refactor: hero intro badge
kapishdima46f795d077ef
diff --git a/app/(home)/components/hero-badge.tsx b/app/(home)/components/hero-badge.tsxnew file mode 100644index 00000000..37972c79--- /dev/null+++ b/app/(home)/components/hero-badge.tsx@@ -0,0 +1,40 @@+"use client";++import { ArrowRight } from "lucide-react";+import Link from "next/link";+import { Badge } from "@/components/ui/badge";+import { useTrackEvent } from "@/lib/analytics";++const HERO_BADGE_HREF =+ "https://remocn.dev/changelog#2026-07-21-stop-motion-wave-2";++export function HeroBadge() {+ const trackEvent = useTrackEvent();++ return (+ <Badge+ variant="outline"+ className="mb-5 h-7 gap-1.5 rounded-full px-3 text-xs"+ render={+ <Link+ href={HERO_BADGE_HREF}+ onClick={() =>+ trackEvent("cta_clicked", {+ cta: "hero_ui_badge",+ destination: HERO_BADGE_HREF,+ })+ }+ />+ }+ >+ <span className="font-semibold text-foreground">New</span>+ <span aria-hidden className="text-muted-foreground/60">+ ·+ </span>+ <span className="text-muted-foreground">+ <span className="text-foreground">Stop Motion Animations</span>+ </span>+ <ArrowRight className="size-3" aria-hidden="true" />+ </Badge>+ );+}diff --git a/app/(home)/components/install-all.tsx b/app/(home)/components/install-all.tsxindex 06c31e2e..83205c06 100644--- a/app/(home)/components/install-all.tsx+++ b/app/(home)/components/install-all.tsx@@ -23,10 +23,11 @@ export function InstallAll() {return (<Button- variant="outline"+ variant="secondary"onClick={copy}aria-label="Copy command to install all components"- className="group h-11 gap-3 rounded-full border-border bg-card/60 px-4 font-mono text-sm font-normal text-muted-foreground backdrop-blur-sm hover:border-foreground/20 hover:text-foreground"+ size="lg"+ className="rounded-full font-medium"><span className="text-foreground">Install all</span><span aria-hidden className="text-muted-foreground/70">diff --git a/app/(home)/components/sections/hero.tsx b/app/(home)/components/sections/hero.tsxindex f905ba2d..f677f6e5 100644--- a/app/(home)/components/sections/hero.tsx+++ b/app/(home)/components/sections/hero.tsx@@ -2,10 +2,10 @@import { ArrowRight } from "lucide-react";import Link from "next/link";-import { Badge } from "@/components/ui/badge";import { Button } from "@/components/ui/button";import { useTrackEvent } from "@/lib/analytics";import { FadeUp } from "../fade-up";+import { HeroBadge } from "../hero-badge";import { HeroNeuroBg } from "../hero-shader-bg";import { InstallAll } from "../install-all";import { HeroScrollVideo } from "./hero-scroll-video";@@ -23,31 +23,7 @@ export function Hero() {<div className="section"><div className="flex flex-col items-center text-center"><FadeUp delay={0.06} className="flex flex-col items-center">- <Badge- variant="outline"- className="mb-5 h-7 gap-1.5 rounded-full px-3 text-xs"- render={- <Link- href="/docs/icons/gallery"- onClick={() =>- trackEvent("cta_clicked", {- cta: "hero_ui_badge",- destination: "/docs/icons/gallery",- })- }- />- }- >- <span className="font-semibold text-foreground">New</span>- <span aria-hidden className="text-muted-foreground/60">- ·- </span>- <span className="text-muted-foreground">- Introducing{" "}- <span className="text-foreground">Remocn Icons</span>- </span>- <ArrowRight className="size-3" aria-hidden="true" />- </Badge>+ <HeroBadge /><h1 className="max-w-3xl text-balance text-3xl font-semibold leading-[1.1] tracking-tight text-foreground sm:text-4xl md:text-5xl">Cinematic video components,<br className="hidden sm:block" /> now copy-pasteable@@ -65,7 +41,7 @@ export function Hero() {<div className="mt-7 flex flex-col items-center gap-3 sm:flex-row"><Buttonsize="lg"- className="h-11 gap-2 rounded-full px-6 text-sm"+ className="rounded-full"render={<Linkhref="/docs/getting-started/introduction"