index.html 3.8 KB

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