Skip to content

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.

License

Notifications You must be signed in to change notification settings

AsifKamboh-COM/enhanced-download-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

πŸ“Œ 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%);
}

πŸ“₯ Change Download Link

πŸ”— 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!

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages