index.html 3.7 KB

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