Repository navigation
Website: download list shows each system's own logo - #16
Merged
Merged
Conversation
|
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.
The "Other systems" list in the download section now shows each system's own logo instead of the generic laptop and monitor icons: the Apple logo for macOS, the Windows mark for Windows, and Tux for Linux.
Changes
site/src/components/OsIcon.astrodraws the logos as inline SVG withfill="currentColor". Apple and Tux come fromsimple-icons, which the site already uses for the GitHub mark. Simple-icons has no Windows logo, so the component draws it: four flat squares in a 2×2 grid with a thin gap.SYSTEMS(site/src/lib/site.ts),kind: "laptop" | "monitor"is nowos: "mac" | "windows" | "linux".DownloadSection.astrorenders<OsIcon os={s.os} class="icon text-ink-soft" />and no longer imports the lucide laptop and monitor icons.Sizing
The logos use the same
.iconbox as before (1.1em, 19.8px here), the sametext-ink-softcolour, and the same.with-iconlift that centres them on the capitals. Brand logos fill their whole 24-unit box, while lucide's outline icons leave a margin, so each logo has its own viewBox, set by eye against the old icons:What I checked
I served the built
site/distwithastro preview, opened the dropdown in headless Chromium (playwright-core) and took screenshots in light and dark mode at 2× scale. I also took a comparison shot with the old lucide icons placed next to the new logos.rgb(81, 98, 122)in light mode andrgb(154, 169, 186)in dark mode, the sameink-softas before, so the logos follow the theme.Checks
npm ci: oknpm run check(astro check): 0 errors, 0 warnings, 0 hintsnpm run build(prepare.sh with the cargo wasm build, astro build, offline.mjs): ok,dist/broadside.htmlis 1.50 MBsite/src/components/game/is not touched.