组件 社交登录 社交登录组件

社交登录组件

一个极简的社交登录组件,使用 Tailwind CSS 设计,具备干净的空间和适用于明暗主题的响应效果。

预览

HTML 代码

<div class="flex flex-col items-center justify-center min-h-screen bg-white dark:bg-gray-900">
    <div class="bg-gray-100 dark:bg-gray-800 shadow-md rounded-lg p-8 w-96">
        <h2 class="text-lg font-semibold text-center text-gray-800 dark:text-gray-200">Login with</h2>
        <div class="mt-4">
            <button class="flex items-center justify-center w-full p-2 mb-4 bg-blue-600 hover:bg-blue-700 text-white rounded-md transition duration-200">
                <img src="https://picsum.photos/20/20" alt="Google Logo" class="mr-2 rounded-full">
                Google
            </button>
            <button class="flex items-center justify-center w-full p-2 mb-4 bg-gray-600 hover:bg-gray-700 text-white rounded-md transition duration-200">
                <img src="https://randomuser.me/api/portraits/med/men/50.jpg" alt="Facebook Logo" class="mr-2 rounded-full">
                Facebook
            </button>
            <button class="flex items-center justify-center w-full p-2 mb-4 bg-red-600 hover:bg-red-700 text-white rounded-md transition duration-200">
                <img src="https://picsum.photos/20/20" alt="Twitter Logo" class="mr-2 rounded-full">
                Twitter
            </button>
        </div>
        <div class="text-center">
            <p class="text-gray-600 dark:text-gray-300">or</p>
            <a href="#" class="text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-600">Sign in with email</a>
        </div>
    </div>
</div>

相关组件

神经形态灰度社交登录

具有灰度 Neumorphism 设计样式的响应式社交登录组件。包括社交提供商的按钮、分隔符和注册/忘记密码的链接。支持使用 Tailwind 的 dark: 前缀的深色模式。专为控制面板环境而设计。

打开

社交登录组件

带有材质设计、柔和色彩和适度复杂性的社交登录组件,适用于商业/企业

打开

社交登录组件

具有深色模式用户界面和响应效果的社交登录组件

打开