feat: add a FuzzyCatalog favicon #59

Merged
jfro merged 3 commits from jtk/favicon into main 2026-10-18 23:00:15 +00:00
Owner

priv/static/favicon.ico was 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's hero-book-open icon (Heroicons, MIT) in white on a rounded square of the light theme's primary orange (#ff6900, which is oklch(70% 0.213 47.6)).
  • favicon.ico now holds 16, 32 and 48 px images rendered from that SVG. New apple-touch-icon.png (180 px, solid background, since iOS rounds the corners itself).
  • The root layout links all three. static_paths/0 now includes favicon.svg and apple-touch-icon.png, so Plug.Static serves them (and phx.digest picks them up in prod).

Preview:
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, then magick the 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 precommit passes.

Fixes #50

`priv/static/favicon.ico` was 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's `hero-book-open` icon (Heroicons, MIT) in white on a rounded square of the light theme's primary orange (`#ff6900`, which is `oklch(70% 0.213 47.6)`). - `favicon.ico` now holds 16, 32 and 48 px images rendered from that SVG. New `apple-touch-icon.png` (180 px, solid background, since iOS rounds the corners itself). - The root layout links all three. `static_paths/0` now includes `favicon.svg` and `apple-touch-icon.png`, so Plug.Static serves them (and `phx.digest` picks them up in prod). Preview: ![preview](https://git.knope.dev/jfro/fuzzy_catalog/raw/branch/jtk/favicon/priv/static/favicon.svg) 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`, then `magick` the 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 precommit` passes. Fixes #50
jfro added this to the 0.6.2 milestone 2026-10-18 21:53:37 +00:00
feat: add a FuzzyCatalog favicon
All checks were successful
CI / test (pull_request) Successful in 1m57s
4fc9b4255e
The shipped favicon.ico was a fully transparent placeholder, so tabs
showed nothing. Add an SVG icon (the navbar's book-open icon on the
light theme's orange), a 16/32/48 favicon.ico and a 180px
apple-touch-icon rendered from it, and link them from the root layout.

Fixes #50
Author
Owner

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.

  • Nit: current advice (Evil Martians) is sizes="32x32" on the .ico link so Chromium prefers the SVG; 48x48 works too.
  • Merge note: same as #58 — both add tests at the same spot in page_controller_test.exs; whichever merges second needs a trivial rebase.
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. - **Nit:** current advice (Evil Martians) is `sizes="32x32"` on the .ico link so Chromium prefers the SVG; 48x48 works too. - **Merge note:** same as #58 — both add tests at the same spot in page_controller_test.exs; whichever merges second needs a trivial rebase.
fix: sizes=32x32 on the .ico link so browsers prefer the SVG
All checks were successful
CI / test (pull_request) Successful in 1m16s
d217bff4fd
Merge remote-tracking branch 'origin/main' into jtk/favicon
All checks were successful
CI / test (pull_request) Successful in 47s
1d51faaf47
# Conflicts:
#	test/fuzzy_catalog_web/controllers/page_controller_test.exs
Author
Owner

Review from Nye (approved) at 1d51faa

Covers 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 merge 1d51faa. 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.

Review from Nye (approved) at 1d51faa Covers 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 merge 1d51faa. 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.
jfro merged commit de2bb60c3c into main 2026-10-18 23:00:15 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/fuzzy_catalog!59
No description provided.