index.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>DezuKVM | Dashboard</title>
  6. <meta name="csrf_token" content="">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <meta name="dezukvm.csrf.token" content="{{.csrfToken}}">
  9. <link rel="icon" type="image/png" href="/favicon.png">
  10. <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
  11. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.9.4/semantic.min.css" integrity="sha512-ySrYzxj+EI1e9xj/kRYqeDL5l1wW0IWY8pzHNTIZ+vc1D3Z14UDNPbwup4yOUmlRemYjgUXsUZ/xvCQU2ThEAw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  12. <script src="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.9.4/semantic.min.js" integrity="sha512-Y/wIVu+S+XJsDL7I+nL50kAVFLMqSdvuLqF2vMoRqiMkmvcqFjEpEgeu6Rx8tpZXKp77J8OUpMKy0m3jLYhbbw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  13. <style>
  14. body {
  15. margin: 0;
  16. height: 100vh;
  17. font-family: 'Segoe UI', Arial, sans-serif;
  18. background: #f9fafb;
  19. color: #222;
  20. }
  21. .main-layout {
  22. display: flex;
  23. height: 100vh;
  24. }
  25. .sidebar {
  26. width: 100px;
  27. background: #f4f5f7; /* Changed from #222 to a whitish grey */
  28. color: #222; /* Changed from #fff to dark text */
  29. display: flex;
  30. flex-direction: column;
  31. justify-content: space-between;
  32. border-right: 1px solid #e0e1e2;
  33. }
  34. .sidebar .menu-top {
  35. padding: 32px 0 0 0;
  36. display: flex;
  37. flex-direction: column;
  38. align-items: center;
  39. }
  40. .sidebar .logo {
  41. width: 64px;
  42. height: 64px;
  43. margin-bottom: 32px;
  44. border-radius: 12px;
  45. display: flex;
  46. align-items: center;
  47. justify-content: center;
  48. overflow: hidden;
  49. }
  50. .sidebar .logo img {
  51. width: 48px;
  52. height: 48px;
  53. object-fit: contain;
  54. }
  55. .sidebar .menu-options {
  56. width: 100%;
  57. }
  58. .sidebar .menu-options .item {
  59. padding: 16px 32px;
  60. cursor: pointer;
  61. transition: background 0.2s;
  62. font-size: 1.1em;
  63. color: #222;
  64. }
  65. .sidebar .menu-options .item:hover,
  66. .sidebar .menu-options .item.active {
  67. background: #e9ecef; /* Lighter hover/active background */
  68. }
  69. .sidebar .menu-bottom {
  70. background: #f0f1f3; /* Lighter than sidebar */
  71. padding: 24px 0 24px 0;
  72. display: flex;
  73. flex-direction: column;
  74. align-items: center;
  75. }
  76. .sidebar .menu-bottom .item {
  77. color: #555;
  78. padding: 12px 32px;
  79. width: 100%;
  80. text-align: center;
  81. cursor: pointer;
  82. border-radius: 6px;
  83. margin-bottom: 8px;
  84. transition: background 0.2s, color 0.2s;
  85. }
  86. .sidebar .menu-bottom .item:hover {
  87. background: #e9ecef;
  88. color: #222;
  89. }
  90. .content {
  91. flex: 1;
  92. background: #f9fafb;
  93. padding: 32px;
  94. overflow-y: auto;
  95. }
  96. @media (prefers-color-scheme: dark) {
  97. body, .content {
  98. background: #181a1b;
  99. color: #eee;
  100. }
  101. .sidebar {
  102. background: #181818;
  103. color: #fff;
  104. }
  105. .sidebar .menu-bottom {
  106. background: #222;
  107. }
  108. .sidebar .menu-options .item:hover,
  109. .sidebar .menu-options .item.active {
  110. background: #222;
  111. }
  112. }
  113. </style>
  114. </head>
  115. <body>
  116. <div class="main-layout">
  117. <nav class="sidebar">
  118. <div>
  119. <div class="menu-top">
  120. <div class="logo">
  121. <img src="img/logo.png" alt="Logo">
  122. </div>
  123. <div class="menu-options">
  124. <div class="item active">Dashboard</div>
  125. <div class="item">Servers</div>
  126. <div class="item">Storage</div>
  127. <div class="item">Network</div>
  128. <div class="item">Users</div>
  129. </div>
  130. </div>
  131. </div>
  132. <div class="menu-bottom">
  133. <div class="item"><i class="cog icon"></i></div>
  134. <div class="item"><i class="sign out alternate icon"></i></div>
  135. </div>
  136. </nav>
  137. <main class="content">
  138. <!-- Main content goes here -->
  139. </main>
  140. </div>
  141. </body>
  142. </html>