Spaces:
Running
Running
File size: 37,669 Bytes
0e7a943 | 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 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Workload Analyzer AI | Organizational Efficiency Tool</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">
<style>
.gradient-bg {
background: linear-gradient(135deg, #6b73ff 0%, #000dff 100%);
}
.workload-card {
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.workload-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.chart-container {
height: 300px;
}
.animate-pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 0.6; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}
.sidebar {
transition: all 0.3s ease;
}
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
position: fixed;
z-index: 50;
height: 100vh;
top: 0;
left: 0;
}
.sidebar.open {
transform: translateX(0);
}
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<!-- Mobile Menu Button -->
<div class="md:hidden fixed top-4 left-4 z-50">
<button id="menuBtn" class="p-2 rounded-md bg-white shadow-md text-blue-600">
<i class="fas fa-bars text-xl"></i>
</button>
</div>
<!-- Sidebar -->
<div id="sidebar" class="sidebar w-64 bg-white shadow-lg md:shadow-none md:translate-x-0">
<div class="p-4 border-b border-gray-200">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full gradient-bg flex items-center justify-center text-white">
<i class="fas fa-brain"></i>
</div>
<h1 class="text-xl font-bold text-blue-800">Workload AI</h1>
</div>
</div>
<nav class="p-4">
<ul class="space-y-2">
<li>
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg bg-blue-50 text-blue-700">
<i class="fas fa-chart-pie text-blue-600"></i>
<span>Dashboard</span>
</a>
</li>
<li>
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700">
<i class="fas fa-users"></i>
<span>Teams</span>
</a>
</li>
<li>
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700">
<i class="fas fa-tasks"></i>
<span>Tasks</span>
</a>
</li>
<li>
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700">
<i class="fas fa-chart-line"></i>
<span>Analytics</span>
</a>
</li>
<li>
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 text-gray-700">
<i class="fas fa-cog"></i>
<span>Settings</span>
</a>
</li>
</ul>
</nav>
<div class="absolute bottom-0 left-0 right-0 p-4 border-t border-gray-200">
<div class="flex items-center space-x-3">
<div class="w-8 h-8 rounded-full bg-gray-300"></div>
<div>
<p class="text-sm font-medium">Admin User</p>
<p class="text-xs text-gray-500">admin@company.com</p>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="md:ml-64 min-h-screen">
<!-- Header -->
<header class="bg-white shadow-sm">
<div class="px-6 py-4 flex justify-between items-center">
<h2 class="text-2xl font-semibold text-gray-800">Workload Analysis Dashboard</h2>
<div class="flex items-center space-x-4">
<div class="relative">
<i class="fas fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
</div>
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i class="fas fa-bell"></i>
</button>
</div>
</div>
</header>
<!-- Main Content Area -->
<main class="p-6">
<!-- Overview Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="workload-card bg-white rounded-xl p-6">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500">Total Units</p>
<h3 class="text-3xl font-bold mt-2">24</h3>
</div>
<div class="p-3 rounded-lg bg-blue-50 text-blue-600">
<i class="fas fa-sitemap text-xl"></i>
</div>
</div>
<div class="mt-4 pt-4 border-t border-gray-100">
<p class="text-sm text-gray-500 flex items-center">
<span class="w-2 h-2 rounded-full bg-green-500 mr-2"></span>
<span>3% increase from last month</span>
</p>
</div>
</div>
<div class="workload-card bg-white rounded-xl p-6">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500">Avg. Workload</p>
<h3 class="text-3xl font-bold mt-2">72%</h3>
</div>
<div class="p-3 rounded-lg bg-purple-50 text-purple-600">
<i class="fas fa-tachometer-alt text-xl"></i>
</div>
</div>
<div class="mt-4 pt-4 border-t border-gray-100">
<p class="text-sm text-gray-500 flex items-center">
<span class="w-2 h-2 rounded-full bg-red-500 mr-2"></span>
<span>5% increase from last month</span>
</p>
</div>
</div>
<div class="workload-card bg-white rounded-xl p-6">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500">Overloaded Units</p>
<h3 class="text-3xl font-bold mt-2">6</h3>
</div>
<div class="p-3 rounded-lg bg-red-50 text-red-600">
<i class="fas fa-exclamation-triangle text-xl"></i>
</div>
</div>
<div class="mt-4 pt-4 border-t border-gray-100">
<p class="text-sm text-gray-500 flex items-center">
<span class="w-2 h-2 rounded-full bg-yellow-500 mr-2"></span>
<span>2 more than last month</span>
</p>
</div>
</div>
<div class="workload-card bg-white rounded-xl p-6">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500">Underutilized</p>
<h3 class="text-3xl font-bold mt-2">4</h3>
</div>
<div class="p-3 rounded-lg bg-yellow-50 text-yellow-600">
<i class="fas fa-bed text-xl"></i>
</div>
</div>
<div class="mt-4 pt-4 border-t border-gray-100">
<p class="text-sm text-gray-500 flex items-center">
<span class="w-2 h-2 rounded-full bg-green-500 mr-2"></span>
<span>1 less than last month</span>
</p>
</div>
</div>
</div>
<!-- Charts and Analysis Section -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
<!-- Workload Distribution Chart -->
<div class="lg:col-span-2 workload-card bg-white rounded-xl p-6">
<div class="flex justify-between items-center mb-6">
<h3 class="text-lg font-semibold text-gray-800">Workload Distribution by Unit</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 text-sm rounded-lg bg-blue-50 text-blue-600">Weekly</button>
<button class="px-3 py-1 text-sm rounded-lg hover:bg-gray-100">Monthly</button>
<button class="px-3 py-1 text-sm rounded-lg hover:bg-gray-100">Quarterly</button>
</div>
</div>
<div class="chart-container">
<canvas id="workloadChart"></canvas>
</div>
</div>
<!-- Workload Recommendations -->
<div class="workload-card bg-white rounded-xl p-6">
<div class="flex justify-between items-center mb-6">
<h3 class="text-lg font-semibold text-gray-800">AI Recommendations</h3>
<div class="w-8 h-8 rounded-full gradient-bg flex items-center justify-center text-white">
<i class="fas fa-robot"></i>
</div>
</div>
<div class="space-y-4">
<div class="p-4 bg-blue-50 rounded-lg">
<div class="flex items-start space-x-3">
<div class="mt-1">
<i class="fas fa-lightbulb text-blue-600"></i>
</div>
<div>
<h4 class="font-medium text-blue-800">Reallocate Resources</h4>
<p class="text-sm text-gray-600 mt-1">Move 2 team members from Marketing to Sales to balance workload.</p>
</div>
</div>
</div>
<div class="p-4 bg-purple-50 rounded-lg">
<div class="flex items-start space-x-3">
<div class="mt-1">
<i class="fas fa-clock text-purple-600"></i>
</div>
<div>
<h4 class="font-medium text-purple-800">Adjust Deadlines</h4>
<p class="text-sm text-gray-600 mt-1">Extend project X deadline by 1 week for Development team.</p>
</div>
</div>
</div>
<div class="p-4 bg-green-50 rounded-lg">
<div class="flex items-start space-x-3">
<div class="mt-1">
<i class="fas fa-users text-green-600"></i>
</div>
<div>
<h4 class="font-medium text-green-800">Hiring Suggestion</h4>
<p class="text-sm text-gray-600 mt-1">Consider hiring 1 additional QA specialist for Testing team.</p>
</div>
</div>
</div>
</div>
<button class="w-full mt-6 py-2 rounded-lg gradient-bg text-white font-medium hover:opacity-90 transition">
Generate New Recommendations
</button>
</div>
</div>
<!-- Unit Workload Details -->
<div class="workload-card bg-white rounded-xl p-6 mb-8">
<div class="flex justify-between items-center mb-6">
<h3 class="text-lg font-semibold text-gray-800">Unit Workload Details</h3>
<button class="px-4 py-2 rounded-lg border border-gray-300 text-sm font-medium hover:bg-gray-50">
Export Data
</button>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Unit</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Members</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Workload</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Capacity</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Action</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
<i class="fas fa-code"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Development</div>
<div class="text-sm text-gray-500">IT Department</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">12</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-32 bg-gray-200 rounded-full h-2.5">
<div class="bg-red-500 h-2.5 rounded-full" style="width: 92%"></div>
</div>
<span class="ml-2 text-sm font-medium text-gray-700">92%</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">8%</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">
Overloaded
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-blue-600 hover:text-blue-900">Analyze</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 flex items-center justify-center text-green-600">
<i class="fas fa-chart-line"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Marketing</div>
<div class="text-sm text-gray-500">Growth Department</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">8</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-32 bg-gray-200 rounded-full h-2.5">
<div class="bg-yellow-500 h-2.5 rounded-full" style="width: 65%"></div>
</div>
<span class="ml-2 text-sm font-medium text-gray-700">65%</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">35%</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Optimal
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-blue-600 hover:text-blue-900">Analyze</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center text-purple-600">
<i class="fas fa-headset"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Customer Support</div>
<div class="text-sm text-gray-500">Service Department</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">6</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-32 bg-gray-200 rounded-full h-2.5">
<div class="bg-blue-500 h-2.5 rounded-full" style="width: 78%"></div>
</div>
<span class="ml-2 text-sm font-medium text-gray-700">78%</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">22%</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">
High
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-blue-600 hover:text-blue-900">Analyze</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600">
<i class="fas fa-clipboard-check"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Quality Assurance</div>
<div class="text-sm text-gray-500">IT Department</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">5</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-32 bg-gray-200 rounded-full h-2.5">
<div class="bg-red-500 h-2.5 rounded-full" style="width: 88%"></div>
</div>
<span class="ml-2 text-sm font-medium text-gray-700">88%</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">12%</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">
Overloaded
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-blue-600 hover:text-blue-900">Analyze</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600">
<i class="fas fa-bullhorn"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Sales</div>
<div class="text-sm text-gray-500">Growth Department</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">10</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-32 bg-gray-200 rounded-full h-2.5">
<div class="bg-green-500 h-2.5 rounded-full" style="width: 45%"></div>
</div>
<span class="ml-2 text-sm font-medium text-gray-700">45%</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">55%</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
Underutilized
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<button class="text-blue-600 hover:text-blue-900">Analyze</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="mt-4 flex justify-between items-center">
<div class="text-sm text-gray-500">
Showing <span class="font-medium">1</span> to <span class="font-medium">5</span> of <span class="font-medium">24</span> units
</div>
<div class="flex space-x-2">
<button class="px-3 py-1 rounded-lg border border-gray-300 text-sm font-medium hover:bg-gray-50">Previous</button>
<button class="px-3 py-1 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-700">1</button>
<button class="px-3 py-1 rounded-lg border border-gray-300 text-sm font-medium hover:bg-gray-50">2</button>
<button class="px-3 py-1 rounded-lg border border-gray-300 text-sm font-medium hover:bg-gray-50">3</button>
<button class="px-3 py-1 rounded-lg border border-gray-300 text-sm font-medium hover:bg-gray-50">Next</button>
</div>
</div>
</div>
<!-- Workload Analysis Form -->
<div class="workload-card bg-white rounded-xl p-6">
<h3 class="text-lg font-semibold text-gray-800 mb-6">Custom Workload Analysis</h3>
<form>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Select Department</label>
<select class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
<option>All Departments</option>
<option>IT Department</option>
<option>Growth Department</option>
<option>Service Department</option>
<option>Operations</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Time Period</label>
<select class="w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
<option>Last 7 days</option>
<option selected>Last 30 days</option>
<option>Last quarter</option>
<option>Last year</option>
<option>Custom range</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Workload Threshold</label>
<div class="flex items-center space-x-2">
<input type="range" min="0" max="100" value="70" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer">
<span class="text-sm font-medium text-gray-700">70%</span>
</div>
<p class="text-xs text-gray-500 mt-1">Units above this threshold will be flagged as overloaded</p>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Analysis Type</label>
<div class="space-y-2">
<div class="flex items-center">
<input id="basic" name="analysis-type" type="radio" checked class="h-4 w-4 text-blue-600 focus:ring-blue-500">
<label for="basic" class="ml-2 block text-sm text-gray-700">Basic Analysis</label>
</div>
<div class="flex items-center">
<input id="advanced" name="analysis-type" type="radio" class="h-4 w-4 text-blue-600 focus:ring-blue-500">
<label for="advanced" class="ml-2 block text-sm text-gray-700">Advanced AI Analysis (+5 credits)</label>
</div>
</div>
</div>
</div>
<div class="flex justify-end space-x-3">
<button type="button" class="px-4 py-2 border border-gray-300 rounded-lg text-sm font-medium text-gray-700 hover:bg-gray-50">
Reset
</button>
<button type="submit" class="px-6 py-2 rounded-lg gradient-bg text-white font-medium hover:opacity-90 transition">
Run Analysis
</button>
</div>
</form>
</div>
</main>
<!-- Footer -->
<footer class="bg-white border-t border-gray-200 py-6 px-6">
<div class="flex flex-col md:flex-row justify-between items-center">
<p class="text-sm text-gray-500">© 2023 Workload Analyzer AI. All rights reserved.</p>
<div class="flex space-x-6 mt-4 md:mt-0">
<a href="#" class="text-sm text-gray-500 hover:text-gray-700">Privacy Policy</a>
<a href="#" class="text-sm text-gray-500 hover:text-gray-700">Terms of Service</a>
<a href="#" class="text-sm text-gray-500 hover:text-gray-700">Contact Us</a>
</div>
</div>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
// Mobile menu toggle
const menuBtn = document.getElementById('menuBtn');
const sidebar = document.getElementById('sidebar');
menuBtn.addEventListener('click', () => {
sidebar.classList.toggle('open');
});
// Workload Chart
const workloadCtx = document.getElementById('workloadChart').getContext('2d');
const workloadChart = new Chart(workloadCtx, {
type: 'bar',
data: {
labels: ['Development', 'Marketing', 'Customer Support', 'Quality Assurance', 'Sales', 'HR', 'Finance'],
datasets: [
{
label: 'Current Workload',
data: [92, 65, 78, 88, 45, 60, 55],
backgroundColor: '#3B82F6',
borderRadius: 6
},
{
label: 'Capacity',
data: [8, 35, 22, 12, 55, 40, 45],
backgroundColor: '#E5E7EB',
borderRadius: 6
}
]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
x: {
grid: {
display: false
}
},
y: {
beginAtZero: true,
max: 100,
ticks: {
callback: function(value) {
return value + '%';
}
}
}
},
plugins: {
legend: {
position: 'top',
},
tooltip: {
callbacks: {
label: function(context) {
return context.dataset.label + ': ' + context.raw + '%';
}
}
}
}
}
});
// Simulate AI analysis
document.querySelector('form').addEventListener('submit', function(e) {
e.preventDefault();
// Show loading state
const submitBtn = this.querySelector('button[type="submit"]');
const originalText = submitBtn.innerHTML;
submitBtn.innerHTML = '<i class="fas fa-spinner animate-spin mr-2"></i> Analyzing...';
submitBtn.disabled = true;
// Simulate API call
setTimeout(() => {
// Create a notification
const notification = document.createElement('div');
notification.className = 'fixed bottom-4 right-4 px-6 py-3 bg-green-500 text-white rounded-lg shadow-lg flex items-center animate-pulse';
notification.innerHTML = `
<i class="fas fa-check-circle mr-2"></i>
<span>Analysis completed! View your results.</span>
`;
document.body.appendChild(notification);
// Remove notification after 5 seconds
setTimeout(() => {
notification.remove();
}, 5000);
// Reset button
submitBtn.innerHTML = originalText;
submitBtn.disabled = false;
// Update chart with new data (simulated)
workloadChart.data.datasets[0].data = [85, 70, 75, 82, 60, 65, 58];
workloadChart.update();
}, 2000);
});
// Update threshold display
const thresholdSlider = document.querySelector('input[type="range"]');
const thresholdValue = document.querySelector('input[type="range"] + span');
thresholdSlider.addEventListener('input', function() {
thresholdValue.textContent = this.value + '%';
});
</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=RamitestAI/workload" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |