SPEEDY, MAKE THE PLAYER SMALLER IN SOME SCREENS - Follow Up Deployment
Browse files- index.html +10 -10
index.html
CHANGED
|
@@ -37,21 +37,21 @@
|
|
| 37 |
️
|
| 38 |
</button>
|
| 39 |
|
| 40 |
-
<div id="music-player" style="display: none; position: fixed;
|
| 41 |
<div style="display: flex; flex-direction: column; align-items: center; gap: 8px;">
|
| 42 |
-
<div id="album-art-container" style="width:
|
| 43 |
<img id="album-art" src="" style="width: 100%; height: 100%; object-fit: cover; border-radius: 10px;">
|
| 44 |
</div>
|
| 45 |
-
<div id="track-info" style="text-align: center; color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.5);">
|
| 46 |
-
<div id="track-title" style="font-size: 18px; font-weight: bold;">No song playing</div>
|
| 47 |
-
<div id="track-artist" style="font-size: 14px; opacity: 0.8;">Upload a song to begin</div>
|
| 48 |
</div>
|
| 49 |
-
<div style="display: flex; align-items: center; gap:
|
| 50 |
-
<span id="current-time">0:00</span>
|
| 51 |
-
<input type="range" id="progress-bar" style="flex-grow: 1;" min="0" max="100" value="0">
|
| 52 |
-
<span id="duration">0:00</span>
|
| 53 |
</div>
|
| 54 |
-
<div style="display: flex; justify-content: center; gap:
|
| 55 |
<button id="prev-btn" style="background: none; border: none; color: white; font-size: 20px;">⏮</button>
|
| 56 |
<button id="play-btn" style="background: none; border: none; color: white; font-size: 30px;">▶</button>
|
| 57 |
<button id="next-btn" style="background: none; border: none; color: white; font-size: 20px;">⏭</button>
|
|
|
|
| 37 |
️
|
| 38 |
</button>
|
| 39 |
|
| 40 |
+
<div id="music-player" style="display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: transparent; padding: 10px; width: 90%; max-width: 300px; z-index: 50;">
|
| 41 |
<div style="display: flex; flex-direction: column; align-items: center; gap: 8px;">
|
| 42 |
+
<div id="album-art-container" style="width: 100%; max-width: min(150px, 25vw); aspect-ratio: 1/1; margin: 0 auto 10px;">
|
| 43 |
<img id="album-art" src="" style="width: 100%; height: 100%; object-fit: cover; border-radius: 10px;">
|
| 44 |
</div>
|
| 45 |
+
<div id="track-info" style="text-align: center; color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.5); width: 100%; padding: 0 10px;">
|
| 46 |
+
<div id="track-title" style="font-size: clamp(14px, 4vw, 18px); font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;">No song playing</div>
|
| 47 |
+
<div id="track-artist" style="font-size: clamp(12px, 3vw, 14px); opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;">Upload a song to begin</div>
|
| 48 |
</div>
|
| 49 |
+
<div style="display: flex; align-items: center; gap: 8px; width: 100%; padding: 0 5px;">
|
| 50 |
+
<span id="current-time" style="font-size: 11px;">0:00</span>
|
| 51 |
+
<input type="range" id="progress-bar" style="flex-grow: 1; height: 4px;" min="0" max="100" value="0">
|
| 52 |
+
<span id="duration" style="font-size: 11px;">0:00</span>
|
| 53 |
</div>
|
| 54 |
+
<div style="display: flex; justify-content: center; gap: clamp(8px, 4vw, 16px); margin-top: 8px;">
|
| 55 |
<button id="prev-btn" style="background: none; border: none; color: white; font-size: 20px;">⏮</button>
|
| 56 |
<button id="play-btn" style="background: none; border: none; color: white; font-size: 30px;">▶</button>
|
| 57 |
<button id="next-btn" style="background: none; border: none; color: white; font-size: 20px;">⏭</button>
|