媒体组件

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

预览

HTML 代码

<div class="flex flex-col items-center justify-center p-6 bg-white rounded-xl shadow-lg dark:bg-gray-800 dark:shadow-gray-900 hover:shadow-xl transition-shadow duration-300 ease-in-out">
    <div class="mb-4">
        <img src="https://picsum.photos/300/200" alt="Media" class="w-full h-auto rounded-lg shadow-md" />
    </div>
    <div class="flex items-center mb-2">
        <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" class="w-10 h-10 rounded-full shadow-lg mr-2">
        <h2 class="text-lg font-semibold dark:text-white">User Name</h2>
    </div>
    <p class="text-gray-700 dark:text-gray-300 text-center">
        This is a description of the media content that is displayed above. It's designed with a soft UI style to enhance the visual appeal.
    </p>
</div>

相关组件

媒体组件 Component Component

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

打开

Material Design 博客卡片

一个响应式博客文章卡片组件,其中包含图像、标题、摘录和作者信息,采用 Material Design 样式设计,具有温暖的日落色调。包括深色模式支持。

打开

媒体组件 组件 39

一个设计有暗模式UI的媒体组件,采用响应式效果和支持暗主题的Tailwind CSS。

打开