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

视频播放器组件

一个使用Tailwind CSS样式设计的响应式视频播放器组件,专注于微交互和深色主题支持。

预览

HTML 代码

<div class="bg-white dark:bg-gray-800 rounded-lg overflow-hidden shadow-lg transition-transform hover:scale-105 duration-200" role="video" aria-label="Video Player">
    <div class="relative">
        <img src="https://picsum.photos/800/450?random=1" alt="Video thumbnail" class="w-full h-48 object-cover">
        <button class="absolute inset-0 flex items-center justify-center bg-black bg-opacity-50 text-white text-3xl rounded-full opacity-0 transition-opacity duration-200 hover:opacity-100">
            ▶
        </button>
    </div>
    <div class="p-4">
        <div class="flex items-center mb-2">
            <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" class="w-10 h-10 rounded-full mr-2">
            <h2 class="text-lg font-semibold dark:text-white">Video Title</h2>
        </div>
        <p class="text-sm text-gray-700 dark:text-gray-300">Description of the video goes here. It should be engaging and concise.</p>
    </div>
</div>

相关组件

视频播放器

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

打开

Art Deco 医疗视频播放器

一个简单、响应式的视频播放器组件,具有装饰艺术风格的灰度美感,专为医疗保健/医疗应用而设计,包括暗模式支持。

打开

视频播放器组件

一个采用玻璃形态设计的视频播放器组件,具有类似磨砂玻璃的效果和互补色。它是互动的,并且响应式,适合带有深色主题支持的博客内容。

打开