Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

refactor: consolidate page headers onto shared nav

nirholas8ddc78c85c7e
diff --git a/pages/a-edit.html b/pages/a-edit.html
index b57a90c76..399f87bc8 100644
--- a/pages/a-edit.html
+++ b/pages/a-edit.html
@@ -243,12 +243,7 @@
<script defer src="/footer-newsletter.js"></script>
</head>
<body>
- <header class="site-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<header class="ce-page-header">
diff --git a/pages/agent-detail.html b/pages/agent-detail.html
index e30f451ad..73e15c49c 100644
--- a/pages/agent-detail.html
+++ b/pages/agent-detail.html
@@ -67,12 +67,7 @@
<script defer src="/footer-newsletter.js"></script>
</head>
<body>
- <header class="site-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<div class="ad-shell">
diff --git a/pages/agent-edit.html b/pages/agent-edit.html
index ef66f80f0..58e08bb86 100644
--- a/pages/agent-edit.html
+++ b/pages/agent-edit.html
@@ -1004,12 +1004,7 @@
<script defer src="/footer-newsletter.js"></script>
</head>
<body>
- <header class="site-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<a href="#main" class="skip-link">Skip to main content</a>
diff --git a/pages/avatar-page.html b/pages/avatar-page.html
index d8e8ef91f..add3ad395 100644
--- a/pages/avatar-page.html
+++ b/pages/avatar-page.html
@@ -1093,12 +1093,7 @@
</style>
</head>
<body>
- <header class="site-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<header class="av-actionbar">
diff --git a/pages/avatar-sdk.html b/pages/avatar-sdk.html
index de6bf03bf..d4bffbef1 100644
--- a/pages/avatar-sdk.html
+++ b/pages/avatar-sdk.html
@@ -35,24 +35,7 @@
<script defer src="/footer-newsletter.js"></script>
</head>
<body>
- <header>
- <h1>
- <a href="/" aria-label="three.ws home">
- <svg class="wordmark-logo" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
- <rect width="32" height="32" rx="8" fill="url(#logo-grad)"/>
- <path d="M8 11h16M8 16h10M8 21h13" stroke="#fff" stroke-width="2.2" stroke-linecap="round"/>
- <defs>
- <linearGradient id="logo-grad" x1="0" y1="0" x2="32" y2="32" gradientUnits="userSpaceOnUse">
- <stop stop-color="#ffffff"/>
- <stop offset="1" stop-color="#ffffff"/>
- </linearGradient>
- </defs>
- </svg>
- three.ws
- </a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<main>
<!-- ── Hero ──────────────────────────────────────────────────── -->
diff --git a/pages/community.html b/pages/community.html
index d3e0e0359..ab5a48296 100644
--- a/pages/community.html
+++ b/pages/community.html
@@ -101,14 +101,7 @@
</style>
</head>
<body>
- <header class="site-header" style="display:flex;align-items:center;padding:0 32px;height:56px;position:sticky;top:0;z-index:100;">
- <h1 style="margin:0;font-size:inherit;font-weight:inherit;line-height:inherit;">
- <a href="/" style="color:inherit;text-decoration:none;" aria-label="three.ws home">
- <img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws
- </a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<div class="wrap">
diff --git a/pages/home-v4.html b/pages/home-v4.html
index 9ee8db4dc..18f9845bf 100644
--- a/pages/home-v4.html
+++ b/pages/home-v4.html
@@ -56,18 +56,7 @@
</head>
<body class="home-page v4-page">
<a href="#main-content" class="h-skip-link">Skip to main content</a>
- <header>
- <h1>
- <a href="/" aria-label="three.ws home"
- ><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span
- class="wordmark-dot"
- aria-hidden="true"
- ></span
- >three.ws</a
- >
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<main id="main-content">
diff --git a/pages/marketplace.html b/pages/marketplace.html
index 6b31ad66d..5930a2550 100644
--- a/pages/marketplace.html
+++ b/pages/marketplace.html
@@ -2114,12 +2114,7 @@
<script defer src="/footer-newsletter.js"></script>
</head>
<body class="market-page">
- <header class="site-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<aside class="market-sidebar" id="market-sidebar">
diff --git a/pages/mocap-studio.html b/pages/mocap-studio.html
index 57310ed8e..1ca3587fd 100644
--- a/pages/mocap-studio.html
+++ b/pages/mocap-studio.html
@@ -462,15 +462,7 @@
<body>
<!-- ── NAV ─────────────────────────────────────────────────── -->
- <header class="site-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home">
- <img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" />
- <span class="wordmark-dot" aria-hidden="true"></span>three.ws
- </a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<!-- ── PAGE ─────────────────────────────────────────────────── -->
diff --git a/pages/pricing.html b/pages/pricing.html
index 5fa1aaaca..21b31aee9 100644
--- a/pages/pricing.html
+++ b/pages/pricing.html
@@ -23,18 +23,7 @@
<body>
<a href="#main-content" class="h-skip-link">Skip to main content</a>
- <header class="site-header" style="position:sticky;top:0;z-index:100;">
- <div style="display:flex;align-items:center;padding:0 var(--space-lg, 1.5rem);height:var(--header-h, 3.5rem);">
- <h1 style="margin:0;font-size:inherit;font-weight:inherit;">
- <a href="/" style="display:inline-flex;align-items:center;gap:0.6rem;text-decoration:none;color:#fff;">
- <img class="wordmark-logo" src="/three.svg" width="28" height="28" alt="" />
- <span class="wordmark-dot" aria-hidden="true"></span>
- <span style="font-family:'Space Grotesk','Inter',sans-serif;font-weight:600;font-size:0.95rem;">three.ws</span>
- </a>
- </h1>
- <div id="nav-container"></div>
- </div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<main id="main-content">
diff --git a/pages/profile.html b/pages/profile.html
index ed2229681..121db46e4 100644
--- a/pages/profile.html
+++ b/pages/profile.html
@@ -673,12 +673,7 @@
<link rel="stylesheet" href="/mobile.css" />
</head>
<body>
- <header class="site-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<header class="profile-page-header">
diff --git a/pages/pump-coin-page.html b/pages/pump-coin-page.html
index c17272196..8fc55f33a 100644
--- a/pages/pump-coin-page.html
+++ b/pages/pump-coin-page.html
@@ -69,12 +69,7 @@
<script defer src="/footer-newsletter.js"></script>
</head>
<body>
- <header class="site-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<div class="container">
diff --git a/pages/pump-live.html b/pages/pump-live.html
index dc62a07a2..a438400a9 100644
--- a/pages/pump-live.html
+++ b/pages/pump-live.html
@@ -143,12 +143,7 @@
<script defer src="/footer-newsletter.js"></script>
</head>
<body>
- <header class="site-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
diff --git a/pages/pump-visualizer.html b/pages/pump-visualizer.html
index 1955895a4..e4930cc23 100644
--- a/pages/pump-visualizer.html
+++ b/pages/pump-visualizer.html
@@ -592,12 +592,7 @@
</style>
</head>
<body>
- <header class="site-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<div id="vz-stage">
diff --git a/pages/three-live.html b/pages/three-live.html
index 2a47baf51..63af2d322 100644
--- a/pages/three-live.html
+++ b/pages/three-live.html
@@ -168,12 +168,7 @@
</style>
</head>
<body>
- <header class="site-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<div id="pl-stage">
diff --git a/pages/three-ws-launch-week.html b/pages/three-ws-launch-week.html
index 648f281da..e530b6185 100644
--- a/pages/three-ws-launch-week.html
+++ b/pages/three-ws-launch-week.html
@@ -723,12 +723,7 @@
<script defer src="/footer-newsletter.js"></script>
</head>
<body>
- <header class="site-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
diff --git a/pages/threews-claim.html b/pages/threews-claim.html
index fc075b2e6..3acf89d0a 100644
--- a/pages/threews-claim.html
+++ b/pages/threews-claim.html
@@ -151,12 +151,7 @@
</style>
</head>
<body>
- <header class="site-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<main class="tw-wrap">
diff --git a/pages/walk.html b/pages/walk.html
index c968c4969..2667e3679 100644
--- a/pages/walk.html
+++ b/pages/walk.html
@@ -477,23 +477,10 @@
}
/* ── Site header (glass overlay) ───────────────────────────── */
- .walk-site-header {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- z-index: 10;
- display: flex;
- align-items: center;
- padding: 0 24px;
- height: 52px;
- background: rgba(10, 10, 10, 0.55);
- backdrop-filter: blur(16px);
- -webkit-backdrop-filter: blur(16px);
- border-bottom: 1px solid rgba(255, 255, 255, 0.06);
- }
- .walk-site-header h1 { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
- .walk-site-header a { color: var(--text); text-decoration: none; }
+ /* The header is the shared site nav (public/nav.html + nav.css),
+ which styles and positions itself. This wrapper only carries the
+ class so zen mode can hide it (see body.is-zen rules below). */
+ .walk-site-header { display: block; }
/* ── Loading overlay ───────────────────────────────────────── */
.walk-loading {
@@ -999,14 +986,7 @@
<link rel="stylesheet" href="/nav.css" />
</head>
<body>
- <header class="walk-site-header" id="walk-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home">
- <img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws
- </a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header class="walk-site-header" id="walk-header"><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<!-- Loading overlay -->
diff --git a/pages/widgets.html b/pages/widgets.html
index 13157ce58..035ffe0e3 100644
--- a/pages/widgets.html
+++ b/pages/widgets.html
@@ -194,12 +194,7 @@
<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"></script>
</head>
<body class="market-page">
- <header class="site-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>
- </h1>
- <div id="nav-container"></div>
- </header>
+ <header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<aside class="market-sidebar" id="market-sidebar">
diff --git a/scripts/nav-check.mjs b/scripts/nav-check.mjs
new file mode 100644
index 000000000..08b4668d9
--- /dev/null
+++ b/scripts/nav-check.mjs
@@ -0,0 +1,24 @@
+import puppeteer from 'puppeteer';
+const base = 'http://localhost:3000';
+const routes = ['/three-live','/pricing','/widgets','/marketplace','/walk','/community','/profile','/avatar-sdk','/mocap-studio','/pump-live','/pump-visualizer','/features','/home-v2','/tutorials','/pump-dashboard'];
+const browser = await puppeteer.launch({ args:['--no-sandbox','--disable-setuid-sandbox'] });
+const out = {};
+for (const path of routes) {
+ const page = await browser.newPage();
+ try { await page.goto(base+path, { waitUntil:'domcontentloaded', timeout:25000 }); } catch(e){ out[path]='NAV_ERR '+e.message.slice(0,40); await page.close(); continue; }
+ const ok = await page.waitForSelector('header.nav .nav-main', { timeout:8000 }).then(()=>true).catch(()=>false);
+ if (!ok) { out[path]='NO_NAV_INJECTED'; await page.close(); continue; }
+ const r = await page.evaluate(() => {
+ const navBrands = document.querySelectorAll('header.nav .brand').length;
+ const headerBrands = document.querySelectorAll('header .brand, header h1').length; // total brands in any header
+ const navPos = getComputedStyle(document.querySelector('header.nav')).position;
+ const trig = document.querySelector('header.nav .nav-grp:first-child .nav-trigger');
+ trig && trig.click();
+ const opened = trig ? trig.closest('.nav-grp').classList.contains('open') : false;
+ return { totalHeaderBrands: headerBrands, navBrand: navBrands, navPos, dropdown: opened };
+ });
+ out[path] = r;
+ await page.close();
+}
+console.log(JSON.stringify(out,null,2));
+await browser.close();