Spaces:
Running
Running
File size: 26,475 Bytes
da7c69a 15bf25b da7c69a 119fb69 da7c69a 50a712c da7c69a 119fb69 15bf25b da7c69a 15bf25b da7c69a 15bf25b da7c69a 15bf25b da7c69a 15bf25b da7c69a 15bf25b da7c69a 50a712c da7c69a 15bf25b 50a712c 119fb69 50a712c 119fb69 50a712c da7c69a | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profile - 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; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #2d2d2d; border-radius: 4px; }
.glass { background: rgba(20,20,20,0.6); 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); border: 1px solid rgba(255,255,255,0.05); }
.neon-text { background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.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); }
.play-btn-overlay { opacity: 0; transition: all 0.3s ease; }
.track-card:hover .play-btn-overlay { opacity: 1; }
.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); }
.banner-gradient { background: linear-gradient(135deg, rgba(0,212,255,0.8), rgba(124,58,237,0.8), rgba(249,115,22,0.6)); mix-blend-mode: multiply; }
</style>
</head>
<body class="bg-black text-white overflow-x-hidden">
<!-- Top 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-4 sm:px-6 h-14 flex items-center justify-between">
<div class="flex items-center gap-6">
<a href="index.html" class="flex items-center gap-2">
<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-lg font-bold tracking-tight hidden sm:inline">BeatFridge</span>
</a>
<div class="hidden md:flex items-center gap-5 text-sm font-medium text-gray-400">
<a href="index.html" class="hover:text-cyan-400 transition">Home</a>
<a href="search.html" class="hover:text-cyan-400 transition">Search</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="profile.html" class="text-cyan-400">Profile</a>
</div>
</div>
<div class="flex items-center gap-3">
<a href="library.html" class="w-9 h-9 rounded-full bg-white/5 border border-white/10 flex items-center justify-center hover:bg-white/10 transition">
<i data-lucide="library" class="w-4 h-4 text-gray-300"></i>
</a>
<a href="analytics.html" class="w-9 h-9 rounded-full bg-white/5 border border-white/10 flex items-center justify-center hover:bg-white/10 transition">
<i data-lucide="bar-chart-2" class="w-4 h-4 text-gray-300"></i>
</a>
</div>
</div>
</nav>
<!-- Main Content -->
<main class="max-w-[1600px] mx-auto pt-14 pb-32 md:pb-24">
<!-- Not Logged In State -->
<div id="notLoggedIn" class="hidden">
<div class="flex flex-col items-center justify-center min-h-[60vh] px-4 text-center">
<div class="w-20 h-20 rounded-full bg-white/5 flex items-center justify-center mb-6">
<i data-lucide="user-x" class="w-10 h-10 text-gray-500"></i>
</div>
<h2 class="text-2xl font-bold text-white mb-3">Sign in to view your profile</h2>
<p class="text-gray-400 mb-6 max-w-sm">Your uploaded tracks, stats, and profile info will appear here once you're signed in.</p>
<button onclick="BF.showSignInModal()" class="px-8 py-3 bg-cyan-500 hover:bg-cyan-400 text-black font-semibold rounded-full transition glow-cyan">Sign In</button>
<p class="text-sm text-gray-500 mt-4">No account? <a href="#" onclick="BF.showSignInModal(); return false;" class="text-cyan-400 hover:underline">Create an account</a></p>
</div>
</div>
<!-- Logged In State -->
<div id="loggedIn" class="hidden">
<!-- Banner -->
<div class="relative h-40 sm:h-56">
<img src="http://static.photos/technology/1200x630/88" alt="Banner" class="w-full h-full object-cover">
<div class="absolute inset-0 banner-gradient"></div>
<div class="absolute inset-0 bg-gradient-to-t from-[#0a0a0a] via-transparent to-transparent"></div>
</div>
<!-- Profile Info -->
<div class="relative px-4 sm:px-6 -mt-16 sm:-mt-20 mb-6">
<div class="flex flex-col sm:flex-row items-start sm:items-end gap-4">
<div class="w-24 h-24 sm:w-32 sm:h-32 rounded-full overflow-hidden avatar-ring bg-black flex-shrink-0">
<img id="profileAvatar" src="http://static.photos/people/200x200/42" alt="Avatar" class="w-full h-full object-cover">
</div>
<div class="flex-1 min-w-0">
<div class="flex items-center gap-2 flex-wrap">
<h1 class="text-2xl sm:text-3xl font-bold" id="profileName">Username</h1>
<span id="profileSfBadge" class="hidden px-2.5 py-0.5 rounded-full text-[11px] font-bold inline-flex items-center gap-1" style="background:linear-gradient(135deg,rgba(249,115,22,0.2),rgba(239,68,68,0.15));border:1px solid rgba(249,115,22,0.4);color:#f97316">
<i data-lucide="zap" class="w-3 h-3"></i>SUPERFAN
</span>
</div>
<p class="text-gray-400 text-sm" id="profileHandle">@username</p>
</div>
<div class="flex items-center gap-2">
<a href="upload.html" class="px-5 py-2 bg-cyan-500 hover:bg-cyan-400 text-black font-semibold rounded-full transition glow-cyan flex items-center gap-2 text-sm">
<i data-lucide="upload-cloud" class="w-4 h-4"></i>
Upload
</a>
<button onclick="BF.signOut()" class="px-4 py-2 bg-white/5 hover:bg-white/10 border border-white/10 rounded-full text-sm text-gray-400 transition flex items-center gap-2">
<i data-lucide="log-out" class="w-4 h-4"></i>
<span class="hidden sm:inline">Sign Out</span>
</button>
</div>
</div>
<!-- Stats -->
<div class="flex flex-wrap items-center gap-4 sm:gap-8 mt-5 pt-5 border-t border-white/10">
<div>
<p class="text-xl sm:text-2xl font-bold neon-text" id="statTracks">0</p>
<p class="text-xs text-gray-500 uppercase tracking-wider">Tracks</p>
</div>
<div>
<p class="text-xl sm:text-2xl font-bold text-white" id="statFollowers">0</p>
<p class="text-xs text-gray-500 uppercase tracking-wider">Followers</p>
</div>
<div>
<p class="text-xl sm:text-2xl font-bold text-white" id="statFollowing">0</p>
<p class="text-xs text-gray-500 uppercase tracking-wider">Following</p>
</div>
<div>
<p class="text-xl sm:text-2xl font-bold text-white" id="statPlays">0</p>
<p class="text-xs text-gray-500 uppercase tracking-wider">Plays</p>
</div>
</div>
</div>
<!-- Quick Actions -->
<div class="px-4 sm:px-6 mb-6">
<div class="flex flex-wrap gap-2">
<a href="library.html" class="px-4 py-2 rounded-full bg-white/5 border border-white/10 text-sm text-gray-300 hover:bg-white/10 transition flex items-center gap-2">
<i data-lucide="library" class="w-4 h-4"></i> Library
</a>
<a href="analytics.html" class="px-4 py-2 rounded-full bg-white/5 border border-white/10 text-sm text-gray-300 hover:bg-white/10 transition flex items-center gap-2">
<i data-lucide="bar-chart-2" class="w-4 h-4"></i> Analytics
</a>
<a href="artist.html" class="px-4 py-2 rounded-full bg-white/5 border border-white/10 text-sm text-gray-300 hover:bg-white/10 transition flex items-center gap-2">
<i data-lucide="external-link" class="w-4 h-4"></i> Public Profile
</a>
</div>
</div>
<!-- Uploaded Tracks -->
<div class="px-4 sm:px-6">
<div class="flex items-center justify-between mb-5">
<h2 class="text-lg font-bold flex items-center gap-2">
<i data-lucide="disc" class="w-5 h-5 text-cyan-400"></i>
Your Tracks
</h2>
</div>
<div id="userTracksContent">
<!-- Populated by JS -->
</div>
</div>
<!-- My Super Fan Subscriptions -->
<div class="px-4 sm:px-6 mt-8" id="superFanSection">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-bold flex items-center gap-2">
<i data-lucide="zap" class="w-5 h-5 text-orange-400"></i>
My Super Fan Subscriptions
</h2>
</div>
<div id="superFanList">
<!-- Populated by JS -->
</div>
</div>
</div>
</main>
<!-- 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">
<div class="flex items-center gap-3 w-48 sm:w-64 flex-shrink-0">
<div class="w-12 h-12 sm:w-14 sm:h-14 rounded-lg overflow-hidden flex-shrink-0">
<img id="playerArt" src="http://static.photos/technology/200x200/5" class="w-full h-full object-cover">
</div>
<div class="min-w-0 flex-1">
<p id="playerTitle" class="text-sm font-medium text-white truncate">Midnight Synthesis</p>
<p id="playerArtist" class="text-xs text-gray-400 truncate">Aurora Void</p>
</div>
</div>
<div class="flex-1 flex items-center justify-center max-w-2xl mx-auto">
<button class="w-10 h-10 rounded-full bg-white text-black flex items-center justify-center hover:scale-105 transition" onclick="BF.togglePlay()">
<i data-lucide="play" class="w-5 h-5 fill-current ml-0.5" id="playIcon"></i>
</button>
</div>
<div class="hidden sm:flex items-center gap-3 w-48 sm:w-64 justify-end">
<div class="flex items-center gap-2"><i data-lucide="volume-2" class="w-5 h-5 text-gray-400"></i><div class="w-20 h-1 bg-white/10 rounded-full overflow-hidden"><div class="h-full bg-cyan-400 w-[70%] rounded-full"></div></div></div>
</div>
</div>
</div>
<script src="app.js"></script>
<script>
</script>
</body> |