feat: Homebrew badge + animated star counter#266
Merged
timothytlewis merged 1 commit intomainfrom Mar 10, 2026
Merged
Conversation
- Add HomebrewBadge component (lightweight styled Box, not MUI Chip) - 'From the creator of Homebrew' with beer mug icon - Responsive: shorter text on mobile - Accessible: role=status, aria-label, tabIndex, focus-visible outline - Hover: border color transitions to primary - Enhance Stars component with animated counter - Counts from 0 to actual value using requestAnimationFrame - Ease-out cubic easing for smooth deceleration - Respects prefers-reduced-motion (instant display) - Tabular-nums for stable width during animation - aria-live=polite for screen reader updates - Integrate badge into hero section (above 'Run Anything' heading) - Add public/stars.json with current count (9718) Bundle impact: +1.75KB raw, +0.76KB gzip (budget was 6KB)
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
Adds two UI enhancements to the pkgx.sh hero section:
1. Homebrew Heritage Badge
2. Animated Star Counter
Accessibility (WCAG 2.1 AA)
role="status"andaria-labelon badgearia-live="polite"for counter updates to screen readersprefers-reduced-motionrespected (instant display, no animation)tabIndex={0}andfocus-visibleoutline on badgerole="img" aria-hidden="true"on decorative emojiBundle Impact
Files Changed
src/components/HomebrewBadge.tsx(new)src/components/Stars.tsx(enhanced with animation)src/pkgx.sh/Hero.tsx(badge integration)public/stars.json(star count data)