Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

3.9 KB
Raw Blame
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="theme-color" content="#09070f" />
    <meta name="robots" content="noindex" />
    <title>Hero B · World scenes · 67js</title>
    <link rel="icon" href="/favicon.svg" />
    <script>
      const scene = ["valley", "ignition", "port"].find(id => id === new URLSearchParams(location.search).get("scene")) ?? "valley";
      const mobile = matchMedia("(max-width: 700px)").matches ? "-mobile" : "";
      const preload = document.createElement("link");
      preload.rel = "preload";
      preload.as = "image";
      preload.fetchPriority = "high";
      preload.href = `/hero-lab/poster-b-${scene}${mobile}.webp`;
      document.head.append(preload);
    </script>
  </head>
  <body>
    <a class="skip-link" href="#content">Skip to content</a>
    <header class="lab-nav">
      <a class="lab-brand" href="/hero-lab.html" aria-label="67js home"><img src="/logo.svg" alt="" width="30" height="30" />67js</a>
      <a href="/docs.html"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 4h6a3 3 0 0 1 3 3v14a4 4 0 0 0-4-2H4V4Zm9 3a3 3 0 0 1 3-3h5v15h-4a4 4 0 0 0-4 2"/></svg>Docs</a>
      <a href="/showcase.html"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3 3 8v9l9 5 9-5V8l-9-5ZM3 8l9 5 9-5M12 13v9"/></svg>Showcase</a>
      <a href="/changelog.html"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12a9 9 0 1 0 2.6-6.4L3 8M3 3v5h5M12 7v5l3.5 2"/></svg>Changelog</a>
      <a href="https://github.com/codepawl/67.js" aria-label="GitHub"><span class="logo-mask logo-github" aria-hidden="true"></span>GitHub</a>
    </header>
    <main id="content" class="hero-b">
      <div class="pin" id="pin">
        <div class="stage" id="stage">
          <picture><source media="(max-width: 700px)" id="poster-mobile" /><img class="poster" id="poster" alt="" width="1440" height="900" fetchpriority="high" /></picture>
          <script>document.querySelector("#poster-mobile").srcset = `/hero-lab/poster-b-${scene}-mobile.webp`; document.querySelector("#poster").src = `/hero-lab/poster-b-${scene}.webp`;</script>
          <canvas id="viewport" aria-label="A live 3D scene. Scroll to move the camera."></canvas>
        </div>
        <div class="progress" aria-hidden="true"><i id="progress-fill"></i></div>
        <div class="chapter chapter-one" id="chapter-one">
          <h1 class="rise" style="--i:0">A 3D engine<br />agents can drive</h1>
          <p class="lede rise" style="--i:1">WebGL2 rendering, deterministic animation and an MCP server in one package.</p>
          <div class="lab-actions rise" style="--i:2">
            <a class="lab-button is-primary" href="/docs.html#getting-started"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 4h6a3 3 0 0 1 3 3v14a4 4 0 0 0-4-2H4V4Zm9 3a3 3 0 0 1 3-3h5v15h-4a4 4 0 0 0-4 2"/></svg>Get started<svg class="arrow" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14m-6-6 6 6-6 6"/></svg></a>
            <a class="lab-button" href="https://www.npmjs.com/package/@codepawlhq/67js"><span class="logo-mask logo-npm" aria-hidden="true"></span>npm</a>
          </div>
        </div>
        <div class="chapter chapter-two" id="chapter-two">
          <h2>Every frame is real geometry,<br />lit and shadowed in your browser.</h2>
          <div class="lab-actions">
            <a class="lab-button is-primary" id="open-scene" href="/showcase.html"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3 3 8v9l9 5 9-5V8l-9-5ZM3 8l9 5 9-5M12 13v9"/></svg>Open this scene live<svg class="arrow" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14m-6-6 6 6-6 6"/></svg></a>
          </div>
        </div>
        <p class="cue rise" style="--i:4" id="cue"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>Scroll</p>
      </div>
    </main>
    <script type="module" src="/src/hero-lab/hero-b.js"></script>
  </body>
</html>