login.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta
  6. name="viewport"
  7. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
  8. />
  9. <title>移动端登录原型</title>
  10. <!-- Tailwind CSS CDN -->
  11. <script src="https://cdn.tailwindcss.com"></script>
  12. <!-- FontAwesome CDN -->
  13. <link
  14. rel="stylesheet"
  15. href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
  16. />
  17. <style>
  18. body {
  19. background: linear-gradient(135deg, #5d87ff 0%, #a3bfff 100%);
  20. }
  21. .brand-color {
  22. color: #5d87ff;
  23. }
  24. .brand-bg {
  25. background-color: #5d87ff;
  26. }
  27. </style>
  28. </head>
  29. <body
  30. class="min-h-screen flex flex-col justify-center items-center bg-gradient-to-br from-[#5D87FF] to-[#a3bfff]"
  31. >
  32. <div
  33. class="w-full max-w-xs mx-auto bg-white/80 rounded-2xl shadow-lg p-8 flex flex-col items-center"
  34. >
  35. <!-- Logo -->
  36. <div class="mb-6">
  37. <i class="fa-solid fa-graduation-cap text-5xl brand-color"></i>
  38. </div>
  39. <!-- 标题 -->
  40. <h1 class="text-2xl font-bold text-gray-800 mb-2">智慧校园</h1>
  41. <p class="text-sm text-gray-500 mb-8">杭州第一技师学院</p>
  42. <!-- 登录表单 -->
  43. <form class="w-full flex flex-col gap-4">
  44. <div class="relative">
  45. <span class="absolute left-3 top-1/2 -translate-y-1/2 text-gray-400">
  46. <i class="fa-regular fa-user"></i>
  47. </span>
  48. <input
  49. type="text"
  50. placeholder="账号"
  51. class="pl-10 pr-3 py-2 w-full rounded-lg border border-gray-200 focus:border-[#5D87FF] focus:ring-2 focus:ring-[#5D87FF]/30 outline-none bg-white text-gray-800 transition"
  52. />
  53. </div>
  54. <div class="relative">
  55. <span class="absolute left-3 top-1/2 -translate-y-1/2 text-gray-400">
  56. <i class="fa-solid fa-lock"></i>
  57. </span>
  58. <input
  59. type="password"
  60. placeholder="密码"
  61. class="pl-10 pr-3 py-2 w-full rounded-lg border border-gray-200 focus:border-[#5D87FF] focus:ring-2 focus:ring-[#5D87FF]/30 outline-none bg-white text-gray-800 transition"
  62. />
  63. </div>
  64. <button
  65. type="submit"
  66. class="w-full py-2 mt-2 rounded-lg brand-bg text-white font-semibold text-lg shadow hover:opacity-90 transition"
  67. >
  68. 登录
  69. </button>
  70. </form>
  71. <!-- 版权信息 -->
  72. <div class="mt-8 text-xs text-gray-400 text-center w-full">
  73. &copy; 2025 杭州第一技师学院 All Rights Reserved.
  74. </div>
  75. </div>
  76. </body>
  77. </html>