组件 视频播放器 视频播放器组件

视频播放器组件

一个响应式视频播放器组件,采用拟物化风格,使用 Tailwind CSS。它支持深色模式,具有微妙的阴影效果,使 UI 看起来柔和。

预览

HTML 代码

<div class="flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900 p-4">
    <div class="bg-white dark:bg-gray-800 rounded-xl shadow-md p-6 max-w-lg w-full">
        <div class="flex justify-center mb-4">
            <video class="rounded-lg shadow-lg" controls>
                <source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
                Your browser does not support the video tag.
            </video>
        </div>
        <div class="flex items-center">
            <img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/men/10.jpg" alt="Avatar">
            <div class="text-sm">
                <p class="text-gray-900 dark:text-white font-medium">John Doe</p>
                <p class="text-gray-500 dark:text-gray-300">Uploaded 2 days ago</p>
            </div>
        </div>
        <div class="mt-4">
            <p class="text-gray-800 dark:text-gray-300">A brief description of the video content goes here. It can detail key points or the overall theme of the video.</p>
        </div>
    </div>
</div>

相关组件

视频播放器组件

一个为社交媒体界面设计的极简视频播放器组件,具有响应式布局和深色主题支持。

打开

视频播放器组件

适用于电子商务的极简/扁平化设计视频播放器组件,响应式设计,支持暗主题。

打开

视频播放器

一个采用材料设计风格的视频播放器组件,具有响应式效果和黑暗主题支持,使用 Tailwind CSS。

打开