04-minimalist.html 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>登录 - 极简风格</title>
  7. <script src="https://cdn.tailwindcss.com"></script>
  8. <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  9. <style>
  10. body { font-family: 'Space Grotesk', sans-serif; }
  11. </style>
  12. </head>
  13. <body class="min-h-screen flex items-center justify-center p-4 bg-white">
  14. <div class="w-full max-w-sm">
  15. <!-- Logo -->
  16. <div class="mb-12">
  17. <div class="flex items-center gap-3 mb-16">
  18. <div class="w-10 h-10 bg-black rounded-lg flex items-center justify-center">
  19. <svg class="w-5 h-5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
  20. <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"/>
  21. </svg>
  22. </div>
  23. <span class="text-lg font-semibold text-black tracking-tight">TG Live</span>
  24. </div>
  25. <h1 class="text-4xl font-bold text-black tracking-tight leading-tight">
  26. 欢迎回来
  27. </h1>
  28. <p class="text-gray-400 mt-3">登录以继续使用服务</p>
  29. </div>
  30. <!-- Form -->
  31. <form class="space-y-6">
  32. <div>
  33. <input type="text" placeholder="用户名"
  34. class="w-full px-0 py-4 bg-transparent border-b-2 border-gray-200 text-black placeholder-gray-400 focus:outline-none focus:border-black transition-colors text-lg">
  35. </div>
  36. <div>
  37. <input type="password" placeholder="密码"
  38. class="w-full px-0 py-4 bg-transparent border-b-2 border-gray-200 text-black placeholder-gray-400 focus:outline-none focus:border-black transition-colors text-lg">
  39. </div>
  40. <div class="flex items-center justify-between pt-2">
  41. <label class="flex items-center text-gray-500 cursor-pointer group">
  42. <div class="w-5 h-5 border-2 border-gray-300 rounded mr-3 flex items-center justify-center group-hover:border-black transition-colors">
  43. <input type="checkbox" class="opacity-0 absolute">
  44. </div>
  45. <span class="text-sm">记住我</span>
  46. </label>
  47. <a href="#" class="text-sm text-black font-medium hover:underline underline-offset-4">忘记密码?</a>
  48. </div>
  49. <button type="submit"
  50. class="w-full py-4 bg-black hover:bg-gray-800 text-white font-medium rounded-none transition-colors duration-200 cursor-pointer mt-8 text-lg">
  51. 登录
  52. </button>
  53. </form>
  54. <!-- Divider -->
  55. <div class="flex items-center my-10">
  56. <div class="flex-1 h-px bg-gray-200"></div>
  57. <span class="px-4 text-gray-400 text-sm">或</span>
  58. <div class="flex-1 h-px bg-gray-200"></div>
  59. </div>
  60. <!-- Social Login -->
  61. <div class="space-y-3">
  62. <button class="w-full py-3 border-2 border-gray-200 hover:border-black text-black font-medium rounded-none transition-colors duration-200 flex items-center justify-center gap-3 cursor-pointer">
  63. <svg class="w-5 h-5" viewBox="0 0 24 24" fill="currentColor">
  64. <path d="M12.545,10.239v3.821h5.445c-0.712,2.315-2.647,3.972-5.445,3.972c-3.332,0-6.033-2.701-6.033-6.032s2.701-6.032,6.033-6.032c1.498,0,2.866,0.549,3.921,1.453l2.814-2.814C17.503,2.988,15.139,2,12.545,2C7.021,2,2.543,6.477,2.543,12s4.478,10,10.002,10c8.396,0,10.249-7.85,9.426-11.748L12.545,10.239z"/>
  65. </svg>
  66. 使用 Google 登录
  67. </button>
  68. </div>
  69. <!-- Footer -->
  70. <p class="text-center text-gray-400 text-sm mt-12">
  71. 还没有账户?<a href="#" class="text-black font-medium hover:underline underline-offset-4">立即注册</a>
  72. </p>
  73. </div>
  74. </body>
  75. </html>