Spaces:
Running
Running
File size: 31,526 Bytes
5de67f5 e6a9837 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 | <!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>
|