File size: 16,936 Bytes
6f1e85b ffefec5 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Spotify Clone</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<style>
.sidebar {
scrollbar-width: none;
}
.sidebar::-webkit-scrollbar {
display: none;
}
.player-progress {
-webkit-appearance: none;
height: 4px;
background: #535353;
border-radius: 2px;
}
.player-progress::-webkit-slider-thumb {
-webkit-appearance: none;
width: 12px;
height: 12px;
background: white;
border-radius: 50%;
opacity: 0;
transition: opacity 0.2s;
}
.player-progress:hover::-webkit-slider-thumb {
opacity: 1;
}
</style>
</head>
<body class="bg-black text-white font-sans">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar w-64 bg-black p-6 overflow-y-auto">
<div class="mb-8">
<div class="text-white text-2xl font-bold mb-8 flex items-center">
<i data-feather="music" class="mr-2"></i>
<span>Spotify</span>
</div>
<nav>
<ul class="space-y-4">
<li>
<a href="#" class="flex items-center text-white hover:text-green-500 transition">
<i data-feather="home" class="mr-4"></i>
<span>Home</span>
</a>
</li>
<li>
<a href="#" class="flex items-center text-gray-400 hover:text-white transition">
<i data-feather="search" class="mr-4"></i>
<span>Search</span>
</a>
</li>
<li>
<a href="#" class="flex items-center text-gray-400 hover:text-white transition">
<i data-feather="book" class="mr-4"></i>
<span>Your Library</span>
</a>
</li>
</ul>
</nav>
</div>
<div class="mt-8">
<div class="flex items-center justify-between mb-4">
<button class="bg-gray-800 hover:bg-gray-700 text-white rounded-full p-1">
<i data-feather="plus" class="w-5 h-5"></i>
</button>
<a href="#" class="text-gray-400 hover:text-white transition">Playlists</a>
</div>
<ul class="space-y-3">
<li><a href="#" class="text-gray-400 hover:text-white transition text-sm">Liked Songs</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition text-sm">Discover Weekly</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition text-sm">Release Radar</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition text-sm">Daily Mix 1</a></li>
</ul>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 bg-gradient-to-b from-gray-900 to-black overflow-y-auto">
<header class="sticky top-0 z-10 bg-gradient-to-b from-gray-900 to-gray-800 p-4 flex justify-between items-center">
<div class="flex space-x-4">
<button class="bg-black bg-opacity-40 rounded-full p-2">
<i data-feather="chevron-left" class="w-5 h-5"></i>
</button>
<button class="bg-black bg-opacity-40 rounded-full p-2">
<i data-feather="chevron-right" class="w-5 h-5"></i>
</button>
</div>
<div class="flex items-center space-x-4">
<button class="bg-white text-black font-bold rounded-full px-6 py-2 hover:scale-105 transition">
Upgrade
</button>
<div class="bg-black bg-opacity-70 rounded-full p-1 flex items-center">
<div class="w-8 h-8 rounded-full bg-purple-600 mr-2"></div>
<span class="font-bold text-sm mr-2">Profile</span>
<i data-feather="chevron-down" class="w-4 h-4"></i>
</div>
</div>
</header>
<main class="p-8">
<section class="mb-10">
<h1 class="text-3xl font-bold mb-6">Good afternoon</h1>
<div class="grid grid-cols-2 md:grid-cols-3 gap-4">
<!-- Playlist Cards -->
<div class="bg-gray-800 bg-opacity-40 hover:bg-gray-700 rounded-md p-4 flex items-center cursor-pointer transition">
<div class="w-16 h-16 bg-gradient-to-br from-purple-600 to-blue-400 rounded shadow-lg mr-4"></div>
<span class="font-bold">Liked Songs</span>
</div>
<div class="bg-gray-800 bg-opacity-40 hover:bg-gray-700 rounded-md p-4 flex items-center cursor-pointer transition">
<div class="w-16 h-16 bg-gradient-to-br from-green-600 to-teal-400 rounded shadow-lg mr-4"></div>
<span class="font-bold">Discover Weekly</span>
</div>
<div class="bg-gray-800 bg-opacity-40 hover:bg-gray-700 rounded-md p-4 flex items-center cursor-pointer transition">
<div class="w-16 h-16 bg-gradient-to-br from-red-600 to-pink-400 rounded shadow-lg mr-4"></div>
<span class="font-bold">Release Radar</span>
</div>
<div class="bg-gray-800 bg-opacity-40 hover:bg-gray-700 rounded-md p-4 flex items-center cursor-pointer transition">
<div class="w-16 h-16 bg-gradient-to-br from-yellow-600 to-orange-400 rounded shadow-lg mr-4"></div>
<span class="font-bold">Daily Mix 1</span>
</div>
<div class="bg-gray-800 bg-opacity-40 hover:bg-gray-700 rounded-md p-4 flex items-center cursor-pointer transition">
<div class="w-16 h-16 bg-gradient-to-br from-blue-600 to-indigo-400 rounded shadow-lg mr-4"></div>
<span class="font-bold">Daily Mix 2</span>
</div>
<div class="bg-gray-800 bg-opacity-40 hover:bg-gray-700 rounded-md p-4 flex items-center cursor-pointer transition">
<div class="w-16 h-16 bg-gradient-to-br from-pink-600 to-red-400 rounded shadow-lg mr-4"></div>
<span class="font-bold">Daily Mix 3</span>
</div>
</div>
</section>
<section class="mb-10">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold">Made For You</h2>
<a href="#" class="text-sm text-gray-400 hover:underline">Show all</a>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-6">
<!-- Album Cards -->
<div class="bg-gray-800 bg-opacity-40 hover:bg-gray-700 p-4 rounded-md cursor-pointer transition group">
<div class="relative mb-4">
<img src="http://static.photos/music/320x320/1" alt="Album cover" class="w-full rounded-md shadow-lg">
<button class="absolute bottom-2 right-2 bg-green-500 rounded-full p-3 opacity-0 group-hover:opacity-100 transition-opacity shadow-xl transform translate-y-2 group-hover:translate-y-0 transition-transform">
<i data-feather="play" class="w-5 h-5 text-black"></i>
</button>
</div>
<h3 class="font-bold mb-1">Today's Top Hits</h3>
<p class="text-gray-400 text-sm">The most popular songs right now</p>
</div>
<div class="bg-gray-800 bg-opacity-40 hover:bg-gray-700 p-4 rounded-md cursor-pointer transition group">
<div class="relative mb-4">
<img src="http://static.photos/music/320x320/2" alt="Album cover" class="w-full rounded-md shadow-lg">
<button class="absolute bottom-2 right-2 bg-green-500 rounded-full p-3 opacity-0 group-hover:opacity-100 transition-opacity shadow-xl transform translate-y-2 group-hover:translate-y-0 transition-transform">
<i data-feather="play" class="w-5 h-5 text-black"></i>
</button>
</div>
<h3 class="font-bold mb-1">RapCaviar</h3>
<p class="text-gray-400 text-sm">New music from Drake and more</p>
</div>
<div class="bg-gray-800 bg-opacity-40 hover:bg-gray-700 p-4 rounded-md cursor-pointer transition group">
<div class="relative mb-4">
<img src="http://static.photos/music/320x320/3" alt="Album cover" class="w-full rounded-md shadow-lg">
<button class="absolute bottom-2 right-2 bg-green-500 rounded-full p-3 opacity-0 group-hover:opacity-100 transition-opacity shadow-xl transform translate-y-2 group-hover:translate-y-0 transition-transform">
<i data-feather="play" class="w-5 h-5 text-black"></i>
</button>
</div>
<h3 class="font-bold mb-1">All Out 2010s</h3>
<p class="text-gray-400 text-sm">The biggest songs of the 2010s</p>
</div>
<div class="bg-gray-800 bg-opacity-40 hover:bg-gray-700 p-4 rounded-md cursor-pointer transition group">
<div class="relative mb-4">
<img src="http://static.photos/music/320x320/4" alt="Album cover" class="w-full rounded-md shadow-lg">
<button class="absolute bottom-2 right-2 bg-green-500 rounded-full p-3 opacity-0 group-hover:opacity-100 transition-opacity shadow-xl transform translate-y-2 group-hover:translate-y-0 transition-transform">
<i data-feather="play" class="w-5 h-5 text-black"></i>
</button>
</div>
<h3 class="font-bold mb-1">Rock Classics</h3>
<p class="text-gray-400 text-sm">Rock legends & epic songs</p>
</div>
<div class="bg-gray-800 bg-opacity-40 hover:bg-gray-700 p-4 rounded-md cursor-pointer transition group">
<div class="relative mb-4">
<img src="http://static.photos/music/320x320/5" alt="Album cover" class="w-full rounded-md shadow-lg">
<button class="absolute bottom-2 right-2 bg-green-500 rounded-full p-3 opacity-0 group-hover:opacity-100 transition-opacity shadow-xl transform translate-y-2 group-hover:translate-y-0 transition-transform">
<i data-feather="play" class="w-5 h-5 text-black"></i>
</button>
</div>
<h3 class="font-bold mb-1">Chill Hits</h3>
<p class="text-gray-400 text-sm">Kick back to the best new...</p>
</div>
<div class="bg-gray-800 bg-opacity-40 hover:bg-gray-700 p-4 rounded-md cursor-pointer transition group">
<div class="relative mb-4">
<img src="http://static.photos/music/320x320/6" alt="Album cover" class="w-full rounded-md shadow-lg">
<button class="absolute bottom-2 right-2 bg-green-500 rounded-full p-3 opacity-0 group-hover:opacity-100 transition-opacity shadow-xl transform translate-y-2 group-hover:translate-y-0 transition-transform">
<i data-feather="play" class="w-5 h-5 text-black"></i>
</button>
</div>
<h3 class="font-bold mb-1">Mood Booster</h3>
<p class="text-gray-400 text-sm">Get happy with today's...</p>
</div>
</div>
</section>
</main>
</div>
</div>
<!-- Player -->
<div class="fixed bottom-0 left-0 right-0 bg-gray-900 border-t border-gray-800 p-4">
<div class="max-w-screen-xl mx-auto">
<div class="flex items-center justify-between">
<!-- Song Info -->
<div class="flex items-center w-1/4">
<img src="http://static.photos/music/64x64/1" alt="Album cover" class="w-14 h-14 rounded mr-4">
<div>
<div class="font-medium">Song Title</div>
<div class="text-gray-400 text-sm">Artist Name</div>
</div>
<button class="ml-4 text-gray-400 hover:text-white">
<i data-feather="heart" class="w-5 h-5"></i>
</button>
</div>
<!-- Player Controls -->
<div class="flex flex-col items-center w-2/4">
<div class="flex items-center space-x-6 mb-2">
<button class="text-gray-400 hover:text-white">
<i data-feather="shuffle" class="w-5 h-5"></i>
</button>
<button class="text-gray-400 hover:text-white">
<i data-feather="skip-back" class="w-5 h-5"></i>
</button>
<button class="bg-white text-black rounded-full p-2 hover:scale-110 transition">
<i data-feather="play" class="w-5 h-5"></i>
</button>
<button class="text-gray-400 hover:text-white">
<i data-feather="skip-forward" class="w-5 h-5"></i>
</button>
<button class="text-gray-400 hover:text-white">
<i data-feather="repeat" class="w-5 h-5"></i>
</button>
</div>
<div class="w-full flex items-center space-x-2">
<span class="text-xs text-gray-400">0:30</span>
<input type="range" class="player-progress w-full" value="30">
<span class="text-xs text-gray-400">3:45</span>
</div>
</div>
<!-- Volume & Other Controls -->
<div class="flex items-center justify-end w-1/4 space-x-4">
<button class="text-gray-400 hover:text-white">
<i data-feather="list" class="w-5 h-5"></i>
</button>
<button class="text-gray-400 hover:text-white">
<i data-feather="monitor" class="w-5 h-5"></i>
</button>
<button class="text-gray-400 hover:text-white">
<i data-feather="volume-2" class="w-5 h-5"></i>
</button>
<div class="w-24">
<input type="range" class="player-progress w-full" value="70">
</div>
</div>
</div>
</div>
</div>
<script>
AOS.init();
feather.replace();
</script>
</body>
</html>
|