index.html 3.6 KB

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