Spaces:
Running
Running
🐳 14/04 - 08:20 - Add viral growth mechanics.For each track:- Share button (WhatsApp, Facebook, link copy)- Message preview: “Check out this beat on BeatFridge”Add:- Creator referral system (future
fe6a4ea verified Download track.html from Onttraders/BeatFridge: direct link, hf CLI and curl.
- Browser
- Download file 57.7 kB
-
https://huggingface.co/spaces/Onttraders/BeatFridge/resolve/main/track.html
- Command line
-
hf download hf://spaces/Onttraders/BeatFridge/track.html
-
curl -L -o track.html https://huggingface.co/spaces/Onttraders/BeatFridge/resolve/main/track.html
57.7 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Midnight Synthesis - Aurora Void - BeatFridge</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/lucide@latest"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="responsive.css">
<style>
* {
font-family: 'Inter', sans-serif;
}
body {
background-color: #0a0a0a;
color: #ffffff;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
background: #2d2d2d;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #3d3d3d;
}
.glass {
background: rgba(20, 20, 20, 0.6);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-panel {
background: rgba(30, 30, 30, 0.4);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.05);
}
.neon-gradient {
background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #f97316 100%);
}
.neon-text {
background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.waveform-bar {
animation: wave 1.2s ease-in-out infinite;
}
@keyframes wave {
0%, 100% { height: 20%; }
50% { height: 100%; }
}
.waveform-bar:nth-child(1) { animation-delay: 0s; }
.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.track-card {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.track-card:hover {
transform: translateY(-4px);
box-shadow: 0 20px 40px -10px rgba(0, 212, 255, 0.15);
}
.glow-cyan {
box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.glow-orange {
box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}
.sticky-player {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 50;
}
.avatar-ring {
box-shadow: 0 0 0 4px #0a0a0a, 0 0 0 6px rgba(0, 212, 255, 0.5);
}
.comment-bubble {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.waveform-large {
background: linear-gradient(90deg, #333 0%, #333 100%);
position: relative;
}
.waveform-large::before {
content: '';
position: absolute;
left: 0;
top: 0;
height: 100%;
width: var(--progress, 35%);
background: linear-gradient(90deg, #00d4ff, #7c3aed, #f97316);
}
.like-btn.active {
color: #f97316;
fill: #f97316;
}
.repost-btn.active {
color: #00d4ff;
fill: #00d4ff;
}
</style>
</head>
<body class="bg-black text-white overflow-x-hidden pb-24">
<!-- Navigation -->
<nav class="fixed top-0 left-0 right-0 z-40 glass border-b border-white/5">
<div class="max-w-[1600px] mx-auto px-6 h-16 flex items-center justify-between">
<!-- Logo -->
<div class="flex items-center gap-8">
<a href="index.html" class="flex items-center gap-2 cursor-pointer hover:opacity-80 transition">
<div class="w-8 h-8 rounded-lg flex items-center justify-center bg-white/10 border border-white/20">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-5 h-5 text-white">
<rect x="4" y="2" width="16" height="20" rx="2"/>
<line x1="4" y1="9" x2="20" y2="9"/>
<line x1="15" y1="5" x2="15" y2="7"/>
<line x1="15" y1="12" x2="15" y2="18"/>
</svg>
</div>
<span class="text-xl font-bold tracking-tight">BeatFridge</span>
</a>
<!-- Nav Links -->
<div class="hidden md:flex items-center gap-6 text-sm font-medium text-gray-400">
<a href="index.html" class="hover:text-cyan-400 transition">Home</a>
<a href="discover.html" class="hover:text-cyan-400 transition">Discover</a>
<a href="library.html" class="hover:text-cyan-400 transition">Library</a>
<a href="upload.html" class="hover:text-cyan-400 transition flex items-center gap-1">
<i data-lucide="upload-cloud" class="w-4 h-4"></i>
Upload
</a>
<a href="analytics.html" class="hover:text-orange-400 transition flex items-center gap-1">
<i data-lucide="bar-chart-2" class="w-4 h-4"></i>
Analytics
</a>
</div>
</div>
<!-- Search & Profile -->
<div class="flex items-center gap-4">
<div class="relative hidden sm:block">
<input type="text" placeholder="Search artists, tracks..."
class="w-64 bg-white/5 border border-white/10 rounded-full px-4 py-2 pl-10 text-sm focus:outline-none focus:border-cyan-500/50 focus:bg-white/10 transition">
<i data-lucide="search" class="w-4 h-4 absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"></i>
</div>
<button id="mobileMenuBtn" class="md:hidden w-10 h-10 rounded-full bg-white/5 border border-white/10 flex items-center justify-center hover:bg-white/10 transition" onclick="toggleMobileMenu()">
<i data-lucide="menu" class="w-5 h-5 text-gray-300"></i>
</button>
<button class="w-10 h-10 rounded-full bg-white/5 border border-white/10 flex items-center justify-center hover:bg-white/10 transition relative">
<i data-lucide="bell" class="w-5 h-5 text-gray-300"></i>
<span class="absolute top-2 right-2 w-2 h-2 bg-orange-500 rounded-full"></span>
</button>
<div class="w-10 h-10 rounded-full bg-gradient-to-br from-cyan-400 to-purple-600 cursor-pointer hover:scale-105 transition avatar-ring">
<img src="http://static.photos/people/200x200/42" alt="Profile" class="w-full h-full rounded-full object-cover">
</div>
</div>
</div>
</nav>
<!-- Mobile Nav Overlay -->
<div id="mobileNavOverlay" class="mobile-nav-overlay" onclick="closeMobileMenu()"></div>
<div id="mobileNavPanel" class="mobile-nav-panel">
<div class="flex items-center justify-between mb-8">
<a href="index.html" class="flex items-center gap-2 hover:opacity-80 transition">
<div class="w-8 h-8 rounded-lg flex items-center justify-center bg-white/10 border border-white/20">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-5 h-5 text-white">
<rect x="4" y="2" width="16" height="20" rx="2"/>
<line x1="4" y1="9" x2="20" y2="9"/>
<line x1="15" y1="5" x2="15" y2="7"/>
<line x1="15" y1="12" x2="15" y2="18"/>
</svg>
</div>
<span class="text-xl font-bold">BeatFridge</span>
</a>
<button onclick="closeMobileMenu()" class="w-10 h-10 rounded-full bg-white/5 border border-white/10 flex items-center justify-center hover:bg-white/10 transition">
<i data-lucide="x" class="w-5 h-5"></i>
</button>
</div>
<nav class="space-y-1">
<a href="index.html" class="flex items-center gap-3 px-4 py-3 rounded-xl hover:bg-white/5 transition text-gray-300 hover:text-white">
<i data-lucide="home" class="w-5 h-5"></i> Home
</a>
<a href="discover.html" class="flex items-center gap-3 px-4 py-3 rounded-xl hover:bg-white/5 transition text-gray-300 hover:text-white">
<i data-lucide="compass" class="w-5 h-5"></i> Discover
</a>
<a href="library.html" class="flex items-center gap-3 px-4 py-3 rounded-xl hover:bg-white/5 transition text-gray-300 hover:text-white">
<i data-lucide="library" class="w-5 h-5"></i> Library
</a>
<a href="upload.html" class="flex items-center gap-3 px-4 py-3 rounded-xl hover:bg-white/5 transition text-gray-300 hover:text-white">
<i data-lucide="upload-cloud" class="w-5 h-5"></i> Upload
</a>
<a href="analytics.html" class="flex items-center gap-3 px-4 py-3 rounded-xl hover:bg-white/5 transition text-gray-300 hover:text-white">
<i data-lucide="bar-chart-2" class="w-5 h-5"></i> Analytics
</a>
</nav>
</div>
<!-- Main Layout -->
<div class="max-w-[1600px] mx-auto pt-16 flex gap-6 px-6 min-h-screen">
<!-- Main Content -->
<main class="flex-1 min-w-0 py-6">
<!-- Track Header -->
<div class="glass-panel rounded-3xl p-6 sm:p-8 mb-6 relative overflow-hidden">
<div class="absolute inset-0 bg-gradient-to-br from-cyan-900/20 via-purple-900/20 to-orange-900/20"></div>
<div class="relative z-10 flex flex-col lg:flex-row gap-8">
<!-- Cover Art -->
<div class="w-full lg:w-80 aspect-square rounded-2xl overflow-hidden shadow-2xl flex-shrink-0">
<img src="http://static.photos/technology/600x600/5" class="w-full h-full object-cover">
</div>
<!-- Track Info -->
<div class="flex-1 flex flex-col justify-center">
<div class="flex items-center gap-3 mb-2">
<span class="px-3 py-1 rounded-full bg-cyan-500/20 text-cyan-400 text-xs font-semibold border border-cyan-500/30">TRACK</span>
<span class="px-3 py-1 rounded-full bg-white/5 border border-white/10 text-xs text-gray-400">Techno</span>
<span class="px-3 py-1 rounded-full bg-white/5 border border-white/10 text-xs text-gray-400">Ambient</span>
</div>
<h1 class="text-4xl sm:text-5xl font-bold mb-3">Midnight Synthesis</h1>
<div class="flex flex-wrap items-center gap-3 mb-6">
<div class="w-10 h-10 rounded-full overflow-hidden avatar-ring">
<img src="http://static.photos/people/200x200/77" class="w-full h-full object-cover">
</div>
<div>
<a href="artist.html" class="text-lg font-medium hover:text-cyan-400 transition">Aurora Void</a>
<p class="text-sm text-gray-500">Berlin, Germany • 3 weeks ago</p>
</div>
<button class="px-4 py-1.5 bg-white/10 hover:bg-white/20 border border-white/20 rounded-full text-sm font-medium transition" onclick="toggleFollow(this)">
Follow
</button>
<button class="px-4 py-1.5 bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-400 hover:to-red-400 text-white rounded-full text-sm font-medium transition glow-orange flex items-center gap-1" onclick="openSupportModal()">
<i data-lucide="heart-handshake" class="w-4 h-4"></i>
Support
</button>
<button data-superfan-artist="Aurora Void" data-superfan-size="small" class="px-3 py-1.5 bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-400 hover:to-red-400 text-white rounded-full text-xs font-medium transition flex items-center gap-1 bf-superfan-btn" style="box-shadow: 0 0 15px rgba(249,115,22,0.2)" onclick="BF.showSuperFanModal('Aurora Void', 'http://static.photos/people/200x200/77')">
<i data-lucide="zap" class="w-3.5 h-3.5"></i>
Super Fan
</button>
</div>
<!-- Waveform Player -->
<div class="glass rounded-2xl p-4 mb-6">
<div class="flex items-center gap-4 mb-3">
<button class="w-12 h-12 rounded-full bg-cyan-500 text-black flex items-center justify-center hover:scale-105 transition glow-cyan" onclick="togglePlay()" id="mainPlayBtn">
<i data-lucide="play" class="w-6 h-6 fill-current ml-1" id="mainPlayIcon"></i>
</button>
<div class="flex-1">
<div class="flex items-center justify-between text-xs text-gray-400 mb-2">
<span id="trackTime">0:00</span>
<span>4:08</span>
</div>
<div class="h-24 bg-white/5 rounded-lg overflow-hidden relative cursor-pointer" id="waveformContainer">
<div class="absolute inset-0 flex items-center justify-center gap-1 px-4" id="trackWaveform"></div>
<div class="absolute inset-0 bg-gradient-to-r from-cyan-500/20 to-transparent w-[35%] pointer-events-none"></div>
</div>
</div>
</div>
<div class="flex items-center justify-between">
<div class="flex flex-wrap items-center gap-3 md:gap-4">
<button class="flex items-center gap-2 text-gray-400 hover:text-orange-400 transition like-btn" onclick="toggleLike(this)">
<i data-lucide="heart" class="w-5 h-5"></i>
<span class="text-sm">1.2K</span>
</button>
<button class="flex items-center gap-2 text-gray-400 hover:text-cyan-400 transition repost-btn" onclick="toggleRepost(this)">
<i data-lucide="repeat" class="w-5 h-5"></i>
<span class="text-sm">847</span>
</button>
<button class="flex items-center gap-2 text-gray-400 hover:text-purple-400 transition" onclick="BF.showShareModal('Midnight Synthesis', 'Aurora Void', 5)">
<i data-lucide="share-2" class="w-5 h-5"></i>
<span class="text-sm hidden sm:inline">Share</span>
</button>
<button class="flex items-center gap-2 text-gray-400 hover:text-white transition">
<i data-lucide="link" class="w-5 h-5"></i>
<span class="text-sm hidden sm:inline">Copy Link</span>
</button>
<span id="trackDlBtn">${BF.renderDL(5, 'Midnight Synthesis', 'Aurora Void')}</span>
</div>
<button class="text-gray-400 hover:text-white transition">
<i data-lucide="more-horizontal" class="w-6 h-6"></i>
</button>
</div>
</div>
<!-- Description -->
<div class="text-gray-400 text-sm leading-relaxed">
<p>A journey through digital landscapes and analog dreams. This track represents the pinnacle of my exploration into the boundaries between ambient soundscapes and rhythmic techno.</p>
<p class="mt-2">Written and produced in my Berlin studio during the winter of 2024. Mastered by Robert Henke.</p>
</div>
</div>
</div>
</div>
<!-- Comments Section -->
<div class="glass-panel rounded-2xl p-6 mb-6">
<h3 class="text-lg font-semibold mb-4 flex items-center gap-2">
<i data-lucide="message-circle" class="w-5 h-5 text-cyan-400"></i>
Comments <span class="text-sm text-gray-500 font-normal">(127)</span>
</h3>
<!-- Comment Input -->
<div class="flex gap-4 mb-6">
<div class="w-10 h-10 rounded-full overflow-hidden flex-shrink-0">
<img src="http://static.photos/people/200x200/42" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<input type="text" placeholder="Write a comment..."
class="w-full bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-cyan-500/50 transition">
</div>
</div>
<!-- Comments List -->
<div class="space-y-4" id="commentsList">
<div class="flex gap-4 group">
<div class="w-10 h-10 rounded-full overflow-hidden flex-shrink-0 cursor-pointer">
<img src="http://static.photos/people/200x200/50" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<div class="comment-bubble rounded-2xl p-4">
<div class="flex items-center justify-between mb-2">
<div class="flex items-center gap-2">
<span class="font-medium text-white cursor-pointer hover:text-cyan-400 transition">Deep Frequencies</span>
<span class="text-xs text-gray-500">at 2:34</span>
</div>
<span class="text-xs text-gray-600">2 hours ago</span>
</div>
<p class="text-gray-300 text-sm">The bassline on this is absolutely insane! Can't wait to play this in my next set 🔥</p>
</div>
<div class="flex items-center gap-4 mt-2 ml-4">
<button class="text-xs text-gray-500 hover:text-cyan-400 transition flex items-center gap-1">
<i data-lucide="heart" class="w-3 h-3"></i>
24
</button>
<button class="text-xs text-gray-500 hover:text-white transition">Reply</button>
</div>
</div>
</div>
<div class="flex gap-4 group">
<div class="w-10 h-10 rounded-full overflow-hidden flex-shrink-0 cursor-pointer">
<img src="http://static.photos/people/200x200/51" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<div class="comment-bubble rounded-2xl p-4">
<div class="flex items-center justify-between mb-2">
<div class="flex items-center gap-2">
<span class="font-medium text-white cursor-pointer hover:text-cyan-400 transition">Neon Prophet</span>
<span class="text-xs text-gray-500">at 1:12</span>
</div>
<span class="text-xs text-gray-600">5 hours ago</span>
</div>
<p class="text-gray-300 text-sm">This is exactly the kind of sound I've been looking for. The way you blend the pads with the kick is masterful.</p>
</div>
<div class="flex items-center gap-4 mt-2 ml-4">
<button class="text-xs text-gray-500 hover:text-cyan-400 transition flex items-center gap-1">
<i data-lucide="heart" class="w-3 h-3"></i>
18
</button>
<button class="text-xs text-gray-500 hover:text-white transition">Reply</button>
</div>
</div>
</div>
<div class="flex gap-4 group">
<div class="w-10 h-10 rounded-full overflow-hidden flex-shrink-0 cursor-pointer">
<img src="http://static.photos/people/200x200/52" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<div class="comment-bubble rounded-2xl p-4">
<div class="flex items-center justify-between mb-2">
<div class="flex items-center gap-2">
<span class="font-medium text-white cursor-pointer hover:text-cyan-400 transition">Sarah Chen</span>
</div>
<span class="text-xs text-gray-600">1 day ago</span>
</div>
<p class="text-gray-300 text-sm">Instant buy! Added to my collection immediately. Keep up the amazing work Aurora! 💜</p>
</div>
<div class="flex items-center gap-4 mt-2 ml-4">
<button class="text-xs text-gray-500 hover:text-cyan-400 transition flex items-center gap-1">
<i data-lucide="heart" class="w-3 h-3"></i>
45
</button>
<button class="text-xs text-gray-500 hover:text-white transition">Reply</button>
</div>
</div>
</div>
</div>
<button class="w-full mt-6 py-3 rounded-xl bg-white/5 hover:bg-white/10 border border-white/10 text-sm text-gray-400 transition">
Load more comments
</button>
</div>
</main>
<!-- Right Sidebar -->
<aside class="hidden xl:block w-80 flex-shrink-0 py-6">
<div class="sticky top-20 space-y-6">
<!-- Related Tracks -->
<div class="glass-panel rounded-2xl p-4">
<h3 class="text-xs font-semibold text-gray-400 uppercase tracking-wider mb-4 flex items-center gap-2">
<i data-lucide="related" class="w-4 h-4"></i>
Related Tracks
</h3>
<div class="space-y-3">
<a href="track.html" class="flex items-center gap-3 group cursor-pointer">
<div class="w-14 h-14 rounded-lg overflow-hidden flex-shrink-0 relative">
<img src="http://static.photos/technology/200x200/30" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition flex items-center justify-center">
<i data-lucide="play" class="w-5 h-5 text-cyan-400"></i>
</div>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Digital Dreams</p>
<p class="text-xs text-gray-500 truncate">Aurora Void</p>
<p class="text-xs text-gray-600 mt-1">28.4K plays</p>
</div>
</a>
<a href="track.html" class="flex items-center gap-3 group cursor-pointer">
<div class="w-14 h-14 rounded-lg overflow-hidden flex-shrink-0 relative">
<img src="http://static.photos/technology/200x200/31" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition flex items-center justify-center">
<i data-lucide="play" class="w-5 h-5 text-cyan-400"></i>
</div>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Neon Horizons</p>
<p class="text-xs text-gray-500 truncate">Cyber Dreams</p>
<p class="text-xs text-gray-600 mt-1">12.5K plays</p>
</div>
</a>
<a href="track.html" class="flex items-center gap-3 group cursor-pointer">
<div class="w-14 h-14 rounded-lg overflow-hidden flex-shrink-0 relative">
<img src="http://static.photos/technology/200x200/32" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition flex items-center justify-center">
<i data-lucide="play" class="w-5 h-5 text-cyan-400"></i>
</div>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Analog Heart</p>
<p class="text-xs text-gray-500 truncate">Deep Frequencies</p>
<p class="text-xs text-gray-600 mt-1">15.3K plays</p>
</div>
</a>
<a href="track.html" class="flex items-center gap-3 group cursor-pointer">
<div class="w-14 h-14 rounded-lg overflow-hidden flex-shrink-0 relative">
<img src="http://static.photos/technology/200x200/33" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition flex items-center justify-center">
<i data-lucide="play" class="w-5 h-5 text-cyan-400"></i>
</div>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Void Walker</p>
<p class="text-xs text-gray-500 truncate">Bass Architect</p>
<p class="text-xs text-gray-600 mt-1">9.8K plays</p>
</div>
</a>
</div>
</div>
<!-- Next Up -->
<div class="glass-panel rounded-2xl p-4">
<h3 class="text-xs font-semibold text-gray-400 uppercase tracking-wider mb-4 flex items-center gap-2">
<i data-lucide="list-music" class="w-4 h-4"></i>
Next Up
</h3>
<div class="space-y-2">
<div class="flex items-center gap-3 p-2 rounded-lg bg-white/5 cursor-pointer group">
<span class="text-xs text-gray-500">1</span>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Cyber Rain</p>
<p class="text-xs text-gray-500 truncate">Aurora Void</p>
</div>
<span class="text-xs text-gray-600">3:45</span>
</div>
<div class="flex items-center gap-3 p-2 rounded-lg hover:bg-white/5 cursor-pointer group">
<span class="text-xs text-gray-500">2</span>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Deep Pulse</p>
<p class="text-xs text-gray-500 truncate">Deep Frequencies</p>
</div>
<span class="text-xs text-gray-600">6:18</span>
</div>
<div class="flex items-center gap-3 p-2 rounded-lg hover:bg-white/5 cursor-pointer group">
<span class="text-xs text-gray-500">3</span>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Neon City</p>
<p class="text-xs text-gray-500 truncate">Neon Prophet</p>
</div>
<span class="text-xs text-gray-600">4:22</span>
</div>
</div>
</div>
<!-- In Playlists -->
<div class="glass-panel rounded-2xl p-4">
<h3 class="text-xs font-semibold text-gray-400 uppercase tracking-wider mb-4 flex items-center gap-2">
<i data-lucide="disc" class="w-4 h-4"></i>
In Playlists
</h3>
<div class="space-y-3">
<div class="flex items-center gap-3 group cursor-pointer">
<div class="w-12 h-12 rounded-lg overflow-hidden">
<img src="http://static.photos/technology/200x200/40" class="w-full h-full object-cover">
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Midnight Drive</p>
<p class="text-xs text-gray-500 truncate">45 tracks • by NeonWave</p>
</div>
</div>
<div class="flex items-center gap-3 group cursor-pointer">
<div class="w-12 h-12 rounded-lg overflow-hidden">
<img src="http://static.photos/technology/200x200/41" class="w-full h-full object-cover">
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Techno Bunker</p>
<p class="text-xs text-gray-500 truncate">128 tracks • by Bass Architect</p>
</div>
</div>
</div>
</div>
</div>
</aside>
</div>
<!-- Sticky Bottom Player -->
<div class="sticky-player glass border-t border-white/10 px-4 py-3">
<div class="max-w-[1600px] mx-auto flex items-center gap-4">
<!-- Track Info -->
<div class="flex items-center gap-3 w-64 flex-shrink-0">
<div class="w-14 h-14 rounded-lg overflow-hidden relative group cursor-pointer">
<img id="playerArt" src="http://static.photos/technology/200x200/5" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition flex items-center justify-center">
<i data-lucide="maximize-2" class="w-5 h-5"></i>
</div>
</div>
<div class="min-w-0 flex-1">
<p id="playerTitle" class="text-sm font-medium text-white truncate cursor-pointer hover:text-cyan-400 transition" onclick="window.location.href='track.html'">Midnight Synthesis</p>
<p id="playerArtist" class="text-xs text-gray-400 truncate cursor-pointer hover:text-cyan-400 transition" onclick="window.location.href='artist.html'">Aurora Void</p>
</div>
<button class="text-gray-400 hover:text-cyan-400 transition">
<i data-lucide="heart" class="w-5 h-5"></i>
</button>
</div>
<!-- Controls -->
<div class="flex-1 flex flex-col items-center max-w-2xl mx-auto">
<div class="flex items-center gap-6 mb-2">
<button class="text-gray-400 hover:text-white transition" onclick="toggleShuffle(this)">
<i data-lucide="shuffle" class="w-4 h-4"></i>
</button>
<button class="text-gray-300 hover:text-white transition" onclick="previousTrack()">
<i data-lucide="skip-back" class="w-5 h-5 fill-current"></i>
</button>
<button class="w-10 h-10 rounded-full bg-white text-black flex items-center justify-center hover:scale-105 transition" onclick="togglePlay()" id="playPauseBtn">
<i data-lucide="play" class="w-5 h-5 fill-current ml-0.5" id="playIcon"></i>
</button>
<button class="text-gray-300 hover:text-white transition" onclick="nextTrack()">
<i data-lucide="skip-forward" class="w-5 h-5 fill-current"></i>
</button>
<button class="text-gray-400 hover:text-white transition" onclick="toggleRepeat(this)">
<i data-lucide="repeat" class="w-4 h-4"></i>
</button>
</div>
<!-- Progress -->
<div class="w-full flex items-center gap-3">
<span class="text-xs text-gray-400 w-10 text-right" id="currentTime">1:24</span>
<div class="flex-1 h-8 flex items-center cursor-pointer group" id="progressContainer">
<div class="w-full h-1.5 bg-white/10 rounded-full overflow-hidden relative">
<div class="absolute inset-y-0 left-0 bg-gradient-to-r from-cyan-400 to-purple-500 w-[35%] rounded-full group-hover:h-2 transition-all"></div>
<div class="absolute top-1/2 -translate-y-1/2 left-[35%] w-3 h-3 bg-white rounded-full opacity-0 group-hover:opacity-100 transition shadow-lg"></div>
</div>
</div>
<span class="text-xs text-gray-400 w-10" id="duration">4:08</span>
</div>
</div>
<!-- Volume & Extra -->
<div class="flex items-center gap-3 w-64 justify-end">
<button class="text-gray-400 hover:text-white transition">
<i data-lucide="mic-2" class="w-4 h-4"></i>
</button>
<button class="text-gray-400 hover:text-white transition">
<i data-lucide="list-music" class="w-4 h-4"></i>
</button>
<div class="flex items-center gap-2 group">
<button class="text-gray-400 hover:text-white transition" onclick="toggleMute()">
<i data-lucide="volume-2" class="w-5 h-5" id="volumeIcon"></i>
</button>
<div class="w-24 h-1 bg-white/10 rounded-full overflow-hidden cursor-pointer">
<div class="h-full bg-cyan-400 w-[70%] rounded-full"></div>
</div>
</div>
<button class="text-gray-400 hover:text-white transition ml-2">
<i data-lucide="cast" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
<script src="mobile-nav.js"></script>
<script src="app.js"></script>
<script>
BF.init('home');
lucide.createIcons();
// Global State with error handling
let isPlaying = false;
let currentTrack = {
id: 5,
title: "Midnight Synthesis",
artist: "Aurora Void",
duration: "4:08",
image: "http://static.photos/technology/600x600/5",
plays: "32.7K",
likes: 1200,
reposts: 847
};
let likedTracks = [], comments = [];
try {
likedTracks = JSON.parse(localStorage.getItem('likedTracks') || '[]');
comments = JSON.parse(localStorage.getItem('trackComments') || '[]');
} catch (e) {
console.error('Error loading track data:', e);
}
function loadGlobalState() {
try {
const savedTrack = localStorage.getItem('currentTrack');
const savedIsPlaying = localStorage.getItem('isPlaying');
const trackId = new URLSearchParams(window.location.search).get('id');
if (trackId) {
const allTracks = [
{id: 1, title: "Neon Horizons", artist: "Aurora Void", duration: "4:32", image: "http://static.photos/technology/400x400/1", plays: "12.5K", likes: 850, reposts: 420},
{id: 2, title: "Digital Rain", artist: "Aurora Void", duration: "3:45", image: "http://static.photos/technology/400x400/2", plays: "8.2K", likes: 620, reposts: 310},
{id: 3, title: "Cybernetic Dreams", artist: "Aurora Void", duration: "5:18", image: "http://static.photos/technology/400x400/3", plays: "24.1K", likes: 1500, reposts: 890},
{id: 4, title: "Analog Heart", artist: "Aurora Void", duration: "3:22", image: "http://static.photos/technology/400x400/4", plays: "15.3K", likes: 980, reposts: 560},
{id: 5, title: "Midnight Synthesis", artist: "Aurora Void", duration: "4:08", image: "http://static.photos/technology/600x600/5", plays: "32.7K", likes: 1200, reposts: 847},
{id: 6, title: "Void Walker", artist: "Aurora Void", duration: "6:14", image: "http://static.photos/technology/400x400/6", plays: "9.8K", likes: 720, reposts: 430}
];
const foundTrack = allTracks.find(t => t.id === parseInt(trackId));
if (foundTrack) currentTrack = foundTrack;
}
if (savedTrack) {
const parsed = JSON.parse(savedTrack);
if (!trackId) currentTrack = parsed;
}
if (savedIsPlaying) isPlaying = savedIsPlaying === 'true';
} catch (e) {
console.error('Error in loadGlobalState:', e);
}
updatePlayerUI();
updateLikeButton();
}
function updatePlayerUI() {
document.getElementById('playerTitle').textContent = currentTrack.title;
document.getElementById('playerArtist').textContent = currentTrack.artist;
document.getElementById('playerArt').src = currentTrack.image;
const mainIcon = document.getElementById('mainPlayIcon');
const playerIcon = document.getElementById('playIcon');
if (isPlaying) {
mainIcon.setAttribute('data-lucide', 'pause');
playerIcon.setAttribute('data-lucide', 'pause');
} else {
mainIcon.setAttribute('data-lucide', 'play');
playerIcon.setAttribute('data-lucide', 'play');
}
lucide.createIcons();
}
function saveGlobalState() {
try {
localStorage.setItem('currentTrack', JSON.stringify(currentTrack));
localStorage.setItem('isPlaying', isPlaying);
} catch (e) {
console.error('Error saving state:', e);
}
}
function addToRecentlyPlayed(track) {
let recentlyPlayed = JSON.parse(localStorage.getItem('recentlyPlayed') || '[]');
recentlyPlayed = recentlyPlayed.filter(t => t.id !== track.id);
recentlyPlayed.unshift({...track, playedAt: new Date().toISOString()});
if (recentlyPlayed.length > 50) recentlyPlayed.pop();
localStorage.setItem('recentlyPlayed', JSON.stringify(recentlyPlayed));
}
function updateLikeButton() {
const isLiked = likedTracks.find(t => t.id === currentTrack.id);
const likeBtn = document.querySelector('.like-btn');
const icon = likeBtn.querySelector('i');
const count = likeBtn.querySelector('span');
if (isLiked) {
likeBtn.classList.add('active');
icon.setAttribute('fill', '#f97316');
count.textContent = (currentTrack.likes + 1).toLocaleString();
} else {
likeBtn.classList.remove('active');
icon.setAttribute('fill', 'none');
count.textContent = currentTrack.likes.toLocaleString();
}
lucide.createIcons();
}
function togglePlay() {
isPlaying = !isPlaying;
const mainIcon = document.getElementById('mainPlayIcon');
const playerIcon = document.getElementById('playIcon');
if (isPlaying) {
mainIcon.setAttribute('data-lucide', 'pause');
playerIcon.setAttribute('data-lucide', 'pause');
} else {
mainIcon.setAttribute('data-lucide', 'play');
playerIcon.setAttribute('data-lucide', 'play');
}
lucide.createIcons();
}
function toggleFollow(btn) {
let following = JSON.parse(localStorage.getItem('following') || '[]');
const artistId = 'aurora-void';
if (btn.textContent === 'Follow') {
btn.textContent = 'Following';
btn.classList.add('bg-cyan-500/20', 'text-cyan-400', 'border-cyan-500/30');
btn.classList.remove('bg-white/10', 'text-white', 'border-white/20');
if (!following.includes(artistId)) following.push(artistId);
showToast('Following Aurora Void');
} else {
btn.textContent = 'Follow';
btn.classList.remove('bg-cyan-500/20', 'text-cyan-400', 'border-cyan-500/30');
btn.classList.add('bg-white/10', 'text-white', 'border-white/20');
following = following.filter(id => id !== artistId);
showToast('Unfollowed Aurora Void');
}
localStorage.setItem('following', JSON.stringify(following));
}
function openSupportModal() {
const modal = document.createElement('div');
modal.className = 'fixed inset-0 z-50 flex items-center justify-center';
modal.innerHTML = `
<div class="absolute inset-0 bg-black/80 backdrop-blur-sm" onclick="this.parentElement.remove()"></div>
<div class="relative bg-gray-900 border border-white/10 rounded-2xl p-6 w-full max-w-lg mx-4 premium-glow">
<div class="flex items-center justify-between mb-6">
<h3 class="text-xl font-bold">Support Aurora Void</h3>
<button onclick="this.closest('.fixed').remove()" class="text-gray-400 hover:text-white">
<i data-lucide="x" class="w-6 h-6"></i>
</button>
</div>
<div class="space-y-4 mb-6">
<div class="p-4 rounded-xl bg-gradient-to-r from-orange-500/20 to-red-500/20 border border-orange-500/30">
<h4 class="font-semibold text-orange-400 mb-2 flex items-center gap-2">
<i data-lucide="zap" class="w-4 h-4"></i>
One-time Tip
</h4>
<div class="flex gap-2 mb-3">
<button class="flex-1 py-2 rounded-lg bg-white/10 hover:bg-white/20 transition text-sm" onclick="processTip(3)">€3</button>
<button class="flex-1 py-2 rounded-lg bg-white/10 hover:bg-white/20 transition text-sm" onclick="processTip(5)">€5</button>
<button class="flex-1 py-2 rounded-lg bg-white/10 hover:bg-white/20 transition text-sm" onclick="processTip(10)">€10</button>
<button class="flex-1 py-2 rounded-lg bg-orange-500 text-black hover:bg-orange-400 transition text-sm font-semibold" onclick="processTip(20)">€20</button>
</div>
</div>
<div class="p-4 rounded-xl bg-white/5 border border-white/10">
<h4 class="font-semibold text-cyan-400 mb-2 flex items-center gap-2">
<i data-lucide="repeat" class="w-4 h-4"></i>
Monthly Subscription
</h4>
<button class="w-full p-3 rounded-lg bg-white/5 hover:bg-orange-500/20 border border-white/10 hover:border-orange-500/30 transition flex items-center justify-between mb-2" onclick="subscribe(8, 'Producer Circle')">
<div class="flex items-center gap-3">
<i data-lucide="zap" class="w-5 h-5 text-orange-400"></i>
<div class="text-left">
<p class="font-medium">Producer Circle</p>
<p class="text-xs text-gray-500">Access all exclusive tracks</p>
</div>
</div>
<span class="font-bold">€8/mo</span>
</button>
</div>
</div>
<p class="text-xs text-gray-500 text-center">Artist receives 85% • Platform fee: 15%</p>
</div>
`;
document.body.appendChild(modal);
lucide.createIcons();
}
function processTip(amount) {
const balance = parseFloat(localStorage.getItem('walletBalance') || '50');
if (balance >= amount) {
localStorage.setItem('walletBalance', (balance - amount).toString());
const transactions = JSON.parse(localStorage.getItem('transactions') || '[]');
transactions.push({
type: 'tip',
amount: amount,
artist: 'Aurora Void',
date: new Date().toISOString(),
fee: amount * 0.15
});
localStorage.setItem('transactions', JSON.stringify(transactions));
showToast(`💎 Tipped €${amount}!`);
setTimeout(() => document.querySelector('.fixed.z-50')?.remove(), 1000);
} else {
showToast('⚠️ Insufficient balance');
}
}
function subscribe(amount, tier) {
localStorage.setItem('userTier', tier);
localStorage.setItem('subscriptions', JSON.stringify(['aurora-void']));
const transactions = JSON.parse(localStorage.getItem('transactions') || '[]');
transactions.push({
type: 'subscription',
amount: amount,
artist: 'Aurora Void',
tier: tier,
date: new Date().toISOString(),
fee: amount * 0.15
});
localStorage.setItem('transactions', JSON.stringify(transactions));
showToast(`🌟 Subscribed to ${tier}!`);
setTimeout(() => {
document.querySelector('.fixed.z-50')?.remove();
window.location.reload();
}, 1000);
}
// Add comment functionality
document.querySelector('input[type="text"]').addEventListener('keypress', function(e) {
if (e.key === 'Enter' && this.value.trim()) {
const comment = {
id: Date.now(),
text: this.value.trim(),
user: 'You',
avatar: 'http://static.photos/people/200x200/42',
time: 'Just now',
likes: 0,
trackId: currentTrack.id
};
comments.push(comment);
localStorage.setItem('trackComments', JSON.stringify(comments));
this.value = '';
renderComments();
showToast('Comment posted');
}
});
function renderComments() {
const trackComments = comments.filter(c => c.trackId === currentTrack.id);
const container = document.getElementById('commentsList');
if (!container || !trackComments.length) return;
const newComment = trackComments[trackComments.length - 1];
const commentEl = document.createElement('div');
commentEl.className = 'flex gap-4 group animate-fade-in';
commentEl.innerHTML = `
<div class="w-10 h-10 rounded-full overflow-hidden flex-shrink-0 cursor-pointer">
<img src="${newComment.avatar}" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<div class="comment-bubble rounded-2xl p-4">
<div class="flex items-center justify-between mb-2">
<div class="flex items-center gap-2">
<span class="font-medium text-white cursor-pointer hover:text-cyan-400 transition">${newComment.user}</span>
</div>
<span class="text-xs text-gray-600">${newComment.time}</span>
</div>
<p class="text-gray-300 text-sm">${newComment.text}</p>
</div>
<div class="flex items-center gap-4 mt-2 ml-4">
<button class="text-xs text-gray-500 hover:text-cyan-400 transition flex items-center gap-1">
<i data-lucide="heart" class="w-3 h-3"></i>
0
</button>
<button class="text-xs text-gray-500 hover:text-white transition">Reply</button>
</div>
</div>
`;
container.insertBefore(commentEl, container.firstChild);
lucide.createIcons();
}
// Render track waveform
(function renderTrackWaveform() {
const container = document.getElementById('trackWaveform');
if (!container) return;
let bars = '';
for (let i = 0; i < 100; i++) {
const h = 30 + Math.random() * 70;
const delay = (i * 0.02);
bars += '<div class="w-1 bg-cyan-400/30 rounded-full waveform-bar" style="height: ' + h + '%; animation-delay: ' + delay + 's"></div>';
}
container.innerHTML = bars;
})();
// Load initial state
loadGlobalState();
// Check if following
const following = JSON.parse(localStorage.getItem('following') || '[]');
if (following.includes('aurora-void')) {
const followBtn = document.querySelector('.px-4.py-1\\.5');
if (followBtn) {
followBtn.textContent = 'Following';
followBtn.classList.add('bg-cyan-500/20', 'text-cyan-400', 'border-cyan-500/30');
followBtn.classList.remove('bg-white/10', 'text-white', 'border-white/20');
}
}
// Check Super Fan state
BF.updateSuperFanButtons();
if (window.lucide) lucide.createIcons();
// Show Super Fan free download label if applicable
if (BF.isSuperFanOf('Aurora Void')) {
const sfLabel = document.getElementById('trackSfFreeLabel');
if (sfLabel) sfLabel.classList.remove('hidden');
}
function toggleLike(btn) {
const isLiked = likedTracks.find(t => t.id === currentTrack.id);
const icon = btn.querySelector('i');
const countSpan = btn.querySelector('span');
if (isLiked) {
likedTracks = likedTracks.filter(t => t.id !== currentTrack.id);
btn.classList.remove('active');
icon.setAttribute('fill', 'none');
countSpan.textContent = currentTrack.likes.toLocaleString();
showToast('Removed from liked tracks');
} else {
likedTracks.push({...currentTrack, likedAt: new Date().toISOString()});
btn.classList.add('active');
icon.setAttribute('fill', '#f97316');
countSpan.textContent = (currentTrack.likes + 1).toLocaleString();
showToast('Added to liked tracks');
}
localStorage.setItem('likedTracks', JSON.stringify(likedTracks));
lucide.createIcons();
}
function showToast(message) {
const toast = document.createElement('div');
toast.className = 'fixed bottom-24 left-1/2 -translate-x-1/2 bg-cyan-500 text-black px-4 py-2 rounded-full text-sm font-medium z-50 animate-fade-in glow-cyan';
toast.textContent = message;
document.body.appendChild(toast);
setTimeout(() => {
toast.style.opacity = '0';
toast.style.transition = 'opacity 0.3s';
setTimeout(() => toast.remove(), 300);
}, 2000);
}
function toggleRepost(btn) {
btn.classList.toggle('active');
const icon = btn.querySelector('i');
if (btn.classList.contains('active')) {
icon.setAttribute('fill', '#00d4ff');
} else {
icon.setAttribute('fill', 'none');
}
}
function toggleShuffle(btn) {
btn.classList.toggle('text-cyan-400');
}
function toggleRepeat(btn) {
btn.classList.toggle('text-cyan-400');
}
let isMuted = false;
function toggleMute() {
isMuted = !isMuted;
const icon = document.getElementById('volumeIcon');
if (isMuted) {
icon.setAttribute('data-lucide', 'volume-x');
} else {
icon.setAttribute('data-lucide', 'volume-2');
}
lucide.createIcons();
}
function previousTrack() {
// Previous track logic
}
function nextTrack() {
// Next track logic
}
</script>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Midnight Synthesis - Aurora Void - BeatFridge</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/lucide@latest"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="responsive.css">
<style>
* {
font-family: 'Inter', sans-serif;
}
body {
background-color: #0a0a0a;
color: #ffffff;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
background: #2d2d2d;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #3d3d3d;
}
.glass {
background: rgba(20, 20, 20, 0.6);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-panel {
background: rgba(30, 30, 30, 0.4);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.05);
}
.neon-gradient {
background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #f97316 100%);
}
.neon-text {
background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.waveform-bar {
animation: wave 1.2s ease-in-out infinite;
}
@keyframes wave {
0%, 100% { height: 20%; }
50% { height: 100%; }
}
.waveform-bar:nth-child(1) { animation-delay: 0s; }
.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.track-card {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.track-card:hover {
transform: translateY(-4px);
box-shadow: 0 20px 40px -10px rgba(0, 212, 255, 0.15);
}
.glow-cyan {
box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.glow-orange {
box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}
.sticky-player {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 50;
}
.avatar-ring {
box-shadow: 0 0 0 4px #0a0a0a, 0 0 0 6px rgba(0, 212, 255, 0.5);
}