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

社交登录组件

一个极简的社交登录组件,使用 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>

相关组件

社交登录组件

一个简单的响应式社交登录组件,使用 Grayscale 颜色和 Microinteractions 设计样式,并使用 Tailwind CSS 提供深色主题支持。为社交图标提供微妙的悬停动画。

打开

社交登录组件 - 微交互

一个使用 Tailwind CSS 的社交登录组件卡,按钮上具有微交互(悬停/焦点时缩放效果),响应式(居中最大宽度)并支持深色主题。使用来自 picsum.photos 的占位符图像和嵌入的 SVG 社交图标。无需 JavaScript。

打开

社交登录组件

一个复古/怀旧风格的社交登录组件,专为电子商务平台设计,采用柔和色调并支持暗模式.

打开