Skip to content

Landing page: builder-first structure, inverted bands, and a phone menu sheet (stack 2 of 2) - #381

Closed
IanoNjuguna wants to merge 2 commits into
IntersectMBO:mainfrom
IanoNjuguna:stack/02-landing-page
Closed

IanoNjuguna wants to merge 2 commits into
IntersectMBO:mainfrom
IanoNjuguna:stack/02-landing-page

Conversation

@IanoNjuguna

@IanoNjuguna IanoNjuguna commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

What this does

The landing page as it ships, plus the bar and the phone menu that go with it.

  • 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
  • Pathways is an expanding panel per track, each with its own accent on a 3px leading stripe
  • Latest Updates is a session track built from the archive's own data (sessions.json, from the PR below this one)
  • The bar carries search, sessions and the theme switch in a fixed order, with a repo chip showing stars and forks from a build-time snapshot
  • On phones the bar is menu, centred lockup, search; the menu 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 footer is blue, closed by a cropped DevEx wordmark that runs its full width

Merge order

Stack 2 of 2. Depends on #380, which adds the session generator, sessions.json, the repo block and @types/react-dom. Merge #380 first.

Both PRs target main, because a base branch has to live in this repository and the stack is built in a fork. Two consequences worth knowing:

Decisions worth a reviewer's time

Bands are tokens, not colours. Each band declares --band-bg and --card-bg; .bandDark re-points the whole token set on the section element. In light mode the inverted band is midnight, in dark mode it is moon, which is what stops the rhythm disappearing when the page is already dark.

The theme switch is a view transition. With the global 200ms colour transition, switching themes made the inverted bands flip in their own frame while the page around them was still light, and the page sat at rgb(124,124,125) for a frame. Now element transitions are suppressed for the duration and one snapshot cross-fades into the next.

Buttons carry two shadows. A contact shadow for the edge and a tinted lift whose -6px spread hugs the button; the press travels 1px into the page with an inset dark rather than shrinking, because scale resampled the label.

Focus rings follow the surface. Brand blue on white and caramel, the lighter blue on midnight.

The phone bar is one button, one lockup, one chip. Centring the lockup meant the flanks had to be comparable, so the sessions chip and the theme switch both left the bar for the menu sheet, where they are rows.

Verified

No test runner in this repo, so: tsc --noEmit, docusaurus build, and measurement in a browser.

  • Widths swept 160 to 1920: no horizontal overflow, no bar collisions, no clipped lockup; docs pages at 320, 360, 768, 997
  • Both themes: every text element scanned against its own painted background, none under 4.5:1 on the landing bands
  • Phone bar: lockup 180px with 48px either side at 390, 17/17 at 320
  • Menu sheet: 36 rows, 56px each, 48px search, Esc closes and unlocks the body, Tab lands on close, no sheet above 996
  • Desktop bar unchanged from the design reviewed in Landing page: builder-first structure, inverted bands, and a phone menu sheet #379

Related issues

#300, the component and design-token baseline. This PR is the semantic layer that issue asks for, for this surface: --color-*, --space-*, --radius-*, --shadow-*, plus the band pair (--band-bg / --card-bg) and per-track accents, consumed by name and never as raw values. What it does not do is the three-tier export (W3C JSON, Style Dictionary), the agent skill, or the CI check that fails on arbitrary values, so #300 stays open.

#201, the core contributor pathway. That issue asked for core protocol contribution to be a parallel track rather than a later chapter, and it was closed as not planned. Section 02 of this page carries five parallel tracks, three of them core protocol (Haskell, Rust, Go), each landing on the core-contributor guides that now exist under how-to-guide/advanced/. Recorded here as context, not as a close: a rejected issue is the maintainer's call to revisit.

#264, the default developer environment guide. Not addressed by this PR, which touches no docs. A separate PR links the existing Yaci DevKit guide from Getting Started.

Follow-ups, filed separately

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.
…heet

The page as it ships: hero on caramel, then five bands (01 Start here, 02 Pathways, 03 Explore
Cardano, 04 Become a Contributor, 05 Latest Updates), with 03 and 05 inverted to midnight in
light mode and to moon in dark mode so the page has two chapter breaks instead of five
near-identical bands.

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 the archive's own data. The bar carries search,
sessions and the theme switch in a fixed order, with the repo chip showing stars and forks
from a build-time snapshot. On phones the bar is menu, centred lockup, search, and the menu is
a full-height sheet with the paths and the library laid out inline. The footer is blue, closed
by a cropped DevEx wordmark that runs its full width.

Measured: bands resolve caramel, white, moon, midnight, white, midnight; the phone bar at 390
gives the lockup 180px with 48px either side; the sheet carries 36 rows including DevEx
Sessions, GitHub and Theme; no horizontal overflow at any width from 160 to 1920.

Depends on the data layer beneath it.
@IanoNjuguna

Copy link
Copy Markdown
Contributor Author

Superseded. The same work now lands as four reviewable layers, in an order where each merge leaves main working:

The last two are pushed (stack/02b-footer, stack/02c-navbar) and open as soon as #383 merges: a PR's base has to live in this repository, so opening them against a fork branch is not possible, and opening them against main now would show #383's diff a second time.

@IanoNjuguna IanoNjuguna closed this Nov 7, 2026
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

1 participant