index.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <!DOCTYPE html>
  2. <html lang="en" 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>%VITE_GLOB_APP_TITLE%</title>
  12. <link rel="icon" href="/favicon.ico" />
  13. </head>
  14. <body>
  15. <script src="/iconfont.js"></script>
  16. <script src="/desktopIconfont.js"></script>
  17. <script src="/print/designer.js?v=202112311138"></script>
  18. <script src="/print/printer.js?v=202112311138"></script>
  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. window._AMapSecurityConfig = {
  28. securityJsCode: '1b21905551519807626f2bcd191a6036',
  29. };
  30. })();
  31. </script>
  32. <div id="app">
  33. <style>
  34. html[data-theme='dark'] .app-loading {
  35. background-color: #2c344a;
  36. }
  37. html[data-theme='dark'] .app-loading .app-loading-title {
  38. color: rgb(255 255 255 / 85%);
  39. }
  40. .app-loading {
  41. display: flex;
  42. width: 100%;
  43. height: 100%;
  44. justify-content: center;
  45. align-items: center;
  46. flex-direction: column;
  47. background-color: #f4f7f9;
  48. }
  49. .app-loading .app-loading-wrap {
  50. position: absolute;
  51. top: 50%;
  52. left: 50%;
  53. display: flex;
  54. transform: translate3d(-50%, -50%, 0);
  55. justify-content: center;
  56. align-items: center;
  57. flex-direction: column;
  58. }
  59. .app-loading .dots {
  60. display: flex;
  61. padding: 98px;
  62. justify-content: center;
  63. align-items: center;
  64. }
  65. .app-loading .app-loading-title {
  66. display: flex;
  67. margin-top: 30px;
  68. font-size: 30px;
  69. color: rgb(0 0 0 / 85%);
  70. justify-content: center;
  71. align-items: center;
  72. }
  73. .app-loading .app-loading-logo {
  74. display: block;
  75. width: 90px;
  76. margin: 0 auto;
  77. margin-bottom: 20px;
  78. }
  79. .dot {
  80. position: relative;
  81. display: inline-block;
  82. width: 48px;
  83. height: 48px;
  84. margin-top: 30px;
  85. font-size: 32px;
  86. transform: rotate(45deg);
  87. box-sizing: border-box;
  88. animation: antRotate 1.2s infinite linear;
  89. }
  90. .dot i {
  91. position: absolute;
  92. display: block;
  93. width: 20px;
  94. height: 20px;
  95. background-color: #0065cc;
  96. border-radius: 100%;
  97. opacity: 0.3;
  98. transform: scale(0.75);
  99. animation: antSpinMove 1s infinite linear alternate;
  100. transform-origin: 50% 50%;
  101. }
  102. .dot i:nth-child(1) {
  103. top: 0;
  104. left: 0;
  105. }
  106. .dot i:nth-child(2) {
  107. top: 0;
  108. right: 0;
  109. animation-delay: 0.4s;
  110. }
  111. .dot i:nth-child(3) {
  112. right: 0;
  113. bottom: 0;
  114. animation-delay: 0.8s;
  115. }
  116. .dot i:nth-child(4) {
  117. bottom: 0;
  118. left: 0;
  119. animation-delay: 1.2s;
  120. }
  121. @keyframes antRotate {
  122. to {
  123. transform: rotate(405deg);
  124. }
  125. }
  126. @keyframes antRotate {
  127. to {
  128. transform: rotate(405deg);
  129. }
  130. }
  131. @keyframes antSpinMove {
  132. to {
  133. opacity: 1;
  134. }
  135. }
  136. @keyframes antSpinMove {
  137. to {
  138. opacity: 1;
  139. }
  140. }
  141. </style>
  142. <div class="app-loading">
  143. <div class="app-loading-wrap">
  144. <img style="width: 300px;height: 300px;" src="/resource/img/logo.svg" class="app-loading-logo" alt="Logo" />
  145. <div class="app-loading-dots">
  146. <span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
  147. </div>
  148. <div class="app-loading-title">%VITE_GLOB_APP_TITLE%</div>
  149. </div>
  150. </div>
  151. </div>
  152. <script type="module" src="/src/main.ts"></script>
  153. </body>
  154. </html>