spotify / index.html
Callyn's picture
https://open.spotify.com/ - Initial Deployment
6f1e85b verified
Raw History Blame Contribute Delete
16.9 kB
<!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>