GitHunt
AS

AsifKamboh-COM/enhanced-download-button

A stylish and responsive download button with a real-time download counter, smooth animations, and error handling. Easily customizable and optimized for a seamless user experience.

๐Ÿ“Œ Enhanced Download Button

Built with HTML
Built with CSS
Built with JavaScript
License
Vercel
Developer
Visitors

Enhanced Download Button

๐Ÿ”— Live Demo: Enhanced Download Button


โญ About

The Enhanced Download Button is a sleek, modern, and interactive button built for effortless file downloads with real-time tracking. It ensures a seamless experience with:

โœ… Dynamic Download Counter โ€“ Tracks downloads in real time using an API.
โœ… Smooth Animations & UI โ€“ Eye-catching gradient effects and hover states.
โœ… Error Handling & Loading Indicator โ€“ Ensures reliability and a smooth user journey.
โœ… Fully Responsive Design โ€“ Optimized for all screen sizes, from mobile to desktop.
โœ… Fast & Secure Hosting โ€“ Deployed on Vercel for high performance and uptime.

Ideal for websites, SaaS tools, and file-sharing platforms looking to enhance their UX!


๐Ÿ“‚ Folder Structure

๐Ÿ“‚ download-button/         # Root directory
 โ”ฃ ๐Ÿ“‚ public/               # Public folder for static files
 โ”ƒ  โ”— ๐Ÿ“„ index.html         # Main HTML file with the download button
 โ”ฃ ๐Ÿ“„ LICENSE               # License file (GPL-3.0)
 โ”ฃ ๐Ÿ“„ README.md             # Documentation with setup & usage details
 โ”ฃ ๐Ÿ“„ vercel.json           # Vercel configuration file
 โ”— ๐Ÿ“„ package.json          # Project metadata & scripts

๐ŸŒŸ Features & Functionalities

๐ŸŽจ Modern UI & Animations

  • Gradient hover effects for a smooth look.
  • Loading animation when the file is downloading.
  • Elegant shadow and hover transformations.

๐Ÿ”ข Real-time Download Counter

  • Fetches current download count from an API.
  • Increments download count upon each file download.
  • Displays the counter in a styled badge.

๐Ÿ›‘ Error Handling & Smooth User Experience

  • If the download fails, the button shows an error message.
  • Includes retry logic and resets automatically.

โš™๏ธ Installation & Deployment

1๏ธโƒฃ Clone the Repository

git clone https://github.com/AsifKamboh-COM/download-button.git
cd download-button

2๏ธโƒฃ Install Dependencies (if needed)

Since this is a static HTML, CSS, and JS project, no dependencies are required.

3๏ธโƒฃ Deploy on Vercel

Make sure you have Vercel CLI installed:

npm install -g vercel

Then deploy your project:

vercel

๐ŸŒ Your project will be live instantly!


๐Ÿ’ก Usage Instructions

1๏ธโƒฃ Open the webpage: Click Here
2๏ธโƒฃ Click on the Download Button.
3๏ธโƒฃ The spinner will appear while processing.
4๏ธโƒฃ File starts downloading automatically.
5๏ธโƒฃ Download counter updates dynamically.


๐Ÿ“ Customization

๐ŸŽจ Change Button Styles

You can modify the styles in index.html inside the <style> section.

For example, change the gradient color:

:root {
    --primary-gradient: linear-gradient(135deg, #ff6b6b 0%, #ffb400 50%, #ffeb3b 100%);
}

๐Ÿ”— Modify the href inside the JavaScript code in index.html:

downloadLink.href = 'YOUR_FILE_DOWNLOAD_LINK_HERE';

๐Ÿ“œ License

This project is licensed under GPL-3.0.
See the full license details in the LICENSE file.


๐Ÿ‘จโ€๐Ÿ’ป Author

Developed with โค๏ธ by Asif Kamboh ๐Ÿ˜Ž
Follow me for more amazing projects!


๐Ÿ† Contributing

๐Ÿค Contributions are welcome!

1๏ธโƒฃ Fork the repository
2๏ธโƒฃ Make changes
3๏ธโƒฃ Submit a pull request

๐Ÿ‘ฅ Let's build something amazing together!

AsifKamboh-COM/enhanced-download-button | GitHunt