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

登录/注册组件

一个极简的登录/注册链接组件,采用 Tailwind CSS 设计,具有响应式效果和黑暗主题支持。该组件提供简洁明了的美学,同时确保在各种设备上的可用性。

预览

HTML 代码

<div class="min-h-screen flex items-center justify-center bg-white dark:bg-gray-900">
  <div class="bg-gray-100 dark:bg-gray-800 rounded-lg shadow-lg p-8 max-w-sm w-full">
    <h2 class="text-2xl font-semibold text-gray-800 dark:text-white text-center">Welcome Back</h2>
    <p class="text-gray-600 dark:text-gray-400 text-center mb-6">Login to your account</p>
    <form>
      <div class="mb-4">
        <label class="block text-gray-700 dark:text-gray-300" for="email">Email</label>
        <input class="block w-full px-4 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-blue-400 dark:bg-gray-700 dark:border-gray-600 dark:text-white" type="email" id="email" placeholder="[email protected]" required />
      </div>
      <div class="mb-6">
        <label class="block text-gray-700 dark:text-gray-300" for="password">Password</label>
        <input class="block w-full px-4 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-blue-400 dark:bg-gray-700 dark:border-gray-600 dark:text-white" type="password" id="password" placeholder="********" required />
      </div>
      <button type="submit" class="w-full bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 rounded-md transition duration-200">Login</button>
    </form>
    <div class="mt-4 text-center">
      <p class="text-gray-600 dark:text-gray-400">Don't have an account? <a href="#" class="text-blue-500 hover:underline">Sign up</a></p>
    </div>
  </div>
</div>

<div class="min-h-screen flex items-center justify-center bg-white dark:bg-gray-900">
  <div class="bg-gray-100 dark:bg-gray-800 rounded-lg shadow-lg p-8 max-w-sm w-full mt-8">
    <h2 class="text-2xl font-semibold text-gray-800 dark:text-white text-center">Create Account</h2>
    <p class="text-gray-600 dark:text-gray-400 text-center mb-6">Join us today!</p>
    <form>
      <div class="mb-4">
        <label class="block text-gray-700 dark:text-gray-300" for="name">Name</label>
        <input class="block w-full px-4 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-blue-400 dark:bg-gray-700 dark:border-gray-600 dark:text-white" type="text" id="name" placeholder="John Doe" required />
      </div>
      <div class="mb-4">
        <label class="block text-gray-700 dark:text-gray-300" for="email-signup">Email</label>
        <input class="block w-full px-4 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-blue-400 dark:bg-gray-700 dark:border-gray-600 dark:text-white" type="email" id="email-signup" placeholder="[email protected]" required />
      </div>
      <div class="mb-6">
        <label class="block text-gray-700 dark:text-gray-300" for="password-signup">Password</label>
        <input class="block w-full px-4 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-blue-400 dark:bg-gray-700 dark:border-gray-600 dark:text-white" type="password" id="password-signup" placeholder="********" required />
      </div>
      <button type="submit" class="w-full bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 rounded-md transition duration-200">Sign Up</button>
    </form>
    <div class="mt-4 text-center">
      <p class="text-gray-600 dark:text-gray-400">Already have an account? <a href="#" class="text-blue-500 hover:underline">Login</a></p>
    </div>
  </div>
</div>

相关组件

登录/注册组件

一个响应式的登录/注册组件,采用材料设计风格,支持暗黑主题和互补色彩方案,专为社交媒体界面量身定制.

打开

Industrial_Candy_Login_Signup_Component

一个响应式登录/注册组件,具有工业原始美学和明亮的糖果色。具有公开的元素、实用的设计和完整的暗模式支持,适用于博客或内容平台。

打开

登录/注册组件

一个采用新拟态风格设计的登录/注册组件,具有柔和色彩方案,适合商业/企业网站,并支持深色模式。

打开