Show What's the Point with its own screenshots, per colour scheme - #2
Merged
Merged
Conversation
The projects grid falls back to a title-and-tags card when a project has no image, which is what What's the Point has been getting. It now has a real one: the launcher screen, captured from the running app by the marketing pipeline in the wtp repo. A single screenshot would have been wrong half the time. The app themes itself and so does this site, so a light-mode shot sits in a dark page as a glowing rectangle. The entry carries both variants and the site picks one to match the reader. `imageDark` is optional and falls back to `image`, so the three projects pointing at itch.io art are untouched. Both call sites move to `UColorModeImage`, which swaps with a `dark:` class rather than reading colour mode in JS — the pages are prerendered, and a JS swap would show the wrong image until hydration. It renders through NuxtImg, so the existing width/height hints still reach the optimiser. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UHZiNTwwiniSxbBr9BQdEw
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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 projects grid falls back to a title-and-tags card when a project has no image, which is what What's the Point has been getting. It now has a real one: the launcher screen, captured from the running app by the marketing pipeline in the
wtprepo (npm run marketing).A single screenshot would have been wrong half the time. The app themes itself and so does this site, so a light-mode shot sits in a dark page as a glowing rectangle. The entry carries both variants and the site picks one to match the reader.
Changes
public/projects/whats-the-point-{light,dark}.png— the launcher screen at 640×400, the thumbnail size the capture pipeline emits.content.config.ts— projects gain an optionalimageDark.content/projects/whats-the-point.yml— points at both files.Hero.vueandprojects.vue— the two placesproject.imageis rendered now useUColorModeImage.imageDarkis optional and falls back toimage, so the three projects pointing at itch.io art are untouched.Why
UColorModeImageIt swaps with a
dark:class rather than reading colour mode in JS. Both pages are prerendered, so a JS swap would show the wrong image until hydration. It renders throughNuxtImginternally, so the existingwidth/heighthints still reach the optimiser — the homepage marquee still requestss_234x234.UColorModeAvatarwas already used for the profile picture inHero.vue, so this stays in the same idiom.Verification
Built and served the production output, then drove both pages in Chromium with the colour mode seeded each way:
/marquee/_ipx/s_234x234/projects/whats-the-point-light.pngvisible, dark hidden/projectscard/_ipx/_/projects/whats-the-point-light.pngvisible, dark hiddennpx eslint .reports the same 40 errors / 1 warning before and after this branch — all inapp/app.vueandapp/pages/about.vue, neither touched here.Noticed, not fixed
drop-by-drop,plan-it-planet, andproject-psxpointimageathttps://img.itch.zone/.... Those render broken onmastertoday —@nuxt/imagehas noimage.domainsentry for that host, so it strips the host and requests the path relative to the site. Confirmed identical on a cleanmasterbuild, so it predates this change and is left alone. Addingimage: { domains: ['img.itch.zone'] }tonuxt.config.tswould be the fix, if you want it as a follow-up.Generated by Claude Code