媒体组件

一个响应式媒体组件,灵感来自复古/经典设计风格,具有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>

相关组件

媒体组件

一个采用拟物化风格的媒体显示组件,具有响应式设计和支持暗黑主题的功能。

打开

复古媒体组件

一个具有复古风格的响应式媒体组件,支持暗模式。

打开

媒体组件 Component Component

一个复杂的响应式媒体组件,用于博客内容消费,在深色模式下使用单色配色方案设置样式。它包括图像、标题、描述和作者头像。

打开