Skip to content

Website: Tailwind, first-screen hero, icon alignment, strength section, smarter download - #8

Merged
AdminGodZ merged 5 commits into
mainfrom
website-first-screen
Nov 20, 2026
Merged

AdminGodZ merged 5 commits into
mainfrom
website-first-screen

Conversation

@AdminGodZ

@AdminGodZ AdminGodZ commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

What changes

Styling moves to Tailwind v4 (@tailwindcss/vite).

  • Components now use utility classes.
  • global.css keeps what utilities can't express:
    • the theme: colours as variables that switch with the colour scheme, plus fonts, the lg breakpoint and spacing
    • base typography
    • the paper grain
    • the icon lift
  • The replay board's SVG keeps its own CSS, because a script draws it.
  • There's a new Button component.
  • Custom variants os-known:, os-windows:, os-mac: and os-mobile: read html[data-os].

First screen is just the hero. The header and hero fill the viewport (100svh), so the next section starts at the fold.

Icons are centred on the capitals of their label.

New section after the hero: "The strongest Battleship engine we know of".

  • It's built around the three numbers that were already there, plus the classic density bot's 44.8 for comparison.
  • It links to the README's measurements.

GitHub links open in a new tab. This covers the header, the footer and "How it works". Each link has an external-link icon and "(opens in a new tab)" for screen readers.

No more font flash.

  • Fonts go through Astro's fonts API, read from the installed Fontsource packages, so the build needs no network.
  • They're preloaded from <head>, with metric-matched fallbacks.
  • Newsreader uses font-display: fallback. The stencil wordmark uses block.
  • Latin only.

Download section follows the visitor's system.

  • Detection runs inline before the section renders, so the button never changes after load.
  • Macs default to Apple Silicon. They switch to the Intel build when the browser reveals an Intel CPU (Chromium's architecture hint) or an Intel/AMD graphics chip (WebGL, for Firefox).
  • On Windows the commands read broadside.exe.
  • The Gatekeeper note shows only on Macs.
  • Phones and tablets get a hint to play in the browser instead.
  • When the system can't be detected, everything shows.
  • "Other systems" opens as a menu over the page, so nothing moves. A click elsewhere or Escape closes it.

Checks

  • npm run check: 0 errors, 0 warnings, 0 hints
  • npm run build: passes
  • cargo fmt --check, cargo clippy --all-targets -D warnings and cargo test passed on the first commit; the later commits change only site/.
  • Checked in a browser against astro preview:
    • At 1280×800 the next section starts at exactly 800px.
    • Icon offsets from the capitals' middle are ≤ 0.4px.
    • Each of windows, mac, linux, mobile and unknown shows the right instructions.
    • Dark mode works, and light mode swaps the logo.
    • At 390×844 there is no horizontal scroll.

Flex centring put icons on the middle of Newsreader's text box, which sits
.07em below the middle of its letters, so every icon beside text looked a
little low. Lift them by that much; the Mac note's info icon gets the same
correction on its first line.
… download menu

- Header and hero together fill the viewport, so the numbers start below the fold.
- GitHub links (header and footer) open in a new tab, with an icon that says so
  and "(opens in a new tab)" for screen readers.
- Fonts go through Astro's fonts API: preloaded from the HTML head, so they arrive
  with the page instead of after the stylesheet, with metric-matched fallbacks.
  Newsreader uses font-display: fallback, the stencil name block. Latin only.
- "Other systems" opens as a menu over the page instead of pushing content down;
  a click elsewhere or Escape closes it.
@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 5:51pm UTC

…smarter download

- Styles move to Tailwind v4 utilities. global.css keeps the theme (colours that
  follow the colour scheme, fonts, breakpoint, spacing), base typography, the paper
  grain and the icon lift; the replay board's SVG keeps its CSS, being drawn by script.
  New Button component for the site's buttons.
- Icons are centred on the capitals of their label: flex centring puts them on
  Newsreader's em box middle, .1em lower (ascent .735, cap height .67). Supersedes
  the .07em lift from fix-icon-alignment (#7), merged in here.
- New section after the hero, "The strongest Battleship engine we know of", around
  the numbers that were there, with the density bot's 44.8 for comparison and a
  link to the measurements.
- Download: detection runs inline before the section renders, so the button never
  switches after load; Intel Macs are told apart where the browser reveals the CPU
  (Chromium) or the graphics chip (Firefox). The instructions follow the system:
  broadside.exe on Windows, the Gatekeeper note only on Macs, a hint to play in the
  browser on phones and tablets; everything shows when the system is unknown.
@AdminGodZ AdminGodZ changed the title Website: hero fills the first screen, fonts without the flash, steady download menu Website: Tailwind, first-screen hero, icon alignment, strength section, smarter download Nov 20, 2026
…, roomier sunk ships, open source in the hero

- Tailwind's reset had dropped every link's underline; links in running text (AdminGod,
  MIT license) are underlined again. Standalone icon links (GitHub, How it was measured,
  Read the full method, Source, Releases) underline on hover.
- Sunk ships: the outline sits 0.8 inside the cells (was 1.6) and crosses reach 2.0
  (was 2.4), so outline and crosses no longer touch.
- Hero: "Free, fully open source, and it runs offline."
@AdminGodZ
AdminGodZ merged commit 2a8aadb into main Nov 20, 2026
4 checks passed
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