Spaces:
Running
Running
File size: 35,161 Bytes
1152c17 50d72fc 47b0bac 50d72fc ba974a1 50d72fc ba974a1 50d72fc ba974a1 50d72fc 47b0bac 50d72fc 37fa0c9 50d72fc 1152c17 50d72fc 1152c17 50d72fc 1152c17 50d72fc 47b0bac 50d72fc 47b0bac 50d72fc 47b0bac 50d72fc ba974a1 50d72fc ba974a1 50d72fc ba974a1 50d72fc ba974a1 47b0bac ba974a1 47b0bac ba974a1 47b0bac ba974a1 47b0bac ba974a1 47b0bac 37fa0c9 47b0bac 50d72fc ba974a1 50d72fc ba974a1 50d72fc ba974a1 47b0bac 50d72fc 44a7601 50d72fc 44a7601 50d72fc 44a7601 37fa0c9 44a7601 50d72fc 47b0bac 50d72fc 47b0bac 44a7601 50d72fc 44a7601 37fa0c9 44a7601 37fa0c9 50d72fc 44a7601 50d72fc 47b0bac 37fa0c9 ba974a1 50d72fc ba974a1 50d72fc ba974a1 50d72fc ba974a1 50d72fc ba974a1 50d72fc ba974a1 50d72fc ba974a1 50d72fc ba974a1 44a7601 50d72fc 44a7601 50d72fc 44a7601 50d72fc 44a7601 50d72fc 44a7601 50d72fc 44a7601 50d72fc 44a7601 50d72fc 1152c17 50d72fc 1152c17 3f5379e | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NightPulse Explorer | Discover Nightlife Trends</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
<style>
.venue-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.pulse-animation {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
.genre-chip {
transition: all 0.3s ease;
}
.genre-chip:hover {
transform: scale(1.05);
}
</style>
</head>
<body class="bg-gray-900 text-white">
<div id="vanta-bg" class="fixed inset-0 z-0"></div>
<div class="relative z-10 min-h-screen">
<!-- Header -->
<header class="bg-black bg-opacity-70 backdrop-blur-md sticky top-0 z-50">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="music" class="text-pink-500"></i>
<h1 class="text-2xl font-bold bg-gradient-to-r from-purple-500 to-pink-500 bg-clip-text text-transparent">NightPulse Explorer</h1>
</div>
<nav class="hidden md:flex space-x-6">
<a href="#" class="hover:text-pink-400 transition">Trending</a>
<a href="#" class="hover:text-pink-400 transition">Near Me</a>
<a href="#" class="hover:text-pink-400 transition">Categories</a>
<a href="#" class="hover:text-pink-400 transition">Submit Venue</a>
</nav>
<div class="flex items-center space-x-4">
<button class="p-2 rounded-full hover:bg-gray-800 transition">
<i data-feather="search"></i>
</button>
<button class="hidden md:block bg-gradient-to-r from-purple-500 to-pink-500 px-4 py-2 rounded-full font-medium hover:opacity-90 transition">
Login
</button>
<button class="md:hidden p-2 rounded-full hover:bg-gray-800 transition">
<i data-feather="menu"></i>
</button>
</div>
</div>
</header>
<!-- Hero Section -->
<section class="container mx-auto px-4 py-16 md:py-24">
<div class="max-w-3xl mx-auto text-center">
<h2 class="text-4xl md:text-6xl font-bold mb-6">Find Your <span class="bg-gradient-to-r from-purple-500 to-pink-500 bg-clip-text text-transparent">Night Vibe</span></h2>
<p class="text-xl md:text-2xl text-gray-300 mb-10">Real-time updates on music, crowd age range, and ambiance at your favorite nightspots.</p>
<div class="flex flex-col md:flex-row gap-4 justify-center">
<div class="relative flex-grow max-w-xl">
<input type="text" placeholder="Search venues or locations..." class="w-full bg-gray-800 bg-opacity-70 border border-gray-700 rounded-full py-4 px-6 pr-12 focus:outline-none focus:ring-2 focus:ring-pink-500">
<i data-feather="search" class="absolute right-6 top-4 text-gray-400"></i>
</div>
<button class="bg-gradient-to-r from-purple-500 to-pink-500 px-8 py-4 rounded-full font-medium hover:opacity-90 transition whitespace-nowrap">
Explore Now
</button>
</div>
</div>
</section>
<!-- Live Updates Section -->
<section class="container mx-auto px-4 pb-24">
<div class="flex justify-between items-center mb-8">
<h3 class="text-2xl md:text-3xl font-bold">Live Venue Updates <span class="inline-block w-3 h-3 bg-red-500 rounded-full ml-2 pulse-animation"></span></h3>
<a href="#" class="text-pink-400 hover:text-pink-300 flex items-center">
View all <i data-feather="chevron-right" class="ml-1"></i>
</a>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Venue Card 1 -->
<div class="venue-card bg-gray-800 bg-opacity-70 backdrop-blur-sm rounded-xl overflow-hidden transition duration-300">
<div class="relative">
<img src="http://static.photos/nightlife/640x360/101" alt="Club Atmosphere" class="w-full h-48 object-cover">
<div class="absolute bottom-4 left-4">
<span class="bg-black bg-opacity-70 text-white px-3 py-1 rounded-full text-sm flex items-center">
<i data-feather="users" class="w-4 h-4 mr-1"></i> 18-25
</span>
</div>
<div class="absolute top-4 right-4">
<span class="bg-green-500 text-white px-3 py-1 rounded-full text-sm flex items-center">
<i data-feather="activity" class="w-4 h-4 mr-1"></i> High Energy
</span>
</div>
</div>
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<h4 class="text-xl font-bold">Neon Dreams</h4>
<div class="flex items-center text-yellow-400">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<span class="ml-1">4.8</span>
</div>
</div>
<p class="text-gray-400 mb-4">EDM • House • Tech House</p>
<div class="flex flex-wrap gap-2 mb-4">
<span class="genre-chip bg-purple-900 text-purple-200 px-3 py-1 rounded-full text-xs">#EDM</span>
<span class="genre-chip bg-pink-900 text-pink-200 px-3 py-1 rounded-full text-xs">#House</span>
<span class="genre-chip bg-blue-900 text-blue-200 px-3 py-1 rounded-full text-xs">#TechHouse</span>
</div>
<div class="flex items-center text-gray-400 text-sm">
<i data-feather="music" class="w-4 h-4 mr-2"></i>
<span class="truncate">Currently playing: Fisher - Losing It</span>
</div>
</div>
</div>
<!-- Venue Card 2 -->
<div class="venue-card bg-gray-800 bg-opacity-70 backdrop-blur-sm rounded-xl overflow-hidden transition duration-300">
<div class="relative">
<img src="http://static.photos/restaurant/640x360/202" alt="Lounge Atmosphere" class="w-full h-48 object-cover">
<div class="absolute bottom-4 left-4">
<span class="bg-black bg-opacity-70 text-white px-3 py-1 rounded-full text-sm flex items-center">
<i data-feather="users" class="w-4 h-4 mr-1"></i> 25-35
</span>
</div>
<div class="absolute top-4 right-4">
<span class="bg-blue-500 text-white px-3 py-1 rounded-full text-sm flex items-center">
<i data-feather="moon" class="w-4 h-4 mr-1"></i> Chill Vibes
</span>
</div>
</div>
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<h4 class="text-xl font-bold">Velvet Lounge</h4>
<div class="flex items-center text-yellow-400">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<span class="ml-1">4.6</span>
</div>
</div>
<p class="text-gray-400 mb-4">R&B • Jazz • Soul</p>
<div class="flex flex-wrap gap-2 mb-4">
<span class="genre-chip bg-red-900 text-red-200 px-3 py-1 rounded-full text-xs">#R&B</span>
<span class="genre-chip bg-amber-900 text-amber-200 px-3 py-1 rounded-full text-xs">#Jazz</span>
<span class="genre-chip bg-indigo-900 text-indigo-200 px-3 py-1 rounded-full text-xs">#Soul</span>
</div>
<div class="flex items-center text-gray-400 text-sm">
<i data-feather="music" class="w-4 h-4 mr-2"></i>
<span class="truncate">Currently playing: SZA - Kill Bill</span>
</div>
</div>
</div>
<!-- Venue Card 3 -->
<div class="venue-card bg-gray-800 bg-opacity-70 backdrop-blur-sm rounded-xl overflow-hidden transition duration-300">
<div class="relative">
<img src="http://static.photos/bar/640x360/303" alt="Bar Atmosphere" class="w-full h-48 object-cover">
<div class="absolute bottom-4 left-4">
<span class="bg-black bg-opacity-70 text-white px-3 py-1 rounded-full text-sm flex items-center">
<i data-feather="users" class="w-4 h-4 mr-1"></i> 30-45
</span>
</div>
<div class="absolute top-4 right-4">
<span class="bg-yellow-500 text-white px-3 py-1 rounded-full text-sm flex items-center">
<i data-feather="zap" class="w-4 h-4 mr-1"></i> Medium Energy
</span>
</div>
</div>
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<h4 class="text-xl font-bold">The Rusty Barrel</h4>
<div class="flex items-center text-yellow-400">
<i data-feather="star" class="w-4 h-4 fill-current"></i>
<span class="ml-1">4.5</span>
</div>
</div>
<p class="text-gray-400 mb-4">Rock • Indie • Alternative</p>
<div class="flex flex-wrap gap-2 mb-4">
<span class="genre-chip bg-gray-700 text-gray-200 px-3 py-1 rounded-full text-xs">#Rock</span>
<span class="genre-chip bg-green-900 text-green-200 px-3 py-1 rounded-full text-xs">#Indie</span>
<span class="genre-chip bg-orange-900 text-orange-200 px-3 py-1 rounded-full text-xs">#Alternative</span>
</div>
<div class="flex items-center text-gray-400 text-sm">
<i data-feather="music" class="w-4 h-4 mr-2"></i>
<span class="truncate">Currently playing: Arctic Monkeys - Do I Wanna Know?</span>
</div>
</div>
</div>
</div>
</section>
<!-- Analytics Section -->
<section class="py-24 bg-gray-900">
<div class="container mx-auto px-4">
<h3 class="text-3xl font-bold text-center mb-12">Nightlife Analytics</h3>
<!-- Age Range Bar Chart -->
<div class="bg-gray-800 bg-opacity-70 backdrop-blur-sm rounded-xl p-6 mb-12">
<div class="flex justify-between items-center mb-6">
<h4 class="text-2xl font-bold">Age Range Distribution</h4>
<div class="flex flex-wrap gap-2">
<button class="bg-pink-600 text-white px-4 py-2 rounded-lg text-sm hover:bg-pink-700 transition active" id="age-all">All</button>
<button class="bg-pink-900 text-white px-4 py-2 rounded-lg text-sm hover:bg-pink-800 transition" id="age-18-25">18-25</button>
<button class="bg-purple-900 text-white px-4 py-2 rounded-lg text-sm hover:bg-purple-800 transition" id="age-25-35">25-35</button>
<button class="bg-blue-900 text-white px-4 py-2 rounded-lg text-sm hover:bg-blue-800 transition" id="age-35-45">35-45</button>
</div>
</div>
<div class="relative h-64 w-full">
<canvas id="ageChart"></canvas>
<div class="absolute top-0 left-0 w-full h-full flex items-center justify-center pointer-events-none" id="noDataMessage" style="display: none;">
<p class="text-gray-400 bg-black bg-opacity-70 px-4 py-2 rounded-lg">No data available for selected filter</p>
</div>
</div>
</div>
<!-- Music Genre Pie Chart -->
<div class="bg-gray-800 bg-opacity-70 backdrop-blur-sm rounded-xl p-6">
<div class="flex justify-between items-center mb-6">
<h4 class="text-2xl font-bold">Music Genre Popularity</h4>
<div class="flex space-x-2">
<button class="bg-gray-700 text-white px-4 py-2 rounded-lg text-sm hover:bg-gray-600 transition" id="genre-all">All</button>
<button class="bg-red-900 text-white px-4 py-2 rounded-lg text-sm hover:bg-red-800 transition" id="genre-edm">EDM</button>
<button class="bg-yellow-900 text-white px-4 py-2 rounded-lg text-sm hover:bg-yellow-800 transition" id="genre-rock">Rock</button>
<button class="bg-indigo-900 text-white px-4 py-2 rounded-lg text-sm hover:bg-indigo-800 transition" id="genre-hiphop">Hip Hop</button>
</div>
</div>
<div class="h-64 w-full flex justify-center items-center" id="genreChart">
<div class="w-48 h-48 md:w-64 md:h-64">
<!-- Pie Chart will be rendered here -->
</div>
</div>
</div>
</div>
</section>
<!-- Features Section -->
<section class="bg-gradient-to-b from-gray-900 to-black py-24">
<div class="container mx-auto px-4">
<h3 class="text-3xl font-bold text-center mb-16">Why Choose NightPulse Explorer?</h3>
<div class="grid grid-cols-1 md:grid-cols-3 gap-12">
<div class="text-center">
<div class="bg-pink-900 bg-opacity-50 w-16 h-16 rounded-lg flex items-center justify-center mx-auto mb-6">
<i data-feather="clock" class="w-8 h-8 text-pink-400"></i>
</div>
<h4 class="text-xl font-bold mb-3">Real-time Updates</h4>
<p class="text-gray-400">Get live information about music, crowd demographics, and current atmosphere.</p>
</div>
<div class="text-center">
<div class="bg-purple-900 bg-opacity-50 w-16 h-16 rounded-lg flex items-center justify-center mx-auto mb-6">
<i data-feather="map-pin" class="w-8 h-8 text-purple-400"></i>
</div>
<h4 class="text-xl font-bold mb-3">Smart Recommendations</h4>
<p class="text-gray-400">Discover venues matching your preferred vibe and music taste.</p>
</div>
<div class="text-center">
<div class="bg-blue-900 bg-opacity-50 w-16 h-16 rounded-lg flex items-center justify-center mx-auto mb-6">
<i data-feather="trending-up" class="w-8 h-8 text-blue-400"></i>
</div>
<h4 class="text-xl font-bold mb-3">Trend Analysis</h4>
<p class="text-gray-400">See which spots are trending and what's popular in your city tonight.</p>
</div>
</div>
</div>
</section>
<!-- App Download CTA -->
<section class="py-24 bg-black bg-opacity-50">
<div class="container mx-auto px-4 text-center">
<h3 class="text-3xl font-bold mb-6">Get the App</h3>
<p class="text-xl text-gray-300 max-w-2xl mx-auto mb-10">Download NightPulse Explorer for real-time notifications about venue changes and exclusive deals.</p>
<div class="flex flex-col sm:flex-row gap-4 justify-center">
<button class="bg-gray-800 hover:bg-gray-700 px-8 py-4 rounded-lg font-medium transition flex items-center justify-center">
<i data-feather="apple" class="w-6 h-6 mr-3"></i>
<div class="text-left">
<div class="text-xs">Download on the</div>
<div class="text-lg">App Store</div>
</div>
</button>
<button class="bg-gray-800 hover:bg-gray-700 px-8 py-4 rounded-lg font-medium transition flex items-center justify-center">
<i data-feather="play" class="w-6 h-6 mr-3"></i>
<div class="text-left">
<div class="text-xs">Get it on</div>
<div class="text-lg">Google Play</div>
</div>
</button>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-black bg-opacity-70 py-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h5 class="text-lg font-bold mb-4 flex items-center">
<i data-feather="music" class="text-pink-500 mr-2"></i>
NightPulse Explorer
</h5>
<p class="text-gray-400 mb-4">Discover the pulse of the nightlife in your city.</p>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-pink-400 transition">
<i data-feather="instagram"></i>
</a>
<a href="#" class="text-gray-400 hover:text-pink-400 transition">
<i data-feather="twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-pink-400 transition">
<i data-feather="facebook"></i>
</a>
</div>
</div>
<div>
<h5 class="text-lg font-bold mb-4">Explore</h5>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-pink-400 transition">Trending Venues</a></li>
<li><a href="#" class="text-gray-400 hover:text-pink-400 transition">New Openings</a></li>
<li><a href="#" class="text-gray-400 hover:text-pink-400 transition">Special Events</a></li>
<li><a href="#" class="text-gray-400 hover:text-pink-400 transition">City Guides</a></li>
</ul>
</div>
<div>
<h5 class="text-lg font-bold mb-4">For Venues</h5>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-pink-400 transition">List Your Venue</a></li>
<li><a href="#" class="text-gray-400 hover:text-pink-400 transition">Marketing Tools</a></li>
<li><a href="#" class="text-gray-400 hover:text-pink-400 transition">Analytics Dashboard</a></li>
<li><a href="#" class="text-gray-400 hover:text-pink-400 transition">Pricing Plans</a></li>
</ul>
</div>
<div>
<h5 class="text-lg font-bold mb-4">Support</h5>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-pink-400 transition">Help Center</a></li>
<li><a href="#" class="text-gray-400 hover:text-pink-400 transition">Contact Us</a></li>
<li><a href="#" class="text-gray-400 hover:text-pink-400 transition">Privacy Policy</a></li>
<li><a href="#" class="text-gray-400 hover:text-pink-400 transition">Terms of Service</a></li>
</ul>
</div>
</div>
<div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
<p class="text-gray-500 mb-4 md:mb-0">© 2023 NightPulse Explorer. All rights reserved.</p>
<div class="flex space-x-6">
<a href="#" class="text-gray-500 hover:text-pink-400 transition">Privacy</a>
<a href="#" class="text-gray-500 hover:text-pink-400 transition">Terms</a>
<a href="#" class="text-gray-500 hover:text-pink-400 transition">Sitemap</a>
</div>
</div>
</div>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
// Initialize Vanta.js background
// Initialize Charts
document.addEventListener('DOMContentLoaded', function() {
// Age Range Bar Chart
const ageCtx = document.getElementById('ageChart').getContext('2d');
const ageChart = new Chart(ageCtx, {
type: 'bar',
data: {
labels: ['18-25', '25-35', '35-45', '45+'],
datasets: [{
label: 'Percentage of Visitors',
data: [42, 38, 15, 5],
backgroundColor: [
'rgba(236, 72, 153, 0.8)',
'rgba(167, 139, 250, 0.8)',
'rgba(99, 102, 241, 0.8)',
'rgba(156, 163, 175, 0.8)'
],
borderColor: [
'rgba(236, 72, 153, 1)',
'rgba(167, 139, 250, 1)',
'rgba(99, 102, 241, 1)',
'rgba(156, 163, 175, 1)'
],
borderWidth: 2,
borderRadius: 4,
borderSkipped: false
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
max: 50,
grid: {
color: 'rgba(255, 255, 255, 0.1)'
},
ticks: {
color: 'rgba(255, 255, 255, 0.7)',
callback: function(value) {
return value + '%';
}
},
title: {
display: true,
text: 'Percentage (%)',
color: 'rgba(255, 255, 255, 0.7)'
}
},
x: {
grid: {
display: false
},
ticks: {
color: 'rgba(255, 255, 255, 0.7)'
},
title: {
display: true,
text: 'Age Range',
color: 'rgba(255, 255, 255, 0.7)'
}
}
},
plugins: {
legend: {
display: false
},
tooltip: {
backgroundColor: 'rgba(17, 24, 39, 0.9)',
titleColor: 'white',
bodyColor: 'white',
borderColor: 'rgba(255, 255, 255, 0.1)',
borderWidth: 1,
padding: 12,
callbacks: {
label: function(context) {
return context.parsed.y + '%';
}
}
}
},
animation: {
duration: 1000,
easing: 'easeOutQuart'
}
}
});
// Music Genre Pie Chart
const genreCtx = document.getElementById('genreChart').querySelector('div').getContext('2d');
const genreChart = new Chart(genreCtx, {
type: 'doughnut',
data: {
labels: ['EDM', 'Hip Hop', 'Rock', 'R&B', 'Jazz', 'Alternative', 'Pop', 'Other'],
datasets: [{
data: [28, 22, 19, 16, 8, 5, 1, 1],
backgroundColor: [
'rgba(219, 39, 119, 0.8)',
'rgba(16, 185, 129, 0.8)',
'rgba(234, 179, 8, 0.8)',
'rgba(239, 68, 68, 0.8)',
'rgba(59, 130, 246, 0.8)',
'rgba(139, 92, 246, 0.8)',
'rgba(20, 184, 166, 0.8)',
'rgba(156, 163, 175, 0.8)'
],
borderColor: 'rgba(31, 41, 55, 0.8)',
borderWidth: 2,
hoverOffset: 15,
cutout: '70%'
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'right',
labels: {
color: 'rgba(255, 255, 255, 0.8)',
padding: 20,
font: {
size: 12
},
usePointStyle: true,
pointStyle: 'circle'
}
},
title: {
display: true,
text: 'Music Genre Distribution',
color: 'rgba(255, 255, 255, 0.9)',
font: {
size: 18,
weight: 'bold'
},
padding: {
top: 20,
bottom: 20
}
},
tooltip: {
backgroundColor: 'rgba(17, 24, 39, 0.95)',
titleColor: '#ec4899',
bodyColor: 'white',
borderColor: 'rgba(255, 255, 255, 0.1)',
borderWidth: 1,
padding: 12,
callbacks: {
label: function(context) {
const label = context.label || '';
const value = context.raw || 0;
const total = context.dataset.data.reduce((a, b) => a + b, 0);
const percentage = Math.round((value / total) * 100);
return `${label}: ${percentage}% (${value})`;
}
}
}
},
animation: {
animateScale: true,
animateRotate: true
}
}
});
// Filter buttons functionality
// Filter buttons functionality
document.querySelectorAll('#age-all, #age-18-25, #age-25-35, #age-35-45').forEach(btn => {
btn.addEventListener('click', function() {
// Remove active class from all buttons
document.querySelectorAll('#age-all, #age-18-25, #age-25-35, #age-35-45').forEach(b => {
b.classList.remove('active', 'bg-pink-600');
b.classList.add('bg-opacity-70');
});
// Add active class to clicked button
this.classList.add('active', 'bg-pink-600');
this.classList.remove('bg-opacity-70');
const filter = this.id.split('-').pop();
const noDataMsg = document.getElementById('noDataMessage');
if (filter === 'all') {
noDataMsg.style.display = 'none';
ageChart.data.datasets[0].data = [42, 38, 15, 5];
ageChart.options.scales.y.max = 50;
} else {
const index = ['18-25', '25-35', '35-45', '45+'].indexOf(filter.replace(/(\d+)-(\d+)/, '$1-$2'));
if (index === 3) { // 45+ has very little data
noDataMsg.style.display = 'flex';
ageChart.data.datasets[0].data = [0, 0, 0, 0];
} else {
noDataMsg.style.display = 'none';
ageChart.data.datasets[0].data = [0, 0, 0, 0];
ageChart.data.datasets[0].data[index] = [42, 38, 15, 5][index];
ageChart.options.scales.y.max = 50;
}
}
ageChart.update();
});
});
// Initialize first button as active
document.getElementById('age-all').classList.add('active', 'bg-pink-600');
// Filter buttons for genre chart
document.querySelectorAll('#genre-all, #genre-edm, #genre-rock, #genre-hiphop').forEach(btn => {
btn.addEventListener('click', function() {
// Remove active class from all buttons
document.querySelectorAll('#genre-all, #genre-edm, #genre-rock, #genre-hiphop').forEach(b => {
b.classList.remove('bg-gray-700');
b.classList.add('bg-opacity-70');
});
// Add active class to clicked button
this.classList.add('bg-gray-700');
this.classList.remove('bg-opacity-70');
const filter = this.id.split('-').pop();
if (filter === 'all') {
genreChart.data.datasets[0].data = [28, 22, 19, 16, 8, 5, 1, 1];
} else {
genreChart.data.datasets[0].data = [0, 0, 0, 0, 0, 0, 0, 0];
const index = ['edm', 'hiphop', 'rock', 'r&b', 'jazz', 'alternative', 'pop', 'other'].indexOf(filter);
if (index !== -1) genreChart.data.datasets[0].data[index] = [28, 22, 19, 16, 8, 5, 1, 1][index];
}
genreChart.update();
});
});
// Initialize first button as active
document.getElementById('genre-all').classList.add('bg-gray-700');
});
VANTA.NET({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x6b21a8,
backgroundColor: 0x111827,
points: 9.00,
maxDistance: 25.00,
spacing: 17.00
});
// Initialize feather icons
feather.replace();
// Add animation to cards on scroll and initialize charts
document.addEventListener('DOMContentLoaded', function() {
const venueCards = document.querySelectorAll('.venue-card');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = 1;
entry.target.style.transform = 'translateY(0)';
}
});
}, { threshold: 0.1 });
venueCards.forEach((card, index) => {
card.style.opacity = 0;
card.style.transform = 'translateY(20px)';
card.style.transition = `opacity 0.5s ease ${index * 0.1}s, transform 0.5s ease ${index * 0.1}s`;
observer.observe(card);
});
});
</script>
</body>
</html>
|