Skip to content

Commit 51155ea

Browse files
committed
[verified] fix: keep hero video above the fold
1 parent 1ac0379 commit 51155ea

2 files changed

Lines changed: 17 additions & 10 deletions

File tree

‎app.vue‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,6 @@ useSeoMeta({
8585
<section id="top" class="hero" aria-labelledby="hero-title">
8686
<div class="hero-grid" aria-hidden="true"><span /><span /><span /></div>
8787
<div class="shell hero-layout">
88-
<div class="hero-copy">
89-
<UBadge class="eyebrow" color="neutral" variant="subtle"><span class="status-dot" aria-hidden="true" /> Open community preview</UBadge>
90-
<h1 id="hero-title">Use Blender as a Python module. Give agents a narrow MCP interface.</h1>
91-
<p class="hero-lede">A focused path from ordinary Python code to Blender scenes: one runtime you can import, four tools an agent can reason about, and a protocol surface that stays still.</p>
92-
<div class="actions" role="group" aria-label="Project links">
93-
<UButton class="button button-primary" href="https://github.com/bpy-dev/blender-mcp">Explore blender-mcp <span aria-hidden="true">↗</span></UButton>
94-
<UButton class="button button-secondary" color="neutral" variant="outline" href="https://github.com/bpy-dev/blender-mcp/issues">Give feedback <span aria-hidden="true">→</span></UButton>
95-
</div>
96-
<p class="hero-note">Standalone bpy packaging remains work in progress. <a href="https://github.com/michaelgold/buildbpy/pull/9">Track build work in PR #9</a>.</p>
97-
</div>
9888
<figure class="hero-video-card">
9989
<div class="hero-video-topbar"><span>BlenderBench / Run 001</span><span>27 tasks · 270 rounds</span></div>
10090
<video
@@ -115,6 +105,16 @@ useSeoMeta({
115105
<span class="hero-video-links"><a href="#blenderbench-video-description">Read the video description and results</a> · <a href="https://huggingface.co/datasets/michaelgold/blenderbench-direct-results/resolve/7c2c43be4517aee4d76d2b445578988de186970c/video/blenderbench-complete-compilation.mp4">Watch/download on Hugging Face</a></span>
116106
</figcaption>
117107
</figure>
108+
<div class="hero-copy">
109+
<UBadge class="eyebrow" color="neutral" variant="subtle"><span class="status-dot" aria-hidden="true" /> Open community preview</UBadge>
110+
<h1 id="hero-title">Use Blender as a Python module. Give agents a narrow MCP interface.</h1>
111+
<p class="hero-lede">A focused path from ordinary Python code to Blender scenes: one runtime you can import, four tools an agent can reason about, and a protocol surface that stays still.</p>
112+
<div class="actions" role="group" aria-label="Project links">
113+
<UButton class="button button-primary" href="https://github.com/bpy-dev/blender-mcp">Explore blender-mcp <span aria-hidden="true">↗</span></UButton>
114+
<UButton class="button button-secondary" color="neutral" variant="outline" href="https://github.com/bpy-dev/blender-mcp/issues">Give feedback <span aria-hidden="true">→</span></UButton>
115+
</div>
116+
<p class="hero-note">Standalone bpy packaging remains work in progress. <a href="https://github.com/michaelgold/buildbpy/pull/9">Track build work in PR #9</a>.</p>
117+
</div>
118118
</div>
119119
</section>
120120

‎tests/test_site.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,13 @@ def test_reduced_motion_and_visible_focus_are_supported(self):
287287
self.assertIn("@media (prefers-reduced-motion: reduce)", self.source_css)
288288
self.assertIn(":focus-visible", self.css)
289289

290+
def test_hero_video_precedes_copy_in_dom_and_visual_order(self):
291+
self.assertLess(
292+
self.source.index('<figure class="hero-video-card">'),
293+
self.source.index('<div class="hero-copy">'),
294+
)
295+
self.assertNotRegex(self.source_css, r"\.hero-video-card\{[^}]*order:")
296+
290297
def test_hero_video_never_autoplays_before_user_action(self):
291298
video = next(
292299
attrs

0 commit comments

Comments
 (0)