组件 登录/注册 登录/注册组件

登录/注册组件

响应式登录/注册组件,支持黑暗模式

预览

HTML 代码

<div class="min-h-screen flex items-center justify-center bg-gray-900">
  <div class="bg-gray-800 p-8 rounded-lg shadow-xl w-full max-w-md">
    <div class="tabs mb-6">
      <button class="w-1/2 py-2 text-lg font-semibold text-center text-white border-b-2 border-pink-500">Login</button>
      <button class="w-1/2 py-2 text-lg font-semibold text-center text-gray-400 hover:text-white">Sign Up</button>
    </div>
    <form>
      <div class="mb-4">
        <label for="email" class="block text-gray-400 text-sm font-bold mb-2">Email</label>
        <input type="email" id="email" class="shadow appearance-none border border-gray-700 rounded w-full py-2 px-3 text-white bg-gray-700 focus:outline-none focus:ring-pink-500 focus:border-pink-500" placeholder="Email">
      </div>
      <div class="mb-6">
        <label for="password" class="block text-gray-400 text-sm font-bold mb-2">Password</label>
        <input type="password" id="password" class="shadow appearance-none border border-gray-700 rounded w-full py-2 px-3 text-white bg-gray-700 focus:outline-none focus:ring-pink-500 focus:border-pink-500" placeholder="Password">
      </div>
      <div class="flex items-center justify-between">
        <button class="bg-pink-500 hover:bg-pink-600 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" type="button">
          Login
        </button>
        <a class="inline-block align-baseline font-bold text-sm text-pink-500 hover:text-pink-600" href="#">
          Forgot Password?
        </a>
      </div>
    </form>
  </div>
</div>

相关组件

登录/注册组件

一个简单、干净、简约的登录/注册组件,具有瑞士/国际排版风格和欢快的糖果/甜蜜配色方案,专为商业/公司网站设计。它是完全响应式的,并包括暗模式支持。

打开

登录/注册组件

一个使用Tailwind CSS的极简登录和注册组件,支持响应式效果和暗色主题。

打开

LoginSignupComponent

一个响应式 Login/Signup 组件,采用 Neumorphism 风格和柔和的配色方案设计,适用于社交媒体界面。

打开