Spaces:
Running
Running
play - Initial Deployment
Browse files- README.md +7 -5
- index.html +311 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: website
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,311 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Harmony Player - Modern Music Experience</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
/* Custom CSS for animations and effects */
|
| 11 |
+
.vinyl-record {
|
| 12 |
+
animation: spin 20s linear infinite;
|
| 13 |
+
animation-play-state: paused;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
.playing .vinyl-record {
|
| 17 |
+
animation-play-state: running;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
@keyframes spin {
|
| 21 |
+
100% { transform: rotate(360deg); }
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.progress-bar {
|
| 25 |
+
height: 4px;
|
| 26 |
+
background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
.song-card:hover .play-overlay {
|
| 30 |
+
opacity: 1;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
.waveform {
|
| 34 |
+
height: 40px;
|
| 35 |
+
background: linear-gradient(90deg,
|
| 36 |
+
rgba(59, 130, 246, 0.2) 0%,
|
| 37 |
+
rgba(139, 92, 246, 0.2) 50%,
|
| 38 |
+
rgba(236, 72, 153, 0.2) 100%);
|
| 39 |
+
mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 20" xmlns="http://www.w3.org/2000/svg"><path d="M0,10 Q5,15 10,10 T20,10 T30,10 T40,10 T50,10 T60,10 T70,10 T80,10 T90,10 T100,10" fill="none" stroke="black" stroke-width="2"/></svg>');
|
| 40 |
+
mask-size: 100% 100%;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.theme-switch {
|
| 44 |
+
transition: all 0.3s ease;
|
| 45 |
+
}
|
| 46 |
+
</style>
|
| 47 |
+
</head>
|
| 48 |
+
<body class="bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-gray-100 transition-colors duration-300">
|
| 49 |
+
<div class="min-h-screen flex flex-col">
|
| 50 |
+
<!-- Header -->
|
| 51 |
+
<header class="bg-white dark:bg-gray-800 shadow-sm py-4 px-6 flex justify-between items-center">
|
| 52 |
+
<div class="flex items-center space-x-2">
|
| 53 |
+
<i class="fas fa-music text-purple-600 text-2xl"></i>
|
| 54 |
+
<h1 class="text-xl font-bold">Harmony Player</h1>
|
| 55 |
+
</div>
|
| 56 |
+
<div class="flex items-center space-x-4">
|
| 57 |
+
<button id="theme-toggle" class="theme-switch p-2 rounded-full bg-gray-200 dark:bg-gray-700">
|
| 58 |
+
<i class="fas fa-moon dark:hidden"></i>
|
| 59 |
+
<i class="fas fa-sun hidden dark:block"></i>
|
| 60 |
+
</button>
|
| 61 |
+
<button class="p-2 rounded-full bg-gray-200 dark:bg-gray-700">
|
| 62 |
+
<i class="fas fa-search"></i>
|
| 63 |
+
</button>
|
| 64 |
+
<div class="w-8 h-8 rounded-full bg-purple-600 flex items-center justify-center text-white">
|
| 65 |
+
<span>U</span>
|
| 66 |
+
</div>
|
| 67 |
+
</div>
|
| 68 |
+
</header>
|
| 69 |
+
|
| 70 |
+
<!-- Main Content -->
|
| 71 |
+
<main class="flex-1 flex flex-col md:flex-row p-4 md:p-6 gap-6">
|
| 72 |
+
<!-- Player Section -->
|
| 73 |
+
<section class="md:w-2/3 bg-white dark:bg-gray-800 rounded-xl shadow-md p-6 flex flex-col">
|
| 74 |
+
<div class="flex flex-col md:flex-row items-center gap-6 mb-8">
|
| 75 |
+
<!-- Album Art -->
|
| 76 |
+
<div class="relative w-64 h-64 group">
|
| 77 |
+
<img src="https://source.unsplash.com/random/600x600/?music,album" alt="Album Cover" class="w-full h-full rounded-xl object-cover shadow-lg">
|
| 78 |
+
<div class="absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-300">
|
| 79 |
+
<div class="vinyl-record absolute w-48 h-48 rounded-full bg-gradient-to-br from-gray-800 to-gray-900 border-8 border-gray-700 flex items-center justify-center">
|
| 80 |
+
<div class="w-8 h-8 rounded-full bg-white"></div>
|
| 81 |
+
<div class="absolute w-full h-full rounded-full border border-gray-600 opacity-20"></div>
|
| 82 |
+
</div>
|
| 83 |
+
</div>
|
| 84 |
+
</div>
|
| 85 |
+
|
| 86 |
+
<!-- Song Info -->
|
| 87 |
+
<div class="flex-1">
|
| 88 |
+
<h2 class="text-2xl font-bold mb-2">Current Playing</h2>
|
| 89 |
+
<h3 class="text-xl font-semibold text-purple-600">Midnight Memories</h3>
|
| 90 |
+
<p class="text-gray-600 dark:text-gray-400 mb-4">The Dreamers</p>
|
| 91 |
+
|
| 92 |
+
<div class="waveform w-full mb-4"></div>
|
| 93 |
+
|
| 94 |
+
<div class="flex items-center justify-between mb-4">
|
| 95 |
+
<span class="text-sm text-gray-500">2:15</span>
|
| 96 |
+
<span class="text-sm text-gray-500">3:42</span>
|
| 97 |
+
</div>
|
| 98 |
+
|
| 99 |
+
<div class="progress-bar w-full rounded-full mb-6"></div>
|
| 100 |
+
|
| 101 |
+
<!-- Controls -->
|
| 102 |
+
<div class="flex items-center justify-between">
|
| 103 |
+
<button class="p-3 rounded-full bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600">
|
| 104 |
+
<i class="fas fa-backward"></i>
|
| 105 |
+
</button>
|
| 106 |
+
<button id="play-btn" class="p-4 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
|
| 107 |
+
<i class="fas fa-play" id="play-icon"></i>
|
| 108 |
+
</button>
|
| 109 |
+
<button class="p-3 rounded-full bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600">
|
| 110 |
+
<i class="fas fa-forward"></i>
|
| 111 |
+
</button>
|
| 112 |
+
<button class="p-3 rounded-full bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600">
|
| 113 |
+
<i class="fas fa-random"></i>
|
| 114 |
+
</button>
|
| 115 |
+
<button class="p-3 rounded-full bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600">
|
| 116 |
+
<i class="fas fa-redo"></i>
|
| 117 |
+
</button>
|
| 118 |
+
</div>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
|
| 122 |
+
<!-- Queue -->
|
| 123 |
+
<div class="mt-auto">
|
| 124 |
+
<h3 class="font-semibold mb-3">Up Next</h3>
|
| 125 |
+
<div class="space-y-2">
|
| 126 |
+
<div class="flex items-center p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer">
|
| 127 |
+
<img src="https://source.unsplash.com/random/80x80/?music" alt="Song" class="w-10 h-10 rounded-md mr-3">
|
| 128 |
+
<div class="flex-1">
|
| 129 |
+
<p class="font-medium">Summer Vibes</p>
|
| 130 |
+
<p class="text-sm text-gray-600 dark:text-gray-400">Chill Wave</p>
|
| 131 |
+
</div>
|
| 132 |
+
<span class="text-sm text-gray-500">3:22</span>
|
| 133 |
+
</div>
|
| 134 |
+
<div class="flex items-center p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer">
|
| 135 |
+
<img src="https://source.unsplash.com/random/80x80/?concert" alt="Song" class="w-10 h-10 rounded-md mr-3">
|
| 136 |
+
<div class="flex-1">
|
| 137 |
+
<p class="font-medium">Electric Dreams</p>
|
| 138 |
+
<p class="text-sm text-gray-600 dark:text-gray-400">Synth Pop</p>
|
| 139 |
+
</div>
|
| 140 |
+
<span class="text-sm text-gray-500">4:15</span>
|
| 141 |
+
</div>
|
| 142 |
+
</div>
|
| 143 |
+
</div>
|
| 144 |
+
</section>
|
| 145 |
+
|
| 146 |
+
<!-- Playlist Section -->
|
| 147 |
+
<section class="md:w-1/3 bg-white dark:bg-gray-800 rounded-xl shadow-md p-6">
|
| 148 |
+
<div class="flex justify-between items-center mb-6">
|
| 149 |
+
<h2 class="text-xl font-bold">Your Playlists</h2>
|
| 150 |
+
<button class="p-2 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
|
| 151 |
+
<i class="fas fa-plus"></i>
|
| 152 |
+
</button>
|
| 153 |
+
</div>
|
| 154 |
+
|
| 155 |
+
<div class="space-y-4">
|
| 156 |
+
<!-- Featured Playlist -->
|
| 157 |
+
<div class="relative rounded-xl overflow-hidden group">
|
| 158 |
+
<img src="https://source.unsplash.com/random/600x300/?party" alt="Playlist" class="w-full h-32 object-cover">
|
| 159 |
+
<div class="absolute inset-0 bg-gradient-to-t from-black to-transparent flex items-end p-4">
|
| 160 |
+
<div>
|
| 161 |
+
<h3 class="font-bold text-white">Weekend Vibes</h3>
|
| 162 |
+
<p class="text-sm text-gray-300">24 songs</p>
|
| 163 |
+
</div>
|
| 164 |
+
</div>
|
| 165 |
+
<div class="play-overlay absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 bg-black bg-opacity-40 transition-opacity duration-300">
|
| 166 |
+
<button class="p-3 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
|
| 167 |
+
<i class="fas fa-play"></i>
|
| 168 |
+
</button>
|
| 169 |
+
</div>
|
| 170 |
+
</div>
|
| 171 |
+
|
| 172 |
+
<!-- Playlist Cards -->
|
| 173 |
+
<div class="grid grid-cols-2 gap-3">
|
| 174 |
+
<div class="song-card relative rounded-lg overflow-hidden group h-24">
|
| 175 |
+
<img src="https://source.unsplash.com/random/300x300/?jazz" alt="Playlist" class="w-full h-full object-cover">
|
| 176 |
+
<div class="absolute inset-0 bg-gradient-to-t from-black to-transparent flex items-end p-2">
|
| 177 |
+
<h3 class="text-sm font-medium text-white">Jazz Lounge</h3>
|
| 178 |
+
</div>
|
| 179 |
+
<div class="play-overlay absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 bg-black bg-opacity-30 transition-opacity duration-300">
|
| 180 |
+
<button class="p-2 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
|
| 181 |
+
<i class="fas fa-play text-xs"></i>
|
| 182 |
+
</button>
|
| 183 |
+
</div>
|
| 184 |
+
</div>
|
| 185 |
+
<div class="song-card relative rounded-lg overflow-hidden group h-24">
|
| 186 |
+
<img src="https://source.unsplash.com/random/300x300/?rock" alt="Playlist" class="w-full h-full object-cover">
|
| 187 |
+
<div class="absolute inset-0 bg-gradient-to-t from-black to-transparent flex items-end p-2">
|
| 188 |
+
<h3 class="text-sm font-medium text-white">Rock Classics</h3>
|
| 189 |
+
</div>
|
| 190 |
+
<div class="play-overlay absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 bg-black bg-opacity-30 transition-opacity duration-300">
|
| 191 |
+
<button class="p-2 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
|
| 192 |
+
<i class="fas fa-play text-xs"></i>
|
| 193 |
+
</button>
|
| 194 |
+
</div>
|
| 195 |
+
</div>
|
| 196 |
+
<div class="song-card relative rounded-lg overflow-hidden group h-24">
|
| 197 |
+
<img src="https://source.unsplash.com/random/300x300/?hiphop" alt="Playlist" class="w-full h-full object-cover">
|
| 198 |
+
<div class="absolute inset-0 bg-gradient-to-t from-black to-transparent flex items-end p-2">
|
| 199 |
+
<h3 class="text-sm font-medium text-white">Hip Hop Hits</h3>
|
| 200 |
+
</div>
|
| 201 |
+
<div class="play-overlay absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 bg-black bg-opacity-30 transition-opacity duration-300">
|
| 202 |
+
<button class="p-2 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
|
| 203 |
+
<i class="fas fa-play text-xs"></i>
|
| 204 |
+
</button>
|
| 205 |
+
</div>
|
| 206 |
+
</div>
|
| 207 |
+
<div class="song-card relative rounded-lg overflow-hidden group h-24">
|
| 208 |
+
<img src="https://source.unsplash.com/random/300x300/?electronic" alt="Playlist" class="w-full h-full object-cover">
|
| 209 |
+
<div class="absolute inset-0 bg-gradient-to-t from-black to-transparent flex items-end p-2">
|
| 210 |
+
<h3 class="text-sm font-medium text-white">EDM Energy</h3>
|
| 211 |
+
</div>
|
| 212 |
+
<div class="play-overlay absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 bg-black bg-opacity-30 transition-opacity duration-300">
|
| 213 |
+
<button class="p-2 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
|
| 214 |
+
<i class="fas fa-play text-xs"></i>
|
| 215 |
+
</button>
|
| 216 |
+
</div>
|
| 217 |
+
</div>
|
| 218 |
+
</div>
|
| 219 |
+
|
| 220 |
+
<!-- Recently Played -->
|
| 221 |
+
<div class="mt-6">
|
| 222 |
+
<h3 class="font-semibold mb-3">Recently Played</h3>
|
| 223 |
+
<div class="space-y-3">
|
| 224 |
+
<div class="flex items-center p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer">
|
| 225 |
+
<img src="https://source.unsplash.com/random/80x80/?singer" alt="Song" class="w-10 h-10 rounded-md mr-3">
|
| 226 |
+
<div>
|
| 227 |
+
<p class="font-medium">Lost in the Echo</p>
|
| 228 |
+
<p class="text-sm text-gray-600 dark:text-gray-400">Echo Chamber</p>
|
| 229 |
+
</div>
|
| 230 |
+
</div>
|
| 231 |
+
<div class="flex items-center p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer">
|
| 232 |
+
<img src="https://source.unsplash.com/random/80x80/?band" alt="Song" class="w-10 h-10 rounded-md mr-3">
|
| 233 |
+
<div>
|
| 234 |
+
<p class="font-medium">Neon Lights</p>
|
| 235 |
+
<p class="text-sm text-gray-600 dark:text-gray-400">The Midnight</p>
|
| 236 |
+
</div>
|
| 237 |
+
</div>
|
| 238 |
+
</div>
|
| 239 |
+
</div>
|
| 240 |
+
</div>
|
| 241 |
+
</section>
|
| 242 |
+
</main>
|
| 243 |
+
|
| 244 |
+
<!-- Mini Player (Mobile) -->
|
| 245 |
+
<div class="md:hidden fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-800 shadow-lg p-3 flex items-center justify-between border-t border-gray-200 dark:border-gray-700">
|
| 246 |
+
<div class="flex items-center space-x-3">
|
| 247 |
+
<img src="https://source.unsplash.com/random/80x80/?music" alt="Song" class="w-12 h-12 rounded-md">
|
| 248 |
+
<div>
|
| 249 |
+
<p class="font-medium text-sm">Midnight Memories</p>
|
| 250 |
+
<p class="text-xs text-gray-600 dark:text-gray-400">The Dreamers</p>
|
| 251 |
+
</div>
|
| 252 |
+
</div>
|
| 253 |
+
<button class="p-2 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
|
| 254 |
+
<i class="fas fa-play"></i>
|
| 255 |
+
</button>
|
| 256 |
+
</div>
|
| 257 |
+
</div>
|
| 258 |
+
|
| 259 |
+
<script>
|
| 260 |
+
// Toggle play/pause
|
| 261 |
+
const playBtn = document.getElementById('play-btn');
|
| 262 |
+
const playIcon = document.getElementById('play-icon');
|
| 263 |
+
const albumArt = document.querySelector('.group');
|
| 264 |
+
|
| 265 |
+
playBtn.addEventListener('click', function() {
|
| 266 |
+
if (playIcon.classList.contains('fa-play')) {
|
| 267 |
+
playIcon.classList.remove('fa-play');
|
| 268 |
+
playIcon.classList.add('fa-pause');
|
| 269 |
+
albumArt.classList.add('playing');
|
| 270 |
+
} else {
|
| 271 |
+
playIcon.classList.remove('fa-pause');
|
| 272 |
+
playIcon.classList.add('fa-play');
|
| 273 |
+
albumArt.classList.remove('playing');
|
| 274 |
+
}
|
| 275 |
+
});
|
| 276 |
+
|
| 277 |
+
// Theme toggle
|
| 278 |
+
const themeToggle = document.getElementById('theme-toggle');
|
| 279 |
+
const html = document.documentElement;
|
| 280 |
+
|
| 281 |
+
themeToggle.addEventListener('click', function() {
|
| 282 |
+
html.classList.toggle('dark');
|
| 283 |
+
|
| 284 |
+
// Save preference to localStorage
|
| 285 |
+
if (html.classList.contains('dark')) {
|
| 286 |
+
localStorage.setItem('theme', 'dark');
|
| 287 |
+
} else {
|
| 288 |
+
localStorage.setItem('theme', 'light');
|
| 289 |
+
}
|
| 290 |
+
});
|
| 291 |
+
|
| 292 |
+
// Check for saved theme preference
|
| 293 |
+
if (localStorage.getItem('theme') === 'dark' ||
|
| 294 |
+
(!localStorage.getItem('theme') && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
| 295 |
+
html.classList.add('dark');
|
| 296 |
+
} else {
|
| 297 |
+
html.classList.remove('dark');
|
| 298 |
+
}
|
| 299 |
+
|
| 300 |
+
// Simulate progress bar animation
|
| 301 |
+
setInterval(() => {
|
| 302 |
+
const progressBar = document.querySelector('.progress-bar');
|
| 303 |
+
if (playIcon.classList.contains('fa-pause')) {
|
| 304 |
+
const currentWidth = parseFloat(progressBar.style.width) || 0;
|
| 305 |
+
const newWidth = (currentWidth + 0.5) % 100;
|
| 306 |
+
progressBar.style.width = `${newWidth}%`;
|
| 307 |
+
}
|
| 308 |
+
}, 1000);
|
| 309 |
+
</script>
|
| 310 |
+
<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=MightyCrane/website" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 311 |
+
</html>
|