3D engine that AI agents drive
Share one scene nav, add footer brand logos, align nature slider labels (#499)
Nguyen Xuan An35ea7dab89a4
diff --git a/changelog.html b/changelog.htmlindex 2ce138e6..8331ca66 100644--- a/changelog.html+++ b/changelog.html@@ -20,7 +20,7 @@</main><footer class="site-footer" aria-label="Site footer"><p><a class="brand" href="/" aria-label="67js home">67js</a> by <a href="https://codepawl.com">CodePawl</a></p>- <nav class="footer-links" aria-label="Project links"><a href="https://github.com/codepawl/67.js">GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js">npm</a><a href="/changelog.md">Plain text</a><a href="/changelog.json">JSON</a><a href="/license.txt">MIT license</a></nav>+ <nav class="footer-links" aria-label="Project links"><a href="https://github.com/codepawl/67.js"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js"><span class="package-logo package-logo-npm" aria-hidden="true"></span>npm</a><a href="/changelog.md">Plain text</a><a href="/changelog.json">JSON</a><a href="/license.txt">MIT license</a></nav></footer><script type="module" src="/src/changelog.js"></script></body></html>diff --git a/changes/499.md b/changes/499.mdnew file mode 100644index 00000000..f1234ba7--- /dev/null+++ b/changes/499.md@@ -0,0 +1 @@+- Object, nature, film and motion pages share one nav with an icon on every link; footer GitHub and npm links show their logos; nature slider labels share a baseline with their value (#499).diff --git a/docs.html b/docs.htmlindex 3c3620ea..5c5c806c 100644--- a/docs.html+++ b/docs.html@@ -25,7 +25,7 @@</main><footer class="site-footer" aria-label="Site footer"><p><a class="brand" href="/" aria-label="67js home">67js</a> by <a href="https://codepawl.com">CodePawl</a></p>- <nav class="footer-links" aria-label="Project links"><a href="https://github.com/codepawl/67.js">GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js">npm</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a><a href="/logo.svg" download>Logo SVG</a></nav>+ <nav class="footer-links" aria-label="Project links"><a href="https://github.com/codepawl/67.js"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js"><span class="package-logo package-logo-npm" aria-hidden="true"></span>npm</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a><a href="/logo.svg" download>Logo SVG</a></nav></footer><script type="module" src="/src/documentation.js"></script></body></html>diff --git a/film.html b/film.htmlindex 862f8dd4..f61b6b84 100644--- a/film.html+++ b/film.html@@ -20,9 +20,11 @@<a class="brand" href="./">67js</a><span class="film-name">OPPENHEIMER</span><nav aria-label="Explore 67js">- <a href="./nature.html">Nature</a><a href="./object.html">Object</a>- <a href="./docs.html">Docs</a><a href="./downloads.html">Downloads</a></nav>+ <a href="./nature.html">Nature</a>+ <a href="./film.html" aria-current="page">Film</a>+ <a href="./motion.html">Motion</a>+ <a href="./docs.html">Docs</a><a href="./index.html#examples">Showcase</a></nav></header><section class="transport player-interface" aria-label="Film playback"><div class="transport-actions">diff --git a/index.html b/index.htmlindex f6301338..1c353f13 100644--- a/index.html+++ b/index.html@@ -121,7 +121,7 @@ renderer.render({ eye: [58, 31, 84], target: [-8, 3, -18] });</code></pre></main><footer class="site-footer" aria-label="Site footer"><p><a class="brand" href="/" aria-label="67js home">67js</a> by <a href="https://codepawl.com">CodePawl</a></p>- <nav class="footer-links" aria-label="Project links"><a href="https://github.com/codepawl/67.js">GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js">npm</a><a data-release-commit href="https://github.com/codepawl/67.js">Release commit</a><a href="/changelog.html">Changelog</a><a href="/license.txt">MIT license</a><a href="/logo.svg" download>Logo SVG</a></nav>+ <nav class="footer-links" aria-label="Project links"><a href="https://github.com/codepawl/67.js"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js"><span class="package-logo package-logo-npm" aria-hidden="true"></span>npm</a><a data-release-commit href="https://github.com/codepawl/67.js">Release commit</a><a href="/changelog.html">Changelog</a><a href="/license.txt">MIT license</a><a href="/logo.svg" download>Logo SVG</a></nav></footer><script type="module" src="/src/home.js"></script><script type="module" src="/src/home-effects.js"></script>diff --git a/nature.html b/nature.htmlindex 72420731..ab02d6c0 100644--- a/nature.html+++ b/nature.html@@ -16,6 +16,7 @@<a href="./object.html">Object</a><a href="./nature.html" aria-current="page">Nature</a><a href="./film.html">Film</a>+ <a href="./motion.html">Motion</a><a href="./docs.html">Docs</a><a href="./index.html#examples">Showcase</a></nav><button id="save-image">Save PNG <span aria-hidden="true">↗</span></button></header>diff --git a/object.html b/object.htmlindex 59b0f20e..e9f3cd08 100644--- a/object.html+++ b/object.html@@ -12,7 +12,7 @@<main><header class="toolbar"><a class="brand" href="./" aria-label="67js home">67js</a>- <nav class="studio-nav" aria-label="Scenes"><a href="./object.html" aria-current="page">Object</a><a href="./nature.html">Nature</a><a href="./film.html">Film</a><a href="./docs.html">Docs</a><a href="./index.html#examples">Showcase</a></nav>+ <nav class="studio-nav" aria-label="Scenes"><a href="./object.html" aria-current="page">Object</a><a href="./nature.html">Nature</a><a href="./film.html">Film</a><a href="./motion.html">Motion</a><a href="./docs.html">Docs</a><a href="./index.html#examples">Showcase</a></nav><div class="toolbar-actions"><button id="reset" title="Reset camera (R)">Reset view</button><button id="export" class="primary">Export GLB <span aria-hidden="true">↗</span></button>diff --git a/showcase.html b/showcase.htmlindex 156fbdca..8332eb3e 100644--- a/showcase.html+++ b/showcase.html@@ -39,7 +39,7 @@</main><footer class="site-footer" aria-label="Site footer"><p><a class="brand" href="/" aria-label="67js home">67js</a> by <a href="https://codepawl.com">CodePawl</a></p>- <nav class="footer-links" aria-label="Project links"><a href="https://github.com/codepawl/67.js">GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js">npm</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a></nav>+ <nav class="footer-links" aria-label="Project links"><a href="https://github.com/codepawl/67.js"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js"><span class="package-logo package-logo-npm" aria-hidden="true"></span>npm</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a></nav></footer><script type="module" src="/src/showcase.js"></script></body>diff --git a/src/brand.js b/src/brand.jsindex 89b8b660..49005540 100644--- a/src/brand.js+++ b/src/brand.js@@ -21,9 +21,10 @@ const paths = {image:'M3 3h18v18H3V3Zm0 14 6-6 5 5 3-3 4 4M16 8h.01',package:'M3 7 12 2l9 5v10l-9 5-9-5V7Zm0 0 9 5 9-5M12 12v10M7.5 4.5l9 5v4',history:'M3 12a9 9 0 1 0 2.6-6.4L3 8M3 3v5h5M12 7v5l3.5 2',+ motion:'M4 12c3-8 5 8 8 0s5 8 8 0',github:'M9 19c-4 1-4-2-6-2m12 5v-4a3.5 3.5 0 0 0-1-2.7c3.3-.4 6.7-1.6 6.7-7.3a5.7 5.7 0 0 0-1.5-4 5.3 5.3 0 0 0-.1-4S18 0 15 2a14 14 0 0 0-7 0C5 0 3.9 0 3.9 0a5.3 5.3 0 0 0-.1 4 5.7 5.7 0 0 0-1.5 4c0 5.7 3.4 6.9 6.7 7.3A3.5 3.5 0 0 0 8 18v4',};-const labels = { Examples:'cube', Showcase:'cube', Docs: 'book', Changelog:'history', Documentation:'book', 'Getting started':'book', Downloads:'download', 'Package source':'code', Object:'cube', Nature:'leaf', Film:'film', Animation:'film', 'Save PNG':'image', 'Export GLB':'download' };+const labels = { Examples:'cube', Showcase:'cube', Docs: 'book', Changelog:'history', Documentation:'book', 'Getting started':'book', Downloads:'download', 'Package source':'code', Object:'cube', Nature:'leaf', Film:'film', Motion:'motion', Animation:'film', 'Save PNG':'image', 'Export GLB':'download' };for (const element of document.querySelectorAll('nav a, [data-icon], #save-image, #export')) {// Footer links stay plain text; only header and page navigation get an icon by label.const labelIcon = element.closest('.footer-links') ? undefined : labels[element.textContent.trim().replace(/[↓↗]/g, '').trim()];diff --git a/src/nature-style.css b/src/nature-style.cssindex 455fbb98..ae48b1a0 100644--- a/src/nature-style.css+++ b/src/nature-style.css@@ -29,7 +29,7 @@ h1 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 42px); font-weight: 500; letteselect { padding: 9px 28px 9px 11px; border-radius: 6px; background: #f5f7f20d; font-size: 14px; }option { background: #22352b; }.landscape-controls .range-control { display: block; width: 150px; }-.range-control span { display: flex; justify-content: space-between; margin-bottom: 5px; }+.range-control span { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }output { color: #a8baa9; font-size: 12px; }input[type='range'] { display: block; width: 100%; height: 17px; margin: 0; accent-color: #c5dcaa; cursor: pointer; }#motion { margin-left: auto; font-size: 14px; }diff --git a/src/site.css b/src/site.cssindex 404da2da..11f39e33 100644--- a/src/site.css+++ b/src/site.css@@ -361,7 +361,8 @@ body.site > main > section { scroll-margin-top: 96px; }.site .site-footer p { display: flex; align-items: center; gap: 5px; }.site .site-footer p a:not(.brand) { color: var(--text); }.site .footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }-.site .footer-links a { display: inline-flex; align-items: center; min-height: 26px; color: var(--muted); }+.site .footer-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 26px; color: var(--muted); }+.site .footer-links .package-logo { width: 14px; height: 14px; }.site .footer-links a:hover { color: var(--text); text-decoration: underline; }/* Docs: the reading page keeps its own layout (documentation.css) on these tokens. */