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