Add per-widget brand favicons#44
Merged
Merged
Conversation
Each widget gets a browser-tab favicon consistent with the personal-site brand (rose red + gold): a shared rounded rose-red tile carrying a per-widget gold/cream glyph — a plotted curve (function-plotter), a split compare panel (image-comparison-table), stacked blocks (japanese-verb-tower), and a tent with a pennant (pennsic-planner). The SVG is the dark-mode-aware primary; a generated multi-size favicon.ico provides the legacy/probe fallback. index.html references both (ico first, sizes=any, so modern browsers still prefer the SVG). validate-widgets.mjs now asserts both <link>s and both files are present. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Gives each widget a browser-tab favicon, consistent with the personal-site brand (rose red + gold, after
beshir-personal-website/public/favicon.svg).Design
A shared rounded rose-red tile (dark-mode-aware gradient) carries a per-widget gold/cream glyph:
The glyphs stay legible down to 16px.
Mechanics
public/favicon.svg— hand-authored, dark-mode-aware (prefers-color-schemeswaps the tile gradient + glyph fills) primary icon.public/favicon.ico— multi-size (16/32/48) raster fallback generated from the SVG's light variant; silences the bare/favicon.icoprobe and covers legacy browsers.index.htmlreferences both,.icofirst withsizes="any"so modern browsers still prefer the SVG.scripts/validate-widgets.mjsnow asserts each widget references both icons and that both files exist inpublic/.Note: favicons render only for the top-level document (the
<slug>.widgets.beshir.orgtab/bookmark), not for iframe embeds.Verified in-sandbox:
validate-widgets.mjspasses for all 4 widgets, and afunction-plotterbuild copiesfavicon.svg+favicon.icointodist/.🤖 Generated with Claude Code