组件 社区论坛 社区论坛组件

社区论坛组件

一个响应式社区论坛组件,采用 Glassmorphism 风格设计,采用大地色调,适用于社交媒体平台。它具有磨砂玻璃效果,并与深色模式兼容。

预览

HTML 代码

<div class="min-h-screen bg-gray-800 flex flex-col items-center justify-center p-10">
    <div class="bg-white bg-opacity-30 backdrop-blur-md rounded-lg shadow-lg p-6 max-w-3xl w-full">
        <h1 class="text-2xl font-bold text-gray-900 dark:text-white mb-4">Community Forum</h1>
        <div class="space-y-4">
            <!-- Post Example -->
            <div class="bg-white bg-opacity-20 rounded-lg p-4 shadow-md">
                <div class="flex items-center">
                    <img class="w-12 h-12 rounded-full" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar">
                    <div class="ml-3">
                        <h2 class="font-semibold text-gray-900 dark:text-white">John Doe</h2>
                        <span class="text-sm text-gray-600 dark:text-gray-300">2 hours ago</span>
                    </div>
                </div>
                <p class="mt-2 text-gray-800 dark:text-gray-200">What do you all think about the latest trends in technology?</p>
            </div>
            <!-- Post Example -->
            <div class="bg-white bg-opacity-20 rounded-lg p-4 shadow-md">
                <div class="flex items-center">
                    <img class="w-12 h-12 rounded-full" src="https://randomuser.me/api/portraits/women/2.jpg" alt="User Avatar">
                    <div class="ml-3">
                        <h2 class="font-semibold text-gray-900 dark:text-white">Jane Smith</h2>
                        <span class="text-sm text-gray-600 dark:text-gray-300">1 hour ago</span>
                    </div>
                </div>
                <p class="mt-2 text-gray-800 dark:text-gray-200">I believe we are on the cusp of major changes in this field!</p>
            </div>
        </div>
        <div class="mt-6">
            <textarea class="w-full p-3 rounded-lg border border-gray-300 dark:border-gray-600 bg-white bg-opacity-20 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-blue-600 dark:focus:ring-blue-500" rows="3" placeholder="Share your thoughts..."></textarea>
            <button class="mt-2 w-full py-2 bg-blue-500 text-white font-semibold rounded-lg hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-500">Post</button>
        </div>
    </div>
</div>

相关组件

社区论坛组件

一个简单的社区论坛组件,采用柔和的色彩方案,受到材料设计的影响,并支持暗模式。具有响应式布局,适合博客/内容消费。

打开

社区论坛组件

以粗野主义风格设计的社区论坛组件,具有鲜艳的配色方案,适用于电子商务体验。它包括各种交互式元素,如帖子、评论和用户配置文件,所有这些元素都使用 Tailwind CSS 设置样式,以实现具有深色主题支持的响应式设计。

打开

社区论坛组件

一个响应式社区论坛组件,采用Material Design原则设计,使用Tailwind CSS,支持黑暗主题和占位符图像。

打开