Skip to content

Add fallback thumbnail SVG for missing project thumbnails#471

Open
superconductor-for-github[bot] wants to merge 1 commit into
mainfrom
cycomachead/missing-thumbnail-svg
Open

Add fallback thumbnail SVG for missing project thumbnails#471
superconductor-for-github[bot] wants to merge 1 commit into
mainfrom
cycomachead/missing-thumbnail-svg

Conversation

@superconductor-for-github

Copy link
Copy Markdown

Summary

  • Adds static/img/missing-thumbnail.svg, a 160x120 placeholder in Berkeley blue (#003262) for use anywhere a project thumbnail can't be served.
  • Asset-only; no Lua / routing changes here, so it ships independently of any controller wiring.

Test plan

  • static/img/missing-thumbnail.svg is served by nginx (curl https://<host>/static/img/missing-thumbnail.svg).
  • Renders correctly at 160x120 in Safari, Firefox, and Chrome.
  • Magnifying-glass icon and both text lines visually centered in the box.

A 160x120 placeholder rendered in Berkeley blue (#003262) when a
project has no stored thumbnail and one can't be regenerated from
its XML. Intended to be wired up to the listing/render paths so a
single broken project no longer leaves an empty <img> on the page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant