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

视频播放器组件

一个野兽派风格的视频播放器组件,具有高对比度和不寻常的布局,采用响应式设计并支持使用Tailwind CSS的深色主题。

预览

HTML 代码

<div class="flex flex-col items-center justify-center bg-gray-100 dark:bg-gray-900 p-4 rounded-lg">
    <div class="relative w-full max-w-2xl rounded-lg overflow-hidden shadow-lg">
        <video class="w-full h-auto" controls>
            <source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
            Your browser does not support the video tag.
        </video>
        <div class="absolute inset-0 bg-black opacity-50"></div>
    </div>
    <div class="mt-4 text-center text-lg font-bold text-gray-800 dark:text-white">Bold Video Title</div>
    <div class="mt-2 text-center text-gray-600 dark:text-gray-300">An engaging video description goes here.</div>
    <div class="mt-4 flex items-center justify-center space-x-4">
        <img src="https://picsum.photos/50/50" alt="User Avatar" class="rounded-full border-2 border-gray-800 dark:border-white">
        <p class="text-sm font-semibold text-gray-800 dark:text-white">User Name</p>
    </div>
    <div class="mt-4 flex justify-between w-full max-w-md">
        <button class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">Like</button>
        <button class="bg-red-600 hover:bg-red-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">Dislike</button>
    </div>
</div>

相关组件

视频播放器组件

一个响应式视频播放器组件,专为博客或内容消费而设计,具有微交互和柔和的色彩方案。它包括播放/暂停功能和音量控制。设计还包括黑暗模式支持。

打开

复古视频播放器组件

一个互动视频播放器组件,以复古/复古美学设计,具有灰度色彩方案和多个互动元素,适合电子商务用途,支持深色模式。

打开

视频播放器组件 3

一个采用 Neumorphism 风格设计的响应式视频播放器组件,支持深色主题,使用 Tailwind CSS。

打开