交互组件

一个设计有暗模式和单色配色方案的社交媒体互动组件。

预览

HTML 代码

<div class="bg-gray-900 text-gray-100 min-h-screen p-6">
    <div class="max-w-md mx-auto bg-gray-800 rounded-lg shadow-lg">
        <div class="p-4 border-b border-gray-700">
            <h2 class="text-xl font-bold">Interactive Components</h2>
            <p class="text-gray-400">Engage with your network in style.</p>
        </div>
        <div class="flex items-center p-4">
            <img class="w-12 h-12 rounded-full" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" />
            <div class="ml-4">
                <h3 class="font-semibold">John Doe</h3>
                <p class="text-gray-500 text-sm">@johndoe</p>
            </div>
        </div>
        <div class="p-4">
            <img class="w-full h-48 object-cover rounded-lg" src="https://picsum.photos/500/300" alt="Interactive Image" />
            <p class="mt-2 text-gray-300">This is an example of an interactive post with an image. Feel free to comment and like!</p>
        </div>
        <div class="flex justify-between p-4 border-t border-gray-700">
            <button class="bg-gray-700 hover:bg-gray-600 rounded-lg px-4 py-2 text-white transition duration-150 ease-in-out">Like</button>
            <button class="bg-gray-700 hover:bg-gray-600 rounded-lg px-4 py-2 text-white transition duration-150 ease-in-out">Comment</button>
        </div>
    </div>
</div>

相关组件

交互式组件组件

一个复杂的交互式 Neumorphism 风格组件,具有鲜艳的配色方案,专为食品/餐厅网站设计。它包括交互式按钮、滑块和选择元素,具有深色模式支持和完全响应能力。

打开

粗野主义作品集互动

一个互动组件,采用野兽派设计,鲜艳的颜色,复杂的布局,适用于作品集,支持深色主题的响应式设计。

打开

互动组件

具有极简/扁平设计的互动组件,采用大地色调的色彩方案,复杂程度适合仪表板目的,使用Tailwind CSS实现。响应式设计,支持深色主题。使用picsum.photos提供图片,随机用户.me提供头像。

打开