index.html 4.2 KB

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