Skip to content

Website redesign, rebuilt with Astro - #4

Merged
AdminGodZ merged 3 commits into
mainfrom
site-redesign
Nov 20, 2026
Merged

AdminGodZ merged 3 commits into
mainfrom
site-redesign

Conversation

@AdminGodZ

Copy link
Copy Markdown
Owner

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

  • Navy ink on cool chart paper with a fine grain; dark mode is a navy night chart.
  • One serif for all text (Newsreader); the stencil face only for the name. No all-caps labels.
  • The hero replays real games the engine played: misses, hits, sunk ships, a marker on the latest shot, and a running caption. It pauses off screen and shows a finished game for visitors who prefer reduced motion.
  • About a third of the old text: three facts, download, how it works, play. The tables and measurements stay in the README, linked from the page.
  • Rule under the header; Lucide icons throughout, plus the GitHub mark from simple-icons.
  • The download button picks the visitor's system; the other builds are folded under "Other systems".

Structure

  • src/layouts/Base.astro, and one component per section in src/components/; global tokens in src/styles/global.css, scoped styles per component.
  • Fonts self-hosted with Fontsource (no requests to Google).
  • The version comes from Cargo.toml at build time. prebuild builds the browser game into public/play, served at /play.
  • src/data/games.json comes from cargo 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.sh installs Rust, then runs npm ci and npm run build; output stays in site/dist, so vercel.json is unchanged. Tested from scratch in a clean node:24-bookworm container.
  • CI's website job sets up Node from site/.nvmrc and runs astro check and 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.

- 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
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
broadside Ready Ready Preview Nov 20, 2026 8:38am UTC

@AdminGodZ
AdminGodZ merged commit 2a17ca3 into main Nov 20, 2026
4 checks passed
@AdminGodZ
AdminGodZ deleted the site-redesign branch November 20, 2026 08:42
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.

1 participant