The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Home: more camera motions, effects, apps and studios
Adarsh05412f17297f
diff --git a/src/components/home/home-sections.tsx b/src/components/home/home-sections.tsxindex 29c27575..23873ea8 100644--- a/src/components/home/home-sections.tsx+++ b/src/components/home/home-sections.tsx@@ -119,26 +119,31 @@ export function SectionHead({}/**- * Preset cards with a short line each: all of them in a phone's rail; from sm up, the first `wide`, and from lg to- * xl the first `lg` (a rail costs no height, a grid does). The cards' own padding hangs outside the column, so each- * picture lines up with the heading and the wall, 12 px from the next.+ * Preset cards with a short line each: all of them in a phone's rail; as a grid, the first `xl` from xl, the first `lg`+ * from lg to xl and the first `sm` from sm to lg (a rail costs no height, a grid does), so each grid's rows are full.+ * The cards' own padding hangs outside the column, so each picture lines up with the heading and the wall, 12 px from+ * the next. `item`: more classes for the `i`th card (Apps places its cards beside and under the before/after).*/function Cards({items,className,- wide = items.length,- lg = wide,+ xl = items.length,+ lg = xl,+ sm = lg,+ item,}: {/** A card without a caption shows its description. */items: { card: HomeShowcase["effects"][number]["card"]; caption?: string }[];className: string;- wide?: number;+ xl?: number;lg?: number;+ sm?: number;+ item?: (i: number) => string | false;}) {return (<HomeRail className={cn("gap-0 scroll-px-2.5 max-sm:px-2.5 sm:-mx-1.5", className)}>{items.map(({ card, caption }, i) => (- <div key={card.id} className={cn(RAIL_ITEM, i >= wide && "sm:hidden", i >= lg && "lg:max-xl:hidden")}>+ <div key={card.id} className={cn(RAIL_ITEM, i >= xl && "xl:hidden", i >= lg && "lg:max-xl:hidden", i >= sm && "sm:max-lg:hidden", item?.(i))}><PresetCard preset={card} href={presetHref(card.id)} caption={caption} place={staggered(i)} sizes={CARD_SIZES} bare /></div>))}@@ -146,6 +151,9 @@ function Cards({);}+/** A preset row on Home: four full rows wherever it's a grid (six a row from xl, four from lg, three from sm). */+const ROWS = { xl: 24, lg: 16, sm: 12 };+/** Home's preset rows (Camera motions, Effects), for an area page that shows them the same way. */export const PresetRail = Cards;@@ -186,7 +194,7 @@ export function ShowcaseWall({export function EffectsSection({ facts, effects }: Pick<HomeShowcase, "facts" | "effects">) {return (- <section aria-labelledby="home-effects" data-reveal className={cn(SECTION, "[--cv:336px] sm:[--cv:946px] md:[--cv:846px] lg:[--cv:691px] xl:[--cv:490px]")}>+ <section aria-labelledby="home-effects" data-reveal className={cn(SECTION, "[--cv:336px] sm:[--cv:951px] md:[--cv:1014px] lg:[--cv:1023px] xl:[--cv:930px]")}><SectionHeadid="home-effects"title="Effects"@@ -194,14 +202,14 @@ export function EffectsSection({ facts, effects }: Pick<HomeShowcase, "facts" |all="/effects"line="Add one photo and get the shot: storms, blooms, flares, floods."/>- <Cards items={effects} className="sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6" />+ <Cards items={effects} {...ROWS} className="sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6" /></section>);}export function MotionsSection({ facts, motions }: Pick<HomeShowcase, "facts" | "motions">) {return (- <section aria-labelledby="home-motions" data-reveal className={cn(SECTION, "[--cv:336px] sm:[--cv:528px] md:[--cv:492px] lg:[--cv:293px] xl:[--cv:290px]")}>+ <section aria-labelledby="home-motions" data-reveal className={cn(SECTION, "[--cv:336px] sm:[--cv:935px] md:[--cv:1014px] lg:[--cv:1039px] xl:[--cv:930px]")}><SectionHeadid="home-motions"title="Camera motions"@@ -209,7 +217,7 @@ export function MotionsSection({ facts, motions }: Pick<HomeShowcase, "facts" |all="/motions"line="Moves a film crew would make: orbits, drone dives, crash zooms. Mix any two."/>- <Cards items={motions} wide={6} lg={4} className="sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6" />+ <Cards items={motions} {...ROWS} className="sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6" /></section>);}@@ -217,21 +225,31 @@ export function MotionsSection({ facts, motions }: Pick<HomeShowcase, "facts" |/*** Apps on Home: a before and after, and the apps whose clip wipes from one to the other. /apps opens on the same section* as its "Start here" (`start`): its own heading, no count and no "See all" (the page is all of them).+ *+ * From xl the cards take their places in the section's own grid of 36 columns (their row is `display: contents`+ * there): the before/after over 15 of them and two rows, three cards a row beside it (7 columns each), then a row of six+ * under both (6 each), as wide as the rows above and below the section. The cards' own padding sets the space between+ * them, so the grid has no gap of its own; the before/after keeps 16 px from the cards beside it. Under xl, the+ * before/after sits over the cards: four a row from lg, three from sm, a phone's rail.*/export function AppsSection({ facts, beforeAfter, reveals, start }: Pick<HomeShowcase, "facts" | "beforeAfter" | "reveals"> & { start?: { title: string; line: string } }) {const id = start ? "apps-start" : "home-apps";return (- <section aria-labelledby={id} data-reveal className={cn(SECTION, "[--cv:676px] sm:[--cv:1004px] md:[--cv:943px] lg:[--cv:957px] xl:[--cv:525px]")}>+ <section aria-labelledby={id} data-reveal className={cn(SECTION, "[--cv:676px] sm:[--cv:1384px] md:[--cv:1496px] lg:[--cv:1198px] xl:[--cv:719px]")}>{start ? (<SectionHead id={id} title={start.title} line={start.line} />) : (<SectionHead id={id} title="Apps" count={facts.apps} all="/apps" line="One click changes one thing and keeps the rest." />)}- <div className="grid grid-cols-1 gap-6 xl:grid-cols-12 xl:gap-4">- <div className="min-w-0 xl:col-span-5 xl:pt-1.5">+ <div className="grid grid-cols-1 gap-6 xl:-mx-1.5 xl:grid-cols-36 xl:gap-0">+ <div className="min-w-0 xl:col-span-15 xl:row-span-2 xl:pt-1.5 xl:pr-2.5 xl:pl-1.5"><BeforeAfter pairs={beforeAfter} /></div>- <Cards items={reveals} className="self-start sm:grid-cols-3 xl:col-span-7" />+ <Cards+ items={reveals}+ className="self-start sm:grid-cols-3 lg:grid-cols-4 xl:contents"+ item={(i) => (i < 6 ? "xl:col-span-7" : "xl:col-span-6")}+ /></div></section>);@@ -348,7 +366,8 @@ export interface DestinationPill {/*** Home's "Studios and tools" section, and each section of an area page (/create, /studios): a heading with its count,* one line, the cards (a phone's rail, two a row from sm, four from lg), then the rest as pills. More than eight pills- * scroll sideways on a phone in a long row; eight or fewer wrap. `className`: the section's own spacing.+ * scroll sideways on a phone in a long row; eight or fewer wrap. `className`: the section's own spacing. `sm`: how+ * many of the rail's cards show from sm to lg (Home's: four rows of two), the rest on a phone and from lg.*/export function DestinationsSection({id,@@ -367,6 +386,7 @@ export function DestinationsSection({allNoun,after,auto,+ sm,}: {id: string;title: string;@@ -389,9 +409,10 @@ export function DestinationsSection({after?: React.ReactNode;/** When the cards' clips play by themselves (StudioCard): Home's row, "always", like the preset rows above it. */auto?: AutoPlay;+ sm?: number;}) {const items = cards.map((s, i) => (- <div key={s.href} className={grid ? "min-w-0" : RAIL_ITEM}>+ <div key={s.href} className={grid ? "min-w-0" : cn(RAIL_ITEM, sm !== undefined && i >= sm && "sm:max-lg:hidden")}>{s.card ? (<StudioCardhref={s.href}@@ -467,7 +488,8 @@ export function StudiosSection({ facts, studios, audioTools, pills }: Pick<HomeSallCount={studioCount()}allNoun="studios"auto="always"- data-reveal className={cn(SECTION, "[--cv:529px] sm:[--cv:1597px] md:[--cv:1482px] lg:[--cv:770px] xl:[--cv:795px]")}+ sm={8}+ data-reveal className={cn(SECTION, "[--cv:529px] sm:[--cv:1526px] md:[--cv:1614px] lg:[--cv:1262px] xl:[--cv:1394px]")}/>);}diff --git a/src/components/nav-items.ts b/src/components/nav-items.tsindex 78449114..1e607f85 100644--- a/src/components/nav-items.ts+++ b/src/components/nav-items.ts@@ -42,6 +42,7 @@ const GROUPS: { label: string; ids: string[]; collapsible?: boolean }[] = ["mixed-media","marketing","ads",+ "kinetic","moodboards","photodump","fashion-factory",diff --git a/src/components/use-rail-stills.ts b/src/components/use-rail-stills.tsindex 91a83b97..3c10489b 100644--- a/src/components/use-rail-stills.ts+++ b/src/components/use-rail-stills.ts@@ -10,7 +10,8 @@ export const RAIL_STILLS_MARGIN = "100% 0px";* screen of view, not one by one as each card slides in. A browser loads a lazy picture only when the picture nears the* screen, and a card waiting at the side of a row is cut off by the row, so its still was asked for only once the card* was already showing, blank. A card hidden at this width (display: none) loads nothing; one shown later (the screen- * turned or grew) loads then, as the row's size changes.+ * turned or grew) loads then, as the row's size changes. Where the row is a grid (from sm up: it doesn't scroll), each+ * still loads as its own card nears the screen, so the lower rows of a tall grid wait until they're reached.*/export function useRailStills(ref: RefObject<HTMLElement | null>) {useEffect(() => {@@ -18,7 +19,7 @@ export function useRailStills(ref: RefObject<HTMLElement | null>) {if (!rail || typeof IntersectionObserver === "undefined") return;let near = false;const load = () => {- if (!near) return;+ if (!near || getComputedStyle(rail).overflowX === "visible") return;for (const img of rail.querySelectorAll<HTMLImageElement>('img[loading="lazy"]')) if (img.getClientRects().length) img.loading = "eager";};const io = new IntersectionObserver(diff --git a/src/lib/home-showcase.ts b/src/lib/home-showcase.tsindex 02cf73e7..2269d90b 100644--- a/src/lib/home-showcase.ts+++ b/src/lib/home-showcase.ts@@ -14,7 +14,7 @@ import { TEMPLATES } from "@/lib/catalog/marketing";import type { ModelDef } from "@/lib/catalog/types";import type { Manifest } from "@/lib/comfy";import { homeBento, openModelsOf } from "@/lib/home-bento";-import { studioCount } from "@/lib/nav-model";+import { NAV_ENTRIES, studioCount } from "@/lib/nav-model";import { HUB_MODES } from "@/lib/hubs";import { modelHref } from "@/lib/palette-index";import { cacheLife } from "next/cache";@@ -40,7 +40,11 @@ export const HOME_WALL = [/** The longest caption a wall tile (a phone's, 136 px at 360) and a row's card (two lines) hold whole. */export const HOME_CAPTION_MAX = { wall: 22, card: 40 };-/** Each card says in a few words what it does (the catalog's description stays its tooltip). */+/**+ * Each card says in a few words what it does (the catalog's description stays its tooltip). Four rows wherever it is a+ * grid: all 24 from xl (six a row), the first 16 from lg (four a row), the first 12 from sm (three a row); a phone's+ * rail has all of them (home-sections.tsx). Premium first, no two alike side by side.+ */export const HOME_EFFECTS = [{ id: "effect-nature-bloom", caption: "Flowers overgrow the old station" },{ id: "effect-wind-to-face", caption: "A gale sweeps back hair and coat" },@@ -54,9 +58,24 @@ export const HOME_EFFECTS = [{ id: "effect-building-explosion", caption: "The building behind them explodes" },{ id: "effect-flood", caption: "Water and candles rise around them" },{ id: "effect-northern-lights", caption: "An aurora ripples across the sky" },+ { id: "effect-train-rush", caption: "A train rushes past by the mountains" },+ { id: "effect-blue-depth", caption: "She sinks slowly into the deep blue" },+ { id: "effect-contre-jour", caption: "The sun flares behind her in the wheat" },+ { id: "effect-pigeons", caption: "A flock of pigeons bursts up around him" },+ { id: "effect-marble", caption: "She turns to living marble by the sea" },+ { id: "effect-particles", caption: "Her gown streams into glowing particles" },+ { id: "effect-monet-muse", caption: "The garden turns into a Monet painting" },+ { id: "effect-agamemnon", caption: "A bronze-clad king before his army" },+ { id: "effect-silhouette", caption: "Backlit into a glowing silhouette" },+ { id: "effect-ice-rose", caption: "A rose of ice grows in his hands" },+ { id: "effect-diamond", caption: "She crystallizes into faceted diamond" },+ { id: "effect-fairytale-castle", caption: "A castle rises over the lake at dusk" },];-/** A phone's rail shows all twelve; a wider screen shows the first six (four from lg to xl), one row (home-sections.tsx). */+/**+ * Four rows, as the effects (HOME_EFFECTS). None repeats the first screen: its video tile plays One take, and its image+ * tile is the gold sequins on the sea cliff (Glam's cover).+ */export const HOME_MOTIONS = [{ id: "motion-dolly-in", caption: "A slow push in through the library" },{ id: "motion-classic-static", caption: "Locked off, framed like a painting" },@@ -69,7 +88,19 @@ export const HOME_MOTIONS = [{ id: "motion-car-chasing", caption: "Chasing the car at speed" },{ id: "motion-crane-over-the-head", caption: "Rises over their head to the view" },{ id: "motion-lazy-susan", caption: "They turn as if on a turntable" },- { id: "motion-one-take", caption: "One unbroken Steadicam move" },+ { id: "motion-crane-up", caption: "Rises over a pink salt lake" },+ { id: "motion-super-dolly-in", caption: "From the hangar door to a close-up" },+ { id: "motion-dreamy-flow", caption: "Drifts through the lavender like a dream" },+ { id: "motion-crane-down", caption: "Down from the rooftops to her level" },+ { id: "motion-snorricam", caption: "Locked to her as Paris moves around her" },+ { id: "motion-epic-scale", caption: "A lone figure against vast mountains" },+ { id: "motion-zoom-in", caption: "A slow zoom in on the chess player" },+ { id: "motion-arc-right", caption: "Arcs around him on a Greek hillside" },+ { id: "motion-low-shutter", caption: "Light trails swirl around the carousel" },+ { id: "motion-silent-machine", caption: "A cold, precise slide down the corridor" },+ { id: "motion-overhead", caption: "Turns slowly above the canoe and lilies" },+ { id: "motion-drone-reveal", caption: "Rises to reveal the lagoon and seaplane" },+ { id: "motion-intimate-observer", caption: "Close by his shoulder at the window" },];/**@@ -83,7 +114,10 @@ export const HOME_BEFORE_AFTER = [{ id: "app-makeup-studio", tags: ["Bare", "Evening"], zoom: 1.02 },] as const;-/** Apps whose clip wipes from before to after: at rest they show the after. */+/**+ * Apps whose clip wipes from before to after: at rest they show the after. Twelve: from xl, six beside the before/after+ * and six in a row under it; four a row from lg, three from sm; a phone's rail has all of them.+ */export const HOME_REVEALS = [{ id: "app-outfit-swap", caption: "Wear the outfit from any photo" },{ id: "app-steal-the-look", caption: "Copy the style of a reference" },@@ -91,12 +125,27 @@ export const HOME_REVEALS = [{ id: "app-match-colors", caption: "Take the colors of any photo" },{ id: "app-outfit-shot", caption: "From a flat lay to a model shoot" },{ id: "app-color-grading", caption: "A cinematic grade in one click" },+ { id: "app-behind-the-scenes", caption: "The film set behind the shot" },+ { id: "app-age-shift", caption: "The same face, decades older" },+ { id: "app-colorize", caption: "Black and white, now in color" },+ { id: "app-hairstyle-try-on", caption: "Try a new cut and color" },+ { id: "app-chameleon", caption: "The dress turns iridescent" },+ { id: "app-style-snap", caption: "From a sweater to black tie" },];+/** A page's own card line from the navigation model, so its card says the same on Home and on its area page. */+const modelLine = (href: string) => () => {+ const line = NAV_ENTRIES.find((e) => e.href === href)?.line;+ if (!line) throw new Error(`Home's studio card for ${href} needs a line in the navigation model`);+ return line;+};+/*** Studio cards: a real cover (a clip, or a still: Marketing's product shot and Image to 3D's* turntable shot) and one line each. Audio’s is the demo its Clean up voice tool opens on (a studio without a cover- * would show its tools by name: AudioCard).+ * would show its tools by name: AudioCard). Four rows: all 16 from lg (four a row), the first 8 from sm (two a row); a+ * phone's rail has all of them. The last eight show their own covers (the navigation model's) and lines, premium first:+ * by the featured band of their covers (preset-featured.ts), no two alike side by side.*/export const HOME_STUDIOS: { href: string; id?: string; line: (f: HomeFacts) => string }[] = [{ href: "/cinema", id: "motion-arc-left", line: (f) => `Direct a film shot by shot: camera, lens, light and ${f.cinemaMoves} moves.` },@@ -109,6 +158,14 @@ export const HOME_STUDIOS: { href: string; id?: string; line: (f: HomeFacts) =>{ href: "/audio", id: "app-clean-up-voice", line: () => "Voices, music and sound for any clip, made or split apart." },// The collectible figure: the first screen's 3D tile plays the turning gown (home-bento.ts), and a clip plays in one place.{ href: "/image-to-3d", id: "app-3d-figure", line: () => "A photo or a sentence to a 3D model you can spin." },+ { href: "/shorts", id: "motion-catwalk", line: modelLine("/shorts") },+ { href: "/video-edit", id: "effect-outfit-switch", line: modelLine("/video-edit") },+ { href: "/storyboard", id: "app-shots", line: modelLine("/storyboard") },+ { href: "/photodump", id: "app-headshot-generator", line: modelLine("/photodump") },+ { href: "/ads", id: "app-billboard-ad", line: modelLine("/ads") },+ { href: "/reframe", id: "app-expand-image", line: modelLine("/reframe") },+ { href: "/kinetic", id: "app-click-to-ad", line: () => "Motion graphics in your brand: titles, offers and end cards." },+ { href: "/image", id: "app-poster", line: modelLine("/image") },];/** Destinations with a section of their own on Home, so they aren't pills as well. */diff --git a/tests/__snapshots__/home-studios.html b/tests/__snapshots__/home-studios.htmlindex 880bbe85..91f34b73 100644--- a/tests/__snapshots__/home-studios.html+++ b/tests/__snapshots__/home-studios.html@@ -1,8 +1,8 @@-<section aria-labelledby="home-studios" class="home-cv -mx-4 mt-8 -mb-2 px-4 py-2 sm:mt-12 [--cv:529px] sm:[--cv:1597px] md:[--cv:1482px] lg:[--cv:770px] xl:[--cv:795px]">+<section aria-labelledby="home-studios" class="home-cv -mx-4 mt-8 -mb-2 px-4 py-2 sm:mt-12 [--cv:529px] sm:[--cv:1526px] md:[--cv:1614px] lg:[--cv:1262px] xl:[--cv:1394px]"><div class="mb-4"><div class="flex items-center justify-between gap-4"><h2 id="home-studios" class="font-heading text-[24px] leading-tight sm:text-[28px]">Studios and tools<span aria-hidden="true" class="ml-2 inline-block rounded-full bg-muted px-2 align-[0.3em] font-sans text-[13px] leading-6 tracking-normal text-muted-foreground tabular-nums">-<span style="display:inline-block;min-width:2ch;font-variant-numeric:tabular-nums">40</span>+<span style="display:inline-block;min-width:2ch;font-variant-numeric:tabular-nums">41</span></span></h2><a aria-label="See all 29 studios" class="group relative inline-flex shrink-0 items-center gap-1 text-[13px] text-muted-foreground transition-colors after:absolute after:-inset-x-2 after:-inset-y-3 after:content-[''] hover:text-foreground" href="/studios">See all 29 studios <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right size-3.5 transition-transform duration-150 group-hover:translate-x-0.5" aria-hidden="true">@@ -202,22 +202,199 @@</div></a></div>+<div class="w-[64%] shrink-0 snap-start sm:w-auto sm:max-lg:hidden">+<a class="group/studio flex min-w-0 flex-col gap-2 rounded-xl outline-none focus-visible:ring-2 focus-visible:ring-ring" href="/shorts">+<div class="relative isolate aspect-[4/3] overflow-hidden rounded-lg bg-muted">+<div class="absolute inset-0 ease-out motion-safe:transition-transform motion-safe:duration-[400ms] motion-safe:group-hover/studio:scale-[1.03]">+<picture>+<source type="image/avif" srcSet="/previews/presets/hd/320/motion-catwalk.avif?v=cb5980c6 320w, /previews/presets/hd/640/motion-catwalk.avif?v=cb5980c6 640w, /previews/presets/hd/1024/motion-catwalk.avif?v=cb5980c6 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw"/>+<img src="/previews/presets/motion-catwalk.jpg?v=57f553e7" srcSet="/previews/presets/thumbs/motion-catwalk.jpg?v=57f553e7 320w, /previews/presets/motion-catwalk.jpg?v=57f553e7 512w, /previews/presets/hd/640/motion-catwalk.jpg?v=cb5980c6 640w, /previews/presets/hd/1024/motion-catwalk.jpg?v=cb5980c6 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw" alt="" width="512" height="384" draggable="false" loading="lazy" decoding="async" class="absolute inset-0 size-full object-cover" aria-hidden="true"/>+</picture>+</div>+</div>+<div class="min-w-0 px-0.5">+<p class="text-[14px] font-medium">Shorts <span class="whitespace-nowrap">Studio<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right ml-1.5 inline-block size-3.5 align-[-2px] text-muted-foreground transition-transform duration-150 group-hover/studio:translate-x-0.5 group-hover/studio:text-foreground" aria-hidden="true">+<path d="M5 12h14">+</path>+<path d="m12 5 7 7-7 7">+</path>+</svg>+</span>+</p>+<p class="mt-0.5 text-[12px] leading-snug text-muted-foreground">Vertical reels from one idea, ready to post.</p>+</div>+</a>+</div>+<div class="w-[64%] shrink-0 snap-start sm:w-auto sm:max-lg:hidden">+<a class="group/studio flex min-w-0 flex-col gap-2 rounded-xl outline-none focus-visible:ring-2 focus-visible:ring-ring" href="/video-edit">+<div class="relative isolate aspect-[4/3] overflow-hidden rounded-lg bg-muted">+<div class="absolute inset-0 ease-out motion-safe:transition-transform motion-safe:duration-[400ms] motion-safe:group-hover/studio:scale-[1.03]">+<picture>+<source type="image/avif" srcSet="/previews/presets/hd/320/peak/effect-outfit-switch.avif?v=f7f48e09 320w, /previews/presets/hd/640/peak/effect-outfit-switch.avif?v=f7f48e09 640w, /previews/presets/hd/1024/peak/effect-outfit-switch.avif?v=f7f48e09 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw"/>+<img src="/previews/presets/peak/effect-outfit-switch.jpg?v=001a9543" srcSet="/previews/presets/peak/thumbs/effect-outfit-switch.jpg?v=001a9543 320w, /previews/presets/peak/effect-outfit-switch.jpg?v=001a9543 512w, /previews/presets/hd/640/peak/effect-outfit-switch.jpg?v=f7f48e09 640w, /previews/presets/hd/1024/peak/effect-outfit-switch.jpg?v=f7f48e09 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw" alt="" width="512" height="384" draggable="false" loading="lazy" decoding="async" class="absolute inset-0 size-full object-cover" aria-hidden="true"/>+</picture>+</div>+</div>+<div class="min-w-0 px-0.5">+<p class="text-[14px] font-medium">Edit <span class="whitespace-nowrap">video<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right ml-1.5 inline-block size-3.5 align-[-2px] text-muted-foreground transition-transform duration-150 group-hover/studio:translate-x-0.5 group-hover/studio:text-foreground" aria-hidden="true">+<path d="M5 12h14">+</path>+<path d="m12 5 7 7-7 7">+</path>+</svg>+</span>+</p>+<p class="mt-0.5 text-[12px] leading-snug text-muted-foreground">Restyle a clip with words and keep its motion.</p>+</div>+</a>+</div>+<div class="w-[64%] shrink-0 snap-start sm:w-auto sm:max-lg:hidden">+<a class="group/studio flex min-w-0 flex-col gap-2 rounded-xl outline-none focus-visible:ring-2 focus-visible:ring-ring" href="/storyboard">+<div class="relative isolate aspect-[4/3] overflow-hidden rounded-lg bg-muted">+<div class="absolute inset-0 ease-out motion-safe:transition-transform motion-safe:duration-[400ms] motion-safe:group-hover/studio:scale-[1.03]">+<picture>+<source type="image/avif" srcSet="/previews/presets/hd/320/app-shots.avif?v=03cb09f1 320w, /previews/presets/hd/640/app-shots.avif?v=03cb09f1 640w, /previews/presets/hd/1024/app-shots.avif?v=03cb09f1 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw"/>+<img src="/previews/presets/app-shots.jpg?v=fed45e20" srcSet="/previews/presets/thumbs/app-shots.jpg?v=fed45e20 320w, /previews/presets/app-shots.jpg?v=fed45e20 512w, /previews/presets/hd/640/app-shots.jpg?v=03cb09f1 640w, /previews/presets/hd/1024/app-shots.jpg?v=03cb09f1 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw" alt="" width="512" height="384" draggable="false" loading="lazy" decoding="async" class="absolute inset-0 size-full object-cover" aria-hidden="true"/>+</picture>+</div>+</div>+<div class="min-w-0 px-0.5">+<p class="text-[14px] font-medium">+<span class="whitespace-nowrap">Storyboard<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right ml-1.5 inline-block size-3.5 align-[-2px] text-muted-foreground transition-transform duration-150 group-hover/studio:translate-x-0.5 group-hover/studio:text-foreground" aria-hidden="true">+<path d="M5 12h14">+</path>+<path d="m12 5 7 7-7 7">+</path>+</svg>+</span>+</p>+<p class="mt-0.5 text-[12px] leading-snug text-muted-foreground">Plan a film frame by frame, then shoot each frame.</p>+</div>+</a>+</div>+<div class="w-[64%] shrink-0 snap-start sm:w-auto sm:max-lg:hidden">+<a class="group/studio flex min-w-0 flex-col gap-2 rounded-xl outline-none focus-visible:ring-2 focus-visible:ring-ring" href="/photodump">+<div class="relative isolate aspect-[4/3] overflow-hidden rounded-lg bg-muted">+<div class="absolute inset-0 ease-out motion-safe:transition-transform motion-safe:duration-[400ms] motion-safe:group-hover/studio:scale-[1.03]">+<picture>+<source type="image/avif" srcSet="/previews/presets/hd/320/peak/app-headshot-generator.avif?v=916ded85 320w, /previews/presets/hd/640/peak/app-headshot-generator.avif?v=916ded85 640w, /previews/presets/hd/1024/peak/app-headshot-generator.avif?v=916ded85 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw"/>+<img src="/previews/presets/peak/app-headshot-generator.jpg?v=c772cd11" srcSet="/previews/presets/peak/thumbs/app-headshot-generator.jpg?v=c772cd11 320w, /previews/presets/peak/app-headshot-generator.jpg?v=c772cd11 512w, /previews/presets/hd/640/peak/app-headshot-generator.jpg?v=916ded85 640w, /previews/presets/hd/1024/peak/app-headshot-generator.jpg?v=916ded85 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw" alt="" width="512" height="384" draggable="false" loading="lazy" decoding="async" class="absolute inset-0 size-full object-cover" aria-hidden="true"/>+</picture>+</div>+</div>+<div class="min-w-0 px-0.5">+<p class="text-[14px] font-medium">+<span class="whitespace-nowrap">Photodump<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right ml-1.5 inline-block size-3.5 align-[-2px] text-muted-foreground transition-transform duration-150 group-hover/studio:translate-x-0.5 group-hover/studio:text-foreground" aria-hidden="true">+<path d="M5 12h14">+</path>+<path d="m12 5 7 7-7 7">+</path>+</svg>+</span>+</p>+<p class="mt-0.5 text-[12px] leading-snug text-muted-foreground">A whole photo pack of one person, in any setting.</p>+</div>+</a>+</div>+<div class="w-[64%] shrink-0 snap-start sm:w-auto sm:max-lg:hidden">+<a class="group/studio flex min-w-0 flex-col gap-2 rounded-xl outline-none focus-visible:ring-2 focus-visible:ring-ring" href="/ads">+<div class="relative isolate aspect-[4/3] overflow-hidden rounded-lg bg-muted">+<div class="absolute inset-0 ease-out motion-safe:transition-transform motion-safe:duration-[400ms] motion-safe:group-hover/studio:scale-[1.03]">+<picture>+<source type="image/avif" srcSet="/previews/presets/hd/320/peak/app-billboard-ad.avif?v=620d807b 320w, /previews/presets/hd/640/peak/app-billboard-ad.avif?v=620d807b 640w, /previews/presets/hd/1024/peak/app-billboard-ad.avif?v=620d807b 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw"/>+<img src="/previews/presets/peak/app-billboard-ad.jpg?v=9227cdd4" srcSet="/previews/presets/peak/thumbs/app-billboard-ad.jpg?v=9227cdd4 320w, /previews/presets/peak/app-billboard-ad.jpg?v=9227cdd4 512w, /previews/presets/hd/640/peak/app-billboard-ad.jpg?v=620d807b 640w, /previews/presets/hd/1024/peak/app-billboard-ad.jpg?v=620d807b 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw" alt="" width="512" height="384" draggable="false" loading="lazy" decoding="async" class="absolute inset-0 size-full object-cover" aria-hidden="true"/>+</picture>+</div>+</div>+<div class="min-w-0 px-0.5">+<p class="text-[14px] font-medium">Ads <span class="whitespace-nowrap">Studio<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right ml-1.5 inline-block size-3.5 align-[-2px] text-muted-foreground transition-transform duration-150 group-hover/studio:translate-x-0.5 group-hover/studio:text-foreground" aria-hidden="true">+<path d="M5 12h14">+</path>+<path d="m12 5 7 7-7 7">+</path>+</svg>+</span>+</p>+<p class="mt-0.5 text-[12px] leading-snug text-muted-foreground">One campaign in every size and format.</p>+</div>+</a>+</div>+<div class="w-[64%] shrink-0 snap-start sm:w-auto sm:max-lg:hidden">+<a class="group/studio flex min-w-0 flex-col gap-2 rounded-xl outline-none focus-visible:ring-2 focus-visible:ring-ring" href="/reframe">+<div class="relative isolate aspect-[4/3] overflow-hidden rounded-lg bg-muted">+<div class="absolute inset-0 ease-out motion-safe:transition-transform motion-safe:duration-[400ms] motion-safe:group-hover/studio:scale-[1.03]">+<picture>+<source type="image/avif" srcSet="/previews/presets/hd/320/peak/app-expand-image.avif?v=758e0a5e 320w, /previews/presets/hd/640/peak/app-expand-image.avif?v=758e0a5e 640w, /previews/presets/hd/1024/peak/app-expand-image.avif?v=758e0a5e 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw"/>+<img src="/previews/presets/peak/app-expand-image.jpg?v=b7eeda01" srcSet="/previews/presets/peak/thumbs/app-expand-image.jpg?v=b7eeda01 320w, /previews/presets/peak/app-expand-image.jpg?v=b7eeda01 512w, /previews/presets/hd/640/peak/app-expand-image.jpg?v=758e0a5e 640w, /previews/presets/hd/1024/peak/app-expand-image.jpg?v=758e0a5e 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw" alt="" width="512" height="384" draggable="false" loading="lazy" decoding="async" class="absolute inset-0 size-full object-cover" aria-hidden="true"/>+</picture>+</div>+</div>+<div class="min-w-0 px-0.5">+<p class="text-[14px] font-medium">+<span class="whitespace-nowrap">Reframe<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right ml-1.5 inline-block size-3.5 align-[-2px] text-muted-foreground transition-transform duration-150 group-hover/studio:translate-x-0.5 group-hover/studio:text-foreground" aria-hidden="true">+<path d="M5 12h14">+</path>+<path d="m12 5 7 7-7 7">+</path>+</svg>+</span>+</p>+<p class="mt-0.5 text-[12px] leading-snug text-muted-foreground">Any shape from any shot: vertical, square or wide.</p>+</div>+</a>+</div>+<div class="w-[64%] shrink-0 snap-start sm:w-auto sm:max-lg:hidden">+<a class="group/studio flex min-w-0 flex-col gap-2 rounded-xl outline-none focus-visible:ring-2 focus-visible:ring-ring" href="/kinetic">+<div class="relative isolate aspect-[4/3] overflow-hidden rounded-lg bg-muted">+<div class="absolute inset-0 ease-out motion-safe:transition-transform motion-safe:duration-[400ms] motion-safe:group-hover/studio:scale-[1.03]">+<picture>+<source type="image/avif" srcSet="/previews/presets/hd/320/peak/app-click-to-ad.avif?v=8196d725 320w, /previews/presets/hd/640/peak/app-click-to-ad.avif?v=8196d725 640w, /previews/presets/hd/1024/peak/app-click-to-ad.avif?v=8196d725 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw"/>+<img src="/previews/presets/peak/app-click-to-ad.jpg?v=8778f202" srcSet="/previews/presets/peak/thumbs/app-click-to-ad.jpg?v=8778f202 320w, /previews/presets/peak/app-click-to-ad.jpg?v=8778f202 512w, /previews/presets/hd/640/peak/app-click-to-ad.jpg?v=8196d725 640w, /previews/presets/hd/1024/peak/app-click-to-ad.jpg?v=8196d725 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw" alt="" width="512" height="384" draggable="false" loading="lazy" decoding="async" class="absolute inset-0 size-full object-cover" aria-hidden="true"/>+</picture>+</div>+</div>+<div class="min-w-0 px-0.5">+<p class="text-[14px] font-medium">Fuobe Kinetic <span class="whitespace-nowrap">Motion<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right ml-1.5 inline-block size-3.5 align-[-2px] text-muted-foreground transition-transform duration-150 group-hover/studio:translate-x-0.5 group-hover/studio:text-foreground" aria-hidden="true">+<path d="M5 12h14">+</path>+<path d="m12 5 7 7-7 7">+</path>+</svg>+</span>+</p>+<p class="mt-0.5 text-[12px] leading-snug text-muted-foreground">Motion graphics in your brand: titles, offers and end cards.</p>+</div>+</a>+</div>+<div class="w-[64%] shrink-0 snap-start sm:w-auto sm:max-lg:hidden">+<a class="group/studio flex min-w-0 flex-col gap-2 rounded-xl outline-none focus-visible:ring-2 focus-visible:ring-ring" href="/image">+<div class="relative isolate aspect-[4/3] overflow-hidden rounded-lg bg-muted">+<div class="absolute inset-0 ease-out motion-safe:transition-transform motion-safe:duration-[400ms] motion-safe:group-hover/studio:scale-[1.03]">+<picture>+<source type="image/avif" srcSet="/previews/presets/hd/320/app-poster.avif?v=6e4ab252 320w, /previews/presets/hd/640/app-poster.avif?v=6e4ab252 640w, /previews/presets/hd/1024/app-poster.avif?v=6e4ab252 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw"/>+<img src="/previews/presets/app-poster.jpg?v=891340f5" srcSet="/previews/presets/thumbs/app-poster.jpg?v=891340f5 320w, /previews/presets/app-poster.jpg?v=891340f5 512w, /previews/presets/hd/640/app-poster.jpg?v=6e4ab252 640w, /previews/presets/hd/1024/app-poster.jpg?v=6e4ab252 1024w" sizes="(min-width: 1024px) 25vw, (min-width: 640px) 50vw, 64vw" alt="" width="512" height="384" draggable="false" loading="lazy" decoding="async" class="absolute inset-0 size-full object-cover" aria-hidden="true"/>+</picture>+</div>+</div>+<div class="min-w-0 px-0.5">+<p class="text-[14px] font-medium">+<span class="whitespace-nowrap">Image<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right ml-1.5 inline-block size-3.5 align-[-2px] text-muted-foreground transition-transform duration-150 group-hover/studio:translate-x-0.5 group-hover/studio:text-foreground" aria-hidden="true">+<path d="M5 12h14">+</path>+<path d="m12 5 7 7-7 7">+</path>+</svg>+</span>+</p>+<p class="mt-0.5 text-[12px] leading-snug text-muted-foreground">Describe it and get a picture, from a portrait to a poster.</p>+</div>+</a>+</div></div><h3 class="mt-6 mb-2 font-sans text-[13px] text-muted-foreground">Also in Fuobe</h3><div class="fade-x scrollbar-none max-sm:-mx-4 max-sm:overflow-x-auto max-sm:px-4"><ul class="flex flex-wrap gap-1.5 max-sm:w-[72rem]"><li>-<a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/image">-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-image size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true">-<rect width="18" height="18" x="3" y="3" rx="2" ry="2">-</rect>-<circle cx="9" cy="9" r="2">-</circle>-<path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21">-</path>-</svg>Image</a>-</li>-<li><a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/video"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-video size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true"><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5">@@ -291,17 +468,6 @@</svg>Color grading</a></li><li>-<a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/storyboard">-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-gallery-horizontal size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true">-<path d="M2 3v18">-</path>-<rect width="12" height="18" x="6" y="3" rx="2">-</rect>-<path d="M22 3v18">-</path>-</svg>Storyboard</a>-</li>-<li><a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/canvas"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-network size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true"><rect x="16" y="16" width="6" height="6" rx="1">@@ -317,26 +483,6 @@</svg>Canvas</a></li><li>-<a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/shorts">-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-smartphone size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true">-<rect width="14" height="20" x="5" y="2" rx="2" ry="2">-</rect>-<path d="M12 18h.01">-</path>-</svg>Shorts Studio</a>-</li>-<li>-<a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/ads">-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-target size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true">-<circle cx="12" cy="12" r="10">-</circle>-<circle cx="12" cy="12" r="6">-</circle>-<circle cx="12" cy="12" r="2">-</circle>-</svg>Ads Studio</a>-</li>-<li><a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/moodboards"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-images size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true"><path d="m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16">@@ -350,15 +496,6 @@</svg>Moodboards</a></li><li>-<a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/photodump">-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-camera size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true">-<path d="M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z">-</path>-<circle cx="12" cy="13" r="3">-</circle>-</svg>Photodump</a>-</li>-<li><a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/fashion-factory"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shirt size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true"><path d="M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z">@@ -448,21 +585,6 @@</svg>Lipsync & avatars</a></li><li>-<a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/video-edit">-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-scissors size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true">-<circle cx="6" cy="6" r="3">-</circle>-<path d="M8.12 8.12 12 12">-</path>-<path d="M20 4 8.12 15.88">-</path>-<circle cx="6" cy="18" r="3">-</circle>-<path d="M14.8 14.8 20 20">-</path>-</svg>Edit video</a>-</li>-<li><a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/extend"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-fast-forward size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true"><path d="M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z">@@ -472,15 +594,6 @@</svg>Extend video</a></li><li>-<a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/reframe">-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-crop size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true">-<path d="M6 2v14a2 2 0 0 0 2 2h14">-</path>-<path d="M18 22V8a2 2 0 0 0-2-2H2">-</path>-</svg>Reframe</a>-</li>-<li><a class="group inline-flex h-8 items-center gap-1.5 rounded-full border px-3 text-[13px] transition-colors hover:bg-accent" href="/video-tools"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-layers lucide-layers-3 size-3.5 text-muted-foreground transition-colors group-hover:text-brand-text" aria-hidden="true"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z">diff --git a/tests/e2e/home-sections.mjs b/tests/e2e/home-sections.mjsindex bedf8255..1ec65ddc 100644--- a/tests/e2e/home-sections.mjs+++ b/tests/e2e/home-sections.mjs@@ -5,6 +5,9 @@// Usage: node tests/e2e/home-sections.mjs [appUrl] [--shots <dir>] (pnpm test:e2e:home-sections)//// At 390@3x (a phone) and 1440@2x (a laptop), as a guest:+// 0. Each row shows its cards in full rows: four rows wherever it's a grid (Camera motions and Effects 24 from xl, 16+// from lg, 12 from sm; Apps 12, six beside the before/after from xl and six under it; Studios and tools 16 from lg,+// 8 from sm), and every card on a phone's rail (24, 24, 12 and 16). Counted at 768 and 1024 too.// 1. Every card shown at that width has its still, at least as wide as its box shows it (times the pixel ratio, up to// the widest copy, 1024 px). On a phone that's every card of a sideways row too, loaded before it is swiped in// (useRailStills), and a card swiped in shows its still at once. A card hidden at that width loads nothing.@@ -34,6 +37,18 @@ const cap = (() => {if (!m) throw new Error("MAX_PLAYING not found in src/lib/preview-playback.ts");return { narrow: Number(m[1]), wide: Number(m[2]) };})();+/**+ * The cards each row shows, row by row from the top, at a viewport width (a phone's rail is one row). Apps from xl: three+ * and three beside the before/after, then six under it.+ */+const ROWS = (width) =>+ width < 640+ ? { "home-motions": [24], "home-effects": [24], "home-apps": [12], "home-studios": [16] }+ : width < 1024+ ? { "home-motions": [3, 3, 3, 3], "home-effects": [3, 3, 3, 3], "home-apps": [3, 3, 3, 3], "home-studios": [2, 2, 2, 2] }+ : width < 1280+ ? { "home-motions": [4, 4, 4, 4], "home-effects": [4, 4, 4, 4], "home-apps": [4, 4, 4], "home-studios": [4, 4, 4, 4] }+ : { "home-motions": [6, 6, 6, 6], "home-effects": [6, 6, 6, 6], "home-apps": [3, 3, 6], "home-studios": [4, 4, 4, 4] };/** The widest copy of a cover's still (preset-hd.generated.ts). */const WIDEST = 1024;/** How long a clip may take to load and reach its place in the shared cycle (STAGGER_CYCLE, 2.8 s) before it plays. */@@ -63,7 +78,8 @@ const readCards = (sections) =>sections.flatMap((id) => {const section = document.getElementById(id).closest("section");const rail = section.querySelector(".snap-x");- const clip = rail.getBoundingClientRect();+ // From xl the Apps cards sit in the section's own grid (their row is display: contents, which has no box).+ const clip = (getComputedStyle(rail).display === "contents" ? section : rail).getBoundingClientRect();return [...rail.children].filter((item) => item.getClientRects().length > 0).map((item) => {@@ -111,6 +127,37 @@ async function stillWidths(page, srcs) {/** The device pixels a 4:3 picture covering this box needs (media-pick.ts coverWidth). */const need = ([w, h], dpr) => Math.ceil(Math.max(w, h * (4 / 3)) * dpr);+/** How many cards each row shows, row by row (cards whose tops line up are a row), and how many it holds in all. */+const readRows = (sections) =>+ Object.fromEntries(+ sections.map((id) => {+ const rail = document.getElementById(id).closest("section").querySelector(".snap-x");+ const shown = [...rail.children].filter((item) => item.getClientRects().length > 0);+ const tops = new Map();+ for (const item of shown) {+ const top = Math.round(item.getBoundingClientRect().top + scrollY);+ tops.set(top, (tops.get(top) ?? 0) + 1);+ }+ return [id, { rows: [...tops.entries()].sort((a, b) => a[0] - b[0]).map(([, n]) => n), all: rail.children.length }];+ }),+ );++/** Each row's cards, row by row, at this width: as many as ROWS says, every row full. */+async function checkRows(page, label, width) {+ for (const id of SECTIONS) {+ await scrollToSection(page, id);+ await page.waitForTimeout(150);+ }+ const seen = await page.evaluate(readRows, SECTIONS);+ const want = ROWS(width);+ for (const id of SECTIONS)+ check(+ `${label} ${id}: ${want[id].reduce((a, b) => a + b, 0)} cards in ${want[id].length} full row${want[id].length > 1 ? "s" : ""}`,+ JSON.stringify(seen[id].rows) === JSON.stringify(want[id]),+ `rows ${JSON.stringify(seen[id].rows)} of ${seen[id].all}`,+ );+}+async function scrollToSection(page, id) {await page.evaluate((i) => {const s = document.getElementById(i).closest("section");@@ -174,6 +221,9 @@ async function run(device, label, dpr, max) {// The rows sit in that order down the page: Camera motions first, then Effects.const tops = await page.evaluate((ids) => ids.map((i) => document.getElementById(i).closest("section").getBoundingClientRect().top), SECTIONS);check(`${label}: the rows come in order`, tops.every((t, i) => i === 0 || t > tops[i - 1]), SECTIONS.map((id, i) => `${id} ${Math.round(tops[i])}`).join(" < "));+ await checkRows(page, label, device.viewport.width);+ await page.evaluate(() => window.scrollTo(0, 0));+ await page.waitForTimeout(600);// The rows come into view one by one, as a reader scrolls down to them.for (const id of SECTIONS) {@@ -295,6 +345,15 @@ async function stillsOnly(device, label, dpr, opts) {}console.log(`Home's card rows at ${app} (caps: ${cap.narrow} on a phone, ${cap.wide} wider)`);+// A tablet held up and turned: the counts only.+for (const width of [768, 1024]) {+ const ctx = await browser.newContext({ viewport: { width, height: 1000 } });+ const page = await ctx.newPage();+ await page.goto(`${app}/?e2e=${Date.now()}`, { waitUntil: "load" });+ await page.waitForTimeout(800);+ await checkRows(page, String(width), width);+ await ctx.close();+}await run(PHONE, "390@3x", 3, cap.narrow);await run(DESKTOP, "1440@2x", 2, cap.wide);await stillsOnly(PHONE, "390@3x reduced motion", 3, { reducedMotion: true });diff --git a/tests/home-showcase.test.ts b/tests/home-showcase.test.tsindex 1c0649c1..823ebef2 100644--- a/tests/home-showcase.test.ts+++ b/tests/home-showcase.test.ts@@ -7,6 +7,7 @@ import { CAMERA_MOVES } from "@/lib/catalog/cinema";import { TEMPLATES } from "@/lib/catalog/marketing";import { ASSIST_PROMPT_MAX, ASSIST_SUGGESTIONS, assistDraft } from "@/lib/assist";import { HUB_MODES } from "@/lib/hubs";+import { NAV_ENTRIES } from "@/lib/nav-model";import {HOME_BEFORE_AFTER,HOME_CAPTION_MAX,@@ -183,6 +184,8 @@ describe("Home's showcase", () => {const shown = [...home.studios.map((s) => s.href), ...home.pills.map((p) => p.href), ...HOME_OWN_SECTIONS];expect(new Set(shown).size).toBe(shown.length);expect(new Set(shown)).toEqual(new Set([...create, ...studios].map((i) => i.href)));+ // Every studio of the navigation model is one of them, so each has a card or a pill and is counted (Kinetic Motion).+ for (const e of NAV_ENTRIES.filter((x) => x.kind === "studio" && x.group)) expect(shown, e.id).toContain(e.href);// The pills keep the sidebar's order and labels.const order = [...create, ...studios].map((i) => i.href);expect(home.pills.map((p) => order.indexOf(p.href))).toEqual(home.pills.map((p) => order.indexOf(p.href)).sort((a, b) => a - b));diff --git a/tests/nav-model.test.ts b/tests/nav-model.test.tsindex 7b63e684..ecda6df7 100644--- a/tests/nav-model.test.ts+++ b/tests/nav-model.test.ts@@ -37,7 +37,7 @@ const pathOf = (href: string) => href.split(/[?#]/)[0];const q = (s = "") => new URLSearchParams(s);const KINDS: (ViewerKind | undefined)[] = ["guest", "account", "owner", undefined];-/** The sidebar's 44 rows before the navigation model (origin/main), in their groups and order. */+/** The sidebar's 44 rows before the navigation model (origin/main), in their groups and order, and Kinetic Motion since. */const OLD_NAV: [string, [string, string][]][] = [["Create",@@ -73,6 +73,7 @@ const OLD_NAV: [string, [string, string][]][] = [["/mixed-media", "Mixed Media"],["/marketing", "Marketing Studio"],["/ads", "Ads Studio"],+ ["/kinetic", "Fuobe Kinetic Motion"],["/moodboards", "Moodboards"],["/photodump", "Photodump"],["/fashion-factory", "Fashion Factory"],@@ -140,9 +141,9 @@ describe("nav model: entries", () => {for (const [, rows] of OLD_NAV) for (const [href, label] of rows) expect(NAV_ENTRIES.find((e) => e.href === href)?.label, href).toBe(label);});- it("derives the four groups (Create, Library, Studios, More) exactly as they were: 44 rows", () => {+ it("derives the four groups (Create, Library, Studios, More) exactly as they were, with Kinetic Motion: 45 rows", () => {expect(NAV.map((g) => [g.label, g.items.map((i) => [i.href, i.label])])).toEqual(OLD_NAV);- expect(NAV.flatMap((g) => g.items)).toHaveLength(44);+ expect(NAV.flatMap((g) => g.items)).toHaveLength(45);expect(NAV.find((g) => g.label === "Studios")?.collapsible).toBe(true);// The same rows prefetch eagerly, with an icon each and search words.expect(diff --git a/tests/preset-featured.test.ts b/tests/preset-featured.test.tsindex 850517fe..26c6f6c5 100644--- a/tests/preset-featured.test.ts+++ b/tests/preset-featured.test.ts@@ -47,9 +47,13 @@ describe("Featured order", () => {expect(featuredAll(items).map((i) => i.id)).toEqual([FEATURED.effect[0][0], last, "effect-new-b", "effect-new-a"]);});- it("opens Home's wall and every row's first cards on the first band", () => {- const first = [...HOME_WALL, ...HOME_MOTIONS, ...HOME_REVEALS, ...HOME_BEFORE_AFTER, ...HOME_EFFECTS.slice(0, 6)].map((t) => t.id);+ it("opens Home's wall and every row's first cards on the first band, and takes none from the last", () => {+ // Each row's first row of six where it's widest (Camera motions its first two), and the six beside the before/after.+ const first = [...HOME_WALL, ...HOME_MOTIONS.slice(0, 12), ...HOME_REVEALS.slice(0, 6), ...HOME_BEFORE_AFTER, ...HOME_EFFECTS.slice(0, 6)].map((t) => t.id);for (const id of first) expect(featuredBand(id), id).toBe(0);+ // The rows under them: premium first, so nothing from the last band (the novelty effects: flames, wings, clones).+ const later = [...HOME_MOTIONS.slice(12), ...HOME_REVEALS.slice(6), ...HOME_EFFECTS.slice(12)].map((t) => t.id);+ for (const id of later) expect(featuredBand(id), id).toBeLessThan(FEATURED_BANDS - 1);});it("opens each gallery on the first band, a category per card, with the tabs in catalog order", () => {