index.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <!DOCTYPE html>
  2. <html lang="zh_CN" id="htmlRoot">
  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"
  8. content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" />
  9. <title>
  10. <%= title %>
  11. </title>
  12. <link rel="icon" href="/logo.png" />
  13. <!-- 全局配置 -->
  14. <script>
  15. window._CONFIG = {};
  16. </script>
  17. </head>
  18. <body>
  19. <script>
  20. (() => {
  21. var htmlRoot = document.getElementById('htmlRoot');
  22. var theme = window.localStorage.getItem('__APP__DARK__MODE__');
  23. if (htmlRoot && theme) {
  24. htmlRoot.setAttribute('data-theme', theme);
  25. theme = htmlRoot = null;
  26. }
  27. })();
  28. </script>
  29. <div id="app">
  30. <style>
  31. html[data-theme='dark'] .app-loading {
  32. background-color: #2c344a;
  33. }
  34. html[data-theme='dark'] .app-loading .app-loading-title {
  35. color: rgba(255, 255, 255, 0.85);
  36. }
  37. html[data-theme='blue'] {
  38. .app-loading {
  39. background-color: #062d5b;
  40. }
  41. .app-loading .app-loading-title {
  42. color: rgba(255, 255, 255, 0.85);
  43. }
  44. }
  45. .app-loading {
  46. display: flex;
  47. width: 100%;
  48. height: 100%;
  49. justify-content: center;
  50. align-items: center;
  51. flex-direction: column;
  52. background-color: #f4f7f9;
  53. }
  54. .app-loading .app-loading-wrap {
  55. position: absolute;
  56. top: 50%;
  57. left: 50%;
  58. display: flex;
  59. -webkit-transform: translate3d(-50%, -50%, 0);
  60. transform: translate3d(-50%, -50%, 0);
  61. justify-content: center;
  62. align-items: center;
  63. flex-direction: column;
  64. }
  65. .app-loading .dots {
  66. display: flex;
  67. padding: 98px;
  68. justify-content: center;
  69. align-items: center;
  70. }
  71. .app-loading .app-loading-title {
  72. display: flex;
  73. margin-top: 30px;
  74. font-size: 30px;
  75. color: rgba(0, 0, 0, 0.85);
  76. justify-content: center;
  77. align-items: center;
  78. }
  79. .app-loading .app-loading-logo {
  80. display: block;
  81. width: 90px;
  82. margin: 0 auto;
  83. margin-bottom: 20px;
  84. }
  85. .dot {
  86. position: relative;
  87. display: inline-block;
  88. width: 48px;
  89. height: 48px;
  90. margin-top: 30px;
  91. font-size: 32px;
  92. transform: rotate(45deg);
  93. box-sizing: border-box;
  94. animation: antRotate 1.2s infinite linear;
  95. }
  96. .dot i {
  97. position: absolute;
  98. display: block;
  99. width: 20px;
  100. height: 20px;
  101. background-color: #0065cc;
  102. border-radius: 100%;
  103. opacity: 0.3;
  104. transform: scale(0.75);
  105. animation: antSpinMove 1s infinite linear alternate;
  106. transform-origin: 50% 50%;
  107. }
  108. .dot i:nth-child(1) {
  109. top: 0;
  110. left: 0;
  111. }
  112. .dot i:nth-child(2) {
  113. top: 0;
  114. right: 0;
  115. -webkit-animation-delay: 0.4s;
  116. animation-delay: 0.4s;
  117. }
  118. .dot i:nth-child(3) {
  119. right: 0;
  120. bottom: 0;
  121. -webkit-animation-delay: 0.8s;
  122. animation-delay: 0.8s;
  123. }
  124. .dot i:nth-child(4) {
  125. bottom: 0;
  126. left: 0;
  127. -webkit-animation-delay: 1.2s;
  128. animation-delay: 1.2s;
  129. }
  130. @keyframes antRotate {
  131. to {
  132. -webkit-transform: rotate(405deg);
  133. transform: rotate(405deg);
  134. }
  135. }
  136. @-webkit-keyframes antRotate {
  137. to {
  138. -webkit-transform: rotate(405deg);
  139. transform: rotate(405deg);
  140. }
  141. }
  142. @keyframes antSpinMove {
  143. to {
  144. opacity: 1;
  145. }
  146. }
  147. @-webkit-keyframes antSpinMove {
  148. to {
  149. opacity: 1;
  150. }
  151. }
  152. </style>
  153. <div class="app-loading">
  154. <div class="app-loading-wrap">
  155. <img src="/resource/img/logo.png" class="app-loading-logo" alt="Logo" />
  156. <div class="app-loading-dots">
  157. <span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
  158. </div>
  159. <div class="app-loading-title">
  160. <%= title %>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. <script type="module" src="/src/main.ts"></script>
  166. <script>
  167. var _hmt = _hmt || [];
  168. (function () {
  169. var hm = document.createElement("script");
  170. hm.src = "https://hm.baidu.com/hm.js?0febd9e3cacb3f627ddac64d52caac39";
  171. var s = document.getElementsByTagName("script")[0];
  172. s.parentNode.insertBefore(hm, s);
  173. })();
  174. </script>
  175. </body>
  176. </html>