认证组件

带有暗模式、响应效果且无JavaScript依赖的身份验证组件。

预览

HTML 代码

<div class="min-h-screen flex items-center justify-center bg-gray-900">
  <div class="bg-gray-800 p-10 rounded-lg shadow-xl w-full max-w-md">
    <h1 class="text-white text-center text-2xl font-bold mb-6">Login</h1>
    <form>
      <div class="mb-4">
        <label for="email" class="block text-gray-400 text-sm font-bold mb-2">Email Address</label>
        <input type="email" id="email" class="shadow appearance-nonse border border-gray-700 rounded w-full py-2 px-3 text-gray-200 leading-tight focus:outline-none focus:shadow-outline bg-gray-700" placeholder="Enter your 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-gray-200 leading-tight focus:outline-none focus:shadow-outline bg-gray-700" placeholder="Enter your password">
      </div>
      <div class="flex items-center justify-between">
        <button type="submit" class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">Sign In</button>
        <a class="inline-block align-baseline font-bold text-sm text-blue-500 hover:text-blue-700" href="#">Forgot Password?</a>
      </div>
    </form>
  </div>
</div>

相关组件

身份验证组件

一个响应式身份验证组件,采用暗黑模式UI设计,具有带占位符图像的登录和注册表单。

打开

身份验证组件 Component Component

一个简单且响应迅速的身份验证组件,采用 Material Design 原则设计,支持大地色调和深色模式。适合于作品集网站。

打开

认证组件

一个响应式身份验证组件,支持暗模式,使用Tailwind CSS,具有深色背景、登录和注册表单,以及随机的UI元素占位符图片。

打开