Download index.html from gao121213/da: direct link, hf CLI and curl.
- Browser
- Download file 5.48 kB
-
https://huggingface.co/spaces/gao121213/da/resolve/main/index.html
- Command line
-
hf download hf://spaces/gao121213/da/index.html
-
curl -L -o index.html https://huggingface.co/spaces/gao121213/da/resolve/main/index.html
5.48 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Harmony - Modern Music Player</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: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); | |
| color: #fff; | |
| min-height: 100vh; | |
| } | |
| .progress-container:hover .progress-bar { | |
| height: 8px; | |
| } | |
| .progress-bar { | |
| transition: height 0.2s ease; | |
| } | |
| .waveform { | |
| height: 60px; | |
| background: rgba(255, 255, 255, 0.05); | |
| border-radius: 10px; | |
| overflow: hidden; | |
| } | |
| .waveform-bar { | |
| animation: wave 1.2s infinite ease-in-out; | |
| transform-origin: bottom; | |
| } | |
| @keyframes wave { | |
| 0%, 100% { | |
| transform: scaleY(0.3); | |
| } | |
| 50% { | |
| transform: scaleY(1); | |
| } | |
| } | |
| .album-art { | |
| box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); | |
| transition: transform 0.3s ease; | |
| } | |
| .album-art:hover { | |
| transform: scale(1.03); | |
| } | |
| .file-upload { | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .file-upload input { | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| margin: 0; | |
| padding: 0; | |
| font-size: 20px; | |
| cursor: pointer; | |
| opacity: 0; | |
| filter: alpha(opacity=0); | |
| width: 100%; | |
| height: 100%; | |
| } | |
| </style> | |
| </head> | |
| <body class="flex items-center justify-center p-4"> | |
| <div class="w-full max-w-md bg-gray-900 bg-opacity-70 backdrop-blur-lg rounded-2xl shadow-xl overflow-hidden"> | |
| <!-- Header --> | |
| <div class="p-6 flex items-center justify-between border-b border-gray-800"> | |
| <div> | |
| <h1 class="text-2xl font-bold text-white">Harmony</h1> | |
| <p class="text-sm text-gray-400">Now Playing</p> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="p-2 rounded-full bg-gray-800 hover:bg-gray-700 text-gray-300 hover:text-white transition"> | |
| <i class="fas fa-ellipsis-h"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Album Art --> | |
| <div class="p-6 flex justify-center"> | |
| <div class="w-64 h-64 rounded-xl overflow-hidden album-art"> | |
| <img id="albumArt" src="https://images.unsplash.com/photo-1470225620780-dba8ba36b745?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" alt="Album Art" class="w-full h-full object-cover"> | |
| </div> | |
| </div> | |
| <!-- Song Info --> | |
| <div class="px-6 pt-2 pb-4 text-center"> | |
| <h2 id="songTitle" class="text-xl font-semibold text-white truncate">Unknown Song</h2> | |
| <p id="songArtist" class="text-sm text-gray-400 truncate">Unknown Artist</p> | |
| </div> | |
| <!-- Progress Bar --> | |
| <div class="px-6 py-2"> | |
| <div class="progress-container h-2 w-full bg-gray-800 rounded-full cursor-pointer"> | |
| <div id="progressBar" class="progress-bar h-1 bg-purple-600 rounded-full relative" style="width: 0%"> | |
| <div class="absolute -right-1 -top-1 w-3 h-3 bg-purple-500 rounded-full opacity-0 transition-opacity"></div> | |
| </div> | |
| </div> | |
| <div class="flex justify-between text-xs text-gray-400 mt-1"> | |
| <span id="currentTime">0:00</span> | |
| <span id="duration">0:00</span> | |
| </div> | |
| </div> | |
| <!-- Waveform Visualization (Placeholder) --> | |
| <div class="px-6 py-4"> | |
| <div class="waveform flex items-end justify-center space-x-1"> | |
| <div class="waveform-bar w-1 bg-purple-400" style="height: 20%"></div> | |
| <div class="waveform-bar w-1 bg-purple-400" style="height: 50%"></div> | |
| <div class="waveform-bar w-1 bg-purple-400" style="height: 70%"></div> | |
| <div class="waveform-bar w-1 bg-purple-400" style="height: 30%"></div> | |
| <div class="waveform-bar w-1 bg-purple-400" style="height: 90%"></div> | |
| <div class="waveform-bar w-1 bg-purple-400" style="height: 60%"></div> | |
| <div class="waveform-bar w-1 bg-purple-400" style="height: 40%"></div> | |
| <div class="waveform-bar w-1 bg-purple-400" style="height: 80%"></div> | |
| <div class="waveform-bar w-1 bg-purple-400" style="height: 25%"></div> | |
| <div class="waveform-bar w-1 bg-purple-400" style="height: 65%"></div> | |
| </div> | |
| </div> | |
| <!-- Controls --> | |
| <div class="px-6 py-4 flex items-center justify-between"> | |
| <button id="shuffleBtn" class="p-3 text-gray-400 hover:text-white transition"> | |
| < | |
| </html> |