Nessuna descrizione

index.html 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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
  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. <script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=S4KKfPTez9LKGm4DtoY2BQ5527qxQ3QE"></script>
  14. </head>
  15. <body>
  16. <script>
  17. (() => {
  18. var htmlRoot = document.getElementById('htmlRoot');
  19. var theme = window.localStorage.getItem('__APP__DARK__MODE__');
  20. if (htmlRoot && theme) {
  21. htmlRoot.setAttribute('data-theme', theme);
  22. theme = htmlRoot = null;
  23. }
  24. })();
  25. </script>
  26. <div id="app">
  27. <style>
  28. html[data-theme='dark'] .app-loading {
  29. background-color: #2c344a;
  30. }
  31. html[data-theme='dark'] .app-loading .app-loading-title {
  32. color: rgb(255 255 255 / 85%);
  33. }
  34. .app-loading {
  35. display: flex;
  36. width: 100%;
  37. height: 100%;
  38. justify-content: center;
  39. align-items: center;
  40. flex-direction: column;
  41. background-color: #f4f7f9;
  42. }
  43. .app-loading .app-loading-wrap {
  44. position: absolute;
  45. top: 50%;
  46. left: 50%;
  47. display: flex;
  48. transform: translate3d(-50%, -50%, 0);
  49. justify-content: center;
  50. align-items: center;
  51. flex-direction: column;
  52. }
  53. .app-loading .dots {
  54. display: flex;
  55. padding: 98px;
  56. justify-content: center;
  57. align-items: center;
  58. }
  59. .app-loading .app-loading-title {
  60. display: flex;
  61. margin-top: 30px;
  62. font-size: 30px;
  63. color: rgb(0 0 0 / 85%);
  64. justify-content: center;
  65. align-items: center;
  66. }
  67. .app-loading .app-loading-logo {
  68. display: block;
  69. width: 90px;
  70. margin: 0 auto;
  71. margin-bottom: 20px;
  72. }
  73. .dot {
  74. position: relative;
  75. display: inline-block;
  76. width: 48px;
  77. height: 48px;
  78. margin-top: 30px;
  79. font-size: 32px;
  80. transform: rotate(45deg);
  81. box-sizing: border-box;
  82. animation: antRotate 1.2s infinite linear;
  83. }
  84. .dot i {
  85. position: absolute;
  86. display: block;
  87. width: 20px;
  88. height: 20px;
  89. background-color: #0065cc;
  90. border-radius: 100%;
  91. opacity: 30%;
  92. transform: scale(0.75);
  93. animation: antSpinMove 1s infinite linear alternate;
  94. transform-origin: 50% 50%;
  95. }
  96. .dot i:nth-child(1) {
  97. top: 0;
  98. left: 0;
  99. }
  100. .dot i:nth-child(2) {
  101. top: 0;
  102. right: 0;
  103. animation-delay: 0.4s;
  104. }
  105. .dot i:nth-child(3) {
  106. right: 0;
  107. bottom: 0;
  108. animation-delay: 0.8s;
  109. }
  110. .dot i:nth-child(4) {
  111. bottom: 0;
  112. left: 0;
  113. animation-delay: 1.2s;
  114. }
  115. @keyframes antRotate {
  116. to {
  117. transform: rotate(405deg);
  118. }
  119. }
  120. @keyframes antRotate {
  121. to {
  122. transform: rotate(405deg);
  123. }
  124. }
  125. @keyframes antSpinMove {
  126. to {
  127. opacity: 100%;
  128. }
  129. }
  130. @keyframes antSpinMove {
  131. to {
  132. opacity: 100%;
  133. }
  134. }
  135. </style>
  136. <div class="app-loading">
  137. <div class="app-loading-wrap">
  138. <img src="/resource/img/logo.png" class="app-loading-logo" alt="Logo" />
  139. <div class="app-loading-dots">
  140. <span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
  141. </div>
  142. <div class="app-loading-title"><%= title %></div>
  143. </div>
  144. </div>
  145. </div>
  146. <script type="module" src="/src/main.ts"></script>
  147. </body>
  148. </html>