login.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Login</title>
  6. <link rel="stylesheet" type="text/css" href="Login.css"/>
  7. <style type="text/css">
  8. html{
  9. width: 100%;
  10. height: 100%;
  11. overflow: hidden;
  12. font-style: sans-serif;
  13. }
  14. body{
  15. width: 100%;
  16. height: 100%;
  17. font-family: 'Open Sans',sans-serif;
  18. margin: 0;
  19. background-color: #2b2727;
  20. }
  21. #login{
  22. position: absolute;
  23. top: 50%;
  24. left:50%;
  25. margin: -150px 0 0 -250px;
  26. width: 500px;
  27. height: 380px;
  28. background-color: #504b4b;
  29. }
  30. #login h1{
  31. color: #fff;
  32. text-shadow:0 0 10px;
  33. letter-spacing: 1px;
  34. text-align: center;
  35. }
  36. h1{
  37. font-size: 2em;
  38. margin: 0.67em 0;
  39. }
  40. input{
  41. width: 278px;
  42. height: 18px;
  43. margin-bottom: 10px;
  44. outline: none;
  45. padding: 10px;
  46. font-size: 13px;
  47. color: #fff;
  48. text-shadow:1px 1px 1px;
  49. border-top: 1px solid #312E3D;
  50. border-left: 1px solid #312E3D;
  51. border-right: 1px solid #312E3D;
  52. border-bottom: 1px solid #56536A;
  53. border-radius: 4px;
  54. background-color: #2D2D3F;
  55. }
  56. .but{
  57. width: 300px;
  58. min-height: 20px;
  59. display: block;
  60. background-color: #e9982f;
  61. border: 1px solid #e9982f;
  62. color: rgb(0, 0, 0);
  63. padding: 9px 14px;
  64. font-size: 20px;
  65. line-height: normal;
  66. border-radius: 5px;
  67. margin: 0;
  68. font-weight: bold;
  69. }
  70. .smile{
  71. margin:320px auto;
  72. width: 80px;
  73. height: 80px;
  74. font-size: 80px;
  75. animation: action 6s linear infinite;
  76. color:white;
  77. }
  78. @keyframes action {
  79. from {
  80. transform: rotate(0deg) translate(300px,80px) rotate(0deg);
  81. }
  82. to {
  83. transform: rotate(360deg) translate(300px,80px) rotate(-360deg);
  84. }
  85. }
  86. </style>
  87. </head>
  88. <body>
  89. <div id="login">
  90. <h1>Login</h1>
  91. <form method="post" action="/login">
  92. <input style="margin:20px 20px 20px 100px;" type="text" value="" name="username" placeholder="用户名"></input>
  93. <input style="margin:20px 20px 20px 100px;" type="password" name="password" value="" placeholder="密码"></input>
  94. <p style="color: rgb(247, 240, 240);text-align: center" th:text="${session.msg}"></p>
  95. <button style="margin:20px 20px 20px 100px;" class="but" type="submit">登录</button>
  96. </form>
  97. </div>
  98. <div class="smile">☺</div>
  99. <script type="text/javascript">
  100. for (var i=0;i<5;i++) {
  101. setTimeout(()=>{
  102. console.log(i)
  103. },1000*i)
  104. }
  105. </script>
  106. </body>
  107. </html>