index.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <link rel="icon" href="/logo.png" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <meta name="description" content="Vue3 + Vite + TypeScript + Element-Plus 的后台管理模板 " />
  8. <meta
  9. name="keywords"
  10. content="vue,element-plus,typescript,vue-element-admin,vue3-element-admin"
  11. />
  12. <title>%VITE_APP_TITLE%</title>
  13. </head>
  14. <body>
  15. <div id="app">
  16. <div class="loading-container">
  17. <div class="loading-spinner">
  18. <div class="loading-container-item">
  19. <div class="loading-container-outter"></div>
  20. <div class="loading-container-inner"></div>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. </body>
  26. <script type="module" src="/src/main.ts"></script>
  27. <style>
  28. html,
  29. body,
  30. #app {
  31. position: relative;
  32. display: flex;
  33. align-items: center;
  34. justify-content: center;
  35. width: 100%;
  36. height: 100%;
  37. }
  38. .loading-container {
  39. display: flex;
  40. flex-direction: column;
  41. gap: 24px;
  42. align-items: center;
  43. justify-content: center;
  44. }
  45. .loading-container .loading-spinner {
  46. position: absolute;
  47. top: 50%;
  48. left: 50%;
  49. display: flex;
  50. -webkit-transform: translate3d(-50%, -50%, 0);
  51. transform: translate3d(-50%, -50%, 0);
  52. justify-content: center;
  53. align-items: center;
  54. flex-direction: column;
  55. }
  56. .loading-container .loading-container-item {
  57. position: relative;
  58. display: inline-block;
  59. width: 60px;
  60. height: 60px;
  61. vertical-align: middle;
  62. border-radius: 50%;
  63. }
  64. .loading-container .loading-container-outter {
  65. position: absolute;
  66. width: 100%;
  67. height: 100%;
  68. border: 4px solid #2d8cf0;
  69. border-bottom: 0;
  70. border-left-color: transparent;
  71. border-radius: 50%;
  72. animation: loader-outter 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
  73. }
  74. .loading-container .loading-container-inner {
  75. position: absolute;
  76. top: calc(50% - 20px);
  77. left: calc(50% - 20px);
  78. width: 40px;
  79. height: 40px;
  80. border: 4px solid #87bdff;
  81. border-right: 0;
  82. border-top-color: transparent;
  83. border-radius: 50%;
  84. animation: loader-inner 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
  85. }
  86. @-webkit-keyframes loader-outter {
  87. 0% {
  88. -webkit-transform: rotate(0deg);
  89. transform: rotate(0deg);
  90. }
  91. 100% {
  92. -webkit-transform: rotate(360deg);
  93. transform: rotate(360deg);
  94. }
  95. }
  96. @keyframes loader-outter {
  97. 0% {
  98. -webkit-transform: rotate(0deg);
  99. transform: rotate(0deg);
  100. }
  101. 100% {
  102. -webkit-transform: rotate(360deg);
  103. transform: rotate(360deg);
  104. }
  105. }
  106. @-webkit-keyframes loader-inner {
  107. 0% {
  108. -webkit-transform: rotate(0deg);
  109. transform: rotate(0deg);
  110. }
  111. 100% {
  112. -webkit-transform: rotate(-360deg);
  113. transform: rotate(-360deg);
  114. }
  115. }
  116. @keyframes loader-inner {
  117. 0% {
  118. -webkit-transform: rotate(0deg);
  119. transform: rotate(0deg);
  120. }
  121. 100% {
  122. -webkit-transform: rotate(-360deg);
  123. transform: rotate(-360deg);
  124. }
  125. }
  126. </style>
  127. </html>