index.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name="renderer" content="webkit">
  7. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  8. <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  9. <title><%= webpackConfig.name %></title>
  10. <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
  11. <style>
  12. html,
  13. body,
  14. #app {
  15. height: 100%;
  16. margin: 0px;
  17. padding: 0px;
  18. }
  19. .chromeframe {
  20. margin: 0.2em 0;
  21. background: #ccc;
  22. color: #000;
  23. padding: 0.2em 0;
  24. }
  25. #loader-wrapper {
  26. position: fixed;
  27. top: 0;
  28. left: 0;
  29. width: 100%;
  30. height: 100%;
  31. z-index: 999999;
  32. }
  33. #loader {
  34. display: block;
  35. position: relative;
  36. left: 50%;
  37. top: 50%;
  38. width: 150px;
  39. height: 150px;
  40. margin: -75px 0 0 -75px;
  41. border-radius: 50%;
  42. border: 3px solid transparent;
  43. border-top-color: #FFF;
  44. -webkit-animation: spin 2s linear infinite;
  45. -ms-animation: spin 2s linear infinite;
  46. -moz-animation: spin 2s linear infinite;
  47. -o-animation: spin 2s linear infinite;
  48. animation: spin 2s linear infinite;
  49. z-index: 1001;
  50. }
  51. #loader:before {
  52. content: "";
  53. position: absolute;
  54. top: 5px;
  55. left: 5px;
  56. right: 5px;
  57. bottom: 5px;
  58. border-radius: 50%;
  59. border: 3px solid transparent;
  60. border-top-color: #FFF;
  61. -webkit-animation: spin 3s linear infinite;
  62. -moz-animation: spin 3s linear infinite;
  63. -o-animation: spin 3s linear infinite;
  64. -ms-animation: spin 3s linear infinite;
  65. animation: spin 3s linear infinite;
  66. }
  67. #loader:after {
  68. content: "";
  69. position: absolute;
  70. top: 15px;
  71. left: 15px;
  72. right: 15px;
  73. bottom: 15px;
  74. border-radius: 50%;
  75. border: 3px solid transparent;
  76. border-top-color: #FFF;
  77. -moz-animation: spin 1.5s linear infinite;
  78. -o-animation: spin 1.5s linear infinite;
  79. -ms-animation: spin 1.5s linear infinite;
  80. -webkit-animation: spin 1.5s linear infinite;
  81. animation: spin 1.5s linear infinite;
  82. }
  83. @-webkit-keyframes spin {
  84. 0% {
  85. -webkit-transform: rotate(0deg);
  86. -ms-transform: rotate(0deg);
  87. transform: rotate(0deg);
  88. }
  89. 100% {
  90. -webkit-transform: rotate(360deg);
  91. -ms-transform: rotate(360deg);
  92. transform: rotate(360deg);
  93. }
  94. }
  95. @keyframes spin {
  96. 0% {
  97. -webkit-transform: rotate(0deg);
  98. -ms-transform: rotate(0deg);
  99. transform: rotate(0deg);
  100. }
  101. 100% {
  102. -webkit-transform: rotate(360deg);
  103. -ms-transform: rotate(360deg);
  104. transform: rotate(360deg);
  105. }
  106. }
  107. #loader-wrapper .loader-section {
  108. position: fixed;
  109. top: 0;
  110. width: 51%;
  111. height: 100%;
  112. background: #7171C6;
  113. z-index: 1000;
  114. -webkit-transform: translateX(0);
  115. -ms-transform: translateX(0);
  116. transform: translateX(0);
  117. }
  118. #loader-wrapper .loader-section.section-left {
  119. left: 0;
  120. }
  121. #loader-wrapper .loader-section.section-right {
  122. right: 0;
  123. }
  124. .loaded #loader-wrapper .loader-section.section-left {
  125. -webkit-transform: translateX(-100%);
  126. -ms-transform: translateX(-100%);
  127. transform: translateX(-100%);
  128. -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  129. transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  130. }
  131. .loaded #loader-wrapper .loader-section.section-right {
  132. -webkit-transform: translateX(100%);
  133. -ms-transform: translateX(100%);
  134. transform: translateX(100%);
  135. -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  136. transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
  137. }
  138. .loaded #loader {
  139. opacity: 0;
  140. -webkit-transition: all 0.3s ease-out;
  141. transition: all 0.3s ease-out;
  142. }
  143. .loaded #loader-wrapper {
  144. visibility: hidden;
  145. -webkit-transform: translateY(-100%);
  146. -ms-transform: translateY(-100%);
  147. transform: translateY(-100%);
  148. -webkit-transition: all 0.3s 1s ease-out;
  149. transition: all 0.3s 1s ease-out;
  150. }
  151. .no-js #loader-wrapper {
  152. display: none;
  153. }
  154. .no-js h1 {
  155. color: #222222;
  156. }
  157. #loader-wrapper .load_title {
  158. font-family: 'Open Sans';
  159. color: #FFF;
  160. font-size: 19px;
  161. width: 100%;
  162. text-align: center;
  163. z-index: 9999999999999;
  164. position: absolute;
  165. top: 60%;
  166. opacity: 1;
  167. line-height: 30px;
  168. }
  169. #loader-wrapper .load_title span {
  170. font-weight: normal;
  171. font-style: italic;
  172. font-size: 13px;
  173. color: #FFF;
  174. opacity: 0.5;
  175. }
  176. </style>
  177. </head>
  178. <body>
  179. <div id="app">
  180. <div id="loader-wrapper">
  181. <div id="loader"></div>
  182. <div class="loader-section section-left"></div>
  183. <div class="loader-section section-right"></div>
  184. <div class="load_title">正在加载系统资源,请耐心等待</div>
  185. </div>
  186. </div>
  187. </body>
  188. </html>