index.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <link rel="icon" href="/favicon.ico" />
  7. <title>企业级中后台基础框架</title>
  8. <style>
  9. .loading-container {
  10. position: fixed;
  11. top: 0;
  12. left: 0;
  13. width: 100%;
  14. height: 100%;
  15. display: flex;
  16. flex-direction: column;
  17. align-items: center;
  18. justify-content: center;
  19. gap: 18px;
  20. background:
  21. radial-gradient(circle at center, rgba(22, 93, 255, 0.08), transparent 34%), rgba(255, 255, 255, 0.86);
  22. }
  23. .dark .loading-container {
  24. background: radial-gradient(circle at center, rgba(64, 128, 255, 0.18), transparent 36%), rgba(15, 23, 42, 0.9);
  25. color: rgba(255, 255, 255, 0.9);
  26. }
  27. .loading-container .loading {
  28. --size: 1px;
  29. --loader-color: #165dff;
  30. width: calc(48 * var(--size));
  31. height: calc(48 * var(--size));
  32. background: var(--loader-color);
  33. border-radius: 10%;
  34. box-shadow: 0 10px 30px rgba(22, 93, 255, 0.32);
  35. animation: forge-initial-loader-rotate 1s linear infinite;
  36. }
  37. .dark .loading-container .loading {
  38. --loader-color: #4080ff;
  39. box-shadow: 0 10px 30px rgba(64, 128, 255, 0.36);
  40. }
  41. @keyframes forge-initial-loader-rotate {
  42. 0% {
  43. transform: rotate(0deg) scale(0.2);
  44. border-radius: 10%;
  45. }
  46. 50% {
  47. transform: rotate(180deg) scale(1.5);
  48. border-radius: 50%;
  49. }
  50. 100% {
  51. transform: rotate(360deg) scale(0.2);
  52. border-radius: 10%;
  53. }
  54. }
  55. </style>
  56. </head>
  57. <body class="dark:text-#e9e9e9 auto-bg">
  58. <div id="app">
  59. <div class="loading-container">
  60. <div class="loading" aria-hidden="true"></div>
  61. </div>
  62. </div>
  63. <script type="module" src="/src/main.js"></script>
  64. </body>
  65. </html>