index.html 4.3 KB

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