组件 资本 黑暗模式模态组件

黑暗模式模态组件

一个简单的响应式模态组件,专为社交媒体界面设计,适用于暗黑模式,采用粉彩色方案。

预览

HTML 代码

<div class="fixed inset-0 flex items-center justify-center z-50 bg-gray-900 bg-opacity-80 dark:bg-gray-800">
    <div class="bg-gray-800 rounded-lg shadow-lg w-11/12 md:w-1/3 p-6">
        <h2 class="text-xl font-bold text-white mb-4">Welcome to Our Community!</h2>
        <p class="text-gray-300 mb-4">Join us in sharing ideas, experiences, and connecting with one another. We believe in the power of community.</p>
        <div class="flex items-center mb-4">
            <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" class="w-12 h-12 rounded-full mr-3">
            <span class="text-pink-200 font-semibold">John Doe</span>
        </div>
        <img src="https://picsum.photos/300/150" alt="Placeholder" class="rounded-lg mb-4">
        <button class="w-full bg-pink-500 hover:bg-pink-400 text-white font-bold py-2 px-4 rounded">Join Now</button>
        <button class="w-full mt-2 bg-transparent border border-pink-500 hover:bg-pink-500 hover:text-white text-pink-500 font-bold py-2 px-4 rounded">Cancel</button>
    </div>
</div>

相关组件

复古模态组件

一个响应式复古/复古风格的模态组件,使用Tailwind CSS设计,支持暗模式,融入怀旧的80年代/90年代美学。

打开

拟物化模态组件

一个复杂的响应式模态组件,采用拟物化设计风格,具有用于电子商务的互补色。

打开

材料设计模态框

一个采用材料设计风格的模态组件,具有响应式设计和黑暗主题支持。包含模态覆盖、带有卡片外观的模态容器和关闭按钮。未包含JavaScript。

打开