login.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <extend name="Public/layout"/>
  2. <block name="style">
  3. <link rel="stylesheet" href="__PUBLIC__/libs/css/particles.css">
  4. <style type="text/css">
  5. #particles-js{
  6. position:absolute;
  7. top:0;
  8. left:0;
  9. right:0;
  10. bottom:0;
  11. }
  12. .background {
  13. position: absolute;
  14. right: 0px;
  15. top: 0px;
  16. bottom: 0px;
  17. left: 0px;
  18. }
  19. .brand {
  20. width: 100%;
  21. margin-bottom: 50px;
  22. text-align: center;
  23. }
  24. .brand a {
  25. height: 65px;
  26. font-size: 50px;
  27. text-align: center;
  28. }
  29. .brand a:hover {
  30. text-decoration: none;
  31. }
  32. .brand img.logo {
  33. width: 100%;
  34. /*max-height: 100px;*/
  35. padding: 0 30px;
  36. text-align: center;
  37. }
  38. .panel-lite {
  39. position:absolute;
  40. top:0;
  41. left:0;
  42. margin: 8% auto;
  43. max-width: 400px;
  44. background: #fff;
  45. padding: 45px 30px;
  46. border-radius: 4px;
  47. box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  48. position: relative;
  49. }
  50. .panel-lite h4 {
  51. font-weight: 400;
  52. font-size: 24px;
  53. text-align: center;
  54. color: #1685d0;
  55. margin: 20px auto 35px;
  56. }
  57. .panel-lite a.link {
  58. display: inline-block;
  59. margin-top: 25px;
  60. text-decoration: none;
  61. color: #1685d0;
  62. font-size: 14px;
  63. }
  64. .form-group {
  65. position: relative;
  66. font-size: 15px;
  67. color: #666;
  68. }
  69. .form-group + .form-group {
  70. margin-top: 30px;
  71. }
  72. .form-group .form-label {
  73. position: absolute;
  74. z-index: 1;
  75. left: 0;
  76. top: 5px;
  77. -webkit-transition: 0.3s;
  78. transition: 0.3s;
  79. }
  80. .form-group .form-control {
  81. width: 100%;
  82. position: relative;
  83. z-index: 3;
  84. height: 35px;
  85. background: none;
  86. border: none;
  87. padding: 5px 0;
  88. -webkit-transition: 0.3s;
  89. transition: 0.3s;
  90. border-bottom: 1px solid #777;
  91. box-shadow: none;
  92. border-radius: 0;
  93. }
  94. .form-group .form-control:invalid {
  95. outline: none;
  96. }
  97. .form-group .form-control:focus, .form-group .form-control:valid {
  98. outline: none;
  99. color: #1685d0;
  100. -ms-box-shadow:0 0 0px 1000px white inset;
  101. -webkit-box-shadow: 0 0 0px 1000px white inset;
  102. box-shadow:0 0 0px 1000px white inset;
  103. border-color: #1685d0;
  104. }
  105. .form-group .form-control:focus + .form-label,
  106. .form-group .form-control:valid + .form-label {
  107. font-size: 12px;
  108. -ms-transform: translateY(-25px);
  109. -webkit-transform: translateY(-25px);
  110. transform: translateY(-25px);
  111. }
  112. .floating-btn {
  113. background: #1685d0;
  114. width: 60px;
  115. height: 60px;
  116. border-radius: 50%;
  117. color: #fff;
  118. font-size: 32px;
  119. border: none;
  120. position: absolute;
  121. margin: auto;
  122. -webkit-transition: 0.3s;
  123. transition: 0.3s;
  124. box-shadow: 1px 0px 0px rgba(0, 0, 0, 0.3) inset;
  125. margin: auto;
  126. right: -30px;
  127. bottom: 90px;
  128. cursor: pointer;
  129. }
  130. .floating-btn:hover {
  131. box-shadow: 0 0 0 rgba(0, 0, 0, 0.3) inset, 0 3px 6px rgba(0, 0, 0, 0.16), 0 5px 11px rgba(0, 0, 0, 0.23);
  132. }
  133. .floating-btn:hover .icon-arrow {
  134. -ms-transform: rotate(45deg) scale(1.2);
  135. -webkit-transform: rotate(45deg) scale(1.2);
  136. transform: rotate(45deg) scale(1.2);
  137. }
  138. .floating-btn:focus, .floating-btn:active {
  139. outline: none;
  140. }
  141. .icon-arrow {
  142. position: relative;
  143. width: 13px;
  144. height: 13px;
  145. border-right: 3px solid #fff;
  146. border-top: 3px solid #fff;
  147. display: block;
  148. -ms-transform: rotate(45deg);
  149. -webkit-transform: rotate(45deg);
  150. transform: rotate(45deg);
  151. margin: auto;
  152. -webkit-transition: 0.3s;
  153. transition: 0.3s;
  154. }
  155. .icon-arrow:after {
  156. content: '';
  157. position: absolute;
  158. width: 18px;
  159. height: 3px;
  160. background: #fff;
  161. left: -5px;
  162. top: 5px;
  163. -ms-transform: rotate(-45deg);
  164. -webkit-transform: rotate(-45deg);
  165. transform: rotate(-45deg);
  166. }
  167. .verifyimg-box {
  168. padding: 0;
  169. border: 0;
  170. }
  171. .verifyimg-box .verifyimg {
  172. cursor: pointer;
  173. width: 130px;
  174. height: 41px;
  175. margin-top: -6px;
  176. border-bottom: 1px solid #777;
  177. }
  178. @media (max-width: 768px) {
  179. .background {
  180. display: none;
  181. }
  182. .panel-lite {
  183. box-shadow: none;
  184. border-color: #fff;
  185. }
  186. }
  187. </style>
  188. </block>
  189. <block name="full-header"></block>
  190. <block name="full-container">
  191. <!-- 背景 -->
  192. <div id="particles-js">
  193. <div class="background">
  194. <!-- 登陆框 -->
  195. <div class="panel-lite">
  196. <div class="brand">
  197. <php>if(C('WEB_SITE_LOGO')):</php>
  198. <a href="{:C('HOME_PAGE')}" target="_blank">
  199. <img alt="logo" class="logo img-responsive" src="{$Think.config.WEB_SITE_LOGO|get_cover}">
  200. </a>
  201. <php>else:</php>
  202. <a href="{:C('HOME_PAGE')}" target="_blank">
  203. {:C('LOGO_DEFAULT')}
  204. </a>
  205. <php>endif;</php>
  206. </div>
  207. <form class="login-form" action="{:U('Admin/Public/login')}" method="post">
  208. <div class="form-group">
  209. <input type="text" required="required" class="form-control" name="username" autocomplete="off">
  210. <label class="form-label">账 号</label>
  211. </div>
  212. <div class="form-group">
  213. <input type="password" required="required" class="form-control" name="password">
  214. <label class="form-label">密 码</label>
  215. </div>
  216. <div class="form-group">
  217. <a type="submit" class="visible-xs btn btn-primary-outline btn-block btn-pill btn-lg ajax-post" target-form="login-form">登录</a>
  218. </div>
  219. <button type="submit" class="floating-btn ajax-post hidden-xs" target-form="login-form">
  220. <i class="icon-arrow"></i>
  221. </button>
  222. </form>
  223. </div>
  224. </div>
  225. </div>
  226. <script type="text/javascript" src="__PUBLIC__/libs/js/particles-config.js"></script>
  227. </block>