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

登录/注册组件

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

预览

HTML 代码

<div class="min-h-screen flex items-center justify-center p-4 bg-pink-50 dark:bg-gray-900 transition-colors duration-300">
  <div class="max-w-md w-full bg-white dark:bg-gray-800 rounded-lg shadow-xl overflow-hidden md:max-w-lg lg:max-w-xl transition-all duration-300 transform hover:scale-[1.01] hover:shadow-2xl">
    <div class="md:flex">
      <div class="w-full p-8 px-6 md:px-8">
        <div class="text-center mb-8">
          <h2 class="text-3xl font-extrabold text-pink-600 dark:text-pink-400 leading-tight tracking-tighter mb-2 transition-colors duration-300">
            Welcome
          </h2>
          <p class="text-gray-600 dark:text-gray-400 text-lg transition-colors duration-300">
            Join or sign in to continue
          </p>
        </div>

        <div class="relative flex flex-col items-center justify-center mb-6">
          <div class="absolute inset-x-0 top-1/2 h-px bg-gray-200 dark:bg-gray-700 w-full transform -translate-y-1/2"></div>
          <button class="relative px-4 py-2 bg-pink-100 dark:bg-gray-700 text-pink-700 dark:text-gray-300 rounded-full text-sm font-semibold transition-colors duration-300 z-10">
            Log In
          </button>
          <button class="relative px-4 py-2 ml-4 bg-mint-green-100 dark:bg-gray-700 text-mint-green-700 dark:text-gray-300 rounded-full text-sm font-semibold transition-colors duration-300 z-10">
            Sign Up
          </button>
        </div>

        <form>
          <div class="mb-6">
            <label for="email" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2 transition-colors duration-300">Email Address</label>
            <input type="email" id="email" name="email" placeholder="[email protected]" class="mt-1 block w-full px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:ring-mint-green-500 focus:border-mint-green-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100 placeholder-gray-400 dark:placeholder-gray-500 transition-colors duration-300 outline-none focus:outline-none focus:ring-2 focus:ring-offset-2 dark:focus:ring-offset-gray-800">
          </div>

          <div class="mb-6">
            <div class="flex justify-between items-center">
              <label for="password" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2 transition-colors duration-300">Password</label>
              <a href="#" class="text-sm text-pink-600 dark:text-pink-400 hover:underline transition-colors duration-300">Forgot Password?</a>
            </div>
            <input type="password" id="password" name="password" placeholder="••••••••" class="mt-1 block w-full px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:ring-mint-green-500 focus:border-mint-green-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100 placeholder-gray-400 dark:placeholder-gray-500 transition-colors duration-300 outline-none focus:outline-none focus:ring-2 focus:ring-offset-2 dark:focus:ring-offset-gray-800">
          </div>

          <button type="submit" class="w-full py-3 px-6 bg-mint-green-500 text-white font-semibold rounded-md shadow-lg hover:bg-mint-green-600 focus:outline-none focus:ring-2 focus:ring-mint-green-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 transition-all duration-300 transform hover:-translate-y-0.5">
            Login
          </button>

          <p class="mt-6 text-center text-sm text-gray-600 dark:text-gray-400 transition-colors duration-300">
            Don't have an account? <a href="#" class="font-medium text-pink-600 dark:text-pink-400 hover:underline transition-colors duration-300">Sign up now</a>
          </p>
        </form>
      </div>
    </div>
  </div>
</div>

<style>
  /* Custom colors for 'candy/sweet' palette if not directly in Tailwind config */
  /* Add to your tailwind.config.js for full integration: */
  /*
  module.exports = {
    theme: {
      extend: {
        colors: {
          'pink-50': '#FFF0F5',   // Lavender Blush
          'pink-100': '#FFE4E1',  // Misty Rose
          'pink-600': '#FF69B4',  // Hot Pink
          'pink-700': '#C71585',  // Medium Violet Red
          'mint-green-100': '#F0FFF4', // Mint Cream
          'mint-green-500': '#98FB98', // Pale Green
          'mint-green-600': '#3CB371'  // Medium Sea Green
        }
      }
    },
    // ... other config
  }
  */
</style>

相关组件

RetroVibrantCryptoAuth

一个复杂的、复古风格的登录/注册组件,具有鲜艳的色彩,专为加密货币/区块链应用程序设计,具有响应式布局和深色模式支持。

打开

Monospace_Dating_Login_Signup_Component

一个简单、响应式的登录/注册组件,适用于约会/社交平台,采用等宽、受代码启发的设计。具有黑白单色和明亮的强调色,并完全支持深色模式。

打开

Industrial_Candy_Login_Signup_Component

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

打开