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

视频播放器组件

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

预览

HTML 代码

<div class="flex flex-col items-center justify-center min-h-screen bg-gray-900 dark:bg-gray-800">
    <div class="relative w-full max-w-lg p-5 bg-white bg-opacity-20 backdrop-blur-lg rounded-xl shadow-lg border border-gray-200 dark:bg-gray-900 dark:bg-opacity-30 dark:border-gray-700">
        <video class="w-full rounded-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 class="mt-4">
            <h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Video Title</h2>
            <p class="text-gray-600 dark:text-gray-400">Brief description of the video content that gives users an idea of what to expect.</p>
        </div>
        <div class="flex items-center mt-3">
            <img class="w-10 h-10 rounded-full" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar">
            <div class="ml-2">
                <p class="text-gray-800 dark:text-gray-200 font-medium">User Name</p>
                <p class="text-sm text-gray-600 dark:text-gray-400">Published on: <time datetime="2023-10-01">October 1, 2023</time></p>
            </div>
        </div>
    </div>
</div>

相关组件

视频播放器组件

一个采用玻璃拟态风格设计的响应式视频播放器组件,具有类似磨砂玻璃的半透明元素和模糊效果,支持深色主题,并带有占位图像。

打开

视频播放器组件

一个简单的视频播放器组件,采用Material Design原则设计,具有响应式布局和深色主题支持。

打开

视频播放器组件

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

打开