Repository navigation
Website: Tailwind, first-screen hero, icon alignment, strength section, smarter download - #8
Merged
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…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.
…, 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."
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 changes
Styling moves to Tailwind v4 (
@tailwindcss/vite).global.csskeeps what utilities can't express:lgbreakpoint and spacingButtoncomponent.os-known:,os-windows:,os-mac:andos-mobile:readhtml[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".
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.
<head>, with metric-matched fallbacks.font-display: fallback. The stencil wordmark usesblock.Download section follows the visitor's system.
broadside.exe.Checks
npm run check: 0 errors, 0 warnings, 0 hintsnpm run build: passescargo fmt --check,cargo clippy --all-targets -D warningsandcargo testpassed on the first commit; the later commits change onlysite/.astro preview: