Audio Player Component
A simple audio player component designed with a skeuomorphic style, using a grayscale color scheme and supporting dark mode.
HTML Code
<div class="bg-gray-900 text-white p-4 rounded-lg shadow-lg max-w-xs mx-auto dark:bg-gray-800">
<div class="flex items-center justify-between mb-2">
<img src="https://picsum.photos/80/80" alt="Album Cover" class="rounded-lg shadow-md"/>
<div class="flex flex-col">
<h4 class="text-xl font-semibold">Track Title</h4>
<p class="text-gray-400">Artist Name</p>
</div>
</div>
<audio controls class="w-full">
<source src="audio-file.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<div class="flex justify-between mt-2">
<button class="bg-gray-700 hover:bg-gray-600 text-white rounded-full p-2">
⏮
</button>
<button class="bg-gray-700 hover:bg-gray-600 text-white rounded-full p-2">
Play
</button>
<button class="bg-gray-700 hover:bg-gray-600 text-white rounded-full p-2">
⏭
</button>
</div>
</div>
Related Components
Neumorphism Audio Player
A Neumorphism-styled audio player component with play, pause, skip, and volume controls, designed for business websites. Features a progress bar, song title, artist, and album art. Includes responsive design and dark mode support using Tailwind CSS.
Retro Audio Player
Audio Player Component with Retro/Vintage design, Pastel color scheme, Complex complexity, Social Media purpose, Responsive, Dark theme support, HTML only with Tailwind CSS