Skip to content

Commit 0373b55

Browse files
committed
docs: make the introduction hero the argument, not an illustration
The film now reaches into the shell padding so it reads edge to edge, and it autoplays muted on a loop instead of waiting behind a play button. Motion is pre-attentive - the eye goes to it before any text is read - so a page that is already moving answers 'what is this?' faster than a poster the reader has to decide to click. Controls stay available for scrubbing and for unmuting once a film with a real audio track is hosted. Not implemented as 100vw: this column is not centred in the viewport because the sidebar is a flex sibling, so the usual margin-left: calc(50% - 50vw) breakout would sit off-centre. Noted in the CSS.
1 parent f6d45c9 commit 0373b55

2 files changed

Lines changed: 45 additions & 4 deletions

File tree

docs/custom.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,43 @@ 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+
}
197+
198+
@media (min-width: 1280px) {
199+
.hf-hero {
200+
margin-left: -2.5rem;
201+
margin-right: -2.5rem;
202+
border-radius: 14px;
203+
}
204+
}
205+
206+
/* Caption for a hero: quiet, and it sits with the media rather than boxed. */
207+
.hf-hero-caption {
208+
margin: 0 0 2rem;
209+
font-size: 0.875rem;
210+
color: var(--hf-text-muted, #8b8b8b);
211+
}
212+
176213
/* Code font — IBM Plex Mono (loaded via Google Fonts above).
177214
*
178215
* Deliberately scoped to real code elements. The previous rule also matched

docs/introduction.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@ 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-
<Frame caption="Made with HyperFrames, from a single request.">
7+
<div className="hf-hero">
88
<video
9-
className="aspect-video w-full object-cover bg-zinc-100 dark:bg-zinc-900"
109
src="https://static.heygen.ai/hyperframes-oss/docs/images/showcase/hyperframes-launch-preview.mp4"
1110
poster="https://static.heygen.ai/hyperframes-oss/docs/images/showcase/hyperframes-launch-poster.jpg"
12-
controls
11+
autoPlay
12+
muted
13+
loop
1314
playsInline
15+
controls
1416
preload="metadata"
1517
/>
16-
</Frame>
18+
</div>
19+
20+
<p className="hf-hero-caption">Made with HyperFrames, from a single request.</p>
1721

1822
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.
1923

0 commit comments

Comments
 (0)