Repository navigation
fix(site): rebuild the Product Hunt badge as a native pill - #18
Merged
Merged
Conversation
The stock 250x54 embed banner was fixed-size, off-brand, and needed a light/dark image swap plus two external image fetches. Rebuild it in the site's badge language: hairline pill, inline logomark, tokenized colors that inherit both themes, and a hover that warms the border with the PH orange. 231px wide, so it sits comfortably on a 320px screen with no special casing. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013WcW3UberW5gdML6w5nBzi
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
Replaces the stock Product Hunt embed banner in the hero with a native pill that matches the site's badge language.
What changed
Why
The stock banner was fixed at 250x54, visually off-brand, required a light/dark image swap, made two external image requests, and could shift layout while loading. The native pill inherits both themes from tokens, loads with the page, and at 231px wide fits a 320px screen without special casing.
How to test
cd site && npm run dev, open the landing page: badge sits above the headline in both themes; hover lifts it and warms the border; the link (with the original UTM parameters) still opens the PH page. Production build passes the asset check.Risks / follow-ups
Loses PH's live upvote count that the embed image displayed. It was tiny at that size; the featured claim is what matters.
🤖 Generated with Claude Code
https://claude.ai/code/session_013WcW3UberW5gdML6w5nBzi