Skip to content

The bar, and the phone menu as a sheet (stack 6 of 6) - #387

Merged
danbaruka merged 6 commits into
IntersectMBO:mainfrom
IanoNjuguna:stack/06-navbar
Nov 10, 2026
Merged

danbaruka merged 6 commits into
IntersectMBO:mainfrom
IanoNjuguna:stack/06-navbar

Conversation

@IanoNjuguna

Copy link
Copy Markdown
Contributor

What this does

The bar, and the phone menu as a sheet. This is the last layer of the stack, and the one that makes the page look finished.

  • The bar carries search, the sessions control and the theme switch in a fixed order, with the repo chip showing stars and forks from a build-time snapshot
  • The theme switch is a real navbar item rather than the built-in one moved with CSS order, so markup order and tab order agree, which is Navbar: theme toggle's visual order is ahead of its tab order #377
  • On phones the bar is one button, one centred lockup and one chip: the sessions control and the theme switch both leave for the menu, which is a full-height sheet with the five paths and every library topic laid out inline, and DevEx Sessions, GitHub and Theme as its last rows
  • The theme switch goes through a view transition with element transitions suppressed, so a change is one cross-fade rather than every band interpolating its own colour
  • The carried-forward old navbar rules leave the stylesheet with this PR

Merge order

Stack 6 of 6. Merge after #380, #384, #383, #385 and #386.

gh pr checks on this head is a real run of this code, but its diff shows the five layers below it while they are still open, because a PR's base has to live in this repository and the stack is built in a fork. Own layer: 10 files, +673 −43.

Verified

Measured on this tree at the top of the stack:

  • Desktop: five headings in order, repo chip present, toggle present, no overflow at 1280
  • Phone at 390: lockup 180px centred with 48px either side, no contact with the search chip; 17/17 at 320
  • Sheet: 36 rows at 56px, 48px search, 72px header, Esc closes and unlocks the body, Tab lands on close, nothing renders above 996
  • Theme switch: 2 distinct style states instead of 5 during a switch, one startViewTransition call, 17ms under reduced motion
  • Focus rings: brand blue on white and caramel, lighter blue on midnight, measured per surface in both themes

Closes #377

Three things that no page renders yet, shipped first so the landing page can import them.

`scripts/generate-sessions.js` reads the archive's frontmatter and writes
`src/data/sessions.json`. It derives each href from the file's own path, accounting for
Docusaurus stripping number prefixes and for `readme`/`index` folders, because the archive is
inconsistent: most sessions carry a `slug:` that includes their number, eight have none and are
served at the number-stripped path, and two folders are both numbered 14. 21 sessions against
26 built routes, none missing.

`scripts/fetch-github-data.js` also calls `/repos/{owner}/{repo}` and writes a `repo` block,
with the same keep-on-failure rule as the rest of that script. `githubData.json` gains that
block so a local build has stars and forks to render.

`@types/react-dom` arrives for the components that follow.
Colour, spacing, radius and shadow tokens named by intent rather than by value, plus the
warning callout's four values, the track accents, the focus ring and the theme-switch rules.
106 tokens where the stylesheet had 85 and drops none of them, so every existing rule keeps
resolving to what it resolved to before: the rendered page is unchanged, which is the point of
landing the vocabulary before the page that speaks it.

The dark surface moves to html[data-theme='dark'] in the same pass. Infima declares its own dark
tokens on that selector, so a bare [data-theme='dark'] block loses every contested token without
saying so.
Hero on caramel, then five bands: 01 Start here, 02 Pathways, 03 Explore Cardano, 04 Become a
Contributor, 05 Latest Updates. 03 and 05 invert to midnight in light mode and to moon in dark
mode, so the page has two chapter breaks instead of five near-identical bands, and every band
declares --band-bg / --card-bg rather than a colour.

Pathways is an expanding panel per track with that track's accent on a 3px leading stripe.
Latest Updates is a session track built from sessions.json. Section 04 pairs the contribution
routes with the next working-group call. The hero illustration ships as webp.

The old navbar and footer rules are carried forward unchanged at the foot of the stylesheet:
this PR lands the page before the chrome that replaces them, and without those rules the current
footer would lose its gradient the moment it merged. The next two PRs delete them, one each.
Section 04 becomes a two-column band on the page's own frame: the contribution routes on the left,
the next working-group call on the right, with the contributor strip under the copy. The
repository pulse card goes, along with its two caret-less counts and the quarterly-date note that
decayed between refreshes.

The sessions control becomes a floating action that expands on hover, and moves into the navbar
below 769px. It also brings the chunk-load recovery in Root: a deploy replaces the hashed chunks,
and a tab left open across that boundary fails its next lazy route load. Reload once, rate-limited
so a genuinely missing chunk cannot loop.
…dmark

Copyright and the mark on the left, three link columns beside it, a hairline, then the legal row
and a DevEx wordmark cropped by the footer's own bottom edge. The wordmark runs the footer's full
width and keeps one colour in both themes: it is built from a brand token, not a themed one,
because the footer's blue does not move either.

The eleven old footer rules leave the global stylesheet with it.
The bar carries search, the sessions control and the theme switch in a fixed order, with the repo
chip showing stars and forks from a build-time snapshot. The theme switch is a real navbar item,
so markup order and tab order agree, which is IntersectMBO#377.

On phones the bar is one button, one centred lockup and one chip: the sessions control and theme
switch both leave for the menu, a full-height sheet with the five paths and every library topic
inline, and DevEx Sessions, GitHub and Theme as its last rows.

The switch goes through a view transition with element transitions suppressed, so a theme change is
one cross-fade rather than every band interpolating its own colour. The carried-forward old navbar
rules leave with this PR.
danbaruka pushed a commit that referenced this pull request Nov 10, 2026
Credits people for something specific rather than for showing up: the first
entry is the security report that removed the Discord server invites from the
site, and the second is the landed work, counted from commits on main.

Kept as its own docs page rather than a homepage band because the landing page
is mid-rewrite in the open stack (#383, #385, #386, #387), and a band here would
conflict with all four and renumber every section.
@danbaruka
danbaruka merged commit 4272dea into IntersectMBO:main Nov 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Navbar: theme toggle's visual order is ahead of its tab order

2 participants