website / index.html
MightyCrane's picture
play - Initial Deployment
2b62ce5 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Harmony Player - Modern Music Experience</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>
/* Custom CSS for animations and effects */
.vinyl-record {
animation: spin 20s linear infinite;
animation-play-state: paused;
}
.playing .vinyl-record {
animation-play-state: running;
}
@keyframes spin {
100% { transform: rotate(360deg); }
}
.progress-bar {
height: 4px;
background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}
.song-card:hover .play-overlay {
opacity: 1;
}
.waveform {
height: 40px;
background: linear-gradient(90deg,
rgba(59, 130, 246, 0.2) 0%,
rgba(139, 92, 246, 0.2) 50%,
rgba(236, 72, 153, 0.2) 100%);
mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 20" xmlns="http://www.w3.org/2000/svg"><path d="M0,10 Q5,15 10,10 T20,10 T30,10 T40,10 T50,10 T60,10 T70,10 T80,10 T90,10 T100,10" fill="none" stroke="black" stroke-width="2"/></svg>');
mask-size: 100% 100%;
}
.theme-switch {
transition: all 0.3s ease;
}
</style>
</head>
<body class="bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-gray-100 transition-colors duration-300">
<div class="min-h-screen flex flex-col">
<!-- Header -->
<header class="bg-white dark:bg-gray-800 shadow-sm py-4 px-6 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-music text-purple-600 text-2xl"></i>
<h1 class="text-xl font-bold">Harmony Player</h1>
</div>
<div class="flex items-center space-x-4">
<button id="theme-toggle" class="theme-switch p-2 rounded-full bg-gray-200 dark:bg-gray-700">
<i class="fas fa-moon dark:hidden"></i>
<i class="fas fa-sun hidden dark:block"></i>
</button>
<button class="p-2 rounded-full bg-gray-200 dark:bg-gray-700">
<i class="fas fa-search"></i>
</button>
<div class="w-8 h-8 rounded-full bg-purple-600 flex items-center justify-center text-white">
<span>U</span>
</div>
</div>
</header>
<!-- Main Content -->
<main class="flex-1 flex flex-col md:flex-row p-4 md:p-6 gap-6">
<!-- Player Section -->
<section class="md:w-2/3 bg-white dark:bg-gray-800 rounded-xl shadow-md p-6 flex flex-col">
<div class="flex flex-col md:flex-row items-center gap-6 mb-8">
<!-- Album Art -->
<div class="relative w-64 h-64 group">
<img src="https://source.unsplash.com/random/600x600/?music,album" alt="Album Cover" class="w-full h-full rounded-xl object-cover shadow-lg">
<div class="absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-300">
<div class="vinyl-record absolute w-48 h-48 rounded-full bg-gradient-to-br from-gray-800 to-gray-900 border-8 border-gray-700 flex items-center justify-center">
<div class="w-8 h-8 rounded-full bg-white"></div>
<div class="absolute w-full h-full rounded-full border border-gray-600 opacity-20"></div>
</div>
</div>
</div>
<!-- Song Info -->
<div class="flex-1">
<h2 class="text-2xl font-bold mb-2">Current Playing</h2>
<h3 class="text-xl font-semibold text-purple-600">Midnight Memories</h3>
<p class="text-gray-600 dark:text-gray-400 mb-4">The Dreamers</p>
<div class="waveform w-full mb-4"></div>
<div class="flex items-center justify-between mb-4">
<span class="text-sm text-gray-500">2:15</span>
<span class="text-sm text-gray-500">3:42</span>
</div>
<div class="progress-bar w-full rounded-full mb-6"></div>
<!-- Controls -->
<div class="flex items-center justify-between">
<button class="p-3 rounded-full bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600">
<i class="fas fa-backward"></i>
</button>
<button id="play-btn" class="p-4 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
<i class="fas fa-play" id="play-icon"></i>
</button>
<button class="p-3 rounded-full bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600">
<i class="fas fa-forward"></i>
</button>
<button class="p-3 rounded-full bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600">
<i class="fas fa-random"></i>
</button>
<button class="p-3 rounded-full bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600">
<i class="fas fa-redo"></i>
</button>
</div>
</div>
</div>
<!-- Queue -->
<div class="mt-auto">
<h3 class="font-semibold mb-3">Up Next</h3>
<div class="space-y-2">
<div class="flex items-center p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer">
<img src="https://source.unsplash.com/random/80x80/?music" alt="Song" class="w-10 h-10 rounded-md mr-3">
<div class="flex-1">
<p class="font-medium">Summer Vibes</p>
<p class="text-sm text-gray-600 dark:text-gray-400">Chill Wave</p>
</div>
<span class="text-sm text-gray-500">3:22</span>
</div>
<div class="flex items-center p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer">
<img src="https://source.unsplash.com/random/80x80/?concert" alt="Song" class="w-10 h-10 rounded-md mr-3">
<div class="flex-1">
<p class="font-medium">Electric Dreams</p>
<p class="text-sm text-gray-600 dark:text-gray-400">Synth Pop</p>
</div>
<span class="text-sm text-gray-500">4:15</span>
</div>
</div>
</div>
</section>
<!-- Playlist Section -->
<section class="md:w-1/3 bg-white dark:bg-gray-800 rounded-xl shadow-md p-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-bold">Your Playlists</h2>
<button class="p-2 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
<i class="fas fa-plus"></i>
</button>
</div>
<div class="space-y-4">
<!-- Featured Playlist -->
<div class="relative rounded-xl overflow-hidden group">
<img src="https://source.unsplash.com/random/600x300/?party" alt="Playlist" class="w-full h-32 object-cover">
<div class="absolute inset-0 bg-gradient-to-t from-black to-transparent flex items-end p-4">
<div>
<h3 class="font-bold text-white">Weekend Vibes</h3>
<p class="text-sm text-gray-300">24 songs</p>
</div>
</div>
<div class="play-overlay absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 bg-black bg-opacity-40 transition-opacity duration-300">
<button class="p-3 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
<i class="fas fa-play"></i>
</button>
</div>
</div>
<!-- Playlist Cards -->
<div class="grid grid-cols-2 gap-3">
<div class="song-card relative rounded-lg overflow-hidden group h-24">
<img src="https://source.unsplash.com/random/300x300/?jazz" alt="Playlist" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-gradient-to-t from-black to-transparent flex items-end p-2">
<h3 class="text-sm font-medium text-white">Jazz Lounge</h3>
</div>
<div class="play-overlay absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 bg-black bg-opacity-30 transition-opacity duration-300">
<button class="p-2 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
<i class="fas fa-play text-xs"></i>
</button>
</div>
</div>
<div class="song-card relative rounded-lg overflow-hidden group h-24">
<img src="https://source.unsplash.com/random/300x300/?rock" alt="Playlist" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-gradient-to-t from-black to-transparent flex items-end p-2">
<h3 class="text-sm font-medium text-white">Rock Classics</h3>
</div>
<div class="play-overlay absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 bg-black bg-opacity-30 transition-opacity duration-300">
<button class="p-2 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
<i class="fas fa-play text-xs"></i>
</button>
</div>
</div>
<div class="song-card relative rounded-lg overflow-hidden group h-24">
<img src="https://source.unsplash.com/random/300x300/?hiphop" alt="Playlist" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-gradient-to-t from-black to-transparent flex items-end p-2">
<h3 class="text-sm font-medium text-white">Hip Hop Hits</h3>
</div>
<div class="play-overlay absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 bg-black bg-opacity-30 transition-opacity duration-300">
<button class="p-2 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
<i class="fas fa-play text-xs"></i>
</button>
</div>
</div>
<div class="song-card relative rounded-lg overflow-hidden group h-24">
<img src="https://source.unsplash.com/random/300x300/?electronic" alt="Playlist" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-gradient-to-t from-black to-transparent flex items-end p-2">
<h3 class="text-sm font-medium text-white">EDM Energy</h3>
</div>
<div class="play-overlay absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 bg-black bg-opacity-30 transition-opacity duration-300">
<button class="p-2 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
<i class="fas fa-play text-xs"></i>
</button>
</div>
</div>
</div>
<!-- Recently Played -->
<div class="mt-6">
<h3 class="font-semibold mb-3">Recently Played</h3>
<div class="space-y-3">
<div class="flex items-center p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer">
<img src="https://source.unsplash.com/random/80x80/?singer" alt="Song" class="w-10 h-10 rounded-md mr-3">
<div>
<p class="font-medium">Lost in the Echo</p>
<p class="text-sm text-gray-600 dark:text-gray-400">Echo Chamber</p>
</div>
</div>
<div class="flex items-center p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer">
<img src="https://source.unsplash.com/random/80x80/?band" alt="Song" class="w-10 h-10 rounded-md mr-3">
<div>
<p class="font-medium">Neon Lights</p>
<p class="text-sm text-gray-600 dark:text-gray-400">The Midnight</p>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- Mini Player (Mobile) -->
<div class="md:hidden fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-800 shadow-lg p-3 flex items-center justify-between border-t border-gray-200 dark:border-gray-700">
<div class="flex items-center space-x-3">
<img src="https://source.unsplash.com/random/80x80/?music" alt="Song" class="w-12 h-12 rounded-md">
<div>
<p class="font-medium text-sm">Midnight Memories</p>
<p class="text-xs text-gray-600 dark:text-gray-400">The Dreamers</p>
</div>
</div>
<button class="p-2 rounded-full bg-purple-600 hover:bg-purple-700 text-white">
<i class="fas fa-play"></i>
</button>
</div>
</div>
<script>
// Toggle play/pause
const playBtn = document.getElementById('play-btn');
const playIcon = document.getElementById('play-icon');
const albumArt = document.querySelector('.group');
playBtn.addEventListener('click', function() {
if (playIcon.classList.contains('fa-play')) {
playIcon.classList.remove('fa-play');
playIcon.classList.add('fa-pause');
albumArt.classList.add('playing');
} else {
playIcon.classList.remove('fa-pause');
playIcon.classList.add('fa-play');
albumArt.classList.remove('playing');
}
});
// Theme toggle
const themeToggle = document.getElementById('theme-toggle');
const html = document.documentElement;
themeToggle.addEventListener('click', function() {
html.classList.toggle('dark');
// Save preference to localStorage
if (html.classList.contains('dark')) {
localStorage.setItem('theme', 'dark');
} else {
localStorage.setItem('theme', 'light');
}
});
// Check for saved theme preference
if (localStorage.getItem('theme') === 'dark' ||
(!localStorage.getItem('theme') && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
html.classList.add('dark');
} else {
html.classList.remove('dark');
}
// Simulate progress bar animation
setInterval(() => {
const progressBar = document.querySelector('.progress-bar');
if (playIcon.classList.contains('fa-pause')) {
const currentWidth = parseFloat(progressBar.style.width) || 0;
const newWidth = (currentWidth + 0.5) % 100;
progressBar.style.width = `${newWidth}%`;
}
}, 1000);
</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=MightyCrane/website" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>