组件 OAuth 按钮 OAuth 按钮组件 1

OAuth 按钮组件 1

一个显示 OAuth 按钮的组件,带有引人入胜的动画和深色模式支持,使用 Tailwind CSS 进行设计。按钮对用户操作做出响应,具有细微的微交互,图像来自随机占位符源。

预览

HTML 代码

<div class="flex justify-center items-center space-x-4 p-6 bg-gray-100 dark:bg-gray-800 rounded-lg shadow-lg">
    <button class="flex items-center px-4 py-2 text-white bg-blue-600 rounded transition duration-200 ease-in-out transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50">
        <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Avatar" class="w-6 h-6 rounded-full mr-2" />
        Sign in with Google
    </button>
    <button class="flex items-center px-4 py-2 text-white bg-red-600 rounded transition duration-200 ease-in-out transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-opacity-50">
        <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Avatar" class="w-6 h-6 rounded-full mr-2" />
        Sign in with Facebook
    </button>
    <button class="flex items-center px-4 py-2 text-white bg-blue-800 rounded transition duration-200 ease-in-out transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-blue-700 focus:ring-opacity-50">
        <img src="https://randomuser.me/api/portraits/men/12.jpg" alt="Avatar" class="w-6 h-6 rounded-full mr-2" />
        Sign in with Twitter
    </button>
</div>
<style>
    /* Dark Mode Styles */
    @media (prefers-color-scheme: dark) {
        button {
            background-color: #1e3a8a;
        }
    }
</style>

相关组件

OAuth 按钮组件 - 水彩/艺术

专为时尚和美容品牌设计的艺术和复古主题的 OAuth 按钮组件。具有柔和的涂漆纹理、柔和的复古色彩,并包括 Google、Apple 和 Facebook 登录选项。完全响应并支持深色模式。

打开

OAuth 按钮组件

一个新拟态风格的OAuth按钮组件,专为博客或内容消费平台设计。该组件包含多个OAuth提供者的按钮,具有响应式设计、黑暗主题支持和单色配色方案。

打开

OAuth 按钮组件

一个为暗模式设计的响应式OAuth按钮组件,具有相近的色彩方案,并为社交媒体提供多个交互元素.

打开