login.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. <link rel="stylesheet" href="https://heerey525.github.io/layui-v2.4.3/layui-v2.4.4/css/layui.css">
  7. </head>
  8. <style>
  9. * {
  10. margin: 0px;
  11. padding: 0px;
  12. }
  13. html, body {
  14. width: 100%;
  15. height: 100%;
  16. font-size: 10px;
  17. }
  18. img {
  19. display: block;
  20. }
  21. .index {
  22. width: 100%;
  23. height: 100%;
  24. }
  25. video {
  26. width: 100%;
  27. height: 100%;
  28. object-fit: fill;
  29. position: fixed;
  30. z-index: 10;
  31. }
  32. .index-box {
  33. width: 100%;
  34. height: 100%;
  35. position: fixed;
  36. z-index: 20;
  37. }
  38. .logo {
  39. margin: 1rem 2rem;
  40. }
  41. .logo img {
  42. width: 26rem;
  43. }
  44. .logo-box {
  45. position: absolute;
  46. top: 50%;
  47. left: 50%;
  48. width: 70rem;
  49. height: 44rem;
  50. margin-top: -22rem;
  51. margin-left: -35rem;
  52. }
  53. .logo-box > img {
  54. width: 100%;
  55. position: absolute;
  56. }
  57. .main {
  58. width: 34.5rem;
  59. height: 41rem;
  60. position: absolute;
  61. z-index: 30;
  62. /*background: red;*/
  63. right: 2.4rem;
  64. bottom: 0px;
  65. }
  66. .title {
  67. font-size: 2rem;
  68. color: #222222;
  69. text-align: center;
  70. margin-top: 2rem;
  71. margin-bottom: 6rem;
  72. }
  73. .title span {
  74. color: #00A8FF;
  75. }
  76. .username {
  77. margin-left: 3.5rem;
  78. }
  79. .username .user-top {
  80. display: flex;
  81. font-size: 1.4rem;
  82. color: #555555;
  83. }
  84. .username .user-top img {
  85. width: 1.4rem;
  86. height: 1.6rem;
  87. margin-right: 1rem;
  88. }
  89. .username input {
  90. width: 25rem;
  91. height: 3.5rem;
  92. background: rgba(242, 242, 242, 1);
  93. border-radius: 0.4rem;
  94. border: none;
  95. font-size: 1.4rem;
  96. margin-top: 0.5rem;
  97. text-indent: 1rem;
  98. color: #555;
  99. }
  100. input::-webkit-input-placeholder {
  101. color: #999999;
  102. }
  103. .pwd {
  104. margin-top: 1.5rem;
  105. }
  106. .btn {
  107. margin-top: 4rem;
  108. margin-left: 3.5rem;
  109. overflow: hidden;
  110. }
  111. .btn-left {
  112. display: flex;
  113. align-items: center;
  114. float: left;
  115. margin-top: 1rem;
  116. }
  117. .btn-left input {
  118. width: 2rem;
  119. height: 2rem;
  120. }
  121. .btn-left span {
  122. margin-left: 0.5rem;
  123. font-size: 1.4rem;
  124. }
  125. .btn-right {
  126. float: right;
  127. margin-right: 5.8rem;
  128. }
  129. .btn-right p {
  130. width: 10rem;
  131. height: 3.5rem;
  132. background: linear-gradient(135deg, rgba(0, 168, 255, 1), rgba(26, 92, 225, 1));
  133. box-shadow: 0.1rem 0.1rem 1.6rem 0px rgba(34, 98, 225, 0.45);
  134. border-radius: 0.4rem;
  135. font-size: 1.4rem;
  136. color: #FFFFFF;
  137. text-align: center;
  138. line-height: 3.5rem;
  139. }
  140. .tip {
  141. margin-top: 4rem;
  142. text-align: center;
  143. font-size: 1.2rem;
  144. color: #999999;
  145. margin-right: 2.5rem;
  146. }
  147. </style>
  148. <body>
  149. <div class="index">
  150. <video class="video_back" src="./img/background.mp4" type="video/mp4" muted autoplay="autoplay" loop="loop">
  151. </video>
  152. <div class="index-box">
  153. <div class="logo">
  154. <img src="./img/logo.png" alt="">
  155. </div>
  156. <div class="logo-box">
  157. <img src="./img/login_bg.png" alt="">
  158. <div class="main">
  159. <p class="title">
  160. 账号
  161. <span>安全登录</span>
  162. </p>
  163. <div class="username">
  164. <div class="user-top">
  165. <img src="./img/icon_common_user.png" alt="">
  166. <span>用户名</span>
  167. </div>
  168. <div class="bottom">
  169. <input type="text" placeholder="请输入用户名">
  170. </div>
  171. </div>
  172. <div class="username pwd">
  173. <div class="user-top">
  174. <img src="./img/icon_common_user.png" alt="">
  175. <span>密 &nbsp;&nbsp;&nbsp;码</span>
  176. </div>
  177. <div class="bottom">
  178. <input type="text" placeholder="请输入用户名">
  179. </div>
  180. </div>
  181. <div class="btn">
  182. <div class="btn-left">
  183. <input type="checkbox" name="like1[write]" lay-skin="primary" title="写作" checked="">
  184. <span>记住密码</span>
  185. </div>
  186. <div class="btn-right">
  187. <p>登录</p>
  188. </div>
  189. </div>
  190. <div class="tip">
  191. <p>
  192. @2019陕西云康电子信息技术有限公司
  193. </p>
  194. </div>
  195. </div>
  196. </div>
  197. </div>
  198. </div>
  199. </body>
  200. </html>