组件 社交组件 社交组件组件

社交组件组件

一个复古/复古风格的社交媒体组件,具有丰富的界面和多个互动元素,采用互补色设计并支持深色模式。

预览

HTML 代码

<div class="bg-gray-100 dark:bg-gray-800 p-6 rounded-lg shadow-lg max-w-md mx-auto">
    <h1 class="text-3xl font-bold text-center text-blue-800 dark:text-blue-300 mb-4">Retro Social Media</h1>
    <div class="bg-white dark:bg-gray-700 rounded-lg p-4">
        <div class="flex mb-4">
            <img class="w-16 h-16 rounded-full mr-4" src="https://randomuser.me/api/portraits/men/10.jpg" alt="Avatar">
            <div>
                <h2 class="text-lg font-semibold text-blue-700 dark:text-blue-200">John Doe</h2>
                <p class="text-gray-600 dark:text-gray-400">@johndoe</p>
            </div>
        </div>
        <p class="text-gray-800 dark:text-gray-200 mb-4">Feeling nostalgic about the good old days of the 80s and 90s. What’s your favorite memory?</p>
        <img class="w-full h-auto rounded-lg mb-4" src="https://picsum.photos/400/200?random=1" alt="Retro Image">
        <div class="flex justify-between">
            <button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded transition duration-200">Like</button>
            <button class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded transition duration-200">Comment</button>
            <button class="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded transition duration-200">Share</button>
        </div>
    </div>
    <div class="margin-top: 8px flex justify-between items-center text-gray-600 dark:text-gray-300 text-sm">
        <span class="cursor-pointer hover:underline">12 Likes</span>
        <span class="cursor-pointer hover:underline">3 Comments</span>
    </div>
</div>

相关组件

社交组件组件

社交组件 具有拟物化设计、互补配色方案和中等复杂性的组件。它专为商业/公司网站设计,响应式并支持深色主题。

打开

社交组件组件

一个复古/复古社交媒体组件,具有简单的布局和互补色彩方案。支持暗模式,并且响应式。

打开

社交组件

具有粗野派和柔和设计的仪表板的社交组件。它显示带有姓名、头衔和头像的用户配置文件,并包含用于社交作(如关注、消息和共享)的按钮。该组件响应迅速,并支持深色模式。

打开