媒体组件

一个响应式媒体组件,灵感来自复古/经典设计风格,具有80年代/90年代的怀旧美感。它支持深色主题,使用Tailwind CSS,并包含占位符图像和头像。

预览

HTML 代码

<div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 max-w-sm mx-auto">
    <img class="rounded-lg w-full h-48 object-cover mb-4" src="https://picsum.photos/seed/media/400/200" alt="Media Thumbnail">
    <h2 class="text-2xl font-bold mb-2 text-gray-800 dark:text-gray-200">Retro Media Title</h2>
    <p class="text-gray-600 dark:text-gray-400 mb-4">This is a brief description of the media component, capturing the essence of the nostalgia from the 80s and 90s.</p>
    <div class="flex items-center">
        <img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar">
        <div>
            <p class="text-gray-800 dark:text-gray-200 font-semibold">User Name</p>
            <p class="text-gray-500 dark:text-gray-400 text-sm">Posted on March 1, 2023</p>
        </div>
    </div>
</div>

相关组件

媒体组件

一个响应式媒体组件,带有诱人的动画微交互,使用Tailwind CSS设计。支持黑暗主题,并包含占位符图像和头像。

打开

玻璃形态媒体组件

使用Tailwind CSS的玻璃化媒体组件,具有响应效果和暗主题支持。

打开

媒体组件 Component Component

用于文档/Wiki 站点的复杂深色模式 UI 媒体组件,具有渐变彩虹配色方案。它包括各种媒体类型,如视频、音频和图像,带有详细信息和交互式元素,所有这些都是响应式的并使用语义 HTML。

打开