Skip to content

deepdadou/bounty-countdown-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Bounty Countdown Timer

A beautiful, customizable countdown timer component for bounty displays. Built with React + Tailwind CSS.

Bounty Countdown Timer Tailwind CSS License

✨ Features

  • 🎨 5 Beautiful Themes - Purple, Blue, Green, Orange, Red
  • πŸ“± Responsive Design - Works on all screen sizes
  • ⏱️ Full & Compact Modes - Choose your display style
  • 🎯 Progress Bar - Visual countdown progress
  • ⏸️ Pause/Resume - Full timer control
  • πŸ”„ Auto-Reset - Callback on completion
  • πŸ’« Glow Effects - Modern glassmorphism design
  • β™Ώ Accessible - Keyboard navigation support

πŸ“¦ Installation

# Clone or copy the component
cd bounty-countdown-timer

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

🎯 Quick Start

Basic Usage

import CountdownTimer from './CountdownTimer';

function App() {
  return (
    <CountdownTimer
      targetDate="2026-05-01T00:00:00"
      bountyAmount="100K $FNDRY"
      bountyTitle="πŸ† Featured Bounty"
    />
  );
}

All Props

Prop Type Default Description
targetDate number | string required Target date (timestamp or ISO string)
bountyAmount string '' Bounty amount to display
bountyTitle string 'Bounty' Title of the bounty
theme string 'purple' Color theme: purple, blue, green, orange, red
showSeconds boolean true Whether to show seconds
autoStart boolean true Auto-start countdown
compact boolean false Compact mode for smaller display
onComplete function undefined Callback when countdown completes
className string '' Additional CSS classes

Examples

Full Size Timer

<CountdownTimer
  targetDate={new Date('2026-05-01')}
  bountyAmount="100K $FNDRY"
  bountyTitle="πŸ† Smart Contract Audit"
  theme="purple"
  showSeconds={true}
/>

Compact Mode

<CountdownTimer
  targetDate={new Date('2026-05-01')}
  bountyAmount="50K"
  compact={true}
  theme="blue"
/>

With Completion Callback

<CountdownTimer
  targetDate={new Date('2026-05-01')}
  bountyAmount="25K $FNDRY"
  onComplete={() => {
    console.log('Bounty ended!');
    // Send notification, update state, etc.
  }}
/>

Multiple Themes

// Available themes: purple, blue, green, orange, red
<CountdownTimer theme="green" {...props} />
<CountdownTimer theme="orange" {...props} />
<CountdownTimer theme="red" {...props} />

🎨 Theme Preview

Theme Preview
Purple from-purple-600 to-indigo-600
Blue from-blue-600 to-cyan-600
Green from-green-600 to-emerald-600
Orange from-orange-600 to-amber-600
Red from-red-600 to-rose-600

πŸ› οΈ Development

# Install dependencies
npm install

# Start dev server (http://localhost:3000)
npm run dev

# Run tests
npm test

# Build for production
npm run build

# Preview production build
npm run preview

πŸ“ Project Structure

bounty-countdown-timer/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ CountdownTimer.jsx    # Main component
β”‚   β”œβ”€β”€ App.jsx               # Demo app
β”‚   β”œβ”€β”€ index.jsx             # Entry point
β”‚   └── index.css             # Global styles
β”œβ”€β”€ index.html                # HTML template
β”œβ”€β”€ package.json              # Dependencies
β”œβ”€β”€ tailwind.config.js        # Tailwind config
β”œβ”€β”€ vite.config.js            # Vite config
β”œβ”€β”€ postcss.config.js         # PostCSS config
└── README.md                 # This file

🎯 Use Cases

  • Bounty Platforms - Display countdown for hackathons, challenges
  • NFT Drops - Show time until mint opens
  • Token Sales - Countdown to sale end
  • Event Timers - Conference, webinar countdowns
  • Flash Sales - E-commerce limited-time offers
  • Gaming - Event timers, reward countdowns

🀝 Contributing

  1. Fork the repo
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘¨β€πŸ’» Author

Built with ❀️ by Stardust (星尘)

πŸ™ Acknowledgments

  • React Team for the amazing library
  • Tailwind CSS for the utility-first CSS framework
  • Vite for the blazing fast build tool

Happy Coding! πŸš€

About

A beautiful React countdown timer component for bounty displays with Tailwind CSS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors