Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

Place live showcase beside download-focused introduction

Nguyen Xuan An1ea6b9353e1b
diff --git a/index.html b/index.html
index e61ed9a4..d9e0d40c 100644
--- a/index.html
+++ b/index.html
@@ -20,7 +20,8 @@
</nav>
</header>
<main id="content">
- <header class="introduction"><div><h1>Your 3D scene,<br />from browser to film</h1><p>67.js brings browser 3D, animation and image/video export into one workflow. Create interactive experiences and export the same scene as images or video</p><div class="hero-actions"><a href="./object.html" data-icon="cube">Try the object studio</a><a href="./docs.html#install" data-icon="code">Build your first scene</a></div></div></header>
+ <section class="hero" aria-label="67.js introduction and live preview">
+ <header class="introduction"><div><h1>Your 3D scene,<br />from browser to film</h1><p>67.js brings browser 3D, animation and image/video export into one workflow. Create interactive experiences and export the same scene as images or video</p><div class="hero-actions"><a href="/downloads.html" data-icon="download">Download 67.js</a></div></div></header>
<section class="feature-showcase live-showcase" aria-label="Interactive 3D preview">
<canvas id="home-preview" tabindex="0" aria-label="Clockwork 3D model. Drag or use arrow keys to rotate. Use plus and minus to zoom."></canvas>
@@ -28,6 +29,7 @@
<div class="preview-tools" role="group" aria-label="3D preview controls"><button id="preview-play" aria-pressed="false">Animate</button><button id="preview-zoom-in" aria-label="Zoom in">+</button><button id="preview-zoom-out" aria-label="Zoom out">−</button><button id="preview-reset">Reset view</button></div>
<div class="showcase-caption"><div><h2>Clockwork orbit</h2><p>Live 3D in your browser. Drag to rotate, zoom in and animate the mechanism.</p></div><a href="./motion.html" data-icon="cube">Open the full studio</a></div>
</section>
+ </section>
<section class="workflow" aria-label="What you can build"><div><span data-icon="cube"></span><h3>Build and inspect</h3><p>Shared meshes, materials and cameras. Pull a machine apart, explore a world, or bring your own GLB.</p></div><div><span data-icon="film"></span><h3>Make it move</h3><p>Sample keyframes at any time. Give visitors controls and keep the same timeline for your film.</p></div><div><span data-icon="image"></span><h3>Export the result</h3><p>Produce images and videos on GPU or CPU with explicit render budgets and one capture frame at a time.</p></div></section>
<section id="examples" class="examples" aria-labelledby="examples-title">
<h2 id="examples-title">Interactive showcase</h2><p>Explore a machine, a world, a film or your own model</p>
diff --git a/src/home.css b/src/home.css
index 3e7bc0fe..9d4e6b63 100644
--- a/src/home.css
+++ b/src/home.css
@@ -118,8 +118,15 @@ button:hover { background:var(--border); }
.package-links .icon { margin:0; }
@media (max-width:760px) { .package-install { padding:18px; } .package-managers button { padding:10px 12px; } }
.example img { aspect-ratio:16/9; border-radius:var(--panel-radius); border:1px solid var(--border); }
-.introduction { padding:20px 0 12px; }
-.introduction h1 { max-width:780px; font-size:clamp(34px,4.6vw,62px); line-height:1.06; letter-spacing:-2px; font-weight:600; }
+.hero { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); align-items:center; gap:40px; margin:16px 0 48px; }
+.hero .introduction { margin:0; padding:20px 0; min-width:0; }
+.hero .feature-showcase { margin:0; min-width:0; }
+.hero .live-showcase canvas { height:clamp(320px,30vw,430px); }
+@media (max-width:960px) {
+ .hero { grid-template-columns:1fr; gap:24px; margin-top:0; }
+ .hero .introduction { padding:10px 0; }
+}
+.introduction h1 { max-width:780px; font-size:clamp(34px,4vw,56px); line-height:1.06; letter-spacing:-2px; font-weight:600; }
.feature-showcase h2 { margin:0; }
.introduction p { font-size:17px; max-width:620px; margin:20px 0; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }