Repository navigation
Website redesign, rebuilt with Astro - #4
Merged
Merged
Conversation
- One serif (Newsreader) for all text, the stencil face for the name only; no capitals-only labels; paper grain; light and dark - Hero replays real games the engine played (site/games.json, recorded by the new record_games example), paused when off screen, static when the visitor prefers reduced motion - Far less text: three facts, download, three ideas, play; the tables and measurements stay in the README - Split into index.html, styles.css and main.js
- site/ is now an Astro project: a Base layout and one component per section (Hero with the live Replay, Facts, DownloadSection, HowItWorks, PlayInvite), global tokens in src/styles/global.css, scoped styles per component - Icons from @lucide/astro, the GitHub mark from simple-icons; fonts self-hosted with Fontsource (no requests to Google) - The version comes from Cargo.toml at build time; prebuild builds the game into public/play, served at /play - Header gets a rule below it - vercel-build.sh installs Rust, then npm ci and npm run build; CI runs astro check and the build on Node from site/.nvmrc
|
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.
Rebuilds the website in
site/as an Astro project with a new design. Nothing in the engine changes; the only Rust addition is an example that records games for the landing page.Design
Structure
src/layouts/Base.astro, and one component per section insrc/components/; global tokens insrc/styles/global.css, scoped styles per component.Cargo.tomlat build time.prebuildbuilds the browser game intopublic/play, served at/play.src/data/games.jsoncomes fromcargo run --release -p broadside-core --example record_games(8 games of 39 to 47 shots, close to the engine's mean).Build and CI
site/vercel-build.shinstalls Rust, then runsnpm ciandnpm run build; output stays insite/dist, sovercel.jsonis unchanged. Tested from scratch in a cleannode:24-bookwormcontainer.site/.nvmrcand runsastro checkand the build.Checked locally: fmt, clippy,
cargo test --release(58 + 2 passed),astro check(0 errors, 0 warnings),astro build, actionlint. Screenshots in light, dark and phone width reviewed before opening.