index.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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="恒达行车地面站管理系统" />
  8. <title>%VITE_APP_TITLE%</title>
  9. </head>
  10. <body>
  11. <div id="app">
  12. <div class="loading-container">
  13. <div class="loading-spinner">
  14. <div class="loading-container-item">
  15. <div class="loading-container-outter"></div>
  16. <div class="loading-container-inner"></div>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. </body>
  22. <script type="module" src="/src/main.ts"></script>
  23. <style>
  24. html,
  25. body,
  26. #app {
  27. position: relative;
  28. display: flex;
  29. align-items: center;
  30. justify-content: center;
  31. width: 100%;
  32. height: 100%;
  33. }
  34. .loading-container {
  35. display: flex;
  36. flex-direction: column;
  37. gap: 24px;
  38. align-items: center;
  39. justify-content: center;
  40. }
  41. .loading-container .loading-spinner {
  42. position: absolute;
  43. top: 50%;
  44. left: 50%;
  45. display: flex;
  46. -webkit-transform: translate3d(-50%, -50%, 0);
  47. transform: translate3d(-50%, -50%, 0);
  48. justify-content: center;
  49. align-items: center;
  50. flex-direction: column;
  51. }
  52. .loading-container .loading-container-item {
  53. position: relative;
  54. display: inline-block;
  55. width: 60px;
  56. height: 60px;
  57. vertical-align: middle;
  58. border-radius: 50%;
  59. }
  60. .loading-container .loading-container-outter {
  61. position: absolute;
  62. width: 100%;
  63. height: 100%;
  64. border: 4px solid #2d8cf0;
  65. border-bottom: 0;
  66. border-left-color: transparent;
  67. border-radius: 50%;
  68. animation: loader-outter 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
  69. }
  70. .loading-container .loading-container-inner {
  71. position: absolute;
  72. top: calc(50% - 20px);
  73. left: calc(50% - 20px);
  74. width: 40px;
  75. height: 40px;
  76. border: 4px solid #87bdff;
  77. border-right: 0;
  78. border-top-color: transparent;
  79. border-radius: 50%;
  80. animation: loader-inner 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
  81. }
  82. @-webkit-keyframes loader-outter {
  83. 0% {
  84. -webkit-transform: rotate(0deg);
  85. transform: rotate(0deg);
  86. }
  87. 100% {
  88. -webkit-transform: rotate(360deg);
  89. transform: rotate(360deg);
  90. }
  91. }
  92. @keyframes loader-outter {
  93. 0% {
  94. -webkit-transform: rotate(0deg);
  95. transform: rotate(0deg);
  96. }
  97. 100% {
  98. -webkit-transform: rotate(360deg);
  99. transform: rotate(360deg);
  100. }
  101. }
  102. @-webkit-keyframes loader-inner {
  103. 0% {
  104. -webkit-transform: rotate(0deg);
  105. transform: rotate(0deg);
  106. }
  107. 100% {
  108. -webkit-transform: rotate(-360deg);
  109. transform: rotate(-360deg);
  110. }
  111. }
  112. @keyframes loader-inner {
  113. 0% {
  114. -webkit-transform: rotate(0deg);
  115. transform: rotate(0deg);
  116. }
  117. 100% {
  118. -webkit-transform: rotate(-360deg);
  119. transform: rotate(-360deg);
  120. }
  121. }
  122. </style>
  123. </html>