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: latest release first, MiniMax H3 Image with a card of its pictures
Adarshabf8599c800d
diff --git a/public/previews/release/h3-image/chocolate-dome.480.avif b/public/previews/release/h3-image/chocolate-dome.480.avifnew file mode 100644index 00000000..d475019fBinary files /dev/null and b/public/previews/release/h3-image/chocolate-dome.480.avif differdiff --git a/public/previews/release/h3-image/chocolate-dome.480.webp b/public/previews/release/h3-image/chocolate-dome.480.webpnew file mode 100644index 00000000..2c1ed71dBinary files /dev/null and b/public/previews/release/h3-image/chocolate-dome.480.webp differdiff --git a/public/previews/release/h3-image/chocolate-dome.960.avif b/public/previews/release/h3-image/chocolate-dome.960.avifnew file mode 100644index 00000000..7fe35e3dBinary files /dev/null and b/public/previews/release/h3-image/chocolate-dome.960.avif differdiff --git a/public/previews/release/h3-image/clay-island.480.avif b/public/previews/release/h3-image/clay-island.480.avifnew file mode 100644index 00000000..fcf65888Binary files /dev/null and b/public/previews/release/h3-image/clay-island.480.avif differdiff --git a/public/previews/release/h3-image/clay-island.480.webp b/public/previews/release/h3-image/clay-island.480.webpnew file mode 100644index 00000000..7198c9b3Binary files /dev/null and b/public/previews/release/h3-image/clay-island.480.webp differdiff --git a/public/previews/release/h3-image/clay-island.960.avif b/public/previews/release/h3-image/clay-island.960.avifnew file mode 100644index 00000000..635f2e32Binary files /dev/null and b/public/previews/release/h3-image/clay-island.960.avif differdiff --git a/public/previews/release/h3-image/cliff-villa.480.avif b/public/previews/release/h3-image/cliff-villa.480.avifnew file mode 100644index 00000000..d0dada2dBinary files /dev/null and b/public/previews/release/h3-image/cliff-villa.480.avif differdiff --git a/public/previews/release/h3-image/cliff-villa.480.webp b/public/previews/release/h3-image/cliff-villa.480.webpnew file mode 100644index 00000000..17bb11deBinary files /dev/null and b/public/previews/release/h3-image/cliff-villa.480.webp differdiff --git a/public/previews/release/h3-image/cliff-villa.960.avif b/public/previews/release/h3-image/cliff-villa.960.avifnew file mode 100644index 00000000..1c1a2524Binary files /dev/null and b/public/previews/release/h3-image/cliff-villa.960.avif differdiff --git a/public/previews/release/h3-image/couture-dunes.480.avif b/public/previews/release/h3-image/couture-dunes.480.avifnew file mode 100644index 00000000..ad28335aBinary files /dev/null and b/public/previews/release/h3-image/couture-dunes.480.avif differdiff --git a/public/previews/release/h3-image/couture-dunes.480.webp b/public/previews/release/h3-image/couture-dunes.480.webpnew file mode 100644index 00000000..b964285eBinary files /dev/null and b/public/previews/release/h3-image/couture-dunes.480.webp differdiff --git a/public/previews/release/h3-image/couture-dunes.960.avif b/public/previews/release/h3-image/couture-dunes.960.avifnew file mode 100644index 00000000..62d74ae6Binary files /dev/null and b/public/previews/release/h3-image/couture-dunes.960.avif differdiff --git a/public/previews/release/h3-image/day-zero-poster.480.avif b/public/previews/release/h3-image/day-zero-poster.480.avifnew file mode 100644index 00000000..5cc25222Binary files /dev/null and b/public/previews/release/h3-image/day-zero-poster.480.avif differdiff --git a/public/previews/release/h3-image/day-zero-poster.480.webp b/public/previews/release/h3-image/day-zero-poster.480.webpnew file mode 100644index 00000000..7cdb39f8Binary files /dev/null and b/public/previews/release/h3-image/day-zero-poster.480.webp differdiff --git a/public/previews/release/h3-image/day-zero-poster.960.avif b/public/previews/release/h3-image/day-zero-poster.960.avifnew file mode 100644index 00000000..e5ee0595Binary files /dev/null and b/public/previews/release/h3-image/day-zero-poster.960.avif differdiff --git a/public/previews/release/h3-image/emerald-watch.480.avif b/public/previews/release/h3-image/emerald-watch.480.avifnew file mode 100644index 00000000..fb00e4e4Binary files /dev/null and b/public/previews/release/h3-image/emerald-watch.480.avif differdiff --git a/public/previews/release/h3-image/emerald-watch.480.webp b/public/previews/release/h3-image/emerald-watch.480.webpnew file mode 100644index 00000000..1a83d12cBinary files /dev/null and b/public/previews/release/h3-image/emerald-watch.480.webp differdiff --git a/public/previews/release/h3-image/emerald-watch.960.avif b/public/previews/release/h3-image/emerald-watch.960.avifnew file mode 100644index 00000000..aab3ef5bBinary files /dev/null and b/public/previews/release/h3-image/emerald-watch.960.avif differdiff --git a/public/previews/release/h3-image/gold-leaf-beauty.480.avif b/public/previews/release/h3-image/gold-leaf-beauty.480.avifnew file mode 100644index 00000000..552767a2Binary files /dev/null and b/public/previews/release/h3-image/gold-leaf-beauty.480.avif differdiff --git a/public/previews/release/h3-image/gold-leaf-beauty.480.webp b/public/previews/release/h3-image/gold-leaf-beauty.480.webpnew file mode 100644index 00000000..53a78313Binary files /dev/null and b/public/previews/release/h3-image/gold-leaf-beauty.480.webp differdiff --git a/public/previews/release/h3-image/gold-leaf-beauty.960.avif b/public/previews/release/h3-image/gold-leaf-beauty.960.avifnew file mode 100644index 00000000..be7d5d1dBinary files /dev/null and b/public/previews/release/h3-image/gold-leaf-beauty.960.avif differdiff --git a/public/previews/release/h3-image/harbour-racer.480.avif b/public/previews/release/h3-image/harbour-racer.480.avifnew file mode 100644index 00000000..851420cdBinary files /dev/null and b/public/previews/release/h3-image/harbour-racer.480.avif differdiff --git a/public/previews/release/h3-image/harbour-racer.480.webp b/public/previews/release/h3-image/harbour-racer.480.webpnew file mode 100644index 00000000..a32adcddBinary files /dev/null and b/public/previews/release/h3-image/harbour-racer.480.webp differdiff --git a/public/previews/release/h3-image/harbour-racer.960.avif b/public/previews/release/h3-image/harbour-racer.960.avifnew file mode 100644index 00000000..b0b97519Binary files /dev/null and b/public/previews/release/h3-image/harbour-racer.960.avif differdiff --git a/public/previews/release/h3-image/japandi-room.480.avif b/public/previews/release/h3-image/japandi-room.480.avifnew file mode 100644index 00000000..f6f15435Binary files /dev/null and b/public/previews/release/h3-image/japandi-room.480.avif differdiff --git a/public/previews/release/h3-image/japandi-room.480.webp b/public/previews/release/h3-image/japandi-room.480.webpnew file mode 100644index 00000000..a8bb1fb9Binary files /dev/null and b/public/previews/release/h3-image/japandi-room.480.webp differdiff --git a/public/previews/release/h3-image/japandi-room.960.avif b/public/previews/release/h3-image/japandi-room.960.avifnew file mode 100644index 00000000..14e10bebBinary files /dev/null and b/public/previews/release/h3-image/japandi-room.960.avif differdiff --git a/public/previews/release/h3-image/peony-watercolor.480.avif b/public/previews/release/h3-image/peony-watercolor.480.avifnew file mode 100644index 00000000..b6fe74daBinary files /dev/null and b/public/previews/release/h3-image/peony-watercolor.480.avif differdiff --git a/public/previews/release/h3-image/peony-watercolor.480.webp b/public/previews/release/h3-image/peony-watercolor.480.webpnew file mode 100644index 00000000..f88446d8Binary files /dev/null and b/public/previews/release/h3-image/peony-watercolor.480.webp differdiff --git a/public/previews/release/h3-image/peony-watercolor.960.avif b/public/previews/release/h3-image/peony-watercolor.960.avifnew file mode 100644index 00000000..0fe56c43Binary files /dev/null and b/public/previews/release/h3-image/peony-watercolor.960.avif differdiff --git a/public/previews/release/h3-image/ringed-planet.480.avif b/public/previews/release/h3-image/ringed-planet.480.avifnew file mode 100644index 00000000..09e185faBinary files /dev/null and b/public/previews/release/h3-image/ringed-planet.480.avif differdiff --git a/public/previews/release/h3-image/ringed-planet.480.webp b/public/previews/release/h3-image/ringed-planet.480.webpnew file mode 100644index 00000000..6e8eb343Binary files /dev/null and b/public/previews/release/h3-image/ringed-planet.480.webp differdiff --git a/public/previews/release/h3-image/ringed-planet.960.avif b/public/previews/release/h3-image/ringed-planet.960.avifnew file mode 100644index 00000000..940c8f58Binary files /dev/null and b/public/previews/release/h3-image/ringed-planet.960.avif differdiff --git a/public/previews/release/h3-image/rooftop-anime.480.avif b/public/previews/release/h3-image/rooftop-anime.480.avifnew file mode 100644index 00000000..20f77148Binary files /dev/null and b/public/previews/release/h3-image/rooftop-anime.480.avif differdiff --git a/public/previews/release/h3-image/rooftop-anime.480.webp b/public/previews/release/h3-image/rooftop-anime.480.webpnew file mode 100644index 00000000..efa88b1cBinary files /dev/null and b/public/previews/release/h3-image/rooftop-anime.480.webp differdiff --git a/public/previews/release/h3-image/rooftop-anime.960.avif b/public/previews/release/h3-image/rooftop-anime.960.avifnew file mode 100644index 00000000..a96e617dBinary files /dev/null and b/public/previews/release/h3-image/rooftop-anime.960.avif differdiff --git a/public/previews/release/h3-image/sky-cathedral.480.avif b/public/previews/release/h3-image/sky-cathedral.480.avifnew file mode 100644index 00000000..6f2e84b1Binary files /dev/null and b/public/previews/release/h3-image/sky-cathedral.480.avif differdiff --git a/public/previews/release/h3-image/sky-cathedral.480.webp b/public/previews/release/h3-image/sky-cathedral.480.webpnew file mode 100644index 00000000..88a6357eBinary files /dev/null and b/public/previews/release/h3-image/sky-cathedral.480.webp differdiff --git a/public/previews/release/h3-image/sky-cathedral.960.avif b/public/previews/release/h3-image/sky-cathedral.960.avifnew file mode 100644index 00000000..10c5d4c4Binary files /dev/null and b/public/previews/release/h3-image/sky-cathedral.960.avif differdiff --git a/public/previews/release/h3-image/snow-leopard.480.avif b/public/previews/release/h3-image/snow-leopard.480.avifnew file mode 100644index 00000000..ea9cbfaeBinary files /dev/null and b/public/previews/release/h3-image/snow-leopard.480.avif differdiff --git a/public/previews/release/h3-image/snow-leopard.480.webp b/public/previews/release/h3-image/snow-leopard.480.webpnew file mode 100644index 00000000..7d341830Binary files /dev/null and b/public/previews/release/h3-image/snow-leopard.480.webp differdiff --git a/public/previews/release/h3-image/snow-leopard.960.avif b/public/previews/release/h3-image/snow-leopard.960.avifnew file mode 100644index 00000000..acd9dfa9Binary files /dev/null and b/public/previews/release/h3-image/snow-leopard.960.avif differdiff --git a/src/app/(studio)/page.tsx b/src/app/(studio)/page.tsxindex c8eb1b82..00e16d03 100644--- a/src/app/(studio)/page.tsx+++ b/src/app/(studio)/page.tsx@@ -7,6 +7,7 @@ import {LiveEditSection,MotionsSection,OpenSourceSection,+ ReleaseSection,StartSection,StudiosSection,} from "@/components/home/home-sections";@@ -48,7 +49,8 @@ export default async function Page() {prices={starterPriceLine()}quotes={startQuotes()}>- {/* Live edit is the highlight: its own section comes first, right under the first screen and the composer. */}+ {/* The newest open model comes first, right under the first screen and the composer; then Live edit, the highlight. */}+ <ReleaseSection /><LiveEditSection />{/* Body Double: everyone in a shot as their double, and Live from the camera. */}<BodyDoubleSection />diff --git a/src/app/globals.css b/src/app/globals.cssindex cf3e5461..eb4316a2 100644--- a/src/app/globals.css+++ b/src/app/globals.css@@ -6,6 +6,7 @@@import "./motion.css";@import "./tab-row.css";@import "./fx-compare.css";+@import "./release-art.css";@custom-variant dark (&:is(.dark *));/* Hover for the app frame's controls: like hover:, but only while the mouse leads (nav-states.css), so a control under adiff --git a/src/app/release-art.css b/src/app/release-art.cssnew file mode 100644index 00000000..9237c272--- /dev/null+++ b/src/app/release-art.css@@ -0,0 +1,149 @@+/*+ * Home's latest-release card (home-sections.tsx: ReleaseSection, components/home/release-art.tsx). Two rows of pictures+ * at one height, each tile as wide as its picture's shape (--ar), so nothing moves when a picture comes in. Each row's+ * track holds its tiles twice and drifts by half its width, so it loops without a seam; the second row drifts the other+ * way. A mouse over the card pauses both rows; keyboard focus in it stops them at their start, and the row scrolls to the+ * focused tile. data-paused (Pause previews, or off screen) pauses them. With reduced motion nothing moves: the copies+ * are gone and each row scrolls sideways. In @layer components, so the card's own utilities win.+ */+@layer components {+ .rart {+ --rart-h: 132px;+ --rart-gap: 8px;+ display: grid;+ gap: var(--rart-gap);+ padding-block: var(--rart-gap);+ overflow: hidden;+ border-radius: 22px;+ background: var(--media);+ box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.08);+ isolation: isolate;+ }+ @media (min-width: 640px) {+ .rart {+ --rart-h: 184px;+ --rart-gap: 10px;+ border-radius: 28px;+ }+ }+ @media (min-width: 1024px) {+ .rart {+ --rart-h: 212px;+ }+ }++ .rart-row {+ overflow-x: auto;+ overflow-y: hidden;+ padding-left: var(--rart-gap);+ scrollbar-width: none;+ overscroll-behavior-x: contain;+ /* The pictures come in and leave through a soft edge. */+ mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);+ }+ .rart-row::-webkit-scrollbar {+ display: none;+ }+ .rart-track {+ display: flex;+ width: max-content;+ }+ .rart-track > li {+ flex: none;+ height: var(--rart-h);+ aspect-ratio: var(--ar);+ margin-right: var(--rart-gap);+ }++ .rart-tile {+ position: relative;+ display: block;+ height: 100%;+ overflow: hidden;+ border-radius: 14px;+ background: oklch(1 0 0 / 0.05);+ outline: none;+ -webkit-tap-highlight-color: transparent;+ }+ .rart-tile img {+ display: block;+ width: 100%;+ height: 100%;+ object-fit: cover;+ }+ /* The focus ring sits inside the tile: the row clips anything outside it. */+ .rart-tile::after {+ content: "";+ position: absolute;+ inset: 0;+ border-radius: inherit;+ box-shadow:+ inset 0 0 0 2px #fff,+ inset 0 0 0 4px var(--ring);+ opacity: 0;+ pointer-events: none;+ }+ .rart-tile:focus-visible::after {+ opacity: 1;+ }+ .rart-cap {+ position: absolute;+ inset-inline: 0;+ bottom: 0;+ padding: 28px 10px 9px;+ background: linear-gradient(to bottom, transparent, oklch(0 0 0 / 0.68));+ color: #fff;+ font-size: 12px;+ font-weight: 500;+ line-height: 1.25;+ opacity: 0;+ pointer-events: none;+ }+ .rart-tile:hover .rart-cap,+ .rart-tile:focus-visible .rart-cap {+ opacity: 1;+ }++ @media (prefers-reduced-motion: no-preference) {+ .rart-track {+ animation: rart-drift var(--rart-dur, 100s) linear infinite;+ }+ .rart-row[data-dir="back"] .rart-track {+ animation-direction: reverse;+ }+ .rart:hover .rart-track,+ .rart[data-paused] .rart-track {+ animation-play-state: paused;+ }+ .rart:has(:focus-visible) .rart-track {+ animation: none;+ }+ .rart-tile img {+ transition: scale 700ms cubic-bezier(0.2, 0, 0, 1);+ }+ .rart-tile:hover img {+ scale: 1.04;+ }+ .rart-cap {+ translate: 0 4px;+ transition:+ opacity 200ms ease-out,+ translate 200ms ease-out;+ }+ .rart-tile:hover .rart-cap,+ .rart-tile:focus-visible .rart-cap {+ translate: 0 0;+ }+ }+ @media (prefers-reduced-motion: reduce) {+ .rart-track > [data-copy] {+ display: none;+ }+ }+}++@keyframes rart-drift {+ to {+ transform: translateX(-50%);+ }+}diff --git a/src/components/home/home-sections.tsx b/src/components/home/home-sections.tsxindex 693bf7c5..d0b8a03e 100644--- a/src/components/home/home-sections.tsx+++ b/src/components/home/home-sections.tsx@@ -28,7 +28,8 @@ import { PresetCard } from "@/components/preset-gallery";import { ASSIST_SUGGESTIONS } from "@/lib/assist";import { WORKFLOWS_ON_GITHUB } from "@/lib/comfy-install";import { FUOBE_REPO } from "@/lib/connections";-import { HOME_BODY_DOUBLE, HOME_LIVE, presetHref, type HomeShowcase } from "@/lib/home-showcase";+import { ReleaseArtCard } from "@/components/home/release-art";+import { HOME_BODY_DOUBLE, HOME_LIVE, HOME_RELEASE, presetHref, releaseArtSrc, releaseHref, releasePill, type HomeShowcase, type ReleaseArt } from "@/lib/home-showcase";import { area } from "@/lib/nav-areas";import { studioCount } from "@/lib/nav-model";import { staggered, type AutoPlay } from "@/lib/preview-playback";@@ -258,6 +259,85 @@ export function AppsSection({ facts, beforeAfter, reveals, start }: Pick<HomeSho);}+/** A release tile's width at each row height (release-art.css: 132 px, 184 px from sm, 212 px from lg), for its srcset. */+const artSizes = (ar: number) => `(min-width: 1024px) ${Math.ceil(212 * ar)}px, (min-width: 640px) ${Math.ceil(184 * ar)}px, ${Math.ceil(132 * ar)}px`;++/** One of the release's pictures: a link that opens the Image studio on the model with its prompt filled in. */+function ReleaseTile({ art, copy }: { art: ReleaseArt; copy?: boolean }) {+ const ar = art.width / art.height;+ const sizes = artSizes(ar);+ const name = `Make your own: ${art.label}`;+ return (+ // A row's second copy (the loop) is for the eye only: out of the tab order and the accessibility tree.+ <li style={{ "--ar": `${art.width} / ${art.height}` } as React.CSSProperties} data-copy={copy || undefined} aria-hidden={copy || undefined} inert={copy || undefined}>+ <Link href={releaseHref("image", art.prompt)} prefetch={false} aria-label={name} className="rart-tile">+ <picture>+ <source type="image/avif" srcSet={`${releaseArtSrc(art.slug, 480, "avif")} 480w, ${releaseArtSrc(art.slug, 960, "avif")} 960w`} sizes={sizes} />+ <img src={releaseArtSrc(art.slug, 480, "webp")} width={art.width} height={art.height} alt="" loading="lazy" decoding="async" draggable={false} />+ </picture>+ <span aria-hidden className="rart-cap">+ Make your own+ </span>+ </Link>+ </li>+ );+}++/**+ * The newest open model, first under the first screen: what it is, two ways in, and a card of pictures it made, each a+ * way to start from its prompt (HOME_RELEASE in home-showcase.ts; the next release swaps the data and the pictures).+ */+export function ReleaseSection() {+ const r = HOME_RELEASE;+ const rows = [r.art.filter((_, i) => i % 2 === 0), r.art.filter((_, i) => i % 2 === 1)];+ return (+ <section aria-labelledby="home-release" data-reveal className={cn(SECTION, "[--cv:581px] sm:[--cv:651px] md:[--cv:643px] lg:[--cv:639px] xl:[--cv:639px]")}>+ <div className="flex flex-col gap-5 lg:flex-row lg:items-end lg:justify-between lg:gap-10">+ <div className="min-w-0 max-w-[60ch]">+ <span className="inline-flex items-center gap-1.5 rounded-full bg-highlight px-2 py-0.5 text-[11px] font-semibold text-highlight-foreground">{releasePill(r.released)}</span>+ <h2 id="home-release" className={cn(H2, "mt-3")}>+ {r.name}+ </h2>+ <p className={LINE}>{r.line}</p>+ </div>+ <div className="flex shrink-0 flex-wrap items-center gap-x-5 gap-y-3">+ <IntentLink href={releaseHref("image")} className="group inline-flex h-10 items-center gap-2 rounded-full bg-primary px-5 text-[14px] font-medium text-primary-foreground transition hover:opacity-90">+ Try it now <ArrowRight className="size-4 transition-transform duration-150 group-hover:translate-x-0.5" />+ </IntentLink>+ <IntentLink+ href={releaseHref("edit")}+ // 44 px to tap: its hit area reaches past the words.+ className="relative text-[14px] font-medium underline decoration-foreground/25 underline-offset-4 transition-colors after:absolute after:-inset-x-2 after:-inset-y-3 after:content-[''] hover:decoration-foreground"+ >+ Edit a photo with it+ </IntentLink>+ </div>+ </div>+ <ReleaseArtCard label={`Pictures made with ${r.name}`} className="mt-6">+ {rows.map((row, i) => (+ <div key={i} className="rart-row" data-dir={i === 1 ? "back" : undefined} style={{ "--rart-dur": `${i === 1 ? 118 : 100}s` } as React.CSSProperties}>+ <ul className="rart-track">+ {row.map((a) => (+ <ReleaseTile key={a.slug} art={a} />+ ))}+ {row.map((a) => (+ <ReleaseTile key={`${a.slug}-copy`} art={a} copy />+ ))}+ </ul>+ </div>+ ))}+ </ReleaseArtCard>+ <div className="mt-3 flex items-center justify-between gap-3 text-[12px] text-muted-foreground">+ <p className="min-w-0">+ <span className="sm:hidden">Made with {r.name}. Pick one to start from it.</span>+ <span className="max-sm:hidden">Every picture here was made with {r.name}. Pick one to start from its prompt.</span>+ </p>+ <PausePreviews />+ </div>+ </section>+ );+}+/*** Live edit's moment: a recorded session plays beside what it does and one way in. The player is the only island; it* pauses off screen, and nothing here reaches a GPU.diff --git a/src/components/home/release-art.tsx b/src/components/home/release-art.tsxnew file mode 100644index 00000000..f33dd96b--- /dev/null+++ b/src/components/home/release-art.tsx@@ -0,0 +1,27 @@+"use client";++import { useEffect, useRef, useState } from "react";+import { usePreviewsPaused } from "@/components/preset-preview";+import { cn } from "@/lib/utils";++/**+ * The latest release's card (release-art.css draws it): its rows drift while it is on screen, and stop with the site's+ * Pause previews (one setting for every preview). The tiles themselves are server-rendered children.+ */+export function ReleaseArtCard({ label, className, children }: { label: string; className?: string; children: React.ReactNode }) {+ const ref = useRef<HTMLDivElement>(null);+ const paused = usePreviewsPaused();+ const [onScreen, setOnScreen] = useState(true);+ useEffect(() => {+ const el = ref.current;+ if (!el || typeof IntersectionObserver === "undefined") return;+ const io = new IntersectionObserver(([e]) => setOnScreen(e.isIntersecting), { rootMargin: "120px 0px" });+ io.observe(el);+ return () => io.disconnect();+ }, []);+ return (+ <div ref={ref} role="group" aria-label={label} data-paused={paused || !onScreen ? "" : undefined} className={cn("rart", className)}>+ {children}+ </div>+ );+}diff --git a/src/lib/home-showcase.ts b/src/lib/home-showcase.tsindex 1fa94523..42346880 100644--- a/src/lib/home-showcase.ts+++ b/src/lib/home-showcase.ts@@ -185,6 +185,64 @@ export const HOME_BODY_DOUBLE = {line: "Every person in a photo or a clip becomes their double, clothes and hair included, with a full 3D body you can animate. Or go live with your camera, right in the browser.",};+/** A picture in the latest release's card: its file stem, its original size, and the prompt it was made from. */+export interface ReleaseArt {+ slug: string;+ /** What it shows, for its link's name ("Make your own: …"). */+ label: string;+ width: number;+ height: number;+ prompt: string;+}++/**+ * The newest open model's section, first under Home's first screen (home-sections.tsx: ReleaseSection). The next release+ * swaps this object and the pictures in `dir` (`<slug>.480.avif`, `<slug>.960.avif` and `<slug>.480.webp` each). `art`+ * leads with people and fashion; the card shows it in two rows, alternately (the 1st, 3rd, 5th… on top).+ */+export const HOME_RELEASE = {+ modelId: "oss-minimax-h3-image",+ name: "MiniMax H3 Image",+ vendor: "MiniMax",+ /** The day the model came out (UTC), as YYYY-MM-DD. */+ released: "2026-11-10",+ line: "MiniMax's new image model, on Fuobe the day it came out. Photoreal people and products, painting, illustration and exact lettering, up to 4096 × 4096.",+ dir: "/previews/release/h3-image",+ art: [+ { slug: "couture-dunes", label: "couture gown on desert dunes", width: 1792, height: 2368, prompt: "A haute couture editorial photograph of a striking fashion model with luminous dark skin and a sleek high bun, wearing a sculptural crimson silk gown whose long train sweeps across rippled golden sand dunes. Golden-hour sun low behind her, the fabric lifted by the wind into a dramatic arc, deep blue sky, long soft shadows on the dunes. Shot on medium format, 50mm, rich saturated color, luxury fashion campaign." },+ { slug: "gold-leaf-beauty", label: "gold leaf beauty close-up", width: 1792, height: 2368, prompt: "A high-end beauty close-up of a strikingly beautiful model with flawless warm skin, glossy nude lips and delicate gold leaf placed along her cheekbones and eyelids, her eyes looking softly into the lens. Clean studio light with a soft glow, a warm champagne backdrop, extreme detail in the lashes and skin texture, luxury cosmetics campaign." },+ { slug: "sky-cathedral", label: "cathedral city above the clouds", width: 2720, height: 1536, prompt: "A Romantic-era oil painting of a vast golden cathedral city floating above a sea of clouds at sunrise, waterfalls pouring from its edges into the mist, flocks of white birds circling the spires. Visible brushstrokes, luminous warm light against cool blue shadows, epic sense of scale, museum masterpiece in the style of nineteenth-century landscape painting." },+ { slug: "snow-leopard", label: "snow leopard in falling snow", width: 2368, height: 1792, prompt: "A wildlife photograph of a snow leopard resting on a rocky Himalayan ridge in gently falling snow, its pale eyes looking straight at the camera, thick spotted fur dusted with snowflakes. Soft overcast light, distant blue mountains fading in the mist, long telephoto lens, National Geographic cover quality." },+ { slug: "day-zero-poster", label: "Day Zero type poster", width: 1792, height: 2368, prompt: "A bold modern typographic poster on a deep ultramarine background with fine paper grain. Huge white condensed sans-serif letters across the top read \"DAY ZERO\". Below them, a smaller line in an elegant serif italic reads \"New models, the day they land\". A large glowing coral sphere sits in the lower right, partly behind the letters. Clean Swiss grid layout, generous margins, sharp letterforms, gallery-quality graphic design." },+ { slug: "cliff-villa", label: "villa over a sea cliff", width: 2720, height: 1536, prompt: "An architectural photograph of a minimalist concrete villa cantilevered over a sea cliff at dusk, floor-to-ceiling glass glowing with warm interior light, an infinity pool reflecting a lavender and peach sky, turquoise water far below breaking on dark rocks. Wide-angle, perfectly level verticals, calm and serene, award-winning architecture magazine cover." },+ { slug: "emerald-watch", label: "gold watch with a green dial", width: 2368, height: 1792, prompt: "A luxury product photograph of a slim gold wristwatch with a deep green sunburst dial resting on a polished block of black obsidian, tiny water droplets beading on the glass and stone. A single soft key light from above left, crisp reflections on the bezel, dark charcoal background with a faint emerald glow. Macro lens, razor-sharp detail, high-end jewellery advertising." },+ { slug: "rooftop-anime", label: "anime rooftop at dusk", width: 1536, height: 2720, prompt: "A cinematic anime illustration of an elegant woman in her late twenties with long silver hair, wearing a flowing midnight-blue long coat over a fitted white blouse, standing on a Tokyo rooftop garden at dusk as cherry blossom petals drift past, the city lights glowing below under a pink and violet sky. Confident calm expression, clean line art, soft cel shading, glowing rim light, richly detailed background art in the style of a feature animation film." },+ { slug: "ringed-planet", label: "ringed planet over an alien sea", width: 2720, height: 1536, prompt: "A cinematic science-fiction matte painting: an enormous ringed gas giant rising over a calm alien ocean at twilight, its rings casting a bright arc across the sky, a lone white sailboat on the mirror-still water, two small moons above the horizon. Teal and amber palette, soft atmospheric haze, photoreal detail, blockbuster film concept art." },+ { slug: "harbour-racer", label: "race car on a harbour road", width: 2720, height: 1536, prompt: "A cinematic automotive photograph of a sleek silver vintage-style race car with a long bonnet and round headlights, parked on a wet harbour road at night, yachts and city lights reflected in the black water behind it, warm streetlights glinting along its curves. Low angle, anamorphic look, shallow depth of field, luxury automotive campaign." },+ { slug: "clay-island", label: "clay island town", width: 2048, height: 2048, prompt: "A charming claymation-style miniature diorama of a tiny seaside town on a floating island: pastel houses, a red-and-white lighthouse, little boats in the harbour and fluffy cotton clouds around it. Soft studio lighting, tilt-shift depth of field, handmade plasticine texture with visible fingerprints, playful stop-motion film still." },+ { slug: "peony-watercolor", label: "peonies in watercolour", width: 1792, height: 2368, prompt: "A delicate botanical watercolor painting of blush pink peonies and soft green leaves with a ruby-throated hummingbird hovering beside the largest bloom. Loose translucent washes, fine ink details, gentle color blooms on textured cotton paper, plenty of white space, fine-art illustration." },+ { slug: "chocolate-dome", label: "chocolate dome dessert", width: 2048, height: 2048, prompt: "A fine-dining dessert plated on a matte black ceramic plate: a glossy dark chocolate dome with a single gold leaf, a quenelle of raspberry sorbet, scattered fresh raspberries and a thin swoosh of vanilla cream. Moody side light, shallow depth of field, a soft reflection on the table, Michelin-star restaurant food photography." },+ { slug: "japandi-room", label: "Japandi living room", width: 2368, height: 1792, prompt: "An interior design photograph of a serene Japandi living room in soft morning light: a low oak sofa with linen cushions, a hand-thrown ceramic vase with a single branch, paper lanterns, a shoji screen and a large window onto a misty bamboo garden. Warm neutral palette, clean lines, gentle shadows, architectural digest editorial." },+ ] satisfies ReleaseArt[],+};++/**+ * A studio on the release's model, with a prompt filled in when one is given. The studio only prefills it: a run starts+ * when the person presses Generate (no `go` token here, src/lib/composer.ts START_PARAM).+ */+export const releaseHref = (studio: "image" | "edit", prompt?: string) =>+ `/${studio}?model=${HOME_RELEASE.modelId}${prompt ? `&prompt=${encodeURIComponent(prompt)}` : ""}`;++const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];+/** The release's pill: "Day-0 release · 10 Nov". */+export function releasePill(released = HOME_RELEASE.released) {+ const [, month, day] = released.split("-").map(Number);+ return `Day-0 release · ${day} ${MONTHS[month - 1]}`;+}++/** A release picture's file at a width (480 or 960) and format. */+export const releaseArtSrc = (slug: string, w: 480 | 960, ext: "avif" | "webp") => `${HOME_RELEASE.dir}/${slug}.${w}.${ext}`;+/** Assist's starter skills, as its empty chat lists them first (assist-view.tsx). */export const HOME_SKILLS = ["product-photoshoot", "ugc-video", "thumbnail-generation", "faceless-video", "short-film", "localization"];diff --git a/tests/home-release.test.ts b/tests/home-release.test.tsnew file mode 100644index 00000000..a30026bf--- /dev/null+++ b/tests/home-release.test.ts@@ -0,0 +1,87 @@+import fs from "node:fs";+import path from "node:path";+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";+import { createElement, type ReactNode } from "react";+import { renderToStaticMarkup } from "react-dom/server";+import { describe, expect, it, vi } from "vitest";++/*+ * Home's latest-release section (HOME_RELEASE in src/lib/home-showcase.ts, ReleaseSection in home-sections.tsx): every+ * picture has its files in public/ and its prompt, and every tile opens the Image studio on the model with that prompt+ * filled in, without starting a run.+ */++vi.mock("next/cache", () => ({ cacheLife: () => {} }));+vi.mock("next/navigation", () => ({+ useRouter: () => ({ prefetch: () => {}, push: () => {}, replace: () => {}, back: () => {}, refresh: () => {} }),+ usePathname: () => "/",+ useSearchParams: () => new URLSearchParams(),+}));++const { ReleaseSection } = await import("@/components/home/home-sections");+const { HOME_RELEASE, releaseArtSrc, releaseHref, releasePill } = await import("@/lib/home-showcase");+const { START_PARAM } = await import("@/lib/composer");++const root = process.cwd();+const size = (url: string) => fs.statSync(path.join(root, "public", url), { throwIfNoEntry: false })?.size ?? 0;+const render = (node: ReactNode) => renderToStaticMarkup(createElement(QueryClientProvider, { client: new QueryClient() }, node));+const decode = (s: string) => s.replace(/&/g, "&").replace(/"/g, '"').replace(/'/g, "'");++describe("Home's latest release", () => {+ it("names the model, its vendor, its day and its line", () => {+ expect(HOME_RELEASE.modelId).toMatch(/^oss-[a-z0-9-]+$/);+ expect(HOME_RELEASE.name).toContain(HOME_RELEASE.vendor);+ expect(HOME_RELEASE.released).toMatch(/^\d{4}-\d{2}-\d{2}$/);+ expect(releasePill()).toBe("Day-0 release · 10 Nov");+ expect(releasePill("2027-01-03")).toBe("Day-0 release · 3 Jan");+ expect(HOME_RELEASE.line.length).toBeGreaterThan(40);+ });++ it("has every picture's files, shape and prompt, each picture once", () => {+ const slugs = HOME_RELEASE.art.map((a) => a.slug);+ expect(slugs.length).toBeGreaterThanOrEqual(8);+ expect(new Set(slugs).size).toBe(slugs.length);+ for (const a of HOME_RELEASE.art) {+ for (const [w, ext] of [[480, "avif"], [960, "avif"], [480, "webp"]] as const) {+ expect(size(releaseArtSrc(a.slug, w, ext)), releaseArtSrc(a.slug, w, ext)).toBeGreaterThan(0);+ }+ expect(a.width).toBeGreaterThan(0);+ expect(a.height).toBeGreaterThan(0);+ expect(a.prompt.trim().length, a.slug).toBeGreaterThan(40);+ expect(a.label.trim().length, a.slug).toBeGreaterThan(0);+ }+ // Every file in the folder is one of the pictures: none left behind by an earlier release.+ const dir = path.join(root, "public", HOME_RELEASE.dir);+ for (const f of fs.readdirSync(dir)) expect(slugs, f).toContain(f.split(".")[0]);+ });++ it("opens the studios on the model, a tile with its prompt filled in and no run started", () => {+ const tile = new URL(releaseHref("image", HOME_RELEASE.art[0].prompt), "https://x.test");+ expect(tile.pathname).toBe("/image");+ expect(tile.searchParams.get("model")).toBe(HOME_RELEASE.modelId);+ expect(tile.searchParams.get("prompt")).toBe(HOME_RELEASE.art[0].prompt);+ expect(tile.searchParams.has(START_PARAM)).toBe(false);+ expect(releaseHref("image")).toBe(`/image?model=${HOME_RELEASE.modelId}`);+ expect(releaseHref("edit")).toBe(`/edit?model=${HOME_RELEASE.modelId}`);+ });++ it("renders each picture as a named link with its prompt, its loop copy out of reach", () => {+ const html = render(createElement(ReleaseSection));+ expect(html).toContain(releasePill());+ expect(html).toContain(`>${HOME_RELEASE.name}</h2>`);+ expect(decode(html)).toContain(`href="${releaseHref("image")}"`);+ expect(decode(html)).toContain(`href="${releaseHref("edit")}"`);+ const attr = (tag: string, name: string) => new RegExp(`\\s${name}="([^"]*)"`).exec(tag)?.[1] ?? "";+ const tiles = [...html.matchAll(/<li([^>]*)>(<a [^>]*>)/g)].map((m) => [m[0], m[1], attr(m[2], "href"), attr(m[2], "aria-label")]);+ // Each picture twice: once to reach, once for the loop (hidden from screen readers and the keyboard).+ expect(tiles).toHaveLength(HOME_RELEASE.art.length * 2);+ const reachable = tiles.filter((t) => !t[1].includes("inert"));+ expect(reachable).toHaveLength(HOME_RELEASE.art.length);+ for (const t of tiles.filter((t) => t[1].includes("inert"))) expect(t[1]).toContain('aria-hidden="true"');+ for (const a of HOME_RELEASE.art) {+ const t = reachable.find((r) => decode(r[3]) === `Make your own: ${a.label}`);+ expect(t, a.slug).toBeDefined();+ expect(decode(t![2])).toBe(releaseHref("image", a.prompt));+ }+ });+});