index.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>%VITE_APP_TITLE%</title>
  5. <meta charset="UTF-8" />
  6. <meta name="renderer" content="webkit" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  8. <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
  9. <style>
  10. html,
  11. body,
  12. #app {
  13. height: 100%;
  14. }
  15. * {
  16. margin: 0;
  17. padding: 0;
  18. font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  19. }
  20. .preload__wrap {
  21. display: flex;
  22. flex-direction: column;
  23. letter-spacing: 1px;
  24. background-color: #2f3447;
  25. position: fixed;
  26. left: 0;
  27. top: 0;
  28. height: 100%;
  29. width: 100%;
  30. z-index: 9999;
  31. transition: all 0.3s ease-in;
  32. opacity: 1;
  33. pointer-events: none;
  34. }
  35. .preload__wrap.is-hide {
  36. opacity: 0;
  37. }
  38. .preload__container {
  39. display: flex;
  40. justify-content: center;
  41. align-items: center;
  42. flex-direction: column;
  43. width: 100%;
  44. user-select: none;
  45. -webkit-user-select: none;
  46. flex-grow: 1;
  47. }
  48. .preload__name {
  49. font-size: 30px;
  50. color: #fff;
  51. letter-spacing: 5px;
  52. font-weight: bold;
  53. margin-bottom: 30px;
  54. }
  55. .preload__title {
  56. color: #fff;
  57. font-size: 14px;
  58. margin: 30px 0 20px 0;
  59. }
  60. .preload__sub-title {
  61. color: #ababab;
  62. font-size: 12px;
  63. }
  64. .preload__footer {
  65. text-align: center;
  66. padding: 10px 0 20px 0;
  67. }
  68. .preload__footer a {
  69. font-size: 12px;
  70. color: #ababab;
  71. text-decoration: none;
  72. }
  73. .preload__loading {
  74. height: 30px;
  75. width: 30px;
  76. border-radius: 30px;
  77. border: 7px solid currentColor;
  78. border-bottom-color: #2f3447 !important;
  79. position: relative;
  80. animation: r 1s infinite cubic-bezier(0.17, 0.67, 0.83, 0.67), bc 2s infinite ease-in;
  81. transform: rotate(0deg);
  82. }
  83. @keyframes r {
  84. from {
  85. transform: rotate(0deg);
  86. }
  87. to {
  88. transform: rotate(360deg);
  89. }
  90. }
  91. .preload__loading::after,
  92. .preload__loading::before {
  93. content: '';
  94. display: inline-block;
  95. position: absolute;
  96. bottom: -2px;
  97. height: 7px;
  98. width: 7px;
  99. border-radius: 10px;
  100. background-color: currentColor;
  101. }
  102. .preload__loading::after {
  103. left: -1px;
  104. }
  105. .preload__loading::before {
  106. right: -1px;
  107. }
  108. @keyframes bc {
  109. 0% {
  110. color: #689cc5;
  111. }
  112. 25% {
  113. color: #b3b7e2;
  114. }
  115. 50% {
  116. color: #93dbe9;
  117. }
  118. 75% {
  119. color: #abbd81;
  120. }
  121. 100% {
  122. color: #689cc5;
  123. }
  124. }
  125. </style>
  126. </head>
  127. <body>
  128. <noscript>
  129. <strong>你的浏览器未开启javascript支持,请开启后刷新页面访问!</strong>
  130. </noscript>
  131. <div id="app" class="ma-ui">
  132. <div class="preload__wrap" id="Loading">
  133. <div class="preload__container">
  134. <p class="preload__name">%VITE_APP_TITLE%</p>
  135. <div class="preload__loading"></div>
  136. <p class="preload__title">正在加载资源...</p>
  137. <p class="preload__sub-title">初次加载资源可能需要较多时间 请耐心等待</p>
  138. </div>
  139. <div class="preload__footer">
  140. <a href="https://saithink.top" target="_blank">https://saithink.top</a>
  141. </div>
  142. </div>
  143. </div>
  144. <script type="module" src="/src/main.js"></script>
  145. </body>
  146. </html>