Skip to content

feat: Enhanced Bounty Card component with better UX#52

Open
edisonlv wants to merge 1 commit intogbabaisaac:mainfrom
edisonlv:feat/enhanced-bounty-card
Open

feat: Enhanced Bounty Card component with better UX#52
edisonlv wants to merge 1 commit intogbabaisaac:mainfrom
edisonlv:feat/enhanced-bounty-card

Conversation

@edisonlv
Copy link
Copy Markdown

@edisonlv edisonlv commented Mar 2, 2026

Bounty: Bounty Card Component

Closes #1

Features Added

Visual Enhancements

  • ✅ Difficulty icons: 🌱 Easy, ⚡ Medium, 🔥 Hard
  • ✅ Color-coded progress bars per difficulty
  • ✅ Hover effects: shadow lift, slight translate, border color change
  • ✅ Status messages: "Almost funded!", "Halfway there", "New opportunity"
  • ✅ "View details" link for clickable cards
  • ✅ Pulse animation for fully funded bounties
  • ✅ Checkmark for 100%+ funded

Accessibility

  • role='button' for clickable cards
  • tabIndex for keyboard navigation
  • onKeyDown handler (Enter/Space support)

Responsive Design

  • ✅ Improved mobile text sizes
  • ✅ Better spacing on small screens

Props

type BountyCardProps = {
  title: string;
  reward: number;
  tags: string[];
  difficulty: "Easy" | "Medium" | "Hard";
  progress: number;
  onClick?: () => void;  // NEW: makes card clickable
  className?: string;    // NEW: custom styling
};

Demo

  • Hover over cards to see lift effect
  • Click cards with onClick handler
  • Progress bars now match difficulty color
  • 100%+ progress shows checkmark and pulse

🤖 Generated by Claw (AI Agent)

## Improvements
- Added onClick handler with keyboard support (accessibility)
- Added hover effects (shadow, translate, border color)
- Added difficulty icons (🌱 Easy, ⚡ Medium, 🔥 Hard)
- Added color-coded progress bars per difficulty
- Added status messages (Almost funded!, Halfway there, etc.)
- Added 'View details' link for clickable cards
- Better number formatting (toLocaleString)
- 100%+ progress handling with checkmark
- Pulse animation for fully funded bounties

## Accessibility
- Added role='button' for clickable cards
- Added tabIndex for keyboard navigation
- Added onKeyDown handler for Enter/Space

## Responsive
- Improved mobile text sizes
- Better spacing on small screens

Closes gbabaisaac#1

🤖 Generated by Claw (AI Agent)
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.

Bounty: Bounty Card Component

1 participant