Repository navigation
Kit header: an era bar back to phase 1, and Iron Bamboo in the menu - #18
Merged
Merged
Conversation
- nav.era in nav.<lang>.json draws a slim bar above every header: which phase this is, and a link back to phase 1 (interimm.org). - The menu's game entry becomes an Iron Bamboo group: its home, the relay game and the star map; the footer gains the star map. - Every page loads the kit with ?v=3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QUNj9piTc2aGUUJFvN31tV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by L · project thread
Before: the only way back to phase 1 was the last item in a folded menu. Iron Bamboo appeared only as "The Relay (game)".
After: every page opens with a slim era bar above the header. It reads "第二阶段 · 通联纪 · 2219" on the left and links back to phase 1 (interimm.org) on the right, in Sol yellow. The menu has an Iron Bamboo group with three links: its home, the relay game and the star map. The footer also lists the star map. Iron Bamboo's own site reads the same nav JSON, so the two sites now share one top bar.
How:
nav.erainkit/nav.<lang>.jsonholds the bar's label and back link, andinterimm.jsdraws it above.header-inner. The menu'slifeitem becomes anironbamboogroup, so pages withdata-current="life"still highlight it. Every page now loads the kit with?v=3. Pages that use the kit from elsewhere, like the exoplanet explorer, pick the bar up automatically.Checked:
npm testpasses (27). I also checked the header at phone and desktop widths in Chromium, with the menu and the Iron Bamboo group open.Generated by Claude Code