index.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <link rel="icon" href="/favicon.ico" />
  6. <!-- <meta http-equiv="pragma" content="no-cache" />
  7. <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" />
  8. <meta http-equiv="expires" content="0" /> -->
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  10. <title>%VITE_APP_TITLE%</title>
  11. </head>
  12. <body>
  13. <div id="app">
  14. <style>
  15. .app-loading {
  16. display: flex;
  17. width: 100%;
  18. height: 100%;
  19. justify-content: center;
  20. align-items: center;
  21. flex-direction: column;
  22. background: #f0f2f5;
  23. }
  24. .app-loading .app-loading-wrap {
  25. position: absolute;
  26. top: 50%;
  27. left: 50%;
  28. display: flex;
  29. -webkit-transform: translate3d(-50%, -50%, 0);
  30. transform: translate3d(-50%, -50%, 0);
  31. justify-content: center;
  32. align-items: center;
  33. flex-direction: column;
  34. }
  35. .app-loading .app-loading-title {
  36. margin-bottom: 30px;
  37. font-size: 20px;
  38. font-weight: bold;
  39. text-align: center;
  40. }
  41. .app-loading .app-loading-logo {
  42. width: 100px;
  43. margin: 0 auto 15px auto;
  44. }
  45. .app-loading .app-loading-item {
  46. position: relative;
  47. display: inline-block;
  48. width: 60px;
  49. height: 60px;
  50. vertical-align: middle;
  51. border-radius: 50%;
  52. }
  53. .app-loading .app-loading-outter {
  54. position: absolute;
  55. width: 100%;
  56. height: 100%;
  57. border: 4px solid #2d8cf0;
  58. border-bottom: 0;
  59. border-left-color: transparent;
  60. border-radius: 50%;
  61. animation: loader-outter 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
  62. }
  63. .app-loading .app-loading-inner {
  64. position: absolute;
  65. top: calc(50% - 20px);
  66. left: calc(50% - 20px);
  67. width: 40px;
  68. height: 40px;
  69. border: 4px solid #87bdff;
  70. border-right: 0;
  71. border-top-color: transparent;
  72. border-radius: 50%;
  73. animation: loader-inner 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
  74. }
  75. @-webkit-keyframes loader-outter {
  76. 0% {
  77. -webkit-transform: rotate(0deg);
  78. transform: rotate(0deg);
  79. }
  80. 100% {
  81. -webkit-transform: rotate(360deg);
  82. transform: rotate(360deg);
  83. }
  84. }
  85. @keyframes loader-outter {
  86. 0% {
  87. -webkit-transform: rotate(0deg);
  88. transform: rotate(0deg);
  89. }
  90. 100% {
  91. -webkit-transform: rotate(360deg);
  92. transform: rotate(360deg);
  93. }
  94. }
  95. @-webkit-keyframes loader-inner {
  96. 0% {
  97. -webkit-transform: rotate(0deg);
  98. transform: rotate(0deg);
  99. }
  100. 100% {
  101. -webkit-transform: rotate(-360deg);
  102. transform: rotate(-360deg);
  103. }
  104. }
  105. @keyframes loader-inner {
  106. 0% {
  107. -webkit-transform: rotate(0deg);
  108. transform: rotate(0deg);
  109. }
  110. 100% {
  111. -webkit-transform: rotate(-360deg);
  112. transform: rotate(-360deg);
  113. }
  114. }
  115. </style>
  116. <div class="app-loading">
  117. <div class="app-loading-wrap">
  118. <div class="app-loading-title">
  119. <div class="app-loading-title">%VITE_APP_TITLE%</div>
  120. </div>
  121. <div class="app-loading-item">
  122. <div class="app-loading-outter"></div>
  123. <div class="app-loading-inner"></div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. <script type="module" src="/src/main.js"></script>
  129. </body>
  130. <style>
  131. /* 复写vuetify css属性 */
  132. html {
  133. overflow: auto;
  134. }
  135. </style>
  136. </html>