File size: 39,528 Bytes
bada4a3 | 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 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 | <!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Olympic Tickets - Official Store</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/qrcode@1.5.1/build/qrcode.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.gradient-bg {
background: linear-gradient(135deg, #0085C7 0%, #0085C7 50%, #F4C300 50%, #F4C300 100%);
}
.ticket-card {
perspective: 1000px;
}
.ticket-inner {
transition: transform 0.6s;
transform-style: preserve-3d;
}
.ticket-card:hover .ticket-inner {
transform: rotateY(10deg);
}
.qr-placeholder {
background: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 10px, #e0e0e0 10px, #e0e0e0 20px);
}
.security-key {
font-family: monospace;
letter-spacing: 2px;
}
.countdown {
font-family: 'Courier New', monospace;
}
.event-card {
transition: all 0.3s ease;
}
.event-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.cart-pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
</style>
</head>
<body class="bg-gray-50">
<!-- Header -->
<header class="gradient-bg text-white shadow-lg">
<div class="container mx-auto px-4 py-6">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-4">
<img src="https://olympics.com/images/static/olympics.svg" alt="Olympics Logo" class="h-12">
<div>
<h1 class="text-2xl font-bold">PARIS 2024</h1>
<p class="text-sm opacity-80">Official Ticket Store</p>
</div>
</div>
<div class="flex items-center space-x-6">
<a href="#" class="hover:text-yellow-300 transition"><i class="fas fa-home"></i> Home</a>
<a href="#" class="hover:text-yellow-300 transition"><i class="fas fa-calendar-alt"></i> Events</a>
<a href="#" class="hover:text-yellow-300 transition"><i class="fas fa-info-circle"></i> Info</a>
<div class="relative">
<button id="cartButton" class="hover:text-yellow-300 transition">
<i class="fas fa-shopping-cart text-xl"></i>
<span id="cartCount" class="absolute -top-2 -right-2 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">0</span>
</button>
<div id="cartDropdown" class="hidden absolute right-0 mt-2 w-72 bg-white text-gray-800 rounded shadow-lg z-10 p-4">
<h3 class="font-bold border-b pb-2">Your Cart</h3>
<div id="cartItems" class="py-2 max-h-60 overflow-y-auto">
<p class="text-sm text-gray-500">Your cart is empty</p>
</div>
<div class="border-t pt-2 flex justify-between items-center">
<span class="font-bold">Total:</span>
<span id="cartTotal" class="font-bold">€0.00</span>
</div>
<button class="mt-2 w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded transition">Checkout</button>
</div>
</div>
<a href="#" class="bg-white text-blue-600 px-4 py-2 rounded-full font-bold hover:bg-gray-100 transition">Sign In</a>
</div>
</div>
</div>
</header>
<!-- Hero Section -->
<section class="relative bg-gray-900 text-white">
<img src="https://images.unsplash.com/photo-1547347298-4074fc3086f0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80" alt="Olympic Stadium" class="w-full h-96 object-cover opacity-50">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center px-4">
<h2 class="text-4xl md:text-5xl font-bold mb-4">Experience the Magic</h2>
<p class="text-xl mb-6">Secure your tickets for the Paris 2024 Olympic Games</p>
<div class="flex justify-center space-x-4">
<button class="bg-yellow-400 hover:bg-yellow-500 text-gray-900 font-bold px-6 py-3 rounded-full transition">Buy Tickets</button>
<button class="bg-transparent hover:bg-white hover:text-gray-900 border-2 border-white text-white font-bold px-6 py-3 rounded-full transition">Learn More</button>
</div>
</div>
</div>
</section>
<!-- Countdown Section -->
<section class="bg-blue-700 text-white py-8">
<div class="container mx-auto px-4 text-center">
<h3 class="text-2xl font-bold mb-4">Paris 2024 Olympic Games</h3>
<div class="flex justify-center space-x-4 md:space-x-8">
<div class="bg-blue-800 rounded-lg p-4 w-20 md:w-24">
<div id="days" class="text-3xl md:text-4xl font-bold countdown">00</div>
<div class="text-xs md:text-sm">Days</div>
</div>
<div class="bg-blue-800 rounded-lg p-4 w-20 md:w-24">
<div id="hours" class="text-3xl md:text-4xl font-bold countdown">00</div>
<div class="text-xs md:text-sm">Hours</div>
</div>
<div class="bg-blue-800 rounded-lg p-4 w-20 md:w-24">
<div id="minutes" class="text-3xl md:text-4xl font-bold countdown">00</div>
<div class="text-xs md:text-sm">Minutes</div>
</div>
<div class="bg-blue-800 rounded-lg p-4 w-20 md:w-24">
<div id="seconds" class="text-3xl md:text-4xl font-bold countdown">00</div>
<div class="text-xs md:text-sm">Seconds</div>
</div>
</div>
</div>
</section>
<!-- Events Section -->
<section class="py-12 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-8">Available Events</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Event 1 -->
<div class="event-card bg-white rounded-lg shadow-md overflow-hidden border border-gray-200">
<img src="https://images.unsplash.com/photo-1543351611-58f69d7c1781?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80" alt="Athletics" class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-2">
<h3 class="text-xl font-bold">Athletics - 100m Final</h3>
<span class="bg-blue-100 text-blue-800 text-xs font-semibold px-2.5 py-0.5 rounded">Gold Medal</span>
</div>
<p class="text-gray-600 mb-4">August 4, 2024 • 20:00 • Stade de France</p>
<div class="flex justify-between items-center mb-4">
<div>
<span class="text-sm text-gray-500">From</span>
<span class="text-xl font-bold">€120</span>
</div>
<button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded transition" data-event="Athletics - 100m Final" data-price="120">Add to Cart</button>
</div>
</div>
</div>
<!-- Event 2 -->
<div class="event-card bg-white rounded-lg shadow-md overflow-hidden border border-gray-200">
<img src="https://images.unsplash.com/photo-1574629810360-7efbbe195018?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1893&q=80" alt="Swimming" class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-2">
<h3 class="text-xl font-bold">Swimming - 200m Freestyle</h3>
<span class="bg-blue-100 text-blue-800 text-xs font-semibold px-2.5 py-0.5 rounded">Gold Medal</span>
</div>
<p class="text-gray-600 mb-4">July 30, 2024 • 19:30 • Paris La Défense Arena</p>
<div class="flex justify-between items-center mb-4">
<div>
<span class="text-sm text-gray-500">From</span>
<span class="text-xl font-bold">€95</span>
</div>
<button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded transition" data-event="Swimming - 200m Freestyle" data-price="95">Add to Cart</button>
</div>
</div>
</div>
<!-- Event 3 -->
<div class="event-card bg-white rounded-lg shadow-md overflow-hidden border border-gray-200">
<img src="https://images.unsplash.com/photo-1540747913346-19e32dc3e97e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1905&q=80" alt="Basketball" class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-2">
<h3 class="text-xl font-bold">Basketball - USA vs France</h3>
<span class="bg-yellow-100 text-yellow-800 text-xs font-semibold px-2.5 py-0.5 rounded">Group Stage</span>
</div>
<p class="text-gray-600 mb-4">August 2, 2024 • 21:00 • Bercy Arena</p>
<div class="flex justify-between items-center mb-4">
<div>
<span class="text-sm text-gray-500">From</span>
<span class="text-xl font-bold">€150</span>
</div>
<button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded transition" data-event="Basketball - USA vs France" data-price="150">Add to Cart</button>
</div>
</div>
</div>
<!-- Event 4 -->
<div class="event-card bg-white rounded-lg shadow-md overflow-hidden border border-gray-200">
<img src="https://images.unsplash.com/photo-1517649763962-0c623066f29a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80" alt="Gymnastics" class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-2">
<h3 class="text-xl font-bold">Gymnastics - All Around</h3>
<span class="bg-blue-100 text-blue-800 text-xs font-semibold px-2.5 py-0.5 rounded">Gold Medal</span>
</div>
<p class="text-gray-600 mb-4">August 1, 2024 • 14:00 • Bercy Arena</p>
<div class="flex justify-between items-center mb-4">
<div>
<span class="text-sm text-gray-500">From</span>
<span class="text-xl font-bold">€110</span>
</div>
<button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded transition" data-event="Gymnastics - All Around" data-price="110">Add to Cart</button>
</div>
</div>
</div>
<!-- Event 5 -->
<div class="event-card bg-white rounded-lg shadow-md overflow-hidden border border-gray-200">
<img src="https://images.unsplash.com/photo-1531415074968-036ba1b575da?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80" alt="Opening Ceremony" class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-2">
<h3 class="text-xl font-bold">Opening Ceremony</h3>
<span class="bg-purple-100 text-purple-800 text-xs font-semibold px-2.5 py-0.5 rounded">Special Event</span>
</div>
<p class="text-gray-600 mb-4">July 26, 2024 • 20:00 • Seine River</p>
<div class="flex justify-between items-center mb-4">
<div>
<span class="text-sm text-gray-500">From</span>
<span class="text-xl font-bold">€250</span>
</div>
<button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded transition" data-event="Opening Ceremony" data-price="250">Add to Cart</button>
</div>
</div>
</div>
<!-- Event 6 -->
<div class="event-card bg-white rounded-lg shadow-md overflow-hidden border border-gray-200">
<img src="https://images.unsplash.com/photo-1543352634-a1c51d9f1fa7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80" alt="Closing Ceremony" class="w-full h-48 object-cover">
<div class="p-6">
<div class="flex justify-between items-start mb-2">
<h3 class="text-xl font-bold">Closing Ceremony</h3>
<span class="bg-purple-100 text-purple-800 text-xs font-semibold px-2.5 py-0.5 rounded">Special Event</span>
</div>
<p class="text-gray-600 mb-4">August 11, 2024 • 20:00 • Stade de France</p>
<div class="flex justify-between items-center mb-4">
<div>
<span class="text-sm text-gray-500">From</span>
<span class="text-xl font-bold">€200</span>
</div>
<button class="add-to-cart bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded transition" data-event="Closing Ceremony" data-price="200">Add to Cart</button>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Ticket Preview Section -->
<section class="py-12 bg-gray-100">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-8">Your Secure Digital Ticket</h2>
<div class="max-w-2xl mx-auto bg-white rounded-xl shadow-md overflow-hidden">
<div class="p-8">
<div class="flex justify-between items-center mb-6">
<img src="https://olympics.com/images/static/olympics.svg" alt="Olympics Logo" class="h-10">
<div class="text-right">
<p class="text-sm text-gray-500">Ticket ID</p>
<p class="font-mono font-bold">OLY-2024-87654321</p>
</div>
</div>
<div class="border-2 border-dashed border-gray-300 rounded-lg p-6 mb-6">
<div class="flex flex-col md:flex-row gap-6">
<div class="flex-1">
<h3 class="text-xl font-bold mb-2">Athletics - 100m Final</h3>
<p class="text-gray-600 mb-4">August 4, 2024 • 20:00</p>
<p class="text-gray-600 mb-1">Stade de France, Paris</p>
<p class="text-gray-600 mb-4">Section: A12 • Row: 5 • Seat: 18</p>
<div class="mb-4">
<p class="text-sm text-gray-500">Security Key:</p>
<p class="security-key bg-gray-100 p-2 rounded font-mono">7X9K2M4P6Q8R1S3T5</p>
</div>
<div class="flex items-center text-sm text-gray-500">
<i class="fas fa-shield-alt mr-2 text-green-500"></i>
<span>Official Paris 2024 Ticket • Non-transferable</span>
</div>
</div>
<div class="flex flex-col items-center">
<div id="qrCode" class="qr-placeholder w-32 h-32 mb-4 flex items-center justify-center">
<p class="text-xs text-center text-gray-500">QR Code will appear here</p>
</div>
<button id="generateQR" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded text-sm transition">Generate Demo QR</button>
</div>
</div>
</div>
<div class="bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-6">
<div class="flex">
<div class="flex-shrink-0">
<i class="fas fa-exclamation-circle text-yellow-400"></i>
</div>
<div class="ml-3">
<p class="text-sm text-yellow-700">
<strong>Important:</strong> This is a sample ticket. Your actual ticket will be delivered via email after purchase with a unique QR code and security key.
</p>
</div>
</div>
</div>
<div class="flex justify-between items-center">
<div>
<p class="text-sm text-gray-500">Issued on</p>
<p class="font-medium">June 15, 2024</p>
</div>
<div class="text-right">
<p class="text-sm text-gray-500">Total</p>
<p class="text-2xl font-bold">€120.00</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- FAQ Section -->
<section class="py-12 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-8">Frequently Asked Questions</h2>
<div class="max-w-3xl mx-auto">
<div class="space-y-4">
<!-- FAQ Item 1 -->
<div class="border border-gray-200 rounded-lg overflow-hidden">
<button class="faq-toggle w-full flex justify-between items-center p-4 text-left bg-gray-50 hover:bg-gray-100 transition">
<span class="font-medium">How do I receive my tickets?</span>
<i class="fas fa-chevron-down transition-transform"></i>
</button>
<div class="faq-content hidden p-4 border-t border-gray-200">
<p class="text-gray-600">All tickets are delivered digitally via email within 24 hours of purchase. You'll receive a PDF ticket with a unique QR code and security key that will be scanned at the venue entrance.</p>
</div>
</div>
<!-- FAQ Item 2 -->
<div class="border border-gray-200 rounded-lg overflow-hidden">
<button class="faq-toggle w-full flex justify-between items-center p-4 text-left bg-gray-50 hover:bg-gray-100 transition">
<span class="font-medium">Are the tickets transferable?</span>
<i class="fas fa-chevron-down transition-transform"></i>
</button>
<div class="faq-content hidden p-4 border-t border-gray-200">
<p class="text-gray-600">No, all tickets are non-transferable and will be registered to the purchaser's name. ID may be required to match the ticket information upon entry.</p>
</div>
</div>
<!-- FAQ Item 3 -->
<div class="border border-gray-200 rounded-lg overflow-hidden">
<button class="faq-toggle w-full flex justify-between items-center p-4 text-left bg-gray-50 hover:bg-gray-100 transition">
<span class="font-medium">What if I lose my ticket?</span>
<i class="fas fa-chevron-down transition-transform"></i>
</button>
<div class="faq-content hidden p-4 border-t border-gray-200">
<p class="text-gray-600">Contact our customer support immediately with your purchase confirmation email. We can verify your identity and reissue your ticket with a new security key.</p>
</div>
</div>
<!-- FAQ Item 4 -->
<div class="border border-gray-200 rounded-lg overflow-hidden">
<button class="faq-toggle w-full flex justify-between items-center p-4 text-left bg-gray-50 hover:bg-gray-100 transition">
<span class="font-medium">What payment methods do you accept?</span>
<i class="fas fa-chevron-down transition-transform"></i>
</button>
<div class="faq-content hidden p-4 border-t border-gray-200">
<p class="text-gray-600">We accept all major credit cards (Visa, MasterCard, American Express), PayPal, and select local payment methods. All transactions are securely processed with 256-bit encryption.</p>
</div>
</div>
<!-- FAQ Item 5 -->
<div class="border border-gray-200 rounded-lg overflow-hidden">
<button class="faq-toggle w-full flex justify-between items-center p-4 text-left bg-gray-50 hover:bg-gray-100 transition">
<span class="font-medium">What is your refund policy?</span>
<i class="fas fa-chevron-down transition-transform"></i>
</button>
<div class="faq-content hidden p-4 border-t border-gray-200">
<p class="text-gray-600">All sales are final. However, if an event is canceled or postponed, we will offer full refunds or the option to exchange for another event. Please see our full terms and conditions for details.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Newsletter Section -->
<section class="py-12 bg-blue-800 text-white">
<div class="container mx-auto px-4 text-center">
<h2 class="text-3xl font-bold mb-4">Stay Updated</h2>
<p class="max-w-2xl mx-auto mb-8">Subscribe to our newsletter for the latest ticket releases, special offers, and Olympic Games news.</p>
<div class="max-w-md mx-auto flex">
<input type="email" placeholder="Your email address" class="flex-1 px-4 py-3 rounded-l focus:outline-none text-gray-900">
<button class="bg-yellow-400 hover:bg-yellow-500 text-gray-900 font-bold px-6 py-3 rounded-r transition">Subscribe</button>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white py-8">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-lg font-bold mb-4">Olympic Tickets</h3>
<p class="text-gray-400">The official ticket store for the Paris 2024 Olympic Games. Secure your seats for the world's greatest sporting event.</p>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Quick Links</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white transition">Home</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Events</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Venues</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">FAQ</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Contact</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Legal</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white transition">Terms of Service</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Privacy Policy</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Cookie Policy</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Refund Policy</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Connect With Us</h3>
<div class="flex space-x-4 mb-4">
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-facebook-f"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-instagram"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-linkedin-in"></i></a>
</div>
<p class="text-gray-400">Email: tickets@paris2024.org</p>
<p class="text-gray-400">Phone: +33 1 23 45 67 89</p>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400">
<p>© 2024 Paris 2024 Olympic Games. All rights reserved.</p>
</div>
</div>
</footer>
<!-- Modal -->
<div id="ticketModal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4">
<div class="bg-white rounded-lg max-w-md w-full max-h-[90vh] overflow-y-auto">
<div class="p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-xl font-bold">Ticket Added to Cart</h3>
<button id="closeModal" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<div class="border-b pb-4 mb-4">
<p id="modalEvent" class="font-medium">Athletics - 100m Final</p>
<p id="modalPrice" class="text-gray-600">€120.00</p>
</div>
<div class="mb-4">
<label for="ticketQuantity" class="block text-sm font-medium text-gray-700 mb-2">Quantity</label>
<select id="ticketQuantity" class="w-full border border-gray-300 rounded px-3 py-2">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div>
<div class="flex space-x-4">
<button id="continueShopping" class="flex-1 border border-gray-300 text-gray-700 px-4 py-2 rounded hover:bg-gray-100 transition">Continue Shopping</button>
<button id="goToCart" class="flex-1 bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded transition">Go to Cart</button>
</div>
</div>
</div>
</div>
<script>
// Countdown to Paris 2024 Opening Ceremony (July 26, 2024)
function updateCountdown() {
const now = new Date();
const targetDate = new Date('July 26, 2024 20:00:00 GMT+0200');
const diff = targetDate - now;
if (diff <= 0) {
document.getElementById('days').textContent = '00';
document.getElementById('hours').textContent = '00';
document.getElementById('minutes').textContent = '00';
document.getElementById('seconds').textContent = '00';
return;
}
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();
// Shopping Cart Functionality
let cart = [];
function updateCartDisplay() {
const cartCount = document.getElementById('cartCount');
const cartItems = document.getElementById('cartItems');
const cartTotal = document.getElementById('cartTotal');
cartCount.textContent = cart.reduce((total, item) => total + item.quantity, 0);
if (cart.length === 0) {
cartItems.innerHTML = '<p class="text-sm text-gray-500">Your cart is empty</p>';
cartTotal.textContent = '€0.00';
} else {
cartItems.innerHTML = cart.map(item => `
<div class="flex justify-between items-center py-2 border-b">
<div>
<p class="text-sm font-medium">${item.event}</p>
<p class="text-xs text-gray-500">Qty: ${item.quantity} × €${item.price.toFixed(2)}</p>
</div>
<button class="remove-item text-red-500 hover:text-red-700 text-xs" data-id="${item.id}">
<i class="fas fa-times"></i>
</button>
</div>
`).join('');
const total = cart.reduce((sum, item) => sum + (item.price * item.quantity), 0);
cartTotal.textContent = `€${total.toFixed(2)}`;
// Add event listeners to remove buttons
document.querySelectorAll('.remove-item').forEach(button => {
button.addEventListener('click', function() {
const itemId = this.getAttribute('data-id');
cart = cart.filter(item => item.id !== itemId);
updateCartDisplay();
// Pulse the cart icon when removing an item
const cartButton = document.getElementById('cartButton');
cartButton.classList.add('cart-pulse');
setTimeout(() => {
cartButton.classList.remove('cart-pulse');
}, 2000);
});
});
}
}
// Cart toggle
document.getElementById('cartButton').addEventListener('click', function(e) {
e.stopPropagation();
document.getElementById('cartDropdown').classList.toggle('hidden');
});
// Close cart when clicking outside
document.addEventListener('click', function() {
document.getElementById('cartDropdown').classList.add('hidden');
});
// Add to cart functionality
document.querySelectorAll('.add-to-cart').forEach(button => {
button.addEventListener('click', function() {
const event = this.getAttribute('data-event');
const price = parseFloat(this.getAttribute('data-price'));
const id = 'item-' + Math.random().toString(36).substr(2, 9);
// Check if item already in cart
const existingItem = cart.find(item => item.event === event);
if (existingItem) {
existingItem.quantity += 1;
} else {
cart.push({
id,
event,
price,
quantity: 1
});
}
// Update modal with item info
document.getElementById('modalEvent').textContent = event;
document.getElementById('modalPrice').textContent = `€${price.toFixed(2)}`;
document.getElementById('ticketQuantity').value = existingItem ? existingItem.quantity : 1;
// Show modal
document.getElementById('ticketModal').classList.remove('hidden');
// Update cart display
updateCartDisplay();
// Pulse the cart icon
const cartButton = document.getElementById('cartButton');
cartButton.classList.add('cart-pulse');
setTimeout(() => {
cartButton.classList.remove('cart-pulse');
}, 2000);
});
});
// Modal functionality
document.getElementById('closeModal').addEventListener('click', function() {
document.getElementById('ticketModal').classList.add('hidden');
});
document.getElementById('continueShopping').addEventListener('click', function() {
document.getElementById('ticketModal').classList.add('hidden');
});
document.getElementById('goToCart').addEventListener('click', function() {
document.getElementById('ticketModal').classList.add('hidden');
document.getElementById('cartDropdown').classList.remove('hidden');
});
// Update quantity in modal
document.getElementById('ticketQuantity').addEventListener('change', function() {
const quantity = parseInt(this.value);
const event = document.getElementById('modalEvent').textContent;
const item = cart.find(item => item.event === event);
if (item) {
item.quantity = quantity;
updateCartDisplay();
}
});
// Generate demo QR code
document.getElementById('generateQR').addEventListener('click', function() {
const qrElement = document.getElementById('qrCode');
qrElement.innerHTML = ''; // Clear previous QR code
// Generate a random security key for demo purposes
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
let securityKey = '';
for (let i = 0; i < 16; i++) {
securityKey += chars.charAt(Math.floor(Math.random() * chars.length));
}
// Update the security key display
document.querySelector('.security-key').textContent = securityKey;
// Generate QR code with the security key
QRCode.toCanvas(qrElement, securityKey, {
width: 128,
margin: 1,
color: {
dark: '#000000',
light: '#ffffff'
}
}, function(error) {
if (error) console.error(error);
});
// Change button text
this.textContent = 'QR Code Generated';
this.classList.remove('bg-blue-600');
this.classList.add('bg-green-600', 'hover:bg-green-700');
this.disabled = true;
});
// FAQ toggle functionality
document.querySelectorAll('.faq-toggle').forEach(button => {
button.addEventListener('click', function() {
const content = this.nextElementSibling;
const icon = this.querySelector('i');
content.classList.toggle('hidden');
icon.classList.toggle('rotate-180');
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=brainable/jo" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |