组件 OAuth 按钮 OAuth 按钮组件

OAuth 按钮组件

一个简单、响应式的 OAuth 按钮组件,采用拟物化风格设计,具有鲜艳的配色方案,专为电子商务平台量身定制,并支持深色模式。

预览

HTML 代码

<div class="bg-white dark:bg-gray-800 p-6 rounded-lg shadow-lg max-w-sm mx-auto">
    <h2 class="text-2xl font-bold text-center text-blue-600 dark:text-blue-300 mb-4">Sign in with:</h2>
    <div class="flex flex-col space-y-4">
        <a href="#" class="flex items-center justify-center bg-gradient-to-r from-yellow-400 to-red-500 p-4 rounded-lg shadow-md hover:shadow-lg transition duration-300 ease-in-out">
            <img src="https://picsum.photos/20?1" alt="Google Logo" class="mr-3 rounded-full">
            <span class="text-white font-semibold">Google</span>
        </a>
        <a href="#" class="flex items-center justify-center bg-gradient-to-r from-blue-500 to-indigo-600 p-4 rounded-lg shadow-md hover:shadow-lg transition duration-300 ease-in-out">
            <img src="https://picsum.photos/20?2" alt="Facebook Logo" class="mr-3 rounded-full">
            <span class="text-white font-semibold">Facebook</span>
        </a>
        <a href="#" class="flex items-center justify-center bg-gradient-to-r from-purple-500 to-pink-500 p-4 rounded-lg shadow-md hover:shadow-lg transition duration-300 ease-in-out">
            <img src="https://picsum.photos/20?3" alt="Twitter Logo" class="mr-3 rounded-full">
            <span class="text-white font-semibold">Twitter</span>
        </a>
    </div>
</div>

<style>
    /* Adding dark mode support */
    @media (prefers-color-scheme: dark) {
        .rounded-lg {
            background-color: #1f2937; /* Gray-800 */
        }
        .text-white {
            color: #f9fafb; /* Gray-50 */
        }
    }
</style>

相关组件

OAuth 按钮组件

一个响应式OAuth按钮组件,设计了引人入胜的动画和大地色调,适合社交媒体接口,并支持暗主题。

打开

OAuth按钮组件

一个具有3D设计风格、响应效果、深色主题支持和占位图的OAuth按钮网页组件。

打开

OAuth 按钮组件

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

打开