index.html 3.8 KB

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