Repository navigation
feat(web): refresh OG image for the redesign - #168
Merged
Merged
Conversation
Render a 1200x630 share card from the theme tokens, fonts and landing copy with a pnpm og:image script, and point og:image/twitter:image at an absolute URL with size and alt metadata so link unfurlers pick it up.
Merged
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.
Summary
The social share image predated the redesign (#159): an 800x420 black card with old copy, linked by a relative path that many unfurlers ignore.
og.png(1200x630) in the dark theme: logo, landing title/subtitle/badge, the browser → server → burned demo card, and the ML-KEM-768 · ChaCha20-Poly1305 footer.pnpm --filter @crypt.fyi/web og:imageregenerates it with the existing Playwright Chromium, using the theme package's fonts, the logo SVG and the dark tokens, so it can be refreshed after copy or theme changes.og:image/twitter:imageare now absolute (https://crypt.fyi/og.png), withog:image:width/height/type,og:url,og:site_name, updated alt text, andtwitter:titlealigned with the current title.Self-hosted instances will show crypt.fyi's image in previews, consistent with the canonical link already pointing at crypt.fyi.
Testing
pnpm --filter @crypt.fyi/web lintand Prettier pass