mwbreurdev

Untitled

Sep 28th, 2026
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.75 KB | None | 0 0
  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. <title>Management Portal</title>
  7. <style>
  8. body {
  9. font-family: Arial, sans-serif;
  10. margin: 0;
  11. padding: 20px;
  12. background-color: #f5f5f5;
  13. }
  14. .portal {
  15. max-width: 1200px;
  16. margin: 0 auto;
  17. background: white;
  18. border-radius: 10px;
  19. box-shadow: 0 0 20px rgba(0,0,0,0.1);
  20. overflow: hidden;
  21. }
  22. .header {
  23. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  24. color: white;
  25. padding: 20px;
  26. text-align: center;
  27. }
  28. .content {
  29. display: flex;
  30. min-height: 500px;
  31. }
  32. .sidebar {
  33. width: 250px;
  34. background: #2c3e50;
  35. color: white;
  36. padding: 20px;
  37. }
  38. .main-content {
  39. flex: 1;
  40. padding: 20px;
  41. }
  42. .nav-item {
  43. padding: 10px;
  44. margin: 5px 0;
  45. cursor: pointer;
  46. border-radius: 5px;
  47. transition: background 0.3s;
  48. }
  49. .nav-item:hover {
  50. background: #34495e;
  51. }
  52. .nav-item.active {
  53. background: #3498db;
  54. }
  55. .form-group {
  56. margin-bottom: 15px;
  57. }
  58. label {
  59. display: block;
  60. margin-bottom: 5px;
  61. font-weight: bold;
  62. }
  63. input, select, textarea {
  64. width: 100%;
  65. padding: 10px;
  66. border: 1px solid #ddd;
  67. border-radius: 5px;
  68. }
  69. .btn {
  70. background: #3498db;
  71. color: white;
  72. padding: 10px 20px;
  73. border: none;
  74. border-radius: 5px;
  75. cursor: pointer;
  76. }
  77. .btn:hover {
  78. background: #2980b9;
  79. }
  80. .data-table {
  81. width: 100%;
  82. border-collapse: collapse;
  83. margin-top: 20px;
  84. }
  85. .data-table th, .data-table td {
  86. border: 1px solid #ddd;
  87. padding: 12px;
  88. text-align: left;
  89. }
  90. .data-table th {
  91. background-color: #f2f2f2;
  92. }
  93. .data-table tr:nth-child(even) {
  94. background-color: #f9f9f9;
  95. }
  96. </style>
  97. </head>
  98. <body>
  99. <div class="portal">
  100. <div class="header">
  101. <h1>Management Portal</h1>
  102. <p>Configure your application settings</p>
  103. </div>
  104.  
  105. <div class="content">
  106. <div class="sidebar">
  107. <h3>Navigation</h3>
  108. <div class="nav-item active" onclick="showSection('dashboard')">Dashboard</div>
  109. <div class="nav-item" onclick="showSection('settings')">Settings</div>
  110. <div class="nav-item" onclick="showSection('users')">User Management</div>
  111. <div class="nav-item" onclick="showSection('analytics')">Analytics</div>
  112. <div class="nav-item" onclick="showSection('reports')">Reports</div>
  113. </div>
  114.  
  115. <div class="main-content">
  116. <div id="dashboard" class="section">
  117. <h2>Dashboard</h2>
  118. <p>Welcome to your management portal. Select a section from the left menu to get started.</p>
  119. <div style="background: #e8f4f8; padding: 15px; border-radius: 5px; margin-top: 20px;">
  120. <h3>Quick Stats</h3>
  121. <p>Users: <strong>1,243</strong></p>
  122. <p>Active Sessions: <strong>87</strong></p>
  123. <p>System Status: <strong>Operational</strong></p>
  124. </div>
  125. </div>
  126.  
  127. <div id="settings" class="section" style="display: none;">
  128. <h2>Application Settings</h2>
  129. <form id="settingsForm">
  130. <div class="form-group">
  131. <label for="appName">Application Name</label>
  132. <input type="text" id="appName" value="My Application">
  133. </div>
  134. <div class="form-group">
  135. <label for="theme">Theme</label>
  136. <select id="theme">
  137. <option value="light">Light</option>
  138. <option value="dark" selected>Dark</option>
  139. <option value="blue">Blue</option>
  140. </select>
  141. </div>
  142. <div class="form-group">
  143. <label for="notifications">Enable Notifications</label>
  144. <input type="checkbox" id="notifications" checked>
  145. </div>
  146. <div class="form-group">
  147. <label for="backupInterval">Backup Interval (hours)</label>
  148. <input type="number" id="backupInterval" value="24" min="1">
  149. </div>
  150. <button type="button" class="btn" onclick="saveSettings()">Save Settings</button>
  151. </form>
  152. </div>
  153.  
  154. <div id="users" class="section" style="display: none;">
  155. <h2>User Management</h2>
  156. <table class="data-table">
  157. <thead>
  158. <tr>
  159. <th>ID</th>
  160. <th>Name</th>
  161. <th>Email</th>
  162. <th>Status</th>
  163. <th>Actions</th>
  164. </tr>
  165. </thead>
  166. <tbody>
  167. <tr>
  168. <td>1</td>
  169. <td>John Doe</td>
  170. <td>Active</td>
  171. <td><button class="btn">Edit</button></td>
  172. </tr>
  173. <tr>
  174. <td>2</td>
  175. <td>Jane Smith</td>
  176. <td>Active</td>
  177. <td><button class="btn">Edit</button></td>
  178. </tr>
  179. <tr>
  180. <td>3</td>
  181. <td>Bob Johnson</td>
  182. <td>Inactive</td>
  183. <td><button class="btn">Edit</button></td>
  184. </tr>
  185. </tbody>
  186. </table>
  187. </div>
  188.  
  189. <div id="analytics" class="section" style="display: none;">
  190. <h2>Analytics Dashboard</h2>
  191. <p>Analytics data would be displayed here in a real implementation.</p>
  192. <div style="background: #e8f4f8; padding: 15px; border-radius: 5px; margin-top: 20px;">
  193. <h3>Usage Statistics</h3>
  194. <p>Page Views: 12,430</p>
  195. <p>Unique Visitors: 3,245</p>
  196. <p>Avg. Session Duration: 4m 32s</p>
  197. </div>
  198. </div>
  199.  
  200. <div id="reports" class="section" style="display: none;">
  201. <h2>Reports</h2>
  202. <p>Generate and download reports here.</p>
  203. <div style="margin-top: 20px;">
  204. <button class="btn">Generate Daily Report</button>
  205. <button class="btn">Generate Weekly Report</button>
  206. <button class="btn">Generate Monthly Report</button>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212.  
  213. <script>
  214. // Navigation between sections
  215. function showSection(sectionId) {
  216. // Hide all sections
  217. const sections = document.querySelectorAll('.section');
  218. sections.forEach(section => {
  219. section.style.display = 'none';
  220. });
  221.  
  222. // Show selected section
  223. document.getElementById(sectionId).style.display = 'block';
  224.  
  225. // Update active nav item
  226. const navItems = document.querySelectorAll('.nav-item');
  227. navItems.forEach(item => {
  228. item.classList.remove('active');
  229. });
  230. event.target.classList.add('active');
  231. }
  232.  
  233. // Save settings function
  234. function saveSettings() {
  235. const appName = document.getElementById('appName').value;
  236. const theme = document.getElementById('theme').value;
  237. const notifications = document.getElementById('notifications').checked;
  238. const backupInterval = document.getElementById('backupInterval').value;
  239.  
  240. alert(`Settings saved!\nApplication: ${appName}\nTheme: ${theme}\nNotifications: ${notifications}\nBackup Interval: ${backupInterval} hours`);
  241. }
  242.  
  243. // Initialize with dashboard shown
  244. document.addEventListener('DOMContentLoaded', function() {
  245. showSection('dashboard');
  246. });
  247. </script>
  248. </body>
  249. </html>
Advertisement
Add Comment
Please, Sign In to add comment