Commit 5abfd33
feat(website): home model release carousel of split-content cards (#15377)
## Summary
Replaces the single-model release card on the home page with a carousel
of the four latest model drops, built from the ["Module-Latest drops"
Figma
design](https://www.figma.com/design/11vkE4FAn4plEYpawd57zS/Comfy----Website-Design?node-id=11421-45207&m=dev).
### New block: `FeaturedCarousel02`
A carousel of `CardSplitContent01`-style cards (media left, content
right, dot pagination):
- **Timer-driven autoplay** — each slide advances after its own
`autoplayMs` (default 5000ms per the Figma annotation); video slides use
their clip's real duration so the carousel moves on as the video ends
- **Video via `VideoPlayer`** (`mute-only` + `loop`), mounted only on
the active slide so unmuted audio can never leak across slides; inactive
slides show their poster
- **Accessibility** — hover/focus pauses auto-advance (WCAG 2.2.2),
`prefers-reduced-motion` disables auto-advance and slide animation,
inactive slides are `aria-hidden` + `inert`, dots are labeled by slide
title
- Stories: `Default` (the four real slides), `SingleSlide`,
`ImageSlides`
### Home page wiring
`ModelReleaseSection` now renders the carousel with four localized
slides (en + zh-CN):
| Slide | autoplayMs (video duration) | CTAs |
|---|---|---|
| Seedance 2.5 | 17000 | `/seedance-2.5` · cloud template |
| LTX 2.5 | 20000 | `/ltx-2.5` · cloud template |
| Wan Animate 2 | 18400 | `/wan-animate-2` · cloud template |
| MiniMax H3 | 8000 | `/minimax-h3` · cloud share |
i18n: per-model `modelRelease.*` keys replace the old single-card keys;
zh-CN bodies reuse/derive from the existing model-page hero
translations. Adds reusable `tags.openSource` and `cta.tryForFree`.
### VideoPlayer fix
Fixes a pre-existing hydration race in the shared `VideoPlayer`: a
server-rendered autoplay video can start playing before
`useMediaControls` attaches its listeners, leaving the play/mute icons
rendering stale state. The refs now sync from the element when it binds.
## Test plan
- [x] `pnpm --filter @comfyorg/website typecheck` — clean
- [x] `pnpm --filter @comfyorg/website test:unit` — 440/440 pass
- [x] Browser-matched against the Figma node at 1440px and 390px widths
- [x] Verified live on `/` and `/zh-CN/`: video autoplay + mute/pause
controls, dot navigation, timer advance, localized copy
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 9bd3f6b commit 5abfd33
9 files changed
Lines changed: 1101 additions & 31 deletions
File tree
- apps/website/src
- components
- blocks
- common
- home
- data
- i18n
Lines changed: 141 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
0 commit comments