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

社交登录组件

带有材质设计、柔和色彩和适度复杂性的社交登录组件,适用于商业/企业

预览

HTML 代码

<div class="flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900">
  <div class="px-8 py-6 mt-4 text-left bg-white dark:bg-gray-800 shadow-lg rounded-lg">
    <h3 class="text-2xl font-bold text-center text-gray-800 dark:text-white">Login</h3>
    <div class="mt-4">
      <div>
        <label class="block text-gray-700 dark:text-gray-200" for="email">Email</label>
        <input type="email" placeholder="Email" class="w-full px-4 py-2 mt-2 border rounded-md focus:outline-none focus:ring-1 focus:ring-blue-600">
      </div>
      <div class="mt-4">
        <label class="block text-gray-700 dark:text-gray-200" for="password">Password</label>
        <input type="password" placeholder="Password" class="w-full px-4 py-2 mt-2 border rounded-md focus:outline-none focus:ring-1 focus:ring-blue-600">
      </div>
      <div class="flex items-baseline justify-between">
        <button class="px-6 py-2 mt-4 text-white bg-blue-600 rounded-lg hover:bg-blue-900">Login</button>
        <a href="#" class="text-sm text-blue-600 hover:underline">Forgot password?</a>
      </div>
      <div class="mt-6 text-center">
        <p class="text-gray-700 dark:text-gray-200">Or login with:</p>
        <div class="flex justify-center gap-4 mt-2">
          <button class="px-4 py-2 border rounded-md flex items-center gap-2 hover:bg-gray-200 dark:hover:bg-gray-700">
            <img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" alt="Google" class="h-5">
            Google
          </button>
          <button class="px-4 py-2 border rounded-md flex items-center gap-2 hover:bg-gray-200 dark:hover:bg-gray-700">
            <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b8/2021_Facebook_icon.svg/1200px-2021_Facebook_icon.svg.png" alt="Facebook" class="h-5">
            Facebook
          </button>
        </div>
      </div>
    </div>
  </div>
</div>

相关组件

野兽派社交登录(时尚/美容)

一个复杂、充满活力的野兽派社交登录组件,专为时尚和美容品牌设计,具有高对比度、大胆元素和完全响应能力,并支持深色模式。

打开

材料设计社交登录组件

Material Design 社交登录组件,具有互补配色方案,复杂程度适中,用于博客/内容用途,使用 Tailwind CSS 响应式深色模式支持。

打开

社交登录组件

一个响应式社交登录组件,其灵感来自 Material Design 原则,具有高对比度颜色和深色模式支持,适用于娱乐和媒体平台。

打开