Spaces:
Running
Running
File size: 30,021 Bytes
910bc43 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modern Dashboard UI</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
50: '#f0f9ff',
100: '#e0f2fe',
500: '#3b82f6',
600: '#2563eb',
700: '#1d4ed8',
},
dark: {
800: '#1e293b',
900: '#0f172a',
}
}
}
}
}
</script>
<style>
.gradient-bg {
background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.sidebar {
transition: all 0.3s ease;
}
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
}
.sidebar.open {
transform: translateX(0);
}
}
</style>
</head>
<body class="bg-gray-50 dark:bg-dark-900 text-gray-800 dark:text-gray-200 transition-colors duration-300">
<div class="flex h-screen overflow-hidden">
<!-- Mobile menu button -->
<button id="mobile-menu-button" class="md:hidden fixed top-4 left-4 z-50 p-2 rounded-md bg-white dark:bg-dark-800 shadow-lg">
<i class="fas fa-bars text-gray-800 dark:text-gray-200"></i>
</button>
<!-- Sidebar -->
<div id="sidebar" class="sidebar w-64 bg-white dark:bg-dark-800 shadow-lg fixed h-full z-40">
<div class="p-4 flex items-center justify-between border-b border-gray-200 dark:border-gray-700">
<div class="flex items-center space-x-2">
<div class="w-8 h-8 rounded-full gradient-bg flex items-center justify-center text-white">
<i class="fas fa-rocket"></i>
</div>
<span class="font-bold text-lg">DashboardPro</span>
</div>
<button id="close-sidebar" class="md:hidden p-1 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<div class="p-4">
<div class="mb-6">
<div class="relative">
<input type="text" placeholder="Search..." class="w-full pl-10 pr-4 py-2 rounded-lg bg-gray-100 dark:bg-gray-700 border-none focus:ring-2 focus:ring-primary-500">
<i class="fas fa-search absolute left-3 top-3 text-gray-500"></i>
</div>
</div>
<nav>
<div class="space-y-1">
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg bg-primary-100 dark:bg-gray-700 text-primary-700 dark:text-white">
<i class="fas fa-home w-5"></i>
<span>Dashboard</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700">
<i class="fas fa-chart-line w-5"></i>
<span>Analytics</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700">
<i class="fas fa-envelope w-5"></i>
<span>Messages</span>
<span class="ml-auto bg-primary-500 text-white text-xs px-2 py-1 rounded-full">5</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700">
<i class="fas fa-users w-5"></i>
<span>Team</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700">
<i class="fas fa-cog w-5"></i>
<span>Settings</span>
</a>
</div>
<div class="mt-8 pt-4 border-t border-gray-200 dark:border-gray-700">
<h3 class="text-xs uppercase font-semibold text-gray-500 dark:text-gray-400 mb-3">Projects</h3>
<div class="space-y-1">
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700">
<div class="w-2 h-2 rounded-full bg-green-500"></div>
<span>Website Redesign</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700">
<div class="w-2 h-2 rounded-full bg-yellow-500"></div>
<span>Mobile App</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700">
<div class="w-2 h-2 rounded-full bg-red-500"></div>
<span>Marketing</span>
</a>
</div>
</div>
</nav>
</div>
<div class="absolute bottom-0 left-0 right-0 p-4 border-t border-gray-200 dark:border-gray-700">
<div class="flex items-center space-x-3">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-10 h-10 rounded-full">
<div class="flex-1">
<p class="font-medium">Sarah Johnson</p>
<p class="text-xs text-gray-500">Admin</p>
</div>
<button id="theme-toggle" class="p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700">
<i class="fas fa-moon dark:hidden"></i>
<i class="fas fa-sun hidden dark:block"></i>
</button>
</div>
</div>
</div>
<!-- Main content -->
<div class="flex-1 overflow-auto ml-0 md:ml-64 transition-all duration-300">
<header class="bg-white dark:bg-dark-800 shadow-sm p-4">
<div class="flex justify-between items-center">
<h1 class="text-2xl font-bold">Dashboard Overview</h1>
<div class="flex items-center space-x-4">
<div class="relative">
<button class="p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700">
<i class="fas fa-bell"></i>
<span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
</button>
</div>
<div class="hidden md:flex items-center space-x-2">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-8 h-8 rounded-full">
<span>Sarah Johnson</span>
</div>
</div>
</div>
</header>
<main class="p-4">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="bg-white dark:bg-dark-800 rounded-xl shadow-sm p-6 card-hover transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 dark:text-gray-400">Total Revenue</p>
<h3 class="text-2xl font-bold mt-1">$24,780</h3>
<p class="text-sm text-green-500 mt-2">
<i class="fas fa-arrow-up mr-1"></i> 12.5% from last month
</p>
</div>
<div class="w-12 h-12 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center text-green-600 dark:text-green-400">
<i class="fas fa-dollar-sign text-xl"></i>
</div>
</div>
</div>
<div class="bg-white dark:bg-dark-800 rounded-xl shadow-sm p-6 card-hover transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 dark:text-gray-400">New Users</p>
<h3 class="text-2xl font-bold mt-1">1,254</h3>
<p class="text-sm text-red-500 mt-2">
<i class="fas fa-arrow-down mr-1"></i> 3.2% from last month
</p>
</div>
<div class="w-12 h-12 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center text-blue-600 dark:text-blue-400">
<i class="fas fa-users text-xl"></i>
</div>
</div>
</div>
<div class="bg-white dark:bg-dark-800 rounded-xl shadow-sm p-6 card-hover transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 dark:text-gray-400">Active Projects</p>
<h3 class="text-2xl font-bold mt-1">18</h3>
<p class="text-sm text-green-500 mt-2">
<i class="fas fa-arrow-up mr-1"></i> 2 new this week
</p>
</div>
<div class="w-12 h-12 rounded-full bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center text-purple-600 dark:text-purple-400">
<i class="fas fa-tasks text-xl"></i>
</div>
</div>
</div>
<div class="bg-white dark:bg-dark-800 rounded-xl shadow-sm p-6 card-hover transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 dark:text-gray-400">Tasks Completed</p>
<h3 class="text-2xl font-bold mt-1">87%</h3>
<p class="text-sm text-green-500 mt-2">
<i class="fas fa-arrow-up mr-1"></i> 5% from last week
</p>
</div>
<div class="w-12 h-12 rounded-full bg-yellow-100 dark:bg-yellow-900/30 flex items-center justify-center text-yellow-600 dark:text-yellow-400">
<i class="fas fa-check-circle text-xl"></i>
</div>
</div>
</div>
</div>
<!-- Charts and Tables -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
<div class="lg:col-span-2 bg-white dark:bg-dark-800 rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-lg font-semibold">Revenue Overview</h2>
<div class="flex space-x-2">
<button class="px-3 py-1 text-sm rounded-full bg-primary-100 dark:bg-primary-900/30 text-primary-700 dark:text-primary-400">Month</button>
<button class="px-3 py-1 text-sm rounded-full hover:bg-gray-100 dark:hover:bg-gray-700">Week</button>
<button class="px-3 py-1 text-sm rounded-full hover:bg-gray-100 dark:hover:bg-gray-700">Day</button>
</div>
</div>
<div class="h-64">
<!-- Chart placeholder -->
<div class="w-full h-full flex items-center justify-center bg-gray-100 dark:bg-gray-700 rounded-lg">
<p class="text-gray-500">Chart will appear here</p>
</div>
</div>
</div>
<div class="bg-white dark:bg-dark-800 rounded-xl shadow-sm p-6">
<h2 class="text-lg font-semibold mb-6">Recent Activity</h2>
<div class="space-y-4">
<div class="flex items-start">
<div class="w-8 h-8 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center text-blue-600 dark:text-blue-400 mr-3 mt-1">
<i class="fas fa-file-invoice text-sm"></i>
</div>
<div>
<p class="font-medium">New invoice received</p>
<p class="text-sm text-gray-500 dark:text-gray-400">From BluePrint Inc. for $2,500</p>
<p class="text-xs text-gray-400 mt-1">10 minutes ago</p>
</div>
</div>
<div class="flex items-start">
<div class="w-8 h-8 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center text-green-600 dark:text-green-400 mr-3 mt-1">
<i class="fas fa-check-circle text-sm"></i>
</div>
<div>
<p class="font-medium">Project completed</p>
<p class="text-sm text-gray-500 dark:text-gray-400">Website redesign signed off</p>
<p class="text-xs text-gray-400 mt-1">2 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="w-8 h-8 rounded-full bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center text-purple-600 dark:text-purple-400 mr-3 mt-1">
<i class="fas fa-user-plus text-sm"></i>
</div>
<div>
<p class="font-medium">New team member</p>
<p class="text-sm text-gray-500 dark:text-gray-400">Michael joined the marketing team</p>
<p class="text-xs text-gray-400 mt-1">Yesterday</p>
</div>
</div>
<div class="flex items-start">
<div class="w-8 h-8 rounded-full bg-yellow-100 dark:bg-yellow-900/30 flex items-center justify-center text-yellow-600 dark:text-yellow-400 mr-3 mt-1">
<i class="fas fa-exclamation-triangle text-sm"></i>
</div>
<div>
<p class="font-medium">Server issue</p>
<p class="text-sm text-gray-500 dark:text-gray-400">High CPU usage detected</p>
<p class="text-xs text-gray-400 mt-1">2 days ago</p>
</div>
</div>
</div>
</div>
</div>
<!-- Projects Table -->
<div class="bg-white dark:bg-dark-800 rounded-xl shadow-sm overflow-hidden">
<div class="p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-lg font-semibold">Active Projects</h2>
<button class="px-4 py-2 bg-primary-500 hover:bg-primary-600 text-white rounded-lg text-sm font-medium transition-colors">
<i class="fas fa-plus mr-2"></i> Add Project
</button>
</div>
<div class="overflow-x-auto">
<table class="w-full">
<thead>
<tr class="text-left text-gray-500 dark:text-gray-400 border-b border-gray-200 dark:border-gray-700">
<th class="pb-3 font-medium">Project</th>
<th class="pb-3 font-medium">Team</th>
<th class="pb-3 font-medium">Status</th>
<th class="pb-3 font-medium">Progress</th>
<th class="pb-3 font-medium">Due Date</th>
<th class="pb-3 font-medium">Actions</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200 dark:divide-gray-700">
<tr>
<td class="py-4">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center text-blue-600 dark:text-blue-400 mr-3">
<i class="fas fa-globe text-sm"></i>
</div>
<span class="font-medium">Website Redesign</span>
</div>
</td>
<td class="py-4">
<div class="flex -space-x-2">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white dark:border-dark-800">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white dark:border-dark-800">
<img src="https://randomuser.me/api/portraits/women/12.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white dark:border-dark-800">
</div>
</td>
<td class="py-4">
<span class="px-3 py-1 rounded-full text-xs font-medium bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-400">On Track</span>
</td>
<td class="py-4">
<div class="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-2">
<div class="bg-green-500 h-2 rounded-full" style="width: 75%"></div>
</div>
<span class="text-xs text-gray-500 dark:text-gray-400 mt-1">75% complete</span>
</td>
<td class="py-4">
<span>Jun 15, 2023</span>
</td>
<td class="py-4">
<button class="p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700">
<i class="fas fa-ellipsis-h"></i>
</button>
</td>
</tr>
<tr>
<td class="py-4">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center text-purple-600 dark:text-purple-400 mr-3">
<i class="fas fa-mobile-alt text-sm"></i>
</div>
<span class="font-medium">Mobile App</span>
</div>
</td>
<td class="py-4">
<div class="flex -space-x-2">
<img src="https://randomuser.me/api/portraits/men/75.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white dark:border-dark-800">
<img src="https://randomuser.me/api/portraits/women/42.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white dark:border-dark-800">
</div>
</td>
<td class="py-4">
<span class="px-3 py-1 rounded-full text-xs font-medium bg-yellow-100 dark:bg-yellow-900/30 text-yellow-700 dark:text-yellow-400">Delayed</span>
</td>
<td class="py-4">
<div class="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-2">
<div class="bg-yellow-500 h-2 rounded-full" style="width: 45%"></div>
</div>
<span class="text-xs text-gray-500 dark:text-gray-400 mt-1">45% complete</span>
</td>
<td class="py-4">
<span>Jul 2, 2023</span>
</td>
<td class="py-4">
<button class="p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700">
<i class="fas fa-ellipsis-h"></i>
</button>
</td>
</tr>
<tr>
<td class="py-4">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center text-red-600 dark:text-red-400 mr-3">
<i class="fas fa-bullhorn text-sm"></i>
</div>
<span class="font-medium">Marketing Campaign</span>
</div>
</td>
<td class="py-4">
<div class="flex -space-x-2">
<img src="https://randomuser.me/api/portraits/women/33.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white dark:border-dark-800">
<img src="https://randomuser.me/api/portraits/men/54.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white dark:border-dark-800">
<img src="https://randomuser.me/api/portraits/women/22.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white dark:border-dark-800">
<img src="https://randomuser.me/api/portraits/men/11.jpg" alt="User" class="w-8 h-8 rounded-full border-2 border-white dark:border-dark-800">
</div>
</td>
<td class="py-4">
<span class="px-3 py-1 rounded-full text-xs font-medium bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-400">In Review</span>
</td>
<td class="py-4">
<div class="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-2">
<div class="bg-blue-500 h-2 rounded-full" style="width: 90%"></div>
</div>
<span class="text-xs text-gray-500 dark:text-gray-400 mt-1">90% complete</span>
</td>
<td class="py-4">
<span>May 28, 2023</span>
</td>
<td class="py-4">
<button class="p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700">
<i class="fas fa-ellipsis-h"></i>
</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
// Toggle dark mode
const themeToggle = document.getElementById('theme-toggle');
themeToggle.addEventListener('click', () => {
document.documentElement.classList.toggle('dark');
localStorage.setItem('darkMode', document.documentElement.classList.contains('dark'));
});
// Check for saved theme preference
if (localStorage.getItem('darkMode') === 'true') {
document.documentElement.classList.add('dark');
}
// Mobile menu toggle
const mobileMenuButton = document.getElementById('mobile-menu-button');
const closeSidebar = document.getElementById('close-sidebar');
const sidebar = document.getElementById('sidebar');
mobileMenuButton.addEventListener('click', () => {
sidebar.classList.add('open');
});
closeSidebar.addEventListener('click', () => {
sidebar.classList.remove('open');
});
// Close sidebar when clicking outside on mobile
document.addEventListener('click', (e) => {
if (window.innerWidth <= 768 && !sidebar.contains(e.target) && e.target !== mobileMenuButton) {
sidebar.classList.remove('open');
}
});
// Card hover effect
const cards = document.querySelectorAll('.card-hover');
cards.forEach(card => {
card.addEventListener('mouseenter', () => {
card.classList.add('shadow-lg');
});
card.addEventListener('mouseleave', () => {
card.classList.remove('shadow-lg');
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Jasonbourn1996itsme/gold" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |