组件 音频播放器 音频播放器组件

音频播放器组件

一个使用 Tailwind CSS 设计的响应式音频播放器组件,采用深色模式。它支持深色主题,提供清晰的音频播放界面。

预览

HTML 代码

<div class="bg-gray-800 text-white p-6 rounded-lg shadow-md max-w-lg mx-auto">
    <div class="flex items-center mb-4">
        <img src="https://picsum.photos/80/80" alt="Album Art" class="rounded-full border-2 border-gray-600">
        <div class="ml-4">
            <h2 class="text-lg font-semibold">Song Title</h2>
            <p class="text-gray-400">Artist Name</p>
        </div>
    </div>
    <audio controls class="w-full mb-4">
        <source src="path_to_your_audio_file.mp3" type="audio/mpeg">
        Your browser does not support the audio element.
    </audio>
    <div class="flex items-center justify-between">
        <button class="text-gray-300 hover:text-white">
            <svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20">
                <path d="M10 3l7 7-7 7-7-7 7-7z" />
            </svg>
        </button>
        <div class="flex items-center">
            <button class="text-gray-300 hover:text-white mx-2">
                <svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20">
                    <path d="M10 3l7 7-7 7-7-7 7-7z" />
                </svg>
            </button>
            <input type="range" class="w-32 mx-2 accent-gray-600" value="50" />
            <button class="text-gray-300 hover:text-white mx-2">
                <svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20">
                    <path d="M10 3l7 7-7 7-7-7 7-7z" />
                </svg>
            </button>
        </div>
        <button class="text-gray-300 hover:text-white">
            <svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20">
                <path d="M10 3l7 7-7 7-7-7 7-7z" />
            </svg>
        </button>
    </div>
</div>

相关组件

拟物化音频播放器

一个音频播放器组件,设计有 Skeuomorphic 样式、柔和的配色方案和复杂的界面。它支持暗模式并且响应迅速,适用于电子商务网站。

打开

新拟态音频播放器

一个 Neumorphism 风格的音频播放器组件,具有播放、暂停、跳过和音量控制,专为商业网站设计。包含进度条、歌曲标题、艺术家和专辑封面。包括使用 Tailwind CSS 的响应式设计和深色模式支持。

打开

音频播放器组件

一个为仪表板设计的复杂音频播放器组件,具有响应式设计、深色主题支持和吸引人的微交互。

打开