Repository navigation
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
Closed
IanoNjuguna wants to merge 2 commits into
IanoNjuguna wants to merge 2 commits into
Conversation
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.
Contributor
Author
|
Superseded. The same work now lands as four reviewable layers, in an order where each merge leaves
The last two are pushed ( |
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.
What this does
The landing page as it ships, plus the bar and the phone menu that go with it.
sessions.json, from the PR below this one)Merge order
Stack 2 of 2. Depends on #380, which adds the session generator,
sessions.json, therepoblock 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:main, this branch is rebased onto it (git rebase --onto main stack/01-session-index stack/02-landing-page) and force-pushed, after which the diff here is only this layer.Decisions worth a reviewer's time
Bands are tokens, not colours. Each band declares
--band-bgand--card-bg;.bandDarkre-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
-6pxspread 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.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