index.html 3.1 KB

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