index.html 5.3 KB

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