Skip to content

fix(site): rebuild the Product Hunt badge as a native pill - #18

Merged
kuladeepmantri merged 1 commit into
mainfrom
fix/ph-badge-native-pill
Jul 20, 2026
Merged

kuladeepmantri merged 1 commit into
mainfrom
fix/ph-badge-native-pill

Conversation

@kuladeepmantri

Copy link
Copy Markdown
Collaborator

Summary

Replaces the stock Product Hunt embed banner in the hero with a native pill that matches the site's badge language.

What changed

  • Hero.astro: inline PH logomark SVG + "Featured on Product Hunt" text + external-link arrow, replacing the two external embed images
  • landing.css: pill styling from design tokens (hairline border, 999px radius, xs type); hover warms the border with PH orange; focus ring kept

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

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
@kuladeepmantri
kuladeepmantri merged commit 670b422 into main Jul 20, 2026
2 checks passed
@kuladeepmantri
kuladeepmantri deleted the fix/ph-badge-native-pill branch July 20, 2026 18:16
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