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

社交登录组件

一个响应式社交登录组件,专为使用单色配色方案的深色模式而设计。适合使用具有交互式功能的博客和内容。

预览

HTML 代码

<div class="bg-gray-800 text-white p-6 rounded-lg shadow-lg max-w-md mx-auto mt-10">
    <h2 class="text-2xl font-bold mb-4 text-center">Log in with Social Media</h2>
    <div class="flex flex-col space-y-4">
        <a href="#" class="flex items-center justify-center bg-gray-700 hover:bg-gray-600 dark:bg-gray-900 dark:hover:bg-gray-800 text-white font-semibold py-2 rounded-lg shadow transition duration-200">
            <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" class="w-8 h-8 rounded-full mr-2">
            <span>Log in with Facebook</span>
        </a>
        <a href="#" class="flex items-center justify-center bg-gray-700 hover:bg-gray-600 dark:bg-gray-900 dark:hover:bg-gray-800 text-white font-semibold py-2 rounded-lg shadow transition duration-200">
            <img src="https://randomuser.me/api/portraits/women/1.jpg" alt="Avatar" class="w-8 h-8 rounded-full mr-2">
            <span>Log in with Google</span>
        </a>
        <a href="#" class="flex items-center justify-center bg-gray-700 hover:bg-gray-600 dark:bg-gray-900 dark:hover:bg-gray-800 text-white font-semibold py-2 rounded-lg shadow transition duration-200">
            <img src="https://randomuser.me/api/portraits/men/2.jpg" alt="Avatar" class="w-8 h-8 rounded-full mr-2">
            <span>Log in with Twitter</span>
        </a>
    </div>
    <p class="mt-4 text-center text-gray-400">Or, <a href="#" class="text-gray-300 hover:underline">create a new account</a></p>
</div>

相关组件

社交登录组件 - 新拟态生动复杂

一个复杂、响应式的社交登录表单组件,采用新拟态风格和鲜艳的色调,使用Tailwind CSS,支持暗黑模式。

打开

社交登录组件

响应式社交登录组件,带有微交互 - 专注于响应用户行为的小型迷人动画,采用互补色方案,简单复杂度,适用于博客/内容目的,并支持黑暗主题。

打开

社交登录组件

具有类比色彩方案的材料设计社交登录组件,简单复杂度,适用于作品集,响应式并支持暗主题。

打开