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
用于文档/Wiki 站点的复杂深色模式 UI 媒体组件,具有渐变彩虹配色方案。它包括各种媒体类型,如视频、音频和图像,带有详细信息和交互式元素,所有这些都是响应式的并使用语义 HTML。
Monospace_Developer_Media_Component
一个复杂的、面向教育的媒体组件,具有等宽/开发人员设计风格和海洋/蓝色配色方案,专为学习平台而设计。包括媒体播放、代码片段和结构化内容部分。