index.html 3.3 KB

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