Skip to content

feat: Add bounty countdown timer component (Bounty #826)#931

Open
acharyarjun wants to merge 1 commit intoSolFoundry:mainfrom
acharyarjun:feat/bounty-countdown-timer
Open

feat: Add bounty countdown timer component (Bounty #826)#931
acharyarjun wants to merge 1 commit intoSolFoundry:mainfrom
acharyarjun:feat/bounty-countdown-timer

Conversation

@acharyarjun
Copy link
Copy Markdown

Bounty: Bounty Countdown Timer (#826)

Closes #826

Changes

  • CountdownTimer component with real-time updates every second
  • Shows days, hours, minutes, seconds with monospace font
  • Color states: green (normal) -> amber (<24h warning) -> red (<1h urgent)
  • Displays Expired when deadline passes
  • Optional onExpire callback
  • Dark theme matching SolFoundry design

Usage

tsx
import { CountdownTimer } from '../components/ui';
<CountdownTimer deadline="2026-05-01T00:00:00Z" onExpire={() => console.log('done')} />

Acceptance Criteria

  • Timer displays on bounty cards and detail page
  • Updates without page refresh
  • Changes color when <24h and <1h
  • Shows Expired when deadline passes

- Real-time countdown showing days, hours, minutes, seconds
- Color changes: green (normal) -> amber (<24h warning) -> red (<1h urgent)
- Shows Expired when deadline passes
- onExpire callback support
- Dark theme matching SolFoundry design
- Accessible, compact card format for bounty cards and detail pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

missing-wallet PR is missing a Solana wallet for bounty payout

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🏭 Bounty T1: Bounty Countdown Timer Component

1 participant