index.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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
  8. name="viewport"
  9. content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
  10. />
  11. <title><%= title %></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. .app-loading {
  38. display: flex;
  39. width: 100%;
  40. height: 100%;
  41. justify-content: center;
  42. align-items: center;
  43. flex-direction: column;
  44. background-color: #f4f7f9;
  45. }
  46. .app-loading .app-loading-wrap {
  47. position: absolute;
  48. top: 50%;
  49. left: 50%;
  50. display: flex;
  51. -webkit-transform: translate3d(-50%, -50%, 0);
  52. transform: translate3d(-50%, -50%, 0);
  53. justify-content: center;
  54. align-items: center;
  55. flex-direction: column;
  56. }
  57. .app-loading .dots {
  58. display: flex;
  59. padding: 98px;
  60. justify-content: center;
  61. align-items: center;
  62. }
  63. .app-loading .app-loading-title {
  64. display: flex;
  65. margin-top: 30px;
  66. font-size: 30px;
  67. color: rgba(0, 0, 0, 0.85);
  68. justify-content: center;
  69. align-items: center;
  70. }
  71. .app-loading .app-loading-logo {
  72. display: block;
  73. width: 90px;
  74. margin: 0 auto;
  75. margin-bottom: 20px;
  76. }
  77. .dot {
  78. position: relative;
  79. display: inline-block;
  80. width: 48px;
  81. height: 48px;
  82. margin-top: 30px;
  83. font-size: 32px;
  84. transform: rotate(45deg);
  85. box-sizing: border-box;
  86. animation: antRotate 1.2s infinite linear;
  87. }
  88. .dot i {
  89. position: absolute;
  90. display: block;
  91. width: 20px;
  92. height: 20px;
  93. background-color: #0065cc;
  94. border-radius: 100%;
  95. opacity: 0.3;
  96. transform: scale(0.75);
  97. animation: antSpinMove 1s infinite linear alternate;
  98. transform-origin: 50% 50%;
  99. }
  100. .dot i:nth-child(1) {
  101. top: 0;
  102. left: 0;
  103. }
  104. .dot i:nth-child(2) {
  105. top: 0;
  106. right: 0;
  107. -webkit-animation-delay: 0.4s;
  108. animation-delay: 0.4s;
  109. }
  110. .dot i:nth-child(3) {
  111. right: 0;
  112. bottom: 0;
  113. -webkit-animation-delay: 0.8s;
  114. animation-delay: 0.8s;
  115. }
  116. .dot i:nth-child(4) {
  117. bottom: 0;
  118. left: 0;
  119. -webkit-animation-delay: 1.2s;
  120. animation-delay: 1.2s;
  121. }
  122. @keyframes antRotate {
  123. to {
  124. -webkit-transform: rotate(405deg);
  125. transform: rotate(405deg);
  126. }
  127. }
  128. @-webkit-keyframes antRotate {
  129. to {
  130. -webkit-transform: rotate(405deg);
  131. transform: rotate(405deg);
  132. }
  133. }
  134. @keyframes antSpinMove {
  135. to {
  136. opacity: 1;
  137. }
  138. }
  139. @-webkit-keyframes antSpinMove {
  140. to {
  141. opacity: 1;
  142. }
  143. }
  144. </style>
  145. <div class="app-loading">
  146. <div class="app-loading-wrap">
  147. <img src="./src/assets/images/logo.png" class="app-loading-logo" alt="Logo" />
  148. <div class="app-loading-dots">
  149. <span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
  150. </div>
  151. <div class="app-loading-title"><%= title %></div>
  152. </div>
  153. </div>
  154. </div>
  155. <script type="module" src="/src/main.ts"></script>
  156. <script>
  157. var _hmt = _hmt || [];
  158. (function() {
  159. var hm = document.createElement("script");
  160. hm.src = "https://hm.baidu.com/hm.js?0febd9e3cacb3f627ddac64d52caac39";
  161. var s = document.getElementsByTagName("script")[0];
  162. s.parentNode.insertBefore(hm, s);
  163. })();
  164. </script>
  165. </body>
  166. </html>