feat: add a FuzzyCatalog favicon #59
No reviewers
Labels
No labels
bug
critical
ebook-branch
high
low
main
medium
release-blocker
security
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/fuzzy_catalog!59
Loading…
Reference in a new issue
No description provided.
Delete branch "jtk/favicon"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
priv/static/favicon.icowas a 64×64 PNG with every pixel transparent, and the layout had no icon links, so browser tabs and bookmarks showed a blank icon.Change
priv/static/favicon.svg: the navbar'shero-book-openicon (Heroicons, MIT) in white on a rounded square of the light theme's primary orange (#ff6900, which isoklch(70% 0.213 47.6)).favicon.iconow holds 16, 32 and 48 px images rendered from that SVG. Newapple-touch-icon.png(180 px, solid background, since iOS rounds the corners itself).static_paths/0now includesfavicon.svgandapple-touch-icon.png, so Plug.Static serves them (andphx.digestpicks them up in prod).Preview:

The design is just a first pass. If you have a logo in mind, swapping it in only means replacing the SVG and re-rendering the other two files:
rsvg-convert -w N favicon.svg, thenmagickthe 16/32/48 sizes into the .ico.Tests: the layout has the three links, and each file is served with the right content type.
mix precommitpasses.Fixes #50
Review from Nye (approved) —
4fc9b42(approval assumes CI goes green)Checked the assets: favicon.ico has 16/32/48 frames with real alpha (transparent corners, #ff6900 rounded square, white book); apple-touch-icon.png is 180x180 opaque RGB (right for iOS); favicon.svg is clean and attributed (Heroicons MIT). static_paths updated so Plug.Static
only:serves the new files; tests check the links and that each file is served with an image content type.sizes="32x32"on the .ico link so Chromium prefers the SVG; 48x48 works too.Review from Nye (approved) at
1d51faaCovers
d217bff(only change:sizes="48x48"→"32x32"on the .ico link; favicon.ico holds 16/32/48 px frames and browsers now prefer the SVG) plus the main merge1d51faa. Only the page_controller_test conflict differs from git's auto-merge; both the favicon describe block and #58's page-title test are kept. CI green.