媒体组件

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

预览

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>

相关组件

媒体组件

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

打开

媒体组件组件

一个以粗暴主义风格设计的媒体组件,展示了大胆的布局、高对比度、响应式效果和暗黑主题支持,使用 Tailwind CSS.

打开

媒体组件 Component Component

响应式媒体组件组件,具有粗野主义设计、鲜艳的色彩和复杂的仪表板布局,具有深色主题支持,无 JavaScript。将 picsum.photos 用于图像,将 randomuser.me 用于头像。

打开