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

视频播放器组件

一个为深色模式设计的响应式视频播放器组件,采用相似色彩方案以便于内容消费。

预览

HTML 代码

<div class="bg-gray-900 text-gray-300 p-4 rounded-lg shadow-lg max-w-lg mx-auto">
    <div class="relative aspect-w-16 aspect-h-9">
        <video class="rounded-lg" controls>
            <source src="https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4" type="video/mp4">
            Your browser does not support the video tag.
        </video>
    </div>
    <div class="mt-4">
        <h2 class="text-lg font-semibold">Video Title</h2>
        <p class="text-sm">This is a short description of the video content. It provides context and encourages the viewer to watch the video.</p>
    </div>
    <div class="flex items-center mt-4">
        <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-10 h-10 rounded-full mr-2">
        <div>
            <h3 class="text-md font-semibold">Username</h3>
            <p class="text-xs text-gray-500">Posted on <time datetime="2023-10-01">October 1, 2023</time></p>
        </div>
    </div>
</div>

相关组件

视频播放器组件

一个响应式视频播放器组件,采用粗野主义风格,支持暗模式。它具有高对比度和大胆的布局,使用Tailwind CSS进行样式设计,并包括占位符图像和头像。

打开

视频播放器组件

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

打开

3D 单色视频播放器

具有 3D 设计元素和单色配色方案的响应式视频播放器组件,适用于仪表板。

打开