Welcome to this project! This guide will walk you through the steps to set up the project locally, customize the color scheme, and change the Ad URL used in the iframe.
🚀 YouTube Download React Widget Template
A modern, fully customizable React widget template designed for YouTube video download functionality. Built with Next.js and styled with Tailwind CSS, this template provides a clean, responsive interface that can be easily integrated into any web application.
- 🎨 Fully Customizable: Easy-to-modify color schemes and styling
- 📱 Responsive Design: Works seamlessly across all device sizes
- ⚡ Modern Tech Stack: Built with React, Next.js, and Tailwind CSS
- 💰 Ad Integration: Configurable advertisement iframe support
- 🔧 Developer Friendly: Well-documented setup and customization guide
- 🎯 Production Ready: Optimized build process and deployment-ready
- React - Component-based UI library
- Next.js - React framework for production
- Tailwind CSS - Utility-first CSS framework
- TypeScript - Type-safe JavaScript
Before setting up the project, make sure you have the following tools installed:
- Node.js: Download Node.js
- npm or Yarn (package manager)
- npm comes with Node.js by default.
- You can install Yarn by running:
npm install -g yarn
Start by cloning the repository to your local machine.
git clone https://github.com/ytube-downloader/download-react-widget-template.git
cd download-react-widget-template
Once inside the project directory, install the necessary dependencies.
Using npm:
npm install
After the dependencies are installed, you can run the development server. This will start the application locally and allow you to view it in your browser.
Using npm:
npm run dev
The color scheme for the project can be easily customized by modifying the styles in the project.
- Open the
tailwind.config.ts
(or wherever your global styles are stored). - Look for color variables or hardcoded color values.
Example:
body: "#f3f4f6",
header_bg: "#FFFFFE",
purple_main: "#6c5ce7",
heading_main: "#2D3436",
dark_heading_main: "#FFFFFF",
base_one: "#4A5455",
dark_base_one: "#b8b8b8",
dark_body: "#121316",
dark_heading: "#191a1d",
partner: "#9ca3af"
The URL for the advertisement iframe is stored inside (configs
) folder. To change the ad url, follow these steps:
- Open
index.ts
inside the folder. - Find the constant that holds the Ad URL, which may look like this:
// constant.ts
export const ADS_URL = "https://example.com/ad";
After updating the color scheme and Ad URL, refresh the development server to see the changes live.
You can also run the project in production mode to ensure everything works as expected:
Using npm:
npm run build
npm start