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.

fix(a11y): stop the shared nav injecting a second skip link on pages that author their own

nirholas7f972cb98084
diff --git a/pages/genesis.html b/pages/genesis.html
index 9590a0ff0..0828a1a62 100644
--- a/pages/genesis.html
+++ b/pages/genesis.html
@@ -47,7 +47,7 @@
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Instant Agent Genesis","description":"A prompt or a selfie becomes a rigged 3D AI agent with its own custodial Solana + EVM wallet and a verifiable on-chain identity - in under a minute, owned by you.","url":"https://three.ws/genesis","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=build&t=Instant+Agent+Genesis&d=A+prompt+or+a+selfie+becomes+a+rigged+3D+AI+agent+with+its+own+custodial+Solana+%2B+EVM+wallet+and+a+verifiable+on-chain+identity+-+in+under+a+minute%2C+owned+by+yo&p=%2Fgenesis"}]}</script>
</head>
<body>
- <a href="#genesis-main" class="skip-link" data-i18n="genesis.skip_to_genesis">Skip to genesis</a>
+ <a href="#genesis-main" class="h-skip-link" data-i18n="genesis.skip_to_genesis">Skip to genesis</a>
<div id="nav-container"></div>
<main id="genesis-main" class="gx">
diff --git a/pages/walk-landing.html b/pages/walk-landing.html
index 9a28f1ede..2bf3fd031 100644
--- a/pages/walk-landing.html
+++ b/pages/walk-landing.html
@@ -654,7 +654,7 @@
</style>
</head>
<body class="walk-landing-page">
- <a href="#main-content" class="skip-link" data-i18n="walk_landing.skip_to_main_content">Skip to main content</a>
+ <a href="#main-content" class="h-skip-link" data-i18n="walk_landing.skip_to_main_content">Skip to main content</a>
<header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
diff --git a/public/nav.js b/public/nav.js
index cd87266b6..7d8ecbcc5 100644
--- a/public/nav.js
+++ b/public/nav.js
@@ -219,8 +219,15 @@ function ensureNavStylesheet() {
// handler below intercepts, but broken for the paths that bypass it (opening the
// link in a new tab, copying its address, or restoring the fragment on reload).
// So tag the resolved landmark up front and the href always has a real target.
+// Pages that hand-author their own skip link use one of two classes: `.skip-link`
+// (styled per-page) or `.h-skip-link` (styled by the shared rule in nav.css).
+// Guarding on `.nav-skip` alone missed both, so every one of those pages ended up
+// with two identical "Skip to content" anchors and keyboard users had to tab past
+// the same link twice before reaching the header.
+const SKIP_LINK_SELECTOR = '.nav-skip, .skip-link, .h-skip-link';
+
function ensureSkipLink() {
- if (!document.body || document.querySelector('.nav-skip')) return;
+ if (!document.body || document.querySelector(SKIP_LINK_SELECTOR)) return;
if (!document.getElementById('main-content')) {
const landmark = document.querySelector('main, [role="main"]');
if (landmark && !landmark.id) landmark.id = 'main-content';