index.html 3.5 KB

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