index.html 5.1 KB

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