virl-thumbnail / index.html
anjaneykumar's picture
give me prompt for making webtool, like user enter youtube url, and clicking on button , using of gemeni nano banana ai , thubmnail will be regeneraetd, but new thubmnail will be more profestional, and user attractive and it easily go viral video - Initial Deployment
47d047c verified
Raw
History Blame Contribute Delete
11.2 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Viral Thumbnail Generator</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<style>
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.thumbnail-box {
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
transition: all 0.3s ease;
}
.thumbnail-box:hover {
transform: translateY(-5px);
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
</style>
</head>
<body class="min-h-screen bg-gray-50">
<div class="gradient-bg text-white py-16">
<div class="container mx-auto px-4 text-center">
<h1 class="text-4xl md:text-5xl font-bold mb-6" data-aos="fade-down">Viral Thumbnail Generator</h1>
<p class="text-xl md:text-2xl mb-10 max-w-2xl mx-auto" data-aos="fade-up" data-aos-delay="100">
Transform your YouTube thumbnails into professional, eye-catching designs that boost views!
</p>
<div class="max-w-2xl mx-auto bg-white rounded-lg shadow-xl overflow-hidden" data-aos="zoom-in" data-aos-delay="200">
<div class="p-6">
<div class="flex items-center border-2 border-gray-200 rounded-lg overflow-hidden">
<span class="px-4 text-gray-500">
<i data-feather="link"></i>
</span>
<input type="text" id="youtubeUrl" placeholder="Paste YouTube video URL here..."
class="w-full py-4 px-2 text-gray-700 leading-tight focus:outline-none">
<button id="generateBtn" class="bg-purple-600 hover:bg-purple-700 text-white font-bold py-4 px-6 transition duration-300">
Generate
</button>
</div>
</div>
</div>
</div>
</div>
<div class="container mx-auto px-4 py-16">
<div class="text-center mb-16">
<h2 class="text-3xl font-bold text-gray-800 mb-4" data-aos="fade-up">How It Works</h2>
<div class="w-24 h-1 bg-purple-600 mx-auto mb-8" data-aos="fade-up" data-aos-delay="100"></div>
<div class="grid md:grid-cols-3 gap-8">
<div class="p-6" data-aos="fade-up" data-aos-delay="200">
<div class="bg-purple-100 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4">
<i data-feather="link" class="text-purple-600"></i>
</div>
<h3 class="text-xl font-semibold mb-2">Paste URL</h3>
<p class="text-gray-600">Simply paste your YouTube video URL in the input field above.</p>
</div>
<div class="p-6" data-aos="fade-up" data-aos-delay="300">
<div class="bg-purple-100 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4">
<i data-feather="zap" class="text-purple-600"></i>
</div>
<h3 class="text-xl font-semibold mb-2">AI Magic</h3>
<p class="text-gray-600">Our AI analyzes your video and creates multiple viral-worthy thumbnail options.</p>
</div>
<div class="p-6" data-aos="fade-up" data-aos-delay="400">
<div class="bg-purple-100 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4">
<i data-feather="download" class="text-purple-600"></i>
</div>
<h3 class="text-xl font-semibold mb-2">Download & Use</h3>
<p class="text-gray-600">Download your favorite thumbnail and watch your views skyrocket!</p>
</div>
</div>
</div>
<div id="resultsSection" class="hidden">
<h2 class="text-3xl font-bold text-center text-gray-800 mb-12" data-aos="fade-up">Your Thumbnail Options</h2>
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Thumbnails will be inserted here by JavaScript -->
</div>
</div>
<div class="bg-white rounded-xl shadow-lg p-8 mt-16 max-w-4xl mx-auto" data-aos="fade-up">
<h2 class="text-2xl font-bold text-gray-800 mb-4">Why Viral Thumbnails Matter</h2>
<p class="text-gray-600 mb-6">
Your thumbnail is the first thing potential viewers see. A professionally designed thumbnail can increase your click-through rate by up to 300%. Our AI-powered generator creates thumbnails that:
</p>
<ul class="grid gap-3 mb-6">
<li class="flex items-start">
<i data-feather="check" class="text-green-500 mr-2 mt-1"></i>
<span class="text-gray-700">Use proven psychological triggers to attract attention</span>
</li>
<li class="flex items-start">
<i data-feather="check" class="text-green-500 mr-2 mt-1"></i>
<span class="text-gray-700">Incorporate trending design elements</span>
</li>
<li class="flex items-start">
<i data-feather="check" class="text-green-500 mr-2 mt-1"></i>
<span class="text-gray-700">Optimize for mobile and desktop viewing</span>
</li>
<li class="flex items-start">
<i data-feather="check" class="text-green-500 mr-2 mt-1"></i>
<span class="text-gray-700">Highlight the most engaging aspects of your content</span>
</li>
</ul>
<div class="text-center">
<button id="tryAgainBtn" class="bg-purple-600 hover:bg-purple-700 text-white font-bold py-3 px-6 rounded-lg transition duration-300 hidden">
Generate More Thumbnails
</button>
</div>
</div>
</div>
<footer class="bg-gray-800 text-white py-8">
<div class="container mx-auto px-4 text-center">
<p>© 2023 Viral Thumbnail Generator. All rights reserved.</p>
<div class="flex justify-center space-x-4 mt-4">
<a href="#" class="hover:text-purple-400 transition"><i data-feather="twitter"></i></a>
<a href="#" class="hover:text-purple-400 transition"><i data-feather="instagram"></i></a>
<a href="#" class="hover:text-purple-400 transition"><i data-feather="youtube"></i></a>
</div>
</div>
</footer>
<script>
AOS.init();
feather.replace();
document.getElementById('generateBtn').addEventListener('click', function() {
const url = document.getElementById('youtubeUrl').value.trim();
if (!url) {
alert('Please enter a YouTube URL');
return;
}
// Show loading state
this.innerHTML = '<span class="flex items-center"><i data-feather="loader" class="animate-spin mr-2"></i> Generating...</span>';
feather.replace();
// Simulate API call to Gemini Nano Banana AI (replace with actual API call)
setTimeout(() => {
// Hide loading state
this.innerHTML = 'Generate';
feather.replace();
// Show results section
document.getElementById('resultsSection').classList.remove('hidden');
document.getElementById('tryAgainBtn').classList.remove('hidden');
// Scroll to results
document.getElementById('resultsSection').scrollIntoView({ behavior: 'smooth' });
// Generate sample thumbnails (replace with actual API response)
const resultsContainer = document.querySelector('#resultsSection .grid');
resultsContainer.innerHTML = '';
const sampleThumbnails = [
{ id: 1, title: 'Professional Design', desc: 'Clean layout with bold typography' },
{ id: 2, title: 'Emotional Impact', desc: 'Uses facial expressions for engagement' },
{ id: 3, title: 'Trending Style', desc: 'Incorporates current design trends' },
{ id: 4, title: 'Minimalist Approach', desc: 'Simple yet powerful composition' },
{ id: 5, title: 'Color Pop', desc: 'Vibrant colors that stand out' },
{ id: 6, title: 'Mystery Hook', desc: 'Creates curiosity to click' }
];
sampleThumbnails.forEach(thumb => {
const thumbElement = document.createElement('div');
thumbElement.className = 'thumbnail-box bg-white rounded-xl overflow-hidden';
thumbElement.innerHTML = `
<div class="p-4">
<div class="bg-gray-200 h-48 flex items-center justify-center mb-4">
<span class="text-gray-500">Thumbnail Preview ${thumb.id}</span>
</div>
<h3 class="font-bold text-lg mb-1">${thumb.title}</h3>
<p class="text-gray-600 text-sm mb-4">${thumb.desc}</p>
<div class="flex justify-between">
<button class="text-purple-600 hover:text-purple-800 font-medium flex items-center">
<i data-feather="refresh-cw" class="w-4 h-4 mr-1"></i> Regenerate
</button>
<button class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-lg flex items-center">
<i data-feather="download" class="w-4 h-4 mr-1"></i> Download
</button>
</div>
</div>
`;
resultsContainer.appendChild(thumbElement);
});
feather.replace();
}, 2000);
});
document.getElementById('tryAgainBtn').addEventListener('click', function() {
document.getElementById('youtubeUrl').value = '';
document.getElementById('resultsSection').classList.add('hidden');
this.classList.add('hidden');
document.getElementById('youtubeUrl').focus();
});
</script>
</body>
</html>