feat: redesign og images to match site style, one per page - #128
Merged
Merged
Conversation
Entire-Checkpoint: 4ae5d376a764
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
React Doctor found no new issues. 🎉 Reviewed by React Doctor for commit |
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.
Summary
The old OG image was a single generic dark card shared by every page. This PR replaces it with a design that matches the site (CuteNotes boxed-letter title, green squiggle underline, Balgin body text on a light background) and gives every page its own image.
Changes
src/lib/og-image.tsx: new design. Loads the local CuteNotes and Balgin font files from disk and renders the title with a hand-drawn squiggle underline in the site accent green (#56ba8e).src/lib/og-utils.ts: OG copy for every route, including the ones that had no entry before (concerts, conferences, elsewhere, friends, hackathons, hardware, keys, open-source, slashes, support-me). Removed the unusedtypecolor schemes.src/app/<route>/opengraph-image.tsx: 21 new per-route images via the Next file convention.src/app/layout.tsx: removed the hardcoded rootopenGraph.images/twitter.imagesso the per-route file convention wins.src/app/api/og/route.tsx: moved off the edge runtime so it can read the font files from disk.Preview
Home and /photos render like the animated page titles on the site: boxed handwritten letters with a green squiggle, subtitle and description in Balgin, and a
jaspermayone.comfooter.