index.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <link rel="icon" href="/favicon.ico" />
  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-bar"></div>
  19. <div class="loading-bar"></div>
  20. <div class="loading-bar"></div>
  21. </div>
  22. </div>
  23. </div>
  24. </body>
  25. <script type="module" src="/src/main.ts"></script>
  26. <style>
  27. html,
  28. body,
  29. #app {
  30. position: relative;
  31. display: flex;
  32. align-items: center;
  33. justify-content: center;
  34. width: 100%;
  35. height: 100%;
  36. }
  37. .loading-container {
  38. display: flex;
  39. flex-direction: column;
  40. gap: 24px;
  41. align-items: center;
  42. justify-content: center;
  43. }
  44. .loading-spinner {
  45. display: flex;
  46. gap: 6px;
  47. align-items: center;
  48. justify-content: center;
  49. height: 40px;
  50. }
  51. .loading-bar {
  52. width: 4px;
  53. height: 24px;
  54. background-color: #498cff;
  55. border-radius: 2px;
  56. animation: loading-animation 1.2s ease-in-out infinite;
  57. }
  58. .loading-bar:nth-child(1) {
  59. animation-delay: 0s;
  60. }
  61. .loading-bar:nth-child(2) {
  62. animation-delay: 0.2s;
  63. }
  64. .loading-bar:nth-child(3) {
  65. animation-delay: 0.4s;
  66. }
  67. @keyframes loading-animation {
  68. 0% {
  69. opacity: 0.3;
  70. transform: scaleY(0.5);
  71. }
  72. 50% {
  73. opacity: 1;
  74. transform: scaleY(1.2);
  75. }
  76. 100% {
  77. opacity: 0.3;
  78. transform: scaleY(0.5);
  79. }
  80. }
  81. </style>
  82. </html>