组件 OAuth 按钮 OAuth 按钮组件

OAuth 按钮组件

拟物化 OAuth 按钮,旨在用大地色调模拟现实世界的元素,用于社交媒体界面。

预览

HTML 代码

<div class="flex flex-col items-center justify-center p-6 bg-gray-100 dark:bg-gray-800 rounded-lg shadow-md space-y-4">
    <h2 class="text-2xl font-semibold text-gray-800 dark:text-gray-200">Sign in with</h2>
    <div class="flex flex-col space-y-4">
        <a href="#" class="flex items-center justify-center bg-[#e2b693] hover:bg-[#d1a579] dark:bg-[#704d3b] dark:hover:bg-[#6a4334] rounded-lg p-4 shadow-lg transition duration-200">
            <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Google" class="w-6 h-6 rounded-full mr-2" />
            <span class="text-lg font-semibold text-gray-800 dark:text-gray-200">Google</span>
        </a>
        <a href="#" class="flex items-center justify-center bg-[#94685b] hover:bg-[#805850] dark:bg-[#573c33] dark:hover:bg-[#4c3330] rounded-lg p-4 shadow-lg transition duration-200">
            <img src="https://randomuser.me/api/portraits/women/1.jpg" alt="Facebook" class="w-6 h-6 rounded-full mr-2" />
            <span class="text-lg font-semibold text-gray-800 dark:text-gray-200">Facebook</span>
        </a>
        <a href="#" class="flex items-center justify-center bg-[#574d44] hover:bg-[#4e422a] dark:bg-[#383025] dark:hover:bg-[#2e261e] rounded-lg p-4 shadow-lg transition duration-200">
            <img src="https://randomuser.me/api/portraits/men/2.jpg" alt="Twitter" class="w-6 h-6 rounded-full mr-2" />
            <span class="text-lg font-semibold text-gray-800 dark:text-gray-200">Twitter</span>
        </a>
    </div>
</div>

相关组件

RetroOAuthButtons

一个简单的复古主题 OAuth 按钮组件,具有三重配色方案,非常适合投资组合网站。具有响应式设计和暗模式支持,让人想起 80 年代/90 年代的美学。

打开

OAuth 按钮组件

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

打开

OAuth按钮组件(暗模式单色)

使用 Tailwind CSS 的响应式 OAuth 按钮组件,具有深色模式支持。使用深色背景的单色配色方案。

打开