平安校园
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

107 righe
2.7 KiB

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <link rel="icon" href="/api/sys/ico" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title><%- title %></title>
  8. <!-- <script src="https://unpkg.com/aliyun-rts-sdk@1.2.1/dist/aliyun-rts-sdk.js"></script> -->
  9. </head>
  10. <body>
  11. <div id="app">
  12. <style>
  13. html,
  14. body,
  15. #app {
  16. width: 100%;
  17. height: 100%;
  18. padding: 0;
  19. margin: 0;
  20. }
  21. .loading-box {
  22. display: flex;
  23. flex-direction: column;
  24. align-items: center;
  25. justify-content: center;
  26. width: 100%;
  27. height: 100%;
  28. }
  29. .loading-box .loading-wrap {
  30. display: flex;
  31. align-items: center;
  32. justify-content: center;
  33. padding: 98px;
  34. }
  35. .dot {
  36. position: relative;
  37. box-sizing: border-box;
  38. display: inline-block;
  39. width: 32px;
  40. height: 32px;
  41. font-size: 32px;
  42. transform: rotate(45deg);
  43. animation: ant-rotate 1.2s infinite linear;
  44. }
  45. .dot i {
  46. position: absolute;
  47. display: block;
  48. width: 14px;
  49. height: 14px;
  50. background-color: #409eff;
  51. border-radius: 100%;
  52. opacity: 0.3;
  53. transform: scale(0.75);
  54. transform-origin: 50% 50%;
  55. animation: ant-spin-move 1s infinite linear alternate;
  56. }
  57. .dot i:nth-child(1) {
  58. top: 0;
  59. left: 0;
  60. }
  61. .dot i:nth-child(2) {
  62. top: 0;
  63. right: 0;
  64. animation-delay: 0.4s;
  65. }
  66. .dot i:nth-child(3) {
  67. right: 0;
  68. bottom: 0;
  69. animation-delay: 0.8s;
  70. }
  71. .dot i:nth-child(4) {
  72. bottom: 0;
  73. left: 0;
  74. animation-delay: 1.2s;
  75. }
  76. @keyframes ant-rotate {
  77. to {
  78. transform: rotate(405deg);
  79. }
  80. }
  81. @keyframes ant-spin-move {
  82. to {
  83. opacity: 1;
  84. }
  85. }
  86. </style>
  87. <div class="loading-box">
  88. <div class="loading-wrap">
  89. <span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
  90. </div>
  91. </div>
  92. </div>
  93. <script>
  94. const globalState = JSON.parse(window.localStorage.getItem("simple-global"));
  95. if (globalState) {
  96. const dot = document.querySelectorAll(".dot i");
  97. const html = document.querySelector("html");
  98. dot.forEach(item => (item.style.background = globalState.primary));
  99. if (globalState.isDark) html.style.background = "#141414";
  100. }
  101. </script>
  102. <script type="module" src="/src/main.ts"></script>
  103. </body>
  104. </html>