index.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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>
  16. (() => {
  17. let htmlRoot = document.getElementById('htmlRoot')
  18. let 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"] {
  28. .app-loading {
  29. background-color: #2c344a;
  30. .app-loading-title {
  31. color: rgb(255 255 255 / 85%);
  32. }
  33. }
  34. }
  35. .app-loading {
  36. display: flex;
  37. width: 100%;
  38. height: 100%;
  39. justify-content: center;
  40. align-items: center;
  41. flex-direction: column;
  42. background-color: #f4f7f9;
  43. }
  44. .app-loading .app-loading-wrap {
  45. position: absolute;
  46. top: 50%;
  47. left: 50%;
  48. display: flex;
  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: rgb(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: 30%;
  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. animation-delay: 0.4s;
  105. }
  106. .dot i:nth-child(3) {
  107. right: 0;
  108. bottom: 0;
  109. animation-delay: 0.8s;
  110. }
  111. .dot i:nth-child(4) {
  112. bottom: 0;
  113. left: 0;
  114. animation-delay: 1.2s;
  115. }
  116. @keyframes antRotate {
  117. to {
  118. transform: rotate(405deg);
  119. }
  120. }
  121. @keyframes antRotate {
  122. to {
  123. transform: rotate(405deg);
  124. }
  125. }
  126. @keyframes antSpinMove {
  127. to {
  128. opacity: 100%;
  129. }
  130. }
  131. @keyframes antSpinMove {
  132. to {
  133. opacity: 100%;
  134. }
  135. }
  136. </style>
  137. <div class="app-loading">
  138. <div class="app-loading-wrap">
  139. <img src="/resource/img/logo.png" class="app-loading-logo" alt="Logo" />
  140. <div class="app-loading-dots">
  141. <span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
  142. </div>
  143. <div class="app-loading-title">%VITE_GLOB_APP_TITLE%</div>
  144. </div>
  145. </div>
  146. </div>
  147. <script type="module" src="/src/main.ts"></script>
  148. </body>
  149. </html>