Skip to content

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

feat: Launch Pack families in the What's inside bento

kapishdimae50a473d35e8
diff --git a/app/(home)/components/landing/sections/testimonials-wall/wall-columns.tsx b/app/(home)/components/landing/sections/testimonials-wall/wall-columns.tsx
index cc00c79d..32ae9e24 100644
--- a/app/(home)/components/landing/sections/testimonials-wall/wall-columns.tsx
+++ b/app/(home)/components/landing/sections/testimonials-wall/wall-columns.tsx
@@ -25,14 +25,16 @@ function ColumnCopy({
hidden?: boolean;
}) {
return (
- <ul
- aria-hidden={hidden || undefined}
- inert={hidden}
- className="flex flex-col gap-4 pb-4"
- >
+ // The loop's second copy stays hoverable: `inert` would also drop pointer
+ // events, and the reversed column shows mostly this copy. It leaves the
+ // tab order and the a11y tree instead.
+ <ul aria-hidden={hidden || undefined} className="flex flex-col gap-4 pb-4">
{handles.map((handle) => (
<li key={handle} className="flex flex-col">
- <XPostCard post={getXPost(handle)} />
+ <XPostCard
+ post={getXPost(handle)}
+ tabIndex={hidden ? -1 : undefined}
+ />
</li>
))}
</ul>
diff --git a/app/(home)/components/landing/sections/testimonials-wall/x-post-card.tsx b/app/(home)/components/landing/sections/testimonials-wall/x-post-card.tsx
index fb2a6d2b..4efea4f5 100644
--- a/app/(home)/components/landing/sections/testimonials-wall/x-post-card.tsx
+++ b/app/(home)/components/landing/sections/testimonials-wall/x-post-card.tsx
@@ -27,7 +27,13 @@ function formatCount(value: number) {
* One X post on the testimonials wall. The whole card links to the post.
* `featured` is the large lead card: bigger type, fuchsia glow, like/view counts.
*/
-export function XPostCard({ post }: { post: XPost }) {
+export function XPostCard({
+ post,
+ tabIndex,
+}: {
+ post: XPost;
+ tabIndex?: number;
+}) {
const featured = post.featured ?? false;
const showCounts = featured && (post.likes != null || post.views != null);
@@ -38,6 +44,7 @@ export function XPostCard({ post }: { post: XPost }) {
href={post.url}
target="_blank"
rel="noreferrer"
+ tabIndex={tabIndex}
className={cn(
"group flex flex-col outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",
featured ? "rounded-[22px]" : "rounded-card",
diff --git a/app/(home)/components/landing/sections/whats-inside.tsx b/app/(home)/components/landing/sections/whats-inside.tsx
index e039a246..c1149042 100644
--- a/app/(home)/components/landing/sections/whats-inside.tsx
+++ b/app/(home)/components/landing/sections/whats-inside.tsx
@@ -4,7 +4,9 @@ import { BackgroundsTile } from "./whats-inside/backgrounds-tile";
import {
CaptionsVisual,
FamilyTile,
- FiltersVisual,
+ LogoStingsVisual,
+ NumbersVisual,
+ ProductScenesVisual,
TransitionsVisual,
} from "./whats-inside/family-tile";
import { InstallStrip } from "./whats-inside/install-strip";
@@ -14,8 +16,10 @@ const FAMILY_HREF = {
typography: "/docs/typography",
transitions: "/docs/transitions",
captions: "/docs/captions/getting-started/introduction",
- filters: "/docs/filters/getting-started/introduction",
backgrounds: "/docs/shaders/getting-started/introduction",
+ numbers: "/docs/numbers",
+ productScenes: "/docs/product-scenes",
+ logoStings: "/docs/logo-stings",
} as const;
const FAMILIES = [
@@ -34,11 +38,26 @@ const FAMILIES = [
visual: <CaptionsVisual />,
},
{
- href: FAMILY_HREF.filters,
- title: "Filters",
- description: "Halftone, CRT and VHS looks over any scene.",
+ href: FAMILY_HREF.numbers,
+ title: "Numbers",
+ description: "Counters, charts and prices where the figure is the hero.",
tone: "dark",
- visual: <FiltersVisual />,
+ visual: <NumbersVisual />,
+ },
+ {
+ href: FAMILY_HREF.productScenes,
+ title: "Product scenes",
+ description: "Mocked app UI that shows what your product does.",
+ tone: "light",
+ visual: <ProductScenesVisual />,
+ className: "md:col-span-2",
+ },
+ {
+ href: FAMILY_HREF.logoStings,
+ title: "Logo stings",
+ description: "Short brand reveals for the open and the close.",
+ tone: "light",
+ visual: <LogoStingsVisual />,
},
] as const;
@@ -55,7 +74,7 @@ export function WhatsInside() {
<header className="flex flex-col gap-4 xl:flex-row xl:items-end xl:justify-between xl:gap-0">
<SectionTitle
title="There’s a block for that"
- continuation="Five kinds of building blocks. Your agent puts them on the timeline."
+ continuation="Seven kinds of building blocks. Your agent puts them on the timeline."
className="text-[34px]/[36px] text-wrap md:text-h2"
continuationClassName="xl:w-[720px]"
/>
@@ -71,7 +90,7 @@ export function WhatsInside() {
<div
data-reveal="stagger"
data-seq
- className="grid grid-cols-1 gap-2.5 md:grid-cols-3 xl:h-[660px] xl:grid-cols-[repeat(3,minmax(0,1fr))_372px] xl:grid-rows-[354px_294px] xl:gap-3"
+ className="grid grid-cols-1 gap-2.5 md:grid-cols-3 xl:grid-cols-[repeat(3,minmax(0,1fr))_372px] xl:grid-rows-[354px_294px_294px] xl:gap-3"
>
<TypographyTile
href={FAMILY_HREF.typography}
@@ -82,7 +101,7 @@ export function WhatsInside() {
))}
<BackgroundsTile
href={FAMILY_HREF.backgrounds}
- className="md:col-span-3 xl:col-span-1 xl:col-start-4 xl:row-span-2 xl:row-start-1"
+ className="md:col-span-3 xl:col-span-1 xl:col-start-4 xl:row-span-3 xl:row-start-1"
/>
</div>
<InstallStrip
diff --git a/app/(home)/components/landing/sections/whats-inside/bento-clips.ts b/app/(home)/components/landing/sections/whats-inside/bento-clips.ts
index 8057ac6f..57ef41c4 100644
--- a/app/(home)/components/landing/sections/whats-inside/bento-clips.ts
+++ b/app/(home)/components/landing/sections/whats-inside/bento-clips.ts
@@ -3,8 +3,10 @@ import type { ClipSpec } from "../hero/tiles/config";
export const BENTO_SLOTS = [
"transitions",
"captions",
- "filters",
"backgrounds",
+ "numbers",
+ "productScenes",
+ "logoStings",
] as const;
export type BentoSlot = (typeof BENTO_SLOTS)[number];
@@ -31,33 +33,30 @@ function spec(
};
}
-function word(name: string, text: string, props: Record<string, unknown> = {}) {
- return spec(name, "transparent", "hold", {
- text,
- fontSize: 200,
- fontWeight: 600,
- color: "currentColor",
- ...props,
- });
+/**
+ * A launch-pack type beat: it paints its own dark backdrop and is laid out
+ * for a 16:9 frame, so the remix plays it at native size, cover-cropped, as a
+ * dark card like the family tiles below it.
+ */
+function type(name: string, props: Record<string, unknown>) {
+ return spec(name, "#0A0A0B", "hold", { theme: "dark", ...props });
}
export const DEFAULT_BENTO: BentoClips = {
typography: [
- word("soft-blur-in", "Arrive.", { blur: 24 }),
- word("per-character-rise", "Rise."),
- word("mask-reveal-up", "Reveal."),
- word("tracking-in", "Track."),
- word("squeeze-in", "Squeeze."),
+ type("weight-wave", { text: "Move." }),
+ type("baseline-drop", { text: "Drop." }),
+ type("kerning-snap", { word: "Snap." }),
+ type("slit-scan", { word: "Faster.", caption: "" }),
+ type("stack-letters", { word: "STACK" }),
],
- transitions: spec("zoom-blur", "#141318", "hold"),
+ transitions: spec("tile-wave", "#0A0A0B", "hold", { theme: "dark" }),
captions: spec("caption-karaoke", "#0E1012", "hold", {
fontSize: 88,
activeColor: "#E879F9",
}),
- filters: spec("crt-wordmark", "#050505", "hold"),
- backgrounds: spec("shader-mesh-gradient", "#3B0764", "run", {
- colors: ["#A800B7", "#F5D0FE", "#3B0764", "#E879F9"],
- distortion: 0.8,
- swirl: 0.3,
- }),
+ numbers: spec("growth-line", "#0A0A0B", "hold", { theme: "dark" }),
+ productScenes: spec("multiplayer-cursors", "#efebe4", "hold"),
+ logoStings: spec("logo-construct", "#F5F4F0", "hold", { theme: "light" }),
+ backgrounds: spec("shader-mesh-gradient-dusk", "#1a1446", "run"),
};
diff --git a/app/(home)/components/landing/sections/whats-inside/copy-command-button.tsx b/app/(home)/components/landing/sections/whats-inside/copy-command-button.tsx
deleted file mode 100644
index c707f020..00000000
--- a/app/(home)/components/landing/sections/whats-inside/copy-command-button.tsx
+++ /dev/null
@@ -1,64 +0,0 @@
-"use client";
-
-import { Check, Copy } from "lucide-react";
-import { useEffect, useRef, useState } from "react";
-import { useTrackEvent } from "@/lib/analytics";
-import { cn } from "@/lib/utils";
-
-const ICON =
- "absolute inset-0 size-full transition-[opacity,scale,filter] duration-200 ease-out motion-reduce:transition-opacity";
-
-/**
- * Copies the install command. Icon-only on desktop, "Copy" pill on mobile.
- */
-export function CopyCommandButton({
- command,
- component,
-}: {
- command: string;
- /** Registry name, for the `install_command_copied` event. */
- component: string;
-}) {
- const [copied, setCopied] = useState(false);
- const timeout = useRef<ReturnType<typeof setTimeout>>(null);
- const trackEvent = useTrackEvent();
-
- useEffect(() => () => clearTimeout(timeout.current ?? undefined), []);
-
- async function copy() {
- try {
- await navigator.clipboard.writeText(command);
- } catch {
- return;
- }
- setCopied(true);
- trackEvent("install_command_copied", {
- component,
- package_manager: "npm",
- surface: "landing",
- });
- clearTimeout(timeout.current ?? undefined);
- timeout.current = setTimeout(() => setCopied(false), 1500);
- }
-
- return (
- <button
- type="button"
- onClick={copy}
- aria-label={copied ? "Copied" : "Copy install command"}
- className="relative flex h-9 shrink-0 after:absolute after:-inset-1 lg:after:hidden items-center justify-center gap-1.5 rounded-[10px] bg-[#2A2D30] px-3 text-small leading-[18px] text-white transition-[background-color,color,transform] duration-150 ease-out outline-none hover:bg-[#33373A] active:translate-y-px focus-visible:ring-3 focus-visible:ring-ring lg:size-[30px] lg:rounded-tile lg:bg-dark-line lg:px-0 lg:text-dark-body lg:hover:bg-[#2E3236]"
- >
- <span aria-hidden="true" className="relative size-3.5 shrink-0">
- <Copy
- className={cn(ICON, copied && "scale-50 opacity-0 blur-[2px]")}
- strokeWidth={2}
- />
- <Check
- className={cn(ICON, !copied && "scale-50 opacity-0 blur-[2px]")}
- strokeWidth={2}
- />
- </span>
- <span className="lg:hidden">{copied ? "Copied" : "Copy"}</span>
- </button>
- );
-}
diff --git a/app/(home)/components/landing/sections/whats-inside/family-tile.tsx b/app/(home)/components/landing/sections/whats-inside/family-tile.tsx
index 2e6af4f5..3cd14700 100644
--- a/app/(home)/components/landing/sections/whats-inside/family-tile.tsx
+++ b/app/(home)/components/landing/sections/whats-inside/family-tile.tsx
@@ -64,6 +64,14 @@ export function CaptionsVisual() {
return <BentoClip slot="captions" className={FRAME} />;
}
-export function FiltersVisual() {
- return <BentoClip slot="filters" className={FRAME} />;
+export function NumbersVisual() {
+ return <BentoClip slot="numbers" className={FRAME} />;
+}
+
+export function ProductScenesVisual() {
+ return <BentoClip slot="productScenes" className={FRAME} />;
+}
+
+export function LogoStingsVisual() {
+ return <BentoClip slot="logoStings" className={FRAME} />;
}
diff --git a/app/(home)/components/landing/sections/whats-inside/install-strip.tsx b/app/(home)/components/landing/sections/whats-inside/install-strip.tsx
index 20ecf775..dbf9ad82 100644
--- a/app/(home)/components/landing/sections/whats-inside/install-strip.tsx
+++ b/app/(home)/components/landing/sections/whats-inside/install-strip.tsx
@@ -1,7 +1,6 @@
import { LandingButton } from "../../ui/landing-button";
-import { CopyCommandButton } from "./copy-command-button";
-/** Dark strip under the bento: a copyable install line + "Browse N+ blocks". */
+/** Dark strip under the bento: the install line + "Browse N+ blocks". */
export function InstallStrip({
component,
browseHref,
@@ -28,7 +27,6 @@ export function InstallStrip({
{command}
</span>
</code>
- <CopyCommandButton command={command} component={component} />
</div>
<LandingButton
href={browseHref}
diff --git a/app/(home)/components/landing/sections/whats-inside/type-remix.tsx b/app/(home)/components/landing/sections/whats-inside/type-remix.tsx
index 2082e06b..bcc561ff 100644
--- a/app/(home)/components/landing/sections/whats-inside/type-remix.tsx
+++ b/app/(home)/components/landing/sections/whats-inside/type-remix.tsx
@@ -29,12 +29,16 @@ function Beat({
});
return (
<AbsoluteFill style={{ opacity }}>
- <Clip
- spec={{ ...spec, end: "hold" }}
- frame={box}
- canvas={STRIP}
- anchor="bottom-left"
- />
+ {spec.background === "transparent" ? (
+ <Clip
+ spec={{ ...spec, end: "hold" }}
+ frame={box}
+ canvas={STRIP}
+ anchor="bottom-left"
+ />
+ ) : (
+ <Clip spec={{ ...spec, end: "hold" }} frame={box} />
+ )}
</AbsoluteFill>
);
}
diff --git a/app/(home)/components/landing/sections/whats-inside/typography-tile.tsx b/app/(home)/components/landing/sections/whats-inside/typography-tile.tsx
index afbc4b75..1f1bd4ce 100644
--- a/app/(home)/components/landing/sections/whats-inside/typography-tile.tsx
+++ b/app/(home)/components/landing/sections/whats-inside/typography-tile.tsx
@@ -2,6 +2,11 @@ import Link from "next/link";
import { cn } from "@/lib/utils";
import { BentoRemix } from "./bento-clip";
+/**
+ * The type remix spans exactly the two family tiles below it: the tile runs
+ * on the outer 3-column grid with the family tiles' 28px inset, so its gap is
+ * the outer gap plus both insets (10 + 56 on md, 12 + 56 on xl).
+ */
export function TypographyTile({
href,
className,
@@ -13,12 +18,12 @@ export function TypographyTile({
<Link
href={href}
className={cn(
- "flex flex-col justify-between gap-[18px] overflow-clip rounded-panel bg-tile px-[22px] pt-[22px] pb-6 transition-colors outline-none hover:bg-[#E9EAEC] focus-visible:ring-3 focus-visible:ring-ring lg:flex-row lg:items-stretch lg:gap-6 lg:px-9 lg:py-[30px] xl:rounded-shell dark:hover:bg-[#2A2D31]",
+ "flex flex-col justify-between gap-[18px] overflow-clip rounded-panel bg-tile px-[22px] pt-[22px] pb-6 transition-colors outline-none hover:bg-[#E9EAEC] focus-visible:ring-3 focus-visible:ring-ring md:grid md:grid-cols-3 md:gap-x-[66px] md:gap-y-0 md:px-7 md:py-[26px] xl:gap-x-[68px] xl:rounded-shell dark:hover:bg-[#2A2D31]",
className,
)}
>
- <BentoRemix className="h-[150px] min-w-0 lg:h-auto lg:min-h-[240px] lg:flex-1" />
- <div className="flex flex-col gap-1 lg:w-[220px] lg:shrink-0 lg:justify-end lg:gap-1.5 lg:pb-2">
+ <BentoRemix className="h-[150px] min-w-0 rounded-[14px] md:col-span-2 md:h-auto md:min-h-[200px]" />
+ <div className="flex flex-col gap-1 md:justify-end md:gap-1.5">
<h3 className="text-caption text-muted-foreground lg:text-micro">
Typography
</h3>
diff --git a/app/(home)/components/site-footer.tsx b/app/(home)/components/site-footer.tsx
index a9fcc355..467a6ef9 100644
--- a/app/(home)/components/site-footer.tsx
+++ b/app/(home)/components/site-footer.tsx
@@ -14,7 +14,7 @@ export function SiteFooter() {
data-reveal="fade"
className="landing-container flex flex-col gap-6 lg:flex-row lg:items-center lg:justify-between"
>
- <div className="flex flex-col gap-1.5 lg:flex-row lg:items-center lg:gap-5">
+ <div className="flex flex-col gap-1.5 lg:flex-row lg:items-baseline lg:gap-5">
<Link
href="/"
aria-label="remocn home"
diff --git a/app/lab/whats-inside/bento-lab.tsx b/app/lab/whats-inside/bento-lab.tsx
index 78b6198f..96168068 100644
--- a/app/lab/whats-inside/bento-lab.tsx
+++ b/app/lab/whats-inside/bento-lab.tsx
@@ -26,8 +26,10 @@ type Target = BentoSlot | "typography";
const SLOT_LABELS: Record<BentoSlot, string> = {
transitions: "Transitions",
captions: "Captions",
- filters: "Filters",
backgrounds: "Backgrounds",
+ numbers: "Numbers",
+ productScenes: "Product scenes",
+ logoStings: "Logo stings",
};
function remixWord(name: string): ClipSpec {