index.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <link rel="icon" type="image/svg+xml" href="/vite.svg" />
  6. <meta name="viewport"
  7. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />
  8. <title>ChatGPT Web</title>
  9. </head>
  10. <body>
  11. <div id="app">
  12. <style>
  13. .loading-wrap {
  14. display: flex;
  15. justify-content: center;
  16. align-items: center;
  17. height: 100vh;
  18. }
  19. .balls {
  20. width: 4em;
  21. display: flex;
  22. flex-flow: row nowrap;
  23. align-items: center;
  24. justify-content: space-between;
  25. }
  26. .balls div {
  27. width: 0.8em;
  28. height: 0.8em;
  29. border-radius: 50%;
  30. background-color: #4b9e5f;
  31. }
  32. .balls div:nth-of-type(1) {
  33. transform: translateX(-100%);
  34. animation: left-swing 0.5s ease-in alternate infinite;
  35. }
  36. .balls div:nth-of-type(3) {
  37. transform: translateX(-95%);
  38. animation: right-swing 0.5s ease-out alternate infinite;
  39. }
  40. @keyframes left-swing {
  41. 50%,
  42. 100% {
  43. transform: translateX(95%);
  44. }
  45. }
  46. @keyframes right-swing {
  47. 50% {
  48. transform: translateX(-95%);
  49. }
  50. 100% {
  51. transform: translateX(100%);
  52. }
  53. }
  54. @media (prefers-color-scheme: dark) {
  55. body {
  56. background: #121212;
  57. }
  58. }
  59. </style>
  60. <div class="loading-wrap">
  61. <div class="balls">
  62. <div></div>
  63. <div></div>
  64. <div></div>
  65. </div>
  66. </div>
  67. </div>
  68. <script type="module" src="/src/main.ts"></script>
  69. </body>
  70. </html>