nightpulse-explorer / index.html
SamKakar's picture
Music Pie chart
44a7601 verified
Raw
History Blame Contribute Delete
35.2 kB
<!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>