Spaces:
Running
Running
Download index.html from boxtop1dc/spotify-clone: direct link, hf CLI and curl.
- Browser
- Download file 21.2 kB
-
https://huggingface.co/spaces/boxtop1dc/spotify-clone/resolve/main/index.html
- Command line
-
hf download hf://spaces/boxtop1dc/spotify-clone/index.html
-
curl -L -o index.html https://huggingface.co/spaces/boxtop1dc/spotify-clone/resolve/main/index.html
21.2 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Spotify - Web Player: Music for everyone</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet"> | |
| <style> | |
| body { | |
| font-family: 'Montserrat', sans-serif; | |
| background-color: #121212; | |
| color: white; | |
| } | |
| .gradient-bg { | |
| background: linear-gradient(180deg, #1DB954 0%, #121212 100%); | |
| } | |
| .card-hover:hover { | |
| transform: scale(1.05); | |
| transition: transform 0.3s ease; | |
| } | |
| .play-button { | |
| opacity: 0; | |
| transition: opacity 0.3s ease, transform 0.3s ease; | |
| } | |
| .card-hover:hover .play-button { | |
| opacity: 1; | |
| transform: translateY(-5px); | |
| } | |
| .scrollbar-hide::-webkit-scrollbar { | |
| display: none; | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen"> | |
| <!-- Sidebar --> | |
| <div class="fixed left-0 top-0 bottom-0 w-64 bg-black p-6 hidden md:block"> | |
| <div class="mb-10"> | |
| <svg viewBox="0 0 24 24" width="40" height="40" class="text-green-500"> | |
| <path fill="currentColor" d="M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.6 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z"></path> | |
| </svg> | |
| </div> | |
| <ul class="space-y-4"> | |
| <li><a href="#" class="flex items-center text-white font-medium"> | |
| <svg class="w-6 h-6 mr-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path> | |
| </svg> | |
| Home</a></li> | |
| <li><a href="#" class="flex items-center text-gray-400 hover:text-white"> | |
| <svg class="w-6 h-6 mr-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path> | |
| </svg> | |
| Search</a></li> | |
| <li><a href="#" class="flex items-center text-gray-400 hover:text-white"> | |
| <svg class="w-6 h-6 mr-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path> | |
| </svg> | |
| Your Library</a></li> | |
| </ul> | |
| <div class="mt-8"> | |
| <h3 class="text-gray-400 uppercase text-xs font-bold mb-4">Playlists</h3> | |
| <ul class="space-y-3"> | |
| <li><a href="#" class="text-gray-400 hover:text-white text-sm">Create Playlist</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white text-sm">Liked Songs</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="ml-0 md:ml-64 pb-32"> | |
| <!-- Header --> | |
| <header class="sticky top-0 z-10 bg-gradient-to-b from-black to-transparent p-4 flex justify-between items-center"> | |
| <div class="flex items-center space-x-4"> | |
| <button class="md:hidden text-white"> | |
| <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path> | |
| </svg> | |
| </button> | |
| <div class="hidden md:flex space-x-4"> | |
| <button class="bg-black bg-opacity-30 text-white rounded-full px-4 py-1 text-sm font-medium">Home</button> | |
| <button class="bg-black bg-opacity-30 text-white rounded-full px-4 py-1 text-sm font-medium">Browse</button> | |
| </div> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button class="bg-white text-black rounded-full px-6 py-2 text-sm font-bold hover:scale-105 transition-transform">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-green-500 flex items-center justify-center"> | |
| <svg class="w-5 h-5 text-black" fill="currentColor" viewBox="0 0 20 20"> | |
| <path fill-rule="evenodd" d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z" clip-rule="evenodd"></path> | |
| </svg> | |
| </div> | |
| <span class="mx-2 text-sm font-medium">User</span> | |
| <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path> | |
| </svg> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Hero Section --> | |
| <section class="gradient-bg p-6 pt-12 md:p-8"> | |
| <h1 class="text-3xl md:text-5xl font-bold mb-6">Welcome back</h1> | |
| <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-6"> | |
| <!-- Recently played cards --> | |
| <div class="bg-black bg-opacity-40 rounded-md p-4 hover:bg-opacity-60 transition-colors cursor-pointer"> | |
| <div class="relative mb-4"> | |
| <img src="https://i.scdn.co/image/ab67616d00001e0235ea219ce47813b5e2dc3745" alt="Album cover" class="rounded-md shadow-lg w-full aspect-square object-cover"> | |
| </div> | |
| <h3 class="font-bold text-white truncate">I'm The Problem</h3> | |
| <p class="text-gray-400 text-sm truncate">Morgan Wallen</p> | |
| </div> | |
| <div class="bg-black bg-opacity-40 rounded-md p-4 hover:bg-opacity-60 transition-colors cursor-pointer"> | |
| <div class="relative mb-4"> | |
| <img src="https://i.scdn.co/image/ab67616d00001e02e6f407c7f3a0ec98845e4431" alt="Album cover" class="rounded-md shadow-lg w-full aspect-square object-cover"> | |
| </div> | |
| <h3 class="font-bold text-white truncate">Flowers</h3> | |
| <p class="text-gray-400 text-sm truncate">Miley Cyrus</p> | |
| </div> | |
| <div class="bg-black bg-opacity-40 rounded-md p-4 hover:bg-opacity-60 transition-colors cursor-pointer"> | |
| <div class="relative mb-4"> | |
| <img src="https://i.scdn.co/image/ab67616d00001e02a991995542d50a691b9ae5be" alt="Album cover" class="rounded-md shadow-lg w-full aspect-square object-cover"> | |
| </div> | |
| <h3 class="font-bold text-white truncate">Anti-Hero</h3> | |
| <p class="text-gray-400 text-sm truncate">Taylor Swift</p> | |
| </div> | |
| <div class="bg-black bg-opacity-40 rounded-md p-4 hover:bg-opacity-60 transition-colors cursor-pointer"> | |
| <div class="relative mb-4"> | |
| <img src="https://i.scdn.co/image/ab67616d00001e026f248f7695ebd5ab1986e9da" alt="Album cover" class="rounded-md shadow-lg w-full aspect-square object-cover"> | |
| </div> | |
| <h3 class="font-bold text-white truncate">Kill Bill</h3> | |
| <p class="text-gray-400 text-sm truncate">SZA</p> | |
| </div> | |
| <div class="bg-black bg-opacity-40 rounded-md p-4 hover:bg-opacity-60 transition-colors cursor-pointer"> | |
| <div class="relative mb-4"> | |
| <img src="https://i.scdn.co/image/ab67616d00001e02c5e3a684972b7d19895dc928" alt="Album cover" class="rounded-md shadow-lg w-full aspect-square object-cover"> | |
| </div> | |
| <h3 class="font-bold text-white truncate">Last Night</h3> | |
| <p class="text-gray-400 text-sm truncate">Morgan Wallen</p> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Main Content Sections --> | |
| <div class="p-6 md:p-8 space-y-10"> | |
| <!-- Trending Songs --> | |
| <section> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold">Trending songs</h2> | |
| <a href="#" class="text-sm text-gray-400 hover:underline">Show all</a> | |
| </div> | |
| <div class="relative"> | |
| <div class="flex overflow-x-auto scrollbar-hide space-x-4 pb-4"> | |
| <!-- Song Cards --> | |
| <div class="flex-shrink-0 w-40 md:w-48 lg:w-56 card-hover group"> | |
| <div class="relative mb-4"> | |
| <img src="https://i.scdn.co/image/ab67616d00001e029d22b70fe52340efb60ab681" alt="Album cover" class="rounded-md shadow-lg w-full aspect-square object-cover"> | |
| <button class="absolute bottom-2 right-2 bg-green-500 rounded-full p-3 shadow-lg play-button transform translate-y-2 group-hover:translate-y-0"> | |
| <svg class="w-5 h-5 text-black" fill="currentColor" viewBox="0 0 20 20"> | |
| <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z" clip-rule="evenodd"></path> | |
| </svg> | |
| </button> | |
| </div> | |
| <h3 class="font-bold text-white truncate">What Did I Miss?</h3> | |
| <p class="text-gray-400 text-sm truncate">Drake</p> | |
| </div> | |
| <!-- Repeat similar cards for other trending songs --> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Popular Artists --> | |
| <section> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold">Popular artists</h2> | |
| <a href="#" class="text-sm text-gray-400 hover:underline">Show all</a> | |
| </div> | |
| <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 gap-6"> | |
| <!-- Artist Cards --> | |
| <div class="card-hover group"> | |
| <div class="relative mb-4"> | |
| <img src="https://i.scdn.co/image/ab6761610000517439ba6dcd4355c03de0b50918" alt="Artist" class="rounded-full shadow-lg w-full aspect-square object-cover"> | |
| <button class="absolute bottom-2 right-2 bg-green-500 rounded-full p-3 shadow-lg play-button transform translate-y-2 group-hover:translate-y-0"> | |
| <svg class="w-5 h-5 text-black" fill="currentColor" viewBox="0 0 20 20"> | |
| <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z" clip-rule="evenodd"></path> | |
| </svg> | |
| </button> | |
| </div> | |
| <h3 class="font-bold text-white text-center">Kendrick Lamar</h3> | |
| <p class="text-gray-400 text-sm text-center">Artist</p> | |
| </div> | |
| <!-- Repeat similar cards for other artists --> | |
| </div> | |
| </section> | |
| <!-- Popular Albums --> | |
| <section> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold">Popular albums and singles</h2> | |
| <a href="#" class="text-sm text-gray-400 hover:underline">Show all</a> | |
| </div> | |
| <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-6"> | |
| <!-- Album Cards --> | |
| <div class="card-hover group"> | |
| <div class="relative mb-4"> | |
| <img src="https://i.scdn.co/image/ab67616d00001e0235ea219ce47813b5e2dc3745" alt="Album cover" class="rounded-md shadow-lg w-full aspect-square object-cover"> | |
| <button class="absolute bottom-2 right-2 bg-green-500 rounded-full p-3 shadow-lg play-button transform translate-y-2 group-hover:translate-y-0"> | |
| <svg class="w-5 h-5 text-black" fill="currentColor" viewBox="0 0 20 20"> | |
| <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z" clip-rule="evenodd"></path> | |
| </svg> | |
| </button> | |
| </div> | |
| <h3 class="font-bold text-white truncate">I'm The Problem</h3> | |
| <p class="text-gray-400 text-sm truncate">Morgan Wallen</p> | |
| </div> | |
| <!-- Repeat similar cards for other albums --> | |
| </div> | |
| </section> | |
| <!-- Popular Radio --> | |
| <section> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold">Popular radio</h2> | |
| <a href="#" class="text-sm text-gray-400 hover:underline">Show all</a> | |
| </div> | |
| <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6"> | |
| <!-- Radio Cards --> | |
| <div class="bg-gray-800 bg-opacity-40 rounded-md p-4 flex items-center space-x-4 hover:bg-opacity-60 transition-colors cursor-pointer"> | |
| <img src="https://pickasso.spotifycdn.com/image/ab67c0de0000deef/dt/v1/img/radio/artist/4oUHIQIBe0LHzYfvXNW4QM/en" alt="Radio" class="w-16 h-16 rounded-md object-cover"> | |
| <div> | |
| <h3 class="font-bold text-white">Morgan Wallen Radio</h3> | |
| <p class="text-gray-400 text-sm">With Luke Combs, Bailey Zimmerman, Jordan Davis and more</p> | |
| </div> | |
| </div> | |
| <!-- Repeat similar cards for other radio stations --> | |
| </div> | |
| </section> | |
| </div> | |
| </div> | |
| <!-- Player Bar --> | |
| <div class="fixed bottom-0 left-0 right-0 bg-gray-900 border-t border-gray-800 p-4 flex items-center justify-between"> | |
| <div class="flex items-center space-x-4 w-1/4"> | |
| <img src="https://i.scdn.co/image/ab67616d00001e029d22b70fe52340efb60ab681" alt="Now playing" class="w-14 h-14 rounded-md"> | |
| <div> | |
| <h4 class="text-sm font-medium text-white">What Did I Miss?</h4> | |
| <p class="text-xs text-gray-400">Drake</p> | |
| </div> | |
| <button class="text-gray-400 hover:text-white"> | |
| <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> | |
| <path fill-rule="evenodd" d="M3.172 5.172a4 4 0 015.656 0L10 6.343l1.172-1.171a4 4 0 115.656 5.656L10 17.657l-6.828-6.829a4 4 0 010-5.656z" clip-rule="evenodd"></path> | |
| </svg> | |
| </button> | |
| </div> | |
| <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"> | |
| <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> | |
| <path d="M8.445 14.832A1 1 0 0010 14v-2.798l5.445 3.63A1 1 0 0017 14V6a1 1 0 00-1.555-.832L10 8.798V6a1 1 0 00-1.555-.832l-6 4a1 1 0 000 1.664l6 4z"></path> | |
| </svg> | |
| </button> | |
| <button class="bg-white rounded-full p-2 hover:scale-105 transition-transform"> | |
| <svg class="w-6 h-6 text-black" fill="currentColor" viewBox="0 0 20 20"> | |
| <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z" clip-rule="evenodd"></path> | |
| </svg> | |
| </button> | |
| <button class="text-gray-400 hover:text-white"> | |
| <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> | |
| <path d="M4.555 5.168A1 1 0 003 6v8a1 1 0 001.555.832L10 11.202V14a1 1 0 001.555.832l6-4a1 1 0 000-1.664l-6-4A1 1 0 0010 6v2.798L4.555 5.168z"></path> | |
| </svg> | |
| </button> | |
| </div> | |
| <div class="w-full flex items-center space-x-2"> | |
| <span class="text-xs text-gray-400">0:45</span> | |
| <div class="h-1 w-full bg-gray-600 rounded-full overflow-hidden"> | |
| <div class="h-full bg-gray-400" style="width: 30%"></div> | |
| </div> | |
| <span class="text-xs text-gray-400">3:22</span> | |
| </div> | |
| </div> | |
| <div class="flex items-center justify-end space-x-3 w-1/4"> | |
| <button class="text-gray-400 hover:text-white"> | |
| <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> | |
| <path d="M15 8a3 3 0 10-2.977-2.63l-4.94 2.47a3 3 0 100 4.319l4.94 2.47a3 3 0 10.895-1.789l-4.94-2.47a3.027 3.027 0 000-.74l4.94-2.47C13.456 7.68 14.19 8 15 8z"></path> | |
| </svg> | |
| </button> | |
| <button class="text-gray-400 hover:text-white"> | |
| <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> | |
| <path fill-rule="evenodd" d="M4 4a2 2 0 00-2 2v4a2 2 0 002 2V6h10a2 2 0 00-2-2H4zm2 6a2 2 0 012-2h8a2 2 0 012 2v4a2 2 0 01-2 2H8a2 2 0 01-2-2v-4zm6 4a2 2 0 100-4 2 2 0 000 4z" clip-rule="evenodd"></path> | |
| </svg> | |
| </button> | |
| <button class="text-gray-400 hover:text-white"> | |
| <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"> | |
| <path fill-rule="evenodd" d="M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z" clip-rule="evenodd"></path> | |
| </svg> | |
| </button> | |
| <div class="w-24"> | |
| <div class="h-1 w-full bg-gray-600 rounded-full overflow-hidden"> | |
| <div class="h-full bg-gray-400" style="width: 70%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Simple JavaScript for demonstration | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Mobile menu toggle would go here | |
| console.log('Spotify player loaded'); | |
| // Play button hover effect | |
| const cards = document.querySelectorAll('.card-hover'); | |
| cards.forEach(card => { | |
| card.addEventListener('mouseenter', function() { | |
| this.querySelector('.play-button').classList.add('opacity-100', 'translate-y-0'); | |
| }); | |
| card.addEventListener('mouseleave', function() { | |
| this.querySelector('.play-button').classList.remove('opacity-100', 'translate-y-0'); | |
| }); | |
| }); | |
| }); | |
| </script> | |
| <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=boxtop1dc/spotify-clone" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |