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
๐ 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-button2๏ธโฃ 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 vercelThen 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!
