Spaces:
Running
Running
Download index.html from RamitestAI/workload: direct link, hf CLI and curl.
- Browser
- Download file 37.7 kB
-
https://huggingface.co/spaces/RamitestAI/workload/resolve/main/index.html
- Command line
-
hf download hf://spaces/RamitestAI/workload/index.html
-
curl -L -o index.html https://huggingface.co/spaces/RamitestAI/workload/resolve/main/index.html
37.7 kB
| <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> |