index.html 3.8 KB

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