techtreasure / index.html
dyn4casie's picture
in the index page, it should be a countdown from now till 29th of December 2025
5de67f5 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TechTreasureDraw - Win a Brand New Laptop!</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<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://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.iife.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.gradient-bg {
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.ticket-bg {
background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}
.countdown-item {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(5px);
}
.pulse-animation {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
</style>
</head>
<body class="font-sans antialiased text-gray-800">
<!-- Navigation -->
<nav class="bg-white shadow-sm sticky top-0 z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0 flex items-center">
<i data-feather="cpu" class="h-8 w-8 text-blue-600"></i>
<span class="ml-2 text-xl font-bold text-blue-600">TechTreasureDraw</span>
</div>
</div>
<div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
<a href="#how-it-works" class="text-gray-700 hover:text-blue-600 px-3 py-2 text-sm font-medium">How It Works</a>
<a href="#prize" class="text-gray-700 hover:text-blue-600 px-3 py-2 text-sm font-medium">The Prize</a>
<a href="#faq" class="text-gray-700 hover:text-blue-600 px-3 py-2 text-sm font-medium">FAQ</a>
<a href="#contact" class="text-gray-700 hover:text-blue-600 px-3 py-2 text-sm font-medium">Contact</a>
<a href="/dashboard.html" class="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition duration-300">My Tickets</a>
</div>
<div class="-mr-2 flex items-center md:hidden">
<button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500" aria-controls="mobile-menu" aria-expanded="false">
<i data-feather="menu"></i>
</button>
</div>
</div>
</div>
</nav>
<!-- Hero Section -->
<div class="gradient-bg text-white">
<div class="max-w-7xl mx-auto py-16 px-4 sm:py-24 sm:px-6 lg:px-8">
<div class="text-center">
<h1 class="text-4xl font-extrabold tracking-tight sm:text-5xl lg:text-6xl" data-aos="fade-down">
Win a Brand New Laptop
</h1>
<p class="mt-6 max-w-lg mx-auto text-xl" data-aos="fade-down" data-aos-delay="100">
Only $2 or ₦2000 per ticket. Limited entries available!
</p>
<div class="mt-10 flex justify-center" data-aos="fade-up" data-aos-delay="200">
<div class="inline-flex rounded-md shadow">
<a href="#enter-now" class="inline-flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-blue-600 bg-white hover:bg-gray-50 md:py-4 md:text-lg md:px-10 pulse-animation">
Enter Now <i data-feather="arrow-right" class="ml-2"></i>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- Countdown & Stats -->
<div class="bg-white">
<div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="text-center" data-aos="fade-up">
<div class="text-4xl font-bold text-blue-600 mb-2" id="tickets-sold">4,327</div>
<div class="text-gray-600">Tickets Sold</div>
</div>
<div class="text-center" data-aos="fade-up" data-aos-delay="100">
<div class="text-4xl font-bold text-blue-600 mb-2">5,000</div>
<div class="text-gray-600">Total Tickets</div>
</div>
<div class="text-center" data-aos="fade-up" data-aos-delay="200">
<div class="text-4xl font-bold text-blue-600 mb-2" id="tickets-left">673</div>
<div class="text-gray-600">Tickets Remaining</div>
</div>
</div>
<div class="mt-12 text-center">
<h2 class="text-2xl font-bold text-gray-900 mb-6">Draw Countdown</h2>
<div class="flex justify-center space-x-4">
<div class="countdown-item rounded-lg p-4 text-center" data-aos="flip-up">
<div class="text-3xl font-bold" id="days">00</div>
<div class="text-sm text-gray-600">Days</div>
</div>
<div class="countdown-item rounded-lg p-4 text-center" data-aos="flip-up" data-aos-delay="100">
<div class="text-3xl font-bold" id="hours">00</div>
<div class="text-sm text-gray-600">Hours</div>
</div>
<div class="countdown-item rounded-lg p-4 text-center" data-aos="flip-up" data-aos-delay="200">
<div class="text-3xl font-bold" id="minutes">00</div>
<div class="text-sm text-gray-600">Minutes</div>
</div>
<div class="countdown-item rounded-lg p-4 text-center" data-aos="flip-up" data-aos-delay="300">
<div class="text-3xl font-bold" id="seconds">00</div>
<div class="text-sm text-gray-600">Seconds</div>
</div>
</div>
</div>
</div>
</div>
<!-- How It Works -->
<div class="bg-gray-50 py-16" id="how-it-works">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="lg:text-center">
<h2 class="text-base text-blue-600 font-semibold tracking-wide uppercase" data-aos="fade-up">How It Works</h2>
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl" data-aos="fade-up" data-aos-delay="100">
Simple Steps to Win
</p>
</div>
<div class="mt-10">
<div class="grid grid-cols-1 gap-10 md:grid-cols-3">
<div class="bg-white p-6 rounded-lg shadow-sm" data-aos="fade-up" data-aos-delay="200">
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-blue-500 text-white">
<i data-feather="shopping-cart"></i>
</div>
<div class="mt-5">
<h3 class="text-lg font-medium text-gray-900">1. Buy Your Ticket</h3>
<p class="mt-2 text-base text-gray-500">
Purchase your raffle ticket for just $2 or ₦2000. Multiple entries increase your chances.
</p>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm" data-aos="fade-up" data-aos-delay="300">
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-blue-500 text-white">
<i data-feather="clock"></i>
</div>
<div class="mt-5">
<h3 class="text-lg font-medium text-gray-900">2. Wait for the Draw</h3>
<p class="mt-2 text-base text-gray-500">
The draw will be held automatically when all tickets are sold or on the specified date.
</p>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm" data-aos="fade-up" data-aos-delay="400">
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-blue-500 text-white">
<i data-feather="gift"></i>
</div>
<div class="mt-5">
<h3 class="text-lg font-medium text-gray-900">3. Claim Your Prize</h3>
<p class="mt-2 text-base text-gray-500">
If you win, we'll contact you immediately to arrange delivery of your brand new laptop.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- The Prize -->
<div class="bg-white py-16" id="prize">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="lg:text-center">
<h2 class="text-base text-blue-600 font-semibold tracking-wide uppercase" data-aos="fade-up">The Prize</h2>
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl" data-aos="fade-up" data-aos-delay="100">
Brand New MacBook Pro 14"
</p>
</div>
<div class="mt-12 grid grid-cols-1 gap-8 md:grid-cols-2 items-center">
<div class="relative" data-aos="fade-right">
<img src="https://images.unsplash.com/photo-1611186871348-b1ce696e52c9?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80" alt="MacBook Pro" class="rounded-lg shadow-xl">
<div class="absolute -bottom-5 -right-5 bg-blue-600 text-white px-4 py-2 rounded-lg shadow-lg">
<div class="text-xl font-bold">$1,999</div>
<div class="text-xs">Value</div>
</div>
</div>
<div data-aos="fade-left" data-aos-delay="200">
<h3 class="text-xl font-bold text-gray-900 mb-4">Specifications</h3>
<ul class="space-y-3">
<li class="flex items-start">
<i data-feather="check" class="h-5 w-5 text-green-500 mr-2 mt-0.5"></i>
<span class="text-gray-700">Apple M1 Pro chip with 8-core CPU</span>
</li>
<li class="flex items-start">
<i data-feather="check" class="h-5 w-5 text-green-500 mr-2 mt-0.5"></i>
<span class="text-gray-700">14-inch Liquid Retina XDR display</span>
</li>
<li class="flex items-start">
<i data-feather="check" class="h-5 w-5 text-green-500 mr-2 mt-0.5"></i>
<span class="text-gray-700">16GB unified memory</span>
</li>
<li class="flex items-start">
<i data-feather="check" class="h-5 w-5 text-green-500 mr-2 mt-0.5"></i>
<span class="text-gray-700">512GB SSD storage</span>
</li>
<li class="flex items-start">
<i data-feather="check" class="h-5 w-5 text-green-500 mr-2 mt-0.5"></i>
<span class="text-gray-700">14-core GPU</span>
</li>
<li class="flex items-start">
<i data-feather="check" class="h-5 w-5 text-green-500 mr-2 mt-0.5"></i>
<span class="text-gray-700">Three Thunderbolt 4 ports</span>
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Enter Now -->
<div class="gradient-bg py-16" id="enter-now">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="ticket-bg rounded-xl p-8 md:p-12 shadow-2xl">
<div class="grid grid-cols-1 md:grid-cols-2 gap-12">
<div>
<h2 class="text-3xl font-bold text-gray-900 mb-4">Enter the Raffle Now</h2>
<p class="text-gray-600 mb-6">
Purchase your ticket for a chance to win this amazing laptop. Only $2 or ₦2000 per entry.
</p>
<div class="flex items-center mb-6">
<div class="flex-shrink-0">
<i data-feather="shield" class="h-8 w-8 text-blue-600"></i>
</div>
<div class="ml-3">
<p class="text-sm text-gray-600">
<span class="font-semibold">Secure payment</span> via Paystack, Stripe, and Selar.co
</p>
</div>
</div>
<div class="flex items-center">
<div class="flex-shrink-0">
<i data-feather="clock" class="h-8 w-8 text-blue-600"></i>
</div>
<div class="ml-3">
<p class="text-sm text-gray-600">
<span class="font-semibold">Draw date:</span> <span id="draw-date">15 December 2023</span>
</p>
</div>
</div>
</div>
<div>
<div class="bg-white rounded-lg p-6 shadow-sm">
<h3 class="text-lg font-medium text-gray-900 mb-4">Select Quantity</h3>
<div class="flex items-center justify-between mb-6">
<button id="decrease" class="bg-gray-200 hover:bg-gray-300 text-gray-800 font-bold py-2 px-4 rounded-l">
<i data-feather="minus"></i>
</button>
<input type="number" id="quantity" value="1" min="1" max="10" class="w-16 text-center border-t border-b border-gray-300 py-2">
<button id="increase" class="bg-gray-200 hover:bg-gray-300 text-gray-800 font-bold py-2 px-4 rounded-r">
<i data-feather="plus"></i>
</button>
</div>
<div class="flex justify-between items-center mb-6">
<span class="text-gray-700">Price per ticket:</span>
<span class="font-bold">$2.00 / ₦2000</span>
</div>
<div class="flex justify-between items-center mb-6">
<span class="text-gray-700">Total:</span>
<span class="text-xl font-bold text-blue-600" id="total-price">$2.00</span>
</div>
<button id="checkout-button" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-4 rounded-md transition duration-300">
Proceed to Payment
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Testimonials -->
<div class="bg-white py-16">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="lg:text-center">
<h2 class="text-base text-blue-600 font-semibold tracking-wide uppercase" data-aos="fade-up">Testimonials</h2>
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl" data-aos="fade-up" data-aos-delay="100">
What Our Winners Say
</p>
</div>
<div class="mt-10">
<div class="grid grid-cols-1 gap-8 md:grid-cols-3">
<div class="bg-gray-50 p-6 rounded-lg" data-aos="fade-up" data-aos-delay="200">
<div class="flex items-center mb-4">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/32.jpg" alt="">
<div class="ml-4">
<div class="font-medium text-gray-900">Sarah Johnson</div>
<div class="text-blue-600">Winner #12</div>
</div>
</div>
<p class="text-gray-600">
"I couldn't believe it when I got the email saying I'd won! The laptop arrived brand new and sealed. Totally legit!"
</p>
</div>
<div class="bg-gray-50 p-6 rounded-lg" data-aos="fade-up" data-aos-delay="300">
<div class="flex items-center mb-4">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/75.jpg" alt="">
<div class="ml-4">
<div class="font-medium text-gray-900">Michael Adebayo</div>
<div class="text-blue-600">Winner #8</div>
</div>
</div>
<p class="text-gray-600">
"As a student, this laptop has been life-changing. The whole process was transparent and the delivery was super fast."
</p>
</div>
<div class="bg-gray-50 p-6 rounded-lg" data-aos="fade-up" data-aos-delay="400">
<div class="flex items-center mb-4">
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/68.jpg" alt="">
<div class="ml-4">
<div class="font-medium text-gray-900">Emily Chen</div>
<div class="text-blue-600">Winner #15</div>
</div>
</div>
<p class="text-gray-600">
"I've entered several raffles but TechTreasureDraw is the only one I've actually won. Very professional and trustworthy."
</p>
</div>
</div>
</div>
</div>
</div>
<!-- FAQ -->
<div class="bg-gray-50 py-16" id="faq">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="lg:text-center">
<h2 class="text-base text-blue-600 font-semibold tracking-wide uppercase" data-aos="fade-up">FAQ</h2>
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl" data-aos="fade-up" data-aos-delay="100">
Frequently Asked Questions
</p>
</div>
<div class="mt-12 max-w-3xl mx-auto">
<div class="space-y-6">
<div class="bg-white p-6 rounded-lg shadow-sm" data-aos="fade-up">
<h3 class="text-lg font-medium text-gray-900">How does the raffle work?</h3>
<div class="mt-2 text-gray-600">
<p>You purchase one or more tickets for $2 or ₦2000 each. When all tickets are sold or the draw date arrives, we randomly select one winner who receives the laptop. The more tickets you buy, the higher your chances of winning.</p>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm" data-aos="fade-up" data-aos-delay="100">
<h3 class="text-lg font-medium text-gray-900">How is the winner selected?</h3>
<div class="mt-2 text-gray-600">
<p>We use Random.org's verified random number generator to ensure complete fairness. The draw will be recorded and published on our website for transparency.</p>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm" data-aos="fade-up" data-aos-delay="200">
<h3 class="text-lg font-medium text-gray-900">Can I enter from any country?</h3>
<div class="mt-2 text-gray-600">
<p>Yes! We accept participants from all over the world. The laptop will be shipped to any location, though additional shipping fees may apply to some remote areas.</p>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm" data-aos="fade-up" data-aos-delay="300">
<h3 class="text-lg font-medium text-gray-900">How will I know if I win?</h3>
<div class="mt-2 text-gray-600">
<p>We will contact the winner immediately via email and phone. The winner's ticket number will also be published on our website and social media channels.</p>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm" data-aos="fade-up" data-aos-delay="400">
<h3 class="text-lg font-medium text-gray-900">What payment methods do you accept?</h3>
<div class="mt-2 text-gray-600">
<p>We accept all major credit cards via Stripe, Paystack for Nigerian customers, and Selar.co for both local and international payments.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Trust Badges -->
<div class="bg-white py-12">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-2 gap-8 md:grid-cols-4 lg:grid-cols-5">
<div class="flex justify-center items-center">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Stripe_Logo%2C_revised_2016.svg/2560px-Stripe_Logo%2C_revised_2016.svg.png" alt="Stripe" class="h-12">
</div>
<div class="flex justify-center items-center">
<img src="https://paystack.com/assets/website/images/brand/paystack-logo-vector.svg" alt="Paystack" class="h-12">
</div>
<div class="flex justify-center items-center">
<img src="https://selar.co/assets/images/selar-logo.svg" alt="Selar" class="h-12">
</div>
<div class="flex justify-center items-center">
<img src="https://www.random.org/images/random-logo.png" alt="Random.org" class="h-12">
</div>
<div class="flex justify-center items-center">
<img src="https://www.ssl.com/wp-content/uploads/2021/02/GlobalSign_SSL_Logo.svg" alt="SSL Secured" class="h-12">
</div>
</div>
</div>
</div>
<!-- CTA -->
<div class="gradient-bg text-white">
<div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8 text-center">
<h2 class="text-3xl font-extrabold tracking-tight sm:text-4xl" data-aos="fade-up">
<span class="block">Ready to win?</span>
<span class="block">Get your tickets now!</span>
</h2>
<div class="mt-8 flex justify-center" data-aos="fade-up" data-aos-delay="100">
<div class="inline-flex rounded-md shadow">
<a href="#enter-now" class="inline-flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-blue-600 bg-white hover:bg-gray-50 md:py-4 md:text-lg md:px-10">
Enter the Raffle <i data-feather="arrow-right" class="ml-2"></i>
</a>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-900 text-white">
<div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-lg font-bold mb-4">TechTreasureDraw</h3>
<p class="text-gray-400">
The fairest and most transparent tech raffle platform. Win amazing gadgets at unbelievable prices.
</p>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Quick Links</h3>
<ul class="space-y-2">
<li><a href="#how-it-works" class="text-gray-400 hover:text-white">How It Works</a></li>
<li><a href="#prize" class="text-gray-400 hover:text-white">The Prize</a></li>
<li><a href="#faq" class="text-gray-400 hover:text-white">FAQ</a></li>
<li><a href="/terms.html" class="text-gray-400 hover:text-white">Terms & Conditions</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Contact</h3>
<ul class="space-y-2">
<li class="flex items-center">
<i data-feather="mail" class="h-4 w-4 mr-2"></i>
<span class="text-gray-400">support@techtreasuredraw.com</span>
</li>
<li class="flex items-center">
<i data-feather="phone" class="h-4 w-4 mr-2"></i>
<span class="text-gray-400">+234 123 456 7890</span>
</li>
</ul>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Follow Us</h3>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="facebook"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="instagram"></i>
</a>
</div>
</div>
</div>
<div class="mt-12 pt-8 border-t border-gray-800 text-center text-gray-400 text-sm">
<p>© 2023 TechTreasureDraw. All rights reserved.</p>
</div>
</div>
</footer>
<script>
// Initialize AOS
AOS.init({
duration: 800,
easing: 'ease-in-out',
once: true
});
// Initialize feather icons
feather.replace();
// Countdown timer
function updateCountdown() {
const now = new Date();
const drawDate = new Date('December 15, 2023 12:00:00');
const diff = drawDate - now;
const days = Math.floor(diff / (1000 * 60 * 60 * 24));
const hours = Math.floor((diff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((diff % (1000 * 60)) / 1000);
document.getElementById('days').textContent = days.toString().padStart(2, '0');
document.getElementById('hours').textContent = hours.toString().padStart(2, '0');
document.getElementById('minutes').textContent = minutes.toString().padStart(2, '0');
document.getElementById('seconds').textContent = seconds.toString().padStart(2, '0');
}
setInterval(updateCountdown, 1000);
updateCountdown();
// Ticket quantity controls
const decreaseBtn = document.getElementById('decrease');
const increaseBtn = document.getElementById('increase');
const quantityInput = document.getElementById('quantity');
const totalPrice = document.getElementById('total-price');
decreaseBtn.addEventListener('click', () => {
let value = parseInt(quantityInput.value);
if (value > 1) {
quantityInput.value = value - 1;
updateTotalPrice();
}
});
increaseBtn.addEventListener('click', () => {
let value = parseInt(quantityInput.value);
if (value < 10) {
quantityInput.value = value + 1;
updateTotalPrice();
}
});
quantityInput.addEventListener('change', () => {
let value = parseInt(quantityInput.value);
if (isNaN(value) || value < 1) {
quantityInput.value = 1;
} else if (value > 10) {
quantityInput.value = 10;
}
updateTotalPrice();
});
function updateTotalPrice() {
const quantity = parseInt(quantityInput.value);
const price = 2 * quantity;
totalPrice.textContent = `$${price.toFixed(2)} / ₦${(price * 1000).toFixed(0)}`;
}
// Random ticket sold count animation
function animateTicketCount() {
const ticketsSold = document.getElementById('tickets-sold');
const ticketsLeft = document.getElementById('tickets-left');
let count = 4327;
const interval = setInterval(() => {
count += Math.floor(Math.random() * 3);
if (count >= 5000) {
count = 5000;
clearInterval(interval);
}
ticketsSold.textContent = count;
ticketsLeft.textContent = 5000 - count;
}, 3000);
}
animateTicketCount();
// Checkout button
document.getElementById('checkout-button').addEventListener('click', function() {
// In a real implementation, this would redirect to payment gateway
alert('Redirecting to secure payment gateway...');
});
</script>
</body>
</html>