stats / index.html
Knuger's picture
Add 3 files
04d01bf verified
Raw History Blame Contribute Delete
39.3 kB
<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Soundito - Statistik</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Poppins', sans-serif;
background-color: #0f172a;
color: #f8fafc;
}
.gradient-bg {
background: linear-gradient(135deg, #1e3a8a 0%, #7e22ce 100%);
}
.stats-card {
transition: all 0.3s ease;
}
.stats-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #1e293b;
}
::-webkit-scrollbar-thumb {
background: #7e22ce;
border-radius: 4px;
}
/* Chart placeholders */
.chart-placeholder {
height: 300px;
background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
border-radius: 0.5rem;
}
/* Progress bars */
.progress-container {
height: 6px;
background-color: #1e293b;
border-radius: 3px;
}
.progress-fill {
height: 100%;
border-radius: 3px;
}
/* Time period selector */
.time-period-btn.active {
background-color: #7e22ce;
color: white;
}
</style>
</head>
<body>
<!-- Navbar -->
<nav class="bg-gray-900/80 backdrop-blur-md fixed w-full z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex items-center justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0 flex items-center">
<i class="fas fa-music text-purple-500 text-2xl mr-2"></i>
<span class="text-white font-bold text-xl">Soundito</span>
</div>
</div>
<div class="hidden md:block">
<div class="ml-10 flex items-baseline space-x-4">
<a href="#" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Dashboard</a>
<a href="#" class="text-white px-3 py-2 rounded-md text-sm font-medium">Statistik</a>
<a href="#" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Discover</a>
<a href="#" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Tävlingar</a>
</div>
</div>
<div class="hidden md:block">
<div class="ml-4 flex items-center md:ml-6">
<button class="relative p-1 rounded-full text-gray-400 hover:text-white focus:outline-none">
<i class="fas fa-bell text-xl"></i>
<span class="absolute top-0 right-0 block h-2 w-2 rounded-full bg-purple-500"></span>
</button>
<div class="ml-3 relative">
<div class="flex items-center cursor-pointer">
<img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="User profile">
<span class="ml-2 text-white text-sm font-medium">Emma S</span>
<i class="fas fa-chevron-down ml-1 text-gray-400 text-xs"></i>
</div>
</div>
</div>
</div>
<div class="-mr-2 flex md:hidden">
<button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none">
<span class="sr-only">Öppna meny</span>
<i class="fas fa-bars"></i>
</button>
</div>
</div>
</div>
</nav>
<!-- Statistics Main Content -->
<div class="pt-16 pb-10 min-h-screen">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<!-- Header -->
<div class="md:flex md:items-center md:justify-between mb-8">
<div>
<h1 class="text-2xl font-bold">Din statistik</h1>
<p class="text-gray-400">Översikt över din prestanda och tillväxt</p>
</div>
<div class="mt-4 md:mt-0">
<button class="gradient-bg hover:opacity-90 text-white px-4 py-2 rounded-md text-sm font-medium transition duration-300">
<i class="fas fa-download mr-2"></i> Exportera data
</button>
</div>
</div>
<!-- Time Period Selector -->
<div class="bg-gray-800 rounded-xl p-4 mb-8">
<div class="flex overflow-x-auto space-x-2">
<button class="time-period-btn px-4 py-2 rounded-md text-sm font-medium active">7 dagar</button>
<button class="time-period-btn px-4 py-2 rounded-md text-sm font-medium bg-gray-700 hover:bg-gray-600">30 dagar</button>
<button class="time-period-btn px-4 py-2 rounded-md text-sm font-medium bg-gray-700 hover:bg-gray-600">90 dagar</button>
<button class="time-period-btn px-4 py-2 rounded-md text-sm font-medium bg-gray-700 hover:bg-gray-600">12 månader</button>
<button class="time-period-btn px-4 py-2 rounded-md text-sm font-medium bg-gray-700 hover:bg-gray-600">Anpassad</button>
</div>
</div>
<!-- Quick Stats -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="bg-gray-800 rounded-xl p-6 stats-card">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">Totalt intäkter</p>
<h3 class="text-2xl font-bold">2,458 kr</h3>
<p class="text-green-400 text-sm"><i class="fas fa-arrow-up mr-1"></i> 12% från förra perioden</p>
</div>
<div class="bg-purple-600/20 p-3 rounded-lg">
<i class="fas fa-wallet text-purple-400 text-xl"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-6 stats-card">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">Totalt lyssningar</p>
<h3 class="text-2xl font-bold">24,589</h3>
<p class="text-green-400 text-sm"><i class="fas fa-arrow-up mr-1"></i> 8% från förra perioden</p>
</div>
<div class="bg-blue-600/20 p-3 rounded-lg">
<i class="fas fa-headphones text-blue-400 text-xl"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-6 stats-card">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">Nya följare</p>
<h3 class="text-2xl font-bold">143</h3>
<p class="text-green-400 text-sm"><i class="fas fa-arrow-up mr-1"></i> 5% från förra perioden</p>
</div>
<div class="bg-green-600/20 p-3 rounded-lg">
<i class="fas fa-users text-green-400 text-xl"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-6 stats-card">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">Engagemang</p>
<h3 class="text-2xl font-bold">8.7%</h3>
<p class="text-green-400 text-sm"><i class="fas fa-arrow-up mr-1"></i> 1.2% från förra perioden</p>
</div>
<div class="bg-yellow-600/20 p-3 rounded-lg">
<i class="fas fa-chart-line text-yellow-400 text-xl"></i>
</div>
</div>
</div>
</div>
<!-- Main Content Grid -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Left Column -->
<div class="lg:col-span-2 space-y-6">
<!-- Performance Chart -->
<div class="bg-gray-800 rounded-xl p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-xl font-bold">Lyssningsstatistik</h2>
<div class="flex items-center space-x-2">
<select class="bg-gray-700 border border-gray-600 text-white text-sm rounded-lg px-3 py-1">
<option>Alla spellistor</option>
<option>Min Sommar 2023</option>
<option>Workout Energy</option>
<option>Chill Vibes</option>
</select>
</div>
</div>
<!-- Chart Placeholder -->
<div class="chart-placeholder flex items-center justify-center mb-4">
<p class="text-gray-400">Visningsdiagram skulle visas här</p>
</div>
<div class="grid grid-cols-2 gap-4">
<div class="bg-gray-700/50 rounded-lg p-4">
<h3 class="text-sm font-medium mb-2">Toppländer</h3>
<div class="space-y-3">
<div>
<div class="flex justify-between text-sm mb-1">
<span>Sverige</span>
<span class="font-medium">58%</span>
</div>
<div class="progress-container">
<div class="progress-fill bg-blue-500" style="width: 58%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span>Norge</span>
<span class="font-medium">22%</span>
</div>
<div class="progress-container">
<div class="progress-fill bg-blue-400" style="width: 22%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span>Danmark</span>
<span class="font-medium">12%</span>
</div>
<div class="progress-container">
<div class="progress-fill bg-blue-300" style="width: 12%"></div>
</div>
</div>
</div>
</div>
<div class="bg-gray-700/50 rounded-lg p-4">
<h3 class="text-sm font-medium mb-2">Åldersgrupper</h3>
<div class="space-y-3">
<div>
<div class="flex justify-between text-sm mb-1">
<span>18-24</span>
<span class="font-medium">62%</span>
</div>
<div class="progress-container">
<div class="progress-fill bg-purple-500" style="width: 62%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span>25-34</span>
<span class="font-medium">28%</span>
</div>
<div class="progress-container">
<div class="progress-fill bg-purple-400" style="width: 28%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span>35-44</span>
<span class="font-medium">10%</span>
</div>
<div class="progress-container">
<div class="progress-fill bg-purple-300" style="width: 10%"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Playlist Performance -->
<div class="bg-gray-800 rounded-xl p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-xl font-bold">Spellisteprestanda</h2>
<button class="text-purple-400 hover:text-purple-300 text-sm font-medium">
<i class="fas fa-sort mr-1"></i> Sortera
</button>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-700">
<thead>
<tr>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Spellista</th>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Lyssningar</th>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Intäkter</th>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Engagemang</th>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Tillväxt</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-700">
<tr class="hover:bg-gray-700/50">
<td class="px-4 py-4 whitespace-nowrap">
<div class="flex items-center">
<img class="w-10 h-10 rounded-md object-cover" src="https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=100&q=80" alt="Playlist cover">
<div class="ml-4">
<div class="text-sm font-medium">Min Sommar 2023</div>
<div class="text-xs text-gray-400">Publicerad: 12 maj</div>
</div>
</div>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<div class="text-sm">12,458</div>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<div class="text-sm">1,245 kr</div>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<div class="text-sm">9.2%</div>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-900 text-green-100">
+15%
</span>
</td>
</tr>
<tr class="hover:bg-gray-700/50">
<td class="px-4 py-4 whitespace-nowrap">
<div class="flex items-center">
<img class="w-10 h-10 rounded-md object-cover" src="https://images.unsplash.com/photo-1496293455970-f8581aae0e3b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=100&q=80" alt="Playlist cover">
<div class="ml-4">
<div class="text-sm font-medium">Workout Energy</div>
<div class="text-xs text-gray-400">Publicerad: 3 april</div>
</div>
</div>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<div class="text-sm">8,742</div>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<div class="text-sm">874 kr</div>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<div class="text-sm">7.8%</div>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-900 text-green-100">
+8%
</span>
</td>
</tr>
<tr class="hover:bg-gray-700/50">
<td class="px-4 py-4 whitespace-nowrap">
<div class="flex items-center">
<img class="w-10 h-10 rounded-md object-cover" src="https://images.unsplash.com/photo-1508700115892-45ecd05ae2ad?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=100&q=80" alt="Playlist cover">
<div class="ml-4">
<div class="text-sm font-medium">Chill Vibes</div>
<div class="text-xs text-gray-400">Publicerad: 15 mars</div>
</div>
</div>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<div class="text-sm">3,458</div>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<div class="text-sm">346 kr</div>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<div class="text-sm">6.5%</div>
</td>
<td class="px-4 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-900 text-yellow-100">
+2%
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Audience Insights -->
<div class="bg-gray-800 rounded-xl p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-xl font-bold">Målgruppsinsikter</h2>
<button class="text-purple-400 hover:text-purple-300 text-sm font-medium">
<i class="fas fa-sync-alt mr-1"></i> Uppdatera
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<h3 class="text-sm font-medium mb-4">Kön</h3>
<div class="flex items-center justify-between mb-2">
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-pink-500 mr-2"></div>
<span class="text-sm">Kvinnor</span>
</div>
<span class="text-sm font-medium">68%</span>
</div>
<div class="progress-container mb-4">
<div class="progress-fill bg-pink-500" style="width: 68%"></div>
</div>
<div class="flex items-center justify-between mb-2">
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-blue-500 mr-2"></div>
<span class="text-sm">Män</span>
</div>
<span class="text-sm font-medium">32%</span>
</div>
<div class="progress-container">
<div class="progress-fill bg-blue-500" style="width: 32%"></div>
</div>
</div>
<div>
<h3 class="text-sm font-medium mb-4">Enhetstyp</h3>
<div class="flex items-center justify-between mb-2">
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-purple-500 mr-2"></div>
<span class="text-sm">Mobil</span>
</div>
<span class="text-sm font-medium">72%</span>
</div>
<div class="progress-container mb-4">
<div class="progress-fill bg-purple-500" style="width: 72%"></div>
</div>
<div class="flex items-center justify-between mb-2">
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div>
<span class="text-sm">Dator</span>
</div>
<span class="text-sm font-medium">28%</span>
</div>
<div class="progress-container">
<div class="progress-fill bg-green-500" style="width: 28%"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Right Column -->
<div class="space-y-6">
<!-- Top Tracks -->
<div class="bg-gray-800 rounded-xl p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-xl font-bold">Topplåtar</h2>
<button class="text-purple-400 hover:text-purple-300 text-sm font-medium">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
<div class="space-y-4">
<div class="flex items-center">
<div class="w-8 h-8 rounded-md bg-purple-600/20 flex items-center justify-center text-purple-400 mr-3">
1
</div>
<img class="w-10 h-10 rounded-md mr-3" src="https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228" alt="Track cover">
<div class="flex-1 min-w-0">
<p class="text-sm font-medium truncate">Blinding Lights</p>
<p class="text-xs text-gray-400 truncate">The Weeknd</p>
</div>
<div class="text-sm text-gray-400 ml-4">12,458</div>
</div>
<div class="flex items-center">
<div class="w-8 h-8 rounded-md bg-blue-600/20 flex items-center justify-center text-blue-400 mr-3">
2
</div>
<img class="w-10 h-10 rounded-md mr-3" src="https://i.scdn.co/image/ab67616d00001e02663cc11a4c91a1e0a30c01ab" alt="Track cover">
<div class="flex-1 min-w-0">
<p class="text-sm font-medium truncate">Save Your Tears</p>
<p class="text-xs text-gray-400 truncate">The Weeknd</p>
</div>
<div class="text-sm text-gray-400 ml-4">9,874</div>
</div>
<div class="flex items-center">
<div class="w-8 h-8 rounded-md bg-green-600/20 flex items-center justify-center text-green-400 mr-3">
3
</div>
<img class="w-10 h-10 rounded-md mr-3" src="https://i.scdn.co/image/ab67616d00001e02e2d156fdc691f57900134342" alt="Track cover">
<div class="flex-1 min-w-0">
<p class="text-sm font-medium truncate">Stay</p>
<p class="text-xs text-gray-400 truncate">The Kid LAROI, Justin Bieber</p>
</div>
<div class="text-sm text-gray-400 ml-4">8,326</div>
</div>
<div class="flex items-center">
<div class="w-8 h-8 rounded-md bg-yellow-600/20 flex items-center justify-center text-yellow-400 mr-3">
4
</div>
<img class="w-10 h-10 rounded-md mr-3" src="https://i.scdn.co/image/ab67616d00001e02c6a6d5a9e42a8599c0c9b788" alt="Track cover">
<div class="flex-1 min-w-0">
<p class="text-sm font-medium truncate">good 4 u</p>
<p class="text-xs text-gray-400 truncate">Olivia Rodrigo</p>
</div>
<div class="text-sm text-gray-400 ml-4">7,542</div>
</div>
<div class="flex items-center">
<div class="w-8 h-8 rounded-md bg-pink-600/20 flex items-center justify-center text-pink-400 mr-3">
5
</div>
<img class="w-10 h-10 rounded-md mr-3" src="https://i.scdn.co/image/ab67616d00001e02d5f7b2974e9d8064f3e5e0ec" alt="Track cover">
<div class="flex-1 min-w-0">
<p class="text-sm font-medium truncate">Levitating</p>
<p class="text-xs text-gray-400 truncate">Dua Lipa</p>
</div>
<div class="text-sm text-gray-400 ml-4">6,985</div>
</div>
</div>
</div>
<!-- Peak Times -->
<div class="bg-gray-800 rounded-xl p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-xl font-bold">Topptider</h2>
<button class="text-purple-400 hover:text-purple-300 text-sm font-medium">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
<div class="chart-placeholder flex items-center justify-center mb-4">
<p class="text-gray-400">Tidsdiagram skulle visas här</p>
</div>
<div class="grid grid-cols-3 gap-4 text-center">
<div>
<p class="text-sm text-gray-400">Toppdag</p>
<p class="font-medium">Fredag</p>
</div>
<div>
<p class="text-sm text-gray-400">Topptimme</p>
<p class="font-medium">18:00</p>
</div>
<div>
<p class="text-sm text-gray-400">Lyssnadast</p>
<p class="font-medium">Kväll</p>
</div>
</div>
</div>
<!-- Comparison -->
<div class="bg-gray-800 rounded-xl p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-xl font-bold">Jämförelse</h2>
<select class="bg-gray-700 border border-gray-600 text-white text-sm rounded-lg px-3 py-1">
<option>Med liknande skapare</option>
<option>Med genomsnitt</option>
<option>Med toppskapare</option>
</select>
</div>
<div class="space-y-4">
<div>
<div class="flex justify-between text-sm mb-1">
<span>Dina lyssningar</span>
<span class="font-medium">24,589</span>
</div>
<div class="progress-container">
<div class="progress-fill bg-purple-500" style="width: 75%"></div>
</div>
<p class="text-xs text-gray-400 mt-1">32% högre än genomsnittet</p>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span>Ditt engagemang</span>
<span class="font-medium">8.7%</span>
</div>
<div class="progress-container">
<div class="progress-fill bg-blue-500" style="width: 58%"></div>
</div>
<p class="text-xs text-gray-400 mt-1">12% högre än genomsnittet</p>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span>Dina följare</span>
<span class="font-medium">1,245</span>
</div>
<div class="progress-container">
<div class="progress-fill bg-green-500" style="width: 42%"></div>
</div>
<p class="text-xs text-gray-400 mt-1">5% lägre än genomsnittet</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Bottom Navigation (Mobile) -->
<div class="md:hidden fixed bottom-0 left-0 right-0 bg-gray-900/80 backdrop-blur-md border-t border-gray-800 z-40">
<div class="flex justify-around">
<a href="#" class="flex flex-col items-center justify-center py-3 px-4 text-gray-400 hover:text-white">
<i class="fas fa-home text-xl"></i>
<span class="text-xs mt-1">Hem</span>
</a>
<a href="#" class="flex flex-col items-center justify-center py-3 px-4 text-white">
<i class="fas fa-chart-line text-xl"></i>
<span class="text-xs mt-1">Statistik</span>
</a>
<a href="#" class="flex flex-col items-center justify-center py-3 px-4 text-gray-400 hover:text-white">
<i class="fas fa-plus-circle text-xl"></i>
<span class="text-xs mt-1">Skapa</span>
</a>
<a href="#" class="flex flex-col items-center justify-center py-3 px-4 text-gray-400 hover:text-white">
<i class="fas fa-bell text-xl"></i>
<span class="text-xs mt-1">Notiser</span>
</a>
<a href="#" class="flex flex-col items-center justify-center py-3 px-4 text-gray-400 hover:text-white">
<img class="w-6 h-6 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile">
<span class="text-xs mt-1">Profil</span>
</a>
</div>
</div>
<script>
// Time period selector
document.querySelectorAll('.time-period-btn').forEach(btn => {
btn.addEventListener('click', function() {
document.querySelectorAll('.time-period-btn').forEach(b => {
b.classList.remove('active');
if(!b.classList.contains('bg-gray-700')) {
b.classList.add('bg-gray-700');
}
});
this.classList.add('active');
this.classList.remove('bg-gray-700');
});
});
// Table row click functionality
document.querySelectorAll('tbody tr').forEach(row => {
row.addEventListener('click', function() {
// In a real app, this would navigate to the playlist detail page
console.log('Navigating to playlist details');
});
});
</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=Knuger/stats" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>