Forms | themrsami happy dingo 51

Formshappy dingo1 个文件更新于 2026-04-06
html共 19 行
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
<div class="flex flex-col items-center justify-center h-screen dark">
  <div class="w-full max-w-md bg-gray-800 rounded-lg shadow-md p-6">
    <h2 class="text-2xl font-bold text-gray-200 mb-4">Login</h2>
    <form class="flex flex-col">
      <input placeholder="Email address" class="bg-gray-700 text-gray-200 border-0 rounded-md p-2 mb-4 focus:bg-gray-600 focus:outline-none focus:ring-1 focus:ring-blue-500 transition ease-in-out duration-150" type="email">
      <input placeholder="Password" class="bg-gray-700 text-gray-200 border-0 rounded-md p-2 mb-4 focus:bg-gray-600 focus:outline-none focus:ring-1 focus:ring-blue-500 transition ease-in-out duration-150" type="password">
      <div class="flex items-center justify-between flex-wrap">
        <label class="text-sm text-gray-200 cursor-pointer" for="remember-me">
          <input class="mr-2" id="remember-me" type="checkbox">
          Remember me
        </label>
        <a class="text-sm text-blue-500 hover:underline mb-0.5" href="#">Forgot password?</a>
        <p class="text-white mt-4"> Don't have an account? <a class="text-sm text-blue-500 -200 hover:underline mt-4" href="#">Signup</a></p>
      </div>
      <button class="bg-gradient-to-r from-indigo-500 to-blue-500 text-white font-bold py-2 px-4 rounded-md mt-4 hover:bg-indigo-600 hover:to-blue-600 transition ease-in-out duration-150" type="submit">Login</button>
    </form>
  </div>
</div>

登录后可以查看完整源码、在线编辑并实时预览运行效果。