组件 媒体组件 媒体组件 组件 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>

相关组件

拟物化媒体组件

受拟物化启发的媒体组件,使用单色配色方案和复杂复杂度级别,为博客/内容目的量身定制。功能包括响应式设计和深色主题支持,无需 JavaScript。

打开

简单的仿生学电子商务媒体组件

Neumorphism风格的媒体组件,采用大地色调,简单复杂度,适用于电子商务网站,具有响应式设计和深色主题支持。使用picsum.photos作为图片源。

打开

媒体组件 Component Component

用于电子商务的媒体组件,具有微交互、灰度配色方案、中等复杂性、响应式设计和深色主题支持。

打开