minimal-03-border.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  9. <style>body { font-family: 'Inter', sans-serif; }</style>
  10. </head>
  11. <body class="min-h-screen flex items-center justify-center p-4 bg-white">
  12. <div class="w-full max-w-sm">
  13. <!-- Card with border -->
  14. <div class="border-2 border-black p-8">
  15. <!-- Logo -->
  16. <div class="mb-10">
  17. <div class="flex items-center gap-2 mb-8">
  18. <div class="w-8 h-8 bg-black flex items-center justify-center">
  19. <svg class="w-4 h-4 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="font-semibold text-black">TG Live</span>
  24. </div>
  25. <h1 class="text-2xl font-bold text-black">登录</h1>
  26. </div>
  27. <!-- Form -->
  28. <form class="space-y-5">
  29. <div>
  30. <label class="block text-black text-sm font-medium mb-2">用户名</label>
  31. <input type="text" placeholder="输入用户名"
  32. class="w-full px-0 py-3 bg-transparent border-b-2 border-gray-300 text-black placeholder-gray-400 focus:outline-none focus:border-black transition-colors">
  33. </div>
  34. <div>
  35. <label class="block text-black text-sm font-medium mb-2">密码</label>
  36. <input type="password" placeholder="输入密码"
  37. class="w-full px-0 py-3 bg-transparent border-b-2 border-gray-300 text-black placeholder-gray-400 focus:outline-none focus:border-black transition-colors">
  38. </div>
  39. <div class="flex items-center justify-between text-sm pt-2">
  40. <label class="flex items-center text-gray-600 cursor-pointer">
  41. <input type="checkbox" class="w-4 h-4 border-2 border-black text-black focus:ring-black mr-2">
  42. 记住我
  43. </label>
  44. <a href="#" class="text-black font-medium underline underline-offset-4">忘记密码?</a>
  45. </div>
  46. <button type="submit" class="w-full py-3.5 bg-black hover:bg-gray-900 text-white font-medium transition-colors cursor-pointer mt-6">
  47. 登录
  48. </button>
  49. </form>
  50. <!-- Divider -->
  51. <div class="flex items-center my-8">
  52. <div class="flex-1 h-px bg-gray-300"></div>
  53. <span class="px-4 text-gray-400 text-sm">或</span>
  54. <div class="flex-1 h-px bg-gray-300"></div>
  55. </div>
  56. <!-- Social -->
  57. <button class="w-full py-3 border-2 border-black hover:bg-black hover:text-white transition-colors flex items-center justify-center gap-2 cursor-pointer font-medium">
  58. <svg class="w-5 h-5" viewBox="0 0 24 24" fill="currentColor"><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"/></svg>
  59. Google
  60. </button>
  61. </div>
  62. <!-- Footer -->
  63. <p class="text-center text-gray-600 text-sm mt-6">
  64. 还没有账户?<a href="#" class="text-black font-medium underline underline-offset-4">注册</a>
  65. </p>
  66. </div>
  67. </body>
  68. </html>