Skip to content

Commit 91c8ffe

Browse files
committed
docs: revert the breakout hero, keep the motion
At this column width the breakout rendered 968px and dominated the page instead of supporting it. The film is back inside a Frame at the column width. The part worth keeping was the motion, not the size: it still autoplays muted on a loop rather than sitting behind a play button, so the page is already moving when it loads. Removed the now-unused wrapper CSS rather than leaving a dead rule.
1 parent bbe625f commit 91c8ffe

2 files changed

Lines changed: 8 additions & 43 deletions

File tree

docs/custom.css

Lines changed: 5 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -173,45 +173,11 @@ h3 {
173173
max-width: none;
174174
}
175175

176-
/* ── Hero media ──
177-
*
178-
* For the one visual on a page that is the argument, not an illustration.
179-
* Reaches into the shell's horizontal padding so the frame reads as edge to
180-
* edge rather than as a figure inside an article. Deliberately not 100vw: this
181-
* column is not centred in the viewport (the sidebar is a flex sibling), so
182-
* the usual `margin-left: calc(50% - 50vw)` trick would push it off-centre. */
183-
.hf-hero {
184-
margin: 0 -1.25rem 0.75rem;
185-
overflow: hidden;
186-
border-radius: 12px;
187-
background: #000;
188-
line-height: 0;
189-
}
190-
191-
.hf-hero video,
192-
.hf-hero img {
193-
display: block;
194-
width: 100%;
195-
height: auto;
196-
/* The theme's prose styles put a 2em margin on media, which showed up as a
197-
* 64px black band above and below the film inside this wrapper. */
198-
margin: 0;
199-
}
200-
201-
@media (min-width: 1280px) {
202-
.hf-hero {
203-
margin-left: -2.5rem;
204-
margin-right: -2.5rem;
205-
border-radius: 14px;
206-
}
207-
}
208-
209-
/* Caption for a hero: quiet, and it sits with the media rather than boxed. */
210-
.hf-hero-caption {
211-
margin: 0 0 2rem;
212-
font-size: 0.875rem;
213-
color: var(--hf-text-muted, #8b8b8b);
214-
}
176+
/* A breakout hero wrapper was tried here and reverted: at this column width it
177+
* rendered 968px wide and overwhelmed the page rather than supporting it. The
178+
* film stays inside a Frame at the column width. Motion was the part worth
179+
* keeping — the hero autoplays muted on a loop instead of waiting behind a play
180+
* button — and that lives on the element, not in CSS. */
215181

216182
/* Code font — IBM Plex Mono (loaded via Google Fonts above).
217183
*

docs/introduction.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ sidebarTitle: "What HyperFrames is"
44
description: "Tell an AI agent what you want. It builds a real, editable video project — you refine it in Studio and export the film."
55
---
66

7-
<div className="hf-hero">
7+
<Frame caption="Made with HyperFrames, from a single request.">
88
<video
9+
className="aspect-video w-full object-cover bg-zinc-100 dark:bg-zinc-900"
910
src="https://static.heygen.ai/hyperframes-oss/docs/images/showcase/hyperframes-launch-preview.mp4"
1011
poster="https://static.heygen.ai/hyperframes-oss/docs/images/showcase/hyperframes-launch-poster.jpg"
1112
autoPlay
@@ -15,9 +16,7 @@ description: "Tell an AI agent what you want. It builds a real, editable video p
1516
controls
1617
preload="metadata"
1718
/>
18-
</div>
19-
20-
<p className="hf-hero-caption">Made with HyperFrames, from a single request.</p>
19+
</Frame>
2120

2221
Start from an idea, a website, a script, a recording, a pull request, or a song. The agent does the first build. You keep control of the result.
2322

0 commit comments

Comments
 (0)