index.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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: rgb(255 255 255 / 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. transform: translate3d(-50%, -50%, 0);
  48. justify-content: center;
  49. align-items: center;
  50. flex-direction: column;
  51. }
  52. .app-loading .dots {
  53. display: flex;
  54. padding: 98px;
  55. justify-content: center;
  56. align-items: center;
  57. }
  58. .app-loading .app-loading-title {
  59. display: flex;
  60. margin-top: 30px;
  61. font-size: 30px;
  62. color: rgb(0 0 0 / 85%);
  63. justify-content: center;
  64. align-items: center;
  65. }
  66. .app-loading .app-loading-logo {
  67. display: block;
  68. width: 90px;
  69. margin: 0 auto;
  70. margin-bottom: 20px;
  71. }
  72. .dot {
  73. position: relative;
  74. display: inline-block;
  75. width: 48px;
  76. height: 48px;
  77. margin-top: 30px;
  78. font-size: 32px;
  79. transform: rotate(45deg);
  80. box-sizing: border-box;
  81. animation: antRotate 1.2s infinite linear;
  82. }
  83. .dot i {
  84. position: absolute;
  85. display: block;
  86. width: 20px;
  87. height: 20px;
  88. background-color: #0065cc;
  89. border-radius: 100%;
  90. opacity: 30%;
  91. transform: scale(0.75);
  92. animation: antSpinMove 1s infinite linear alternate;
  93. transform-origin: 50% 50%;
  94. }
  95. .dot i:nth-child(1) {
  96. top: 0;
  97. left: 0;
  98. }
  99. .dot i:nth-child(2) {
  100. top: 0;
  101. right: 0;
  102. animation-delay: 0.4s;
  103. }
  104. .dot i:nth-child(3) {
  105. right: 0;
  106. bottom: 0;
  107. animation-delay: 0.8s;
  108. }
  109. .dot i:nth-child(4) {
  110. bottom: 0;
  111. left: 0;
  112. animation-delay: 1.2s;
  113. }
  114. @keyframes antRotate {
  115. to {
  116. transform: rotate(405deg);
  117. }
  118. }
  119. @keyframes antRotate {
  120. to {
  121. transform: rotate(405deg);
  122. }
  123. }
  124. @keyframes antSpinMove {
  125. to {
  126. opacity: 100%;
  127. }
  128. }
  129. @keyframes antSpinMove {
  130. to {
  131. opacity: 100%;
  132. }
  133. }
  134. </style>
  135. <div class="app-loading">
  136. <div class="app-loading-wrap">
  137. <img src="/resource/img/logo.png" class="app-loading-logo" alt="Logo" />
  138. <div class="app-loading-dots">
  139. <span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
  140. </div>
  141. <div class="app-loading-title"><%= title %></div>
  142. </div>
  143. </div>
  144. </div>
  145. <script type="module" src="/src/main.ts"></script>
  146. </body>
  147. </html>