组件 媒体组件 媒体组件 组件 39

媒体组件 组件 39

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

预览

HTML 代码

<div class="bg-gray-900 text-white p-6 rounded-lg shadow-md max-w-md mx-auto mt-10">
    <div class="flex items-center mb-4">
        <img class="w-12 h-12 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt="User Avatar">
        <div class="ml-4">
            <h2 class="text-xl font-bold">John Doe</h2>
            <p class="text-gray-400">Posted 2 hours ago</p>
        </div>
    </div>
    <img class="w-full rounded-lg mb-4" src="https://picsum.photos/600/400" alt="Media Content">
    <h3 class="text-lg font-semibold mb-2">Amazing Scenery</h3>
    <p class="text-gray-300">This is a beautiful representation of nature that showcases the stunning landscapes we often take for granted.</p>
    <div class="mt-4 flex justify-between">
        <button class="bg-red-600 text-white px-4 py-2 rounded hover:bg-red-700 focus:outline-none focus:ring focus:ring-red-300">Like</button>
        <button class="bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700 focus:outline-none focus:ring focus:ring-blue-300">Comment</button>
    </div>
</div>

相关组件

Monospace_Developer_Media_Component

一个复杂的、面向教育的媒体组件,具有等宽/开发人员设计风格和海洋/蓝色配色方案,专为学习平台而设计。包括媒体播放、代码片段和结构化内容部分。

打开

玻璃形态媒体组件

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

打开

艺术摄影媒体组件

用于摄影作品集的复杂响应式媒体组件,具有水彩/艺术设计风格和复古/复古调色板。包括多个交互元素和完整的深色模式支持。

打开