💄 site: tevm-family theme, hero, platform picker and cross-repo nav - #60
Open
roninjin10 wants to merge 1 commit into
Open
💄 site: tevm-family theme, hero, platform picker and cross-repo nav#60roninjin10 wants to merge 1 commit into
roninjin10 wants to merge 1 commit into
Conversation
… nav Applies the shared tevm.sh family identity to the ZEVM docs site and adds the UI layer around the existing prose (prose itself is unchanged). - Theme: family accent #0085FF, tevm logo (light/dark), favicon, Geist type stack. All custom tokens use light-dark() so they resolve correctly for both the system preference and the explicit [data-vocs-theme] toggle. User styles live at src/pages/_root.css, the path vocs' user-styles plugin reads. - Hero on the landing page: what ZEVM is, a copy-paste install line with a copy button, and CTAs into the quickstart / CLI reference / repo. - PlatformPicker: an interactive OS × arch × libc picker that resolves the exact prebuilt package from npm/platforms, mirroring the optionalDependencies of @evmts/zevm. Unsupported combos are disabled and point at the build-from-source guide. Zero dependencies, ~200 lines, used on the landing page and on Installation. - Cross-repo navigation: a "tevm family" topNav dropdown on every page plus a FamilyNav grid on the landing page, linking all 13 live family sites. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Visual/UI layer for the ZEVM docs site (zevm.tevm.sh). Branched off
prod/zevm-readiness(PR #59), which is where the currentsite/vocs build and its prose live — so this targets that branch, notmain. The documentation prose is unchanged; this PR is theme, layout and components only.Theme — matched to the family, not invented
Checked the live sibling
contract.tevm.shbefore styling: it renders with--vocs-color-accent:#0085FF, the Geist / Geist Mono type stack, and/tevm-logo-light.png+/tevm-logo-dark.png. This site now uses the same accent, the same logo assets (fetched from the live sibling), and a favicon.Custom tokens are defined with
light-dark(). Vocs 2.7 setscolor-schemeon[data-vocs-theme=light|dark], so a single token set resolves correctly for both the system preference and the explicit theme toggle — no duplicated.darkblocks.Two build-level gotchas worth recording: vocs 2.7 takes
accentColorat the top level of the config (there is nothemeorfontkey), and user CSS must live atsrc/pages/_root.css— astyles.cssat the root is silently ignored by thevocs:user-stylesplugin.Hero
components/Hero.tsx— what ZEVM is,npm install @evmts/zevm@betawith a copy button, and CTAs into the quickstart, CLI reference and repo. The existing code samples on the page render below it unchanged.Interactive component:
PlatformPickerZEVM ships nine prebuilt native packages under
npm/platforms/*, wired into@evmts/zevmasoptionalDependencies. The picker lets a reader select OS × arch × libc and shows the exact package they will get, with the libc control appearing only for Linux and unsupported arch/OS combinations disabled and struck through. It guesses the visitor's platform from the UA on mount. Unsupported combos link to the build-from-source guide instead of dead-ending.Zero new dependencies, self-contained, and used on both the landing page and Installation — where the platform question actually gets asked.
Cross-repo navigation
A
tevm familytopNav dropdown on every page, plus aFamilyNavgrid at the bottom of the landing page. Both link all 13 live family sites: tevm.sh, contract, bundler, cli, test, logger, ethers, mud, examples, voltaire, guillotine, mini, zevm.Verification
npm run build(clean):Rendering and interactivity were checked with headless Chromium against
vocs previewin both color schemes (temporarily pointingbaseUrlat localhost so client assets hydrate; restored before commit):Both themes hydrate with no page errors, the picker resolves the correct package for every combination exercised, and all 13 family links render.
🤖 Generated with Claude Code