|
|
<!DOCTYPE html> |
|
|
<html lang="en"> |
|
|
<head> |
|
|
<meta charset="UTF-8"> |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
|
<title>KODE 1 - Multi-Agent AI Platform</title> |
|
|
<link rel="icon" type="image/x-icon" href="/static/favicon.ico"> |
|
|
<script src="https://cdn.tailwindcss.com"></script> |
|
|
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> |
|
|
<script src="https://unpkg.com/feather-icons"></script> |
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> |
|
|
<script> |
|
|
tailwind.config = { |
|
|
darkMode: 'class', |
|
|
theme: { |
|
|
extend: { |
|
|
colors: { |
|
|
primary: { |
|
|
50: '#f0f9ff', |
|
|
100: '#e0f2fe', |
|
|
200: '#bae6fd', |
|
|
300: '#7dd3fc', |
|
|
400: '#38bdf8', |
|
|
500: '#0ea5e9', |
|
|
600: '#0284c7', |
|
|
700: '#0369a1', |
|
|
800: '#075985', |
|
|
900: '#0c4a6e', |
|
|
}, |
|
|
secondary: { |
|
|
50: '#f8fafc', |
|
|
100: '#f1f5f9', |
|
|
200: '#e2e8f0', |
|
|
300: '#cbd5e1', |
|
|
400: '#94a3b8', |
|
|
500: '#64748b', |
|
|
600: '#475569', |
|
|
700: '#334155', |
|
|
800: '#1e293b', |
|
|
900: '#0f172a', |
|
|
} |
|
|
}, |
|
|
animation: { |
|
|
'float': 'float 3s ease-in-out infinite', |
|
|
'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite', |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</head> |
|
|
<body class="bg-secondary-50 dark:bg-secondary-900 text-secondary-900 dark:text-secondary-100"> |
|
|
|
|
|
<nav class="bg-white dark:bg-secondary-800 border-b border-secondary-200 dark:border-secondary-700 fixed w-full top-0 z-50"> |
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
|
|
<div class="flex justify-between h-16"> |
|
|
<div class="flex items-center"> |
|
|
<div class="flex-shrink-0 flex items-center"> |
|
|
<div class="w-10 h-10 bg-primary-500 rounded-lg flex items-center justify-center"> |
|
|
<i data-feather="cpu" class="w-6 h-6 text-white"></i> |
|
|
</div> |
|
|
<span class="ml-3 text-xl font-bold">KODE 1</span> |
|
|
</div> |
|
|
<div class="hidden md:ml-10 md:flex md:space-x-8"> |
|
|
<a href="index.html" class="text-primary-600 dark:text-primary-400 px-3 py-2 text-sm font-medium">Dashboard</a> |
|
|
<a href="agents.html" class="text-secondary-700 dark:text-secondary-300 hover:text-primary-600 dark:hover:text-primary-400 px-3 py-2 text-sm font-medium">Agents</a> |
|
|
<a href="agent-builder.html" class="text-secondary-700 dark:text-secondary-300 hover:text-primary-600 dark:hover:text-primary-400 px-3 py-2 text-sm font-medium flex items-center space-x-1"> |
|
|
<span>Agent Builder</span> |
|
|
<span class="px-1.5 py-0.5 bg-primary-100 dark:bg-primary-900 text-primary-600 dark:text-primary-400 rounded-full text-xs font-medium">NEW</span> |
|
|
</a> |
|
|
<a href="tasks.html" class="text-secondary-700 dark:text-secondary-300 hover:text-primary-600 dark:hover:text-primary-400 px-3 py-2 text-sm font-medium">Tasks</a> |
|
|
<a href="workflows.html" class="text-secondary-700 dark:text-secondary-300 hover:text-primary-600 dark:hover:text-primary-400 px-3 py-2 text-sm font-medium">Workflows</a> |
|
|
<a href="analytics.html" class="text-secondary-700 dark:text-secondary-300 hover:text-primary-600 dark:hover:text-primary-400 px-3 py-2 text-sm font-medium">Analytics</a> |
|
|
</div> |
|
|
</div> |
|
|
<div class="flex items-center space-x-4"> |
|
|
<button onclick="toggleTheme()" class="p-2 rounded-lg hover:bg-secondary-100 dark:hover:bg-secondary-700"> |
|
|
<i data-feather="moon" class="w-5 h-5 dark:hidden"></i> |
|
|
<i data-feather="sun" class="w-5 h-5 hidden dark:block"></i> |
|
|
</button> |
|
|
<div class="relative"> |
|
|
<button class="p-2 rounded-lg hover:bg-secondary-100 dark:hover:bg-secondary-700"> |
|
|
<i data-feather="bell" class="w-5 h-5"></i> |
|
|
<span class="absolute top-1 right-1 w-2 h-2 bg-red-500 rounded-full"></span> |
|
|
</button> |
|
|
</div> |
|
|
<div class="flex items-center space-x-2"> |
|
|
<img src="http://static.photos/people/40x40/1" alt="User" class="w-8 h-8 rounded-full"> |
|
|
<span class="text-sm font-medium">John Doe</span> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</nav> |
|
|
|
|
|
|
|
|
<main class="pt-16"> |
|
|
|
|
|
<section class="bg-gradient-to-br from-primary-600 to-primary-800 text-white py-12"> |
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
|
|
<div class="flex justify-between items-center"> |
|
|
<div> |
|
|
<h1 class="text-4xl font-bold mb-2">Welcome to KODE 1</h1> |
|
|
<p class="text-primary-100">Multi-Agent AI Platform for Autonomous Workflows</p> |
|
|
</div> |
|
|
<button class="bg-white text-primary-600 px-6 py-3 rounded-lg font-semibold hover:bg-primary-50 transition-colors"> |
|
|
Create New Agent |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</section> |
|
|
|
|
|
|
|
|
<section class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 -mt-6"> |
|
|
<div class="grid grid-cols-1 md:grid-cols-4 gap-4"> |
|
|
<div class="bg-white dark:bg-secondary-800 rounded-xl shadow-lg p-6"> |
|
|
<div class="flex items-center justify-between"> |
|
|
<div> |
|
|
<p class="text-secondary-500 dark:text-secondary-400 text-sm">Active Agents</p> |
|
|
<p class="text-3xl font-bold text-primary-600 dark:text-primary-400">24</p> |
|
|
<p class="text-xs text-green-500 mt-1">+12% from last week</p> |
|
|
</div> |
|
|
<div class="bg-primary-100 dark:bg-primary-900 p-3 rounded-lg"> |
|
|
<i data-feather="users" class="w-6 h-6 text-primary-600 dark:text-primary-400"></i> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="bg-white dark:bg-secondary-800 rounded-xl shadow-lg p-6"> |
|
|
<div class="flex items-center justify-between"> |
|
|
<div> |
|
|
<p class="text-secondary-500 dark:text-secondary-400 text-sm">Running Tasks</p> |
|
|
<p class="text-3xl font-bold text-green-600 dark:text-green-400">156</p> |
|
|
<p class="text-xs text-secondary-500 dark:text-secondary-400 mt-1">Processing...</p> |
|
|
</div> |
|
|
<div class="bg-green-100 dark:bg-green-900 p-3 rounded-lg"> |
|
|
<i data-feather="activity" class="w-6 h-6 text-green-600 dark:text-green-400"></i> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="bg-white dark:bg-secondary-800 rounded-xl shadow-lg p-6"> |
|
|
<div class="flex items-center justify-between"> |
|
|
<div> |
|
|
<p class="text-secondary-500 dark:text-secondary-400 text-sm">Completed Today</p> |
|
|
<p class="text-3xl font-bold text-purple-600 dark:text-purple-400">892</p> |
|
|
<p class="text-xs text-green-500 mt-1">+23% efficiency</p> |
|
|
</div> |
|
|
<div class="bg-purple-100 dark:bg-purple-900 p-3 rounded-lg"> |
|
|
<i data-feather="check-circle" class="w-6 h-6 text-purple-600 dark:text-purple-400"></i> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="bg-white dark:bg-secondary-800 rounded-xl shadow-lg p-6"> |
|
|
<div class="flex items-center justify-between"> |
|
|
<div> |
|
|
<p class="text-secondary-500 dark:text-secondary-400 text-sm">System Health</p> |
|
|
<p class="text-3xl font-bold text-green-600 dark:text-green-400">98%</p> |
|
|
<p class="text-xs text-green-500 mt-1">All systems operational</p> |
|
|
</div> |
|
|
<div class="bg-green-100 dark:bg-green-900 p-3 rounded-lg"> |
|
|
<i data-feather="server" class="w-6 h-6 text-green-600 dark:text-green-400"></i> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</section> |
|
|
|
|
|
|
|
|
<section class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> |
|
|
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6"> |
|
|
|
|
|
<div class="lg:col-span-2 bg-white dark:bg-secondary-800 rounded-xl shadow-lg p-6"> |
|
|
<div class="flex justify-between items-center mb-6"> |
|
|
<h2 class="text-xl font-bold">Active Agents</h2> |
|
|
<button class="text-primary-600 dark:text-primary-400 hover:text-primary-700 dark:hover:text-primary-300"> |
|
|
View All |
|
|
</button> |
|
|
</div> |
|
|
<div class="space-y-4"> |
|
|
|
|
|
<div class="border border-secondary-200 dark:border-secondary-700 rounded-lg p-4 hover:shadow-md transition-shadow"> |
|
|
<div class="flex items-center justify-between"> |
|
|
<div class="flex items-center space-x-3"> |
|
|
<div class="w-12 h-12 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center"> |
|
|
<i data-feather="code" class="w-6 h-6 text-white"></i> |
|
|
</div> |
|
|
<div> |
|
|
<h3 class="font-semibold">CodeAgent Pro</h3> |
|
|
<p class="text-sm text-secondary-500 dark:text-secondary-400">Python & JavaScript Specialist</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="text-right"> |
|
|
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200"> |
|
|
Active |
|
|
</span> |
|
|
<p class="text-xs text-secondary-500 dark:text-secondary-400 mt-1">8 tasks running</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="mt-4 flex items-center space-x-4"> |
|
|
<div class="flex-1"> |
|
|
<div class="flex justify-between text-xs text-secondary-500 dark:text-secondary-400 mb-1"> |
|
|
<span>CPU Usage</span> |
|
|
<span>65%</span> |
|
|
</div> |
|
|
<div class="w-full bg-secondary-200 dark:bg-secondary-700 rounded-full h-2"> |
|
|
<div class="bg-primary-600 h-2 rounded-full" style="width: 65%"></div> |
|
|
</div> |
|
|
</div> |
|
|
<button class="p-2 hover:bg-secondary-100 dark:hover:bg-secondary-700 rounded-lg"> |
|
|
<i data-feather="more-vertical" class="w-4 h-4"></i> |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="border border-secondary-200 dark:border-secondary-700 rounded-lg p-4 hover:shadow-md transition-shadow"> |
|
|
<div class="flex items-center justify-between"> |
|
|
<div class="flex items-center space-x-3"> |
|
|
<div class="w-12 h-12 bg-gradient-to-br from-green-500 to-teal-600 rounded-lg flex items-center justify-center"> |
|
|
<i data-feather="edit-3" class="w-6 h-6 text-white"></i> |
|
|
</div> |
|
|
<div> |
|
|
<h3 class="font-semibold">WriterAI</h3> |
|
|
<p class="text-sm text-secondary-500 dark:text-secondary-400">Content Generation Expert</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="text-right"> |
|
|
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200"> |
|
|
Busy |
|
|
</span> |
|
|
<p class="text-xs text-secondary-500 dark:text-secondary-400 mt-1">12 tasks running</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="mt-4 flex items-center space-x-4"> |
|
|
<div class="flex-1"> |
|
|
<div class="flex justify-between text-xs text-secondary-500 dark:text-secondary-400 mb-1"> |
|
|
<span>CPU Usage</span> |
|
|
<span>85%</span> |
|
|
</div> |
|
|
<div class="w-full bg-secondary-200 dark:bg-secondary-700 rounded-full h-2"> |
|
|
<div class="bg-yellow-600 h-2 rounded-full" style="width: 85%"></div> |
|
|
</div> |
|
|
</div> |
|
|
<button class="p-2 hover:bg-secondary-100 dark:hover:bg-secondary-700 rounded-lg"> |
|
|
<i data-feather="more-vertical" class="w-4 h-4"></i> |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="border border-secondary-200 dark:border-secondary-700 rounded-lg p-4 hover:shadow-md transition-shadow"> |
|
|
<div class="flex items-center justify-between"> |
|
|
<div class="flex items-center space-x-3"> |
|
|
<div class="w-12 h-12 bg-gradient-to-br from-orange-500 to-red-600 rounded-lg flex items-center justify-center"> |
|
|
<i data-feather="bar-chart-2" class="w-6 h-6 text-white"></i> |
|
|
</div> |
|
|
<div> |
|
|
<h3 class="font-semibold">DataAnalyzer</h3> |
|
|
<p class="text-sm text-secondary-500 dark:text-secondary-400">Business Intelligence Agent</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="text-right"> |
|
|
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200"> |
|
|
Active |
|
|
</span> |
|
|
<p class="text-xs text-secondary-500 dark:text-secondary-400 mt-1">3 tasks running</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="mt-4 flex items-center space-x-4"> |
|
|
<div class="flex-1"> |
|
|
<div class="flex justify-between text-xs text-secondary-500 dark:text-secondary-400 mb-1"> |
|
|
<span>CPU Usage</span> |
|
|
<span>42%</span> |
|
|
</div> |
|
|
<div class="w-full bg-secondary-200 dark:bg-secondary-700 rounded-full h-2"> |
|
|
<div class="bg-primary-600 h-2 rounded-full" style="width: 42%"></div> |
|
|
</div> |
|
|
</div> |
|
|
<button class="p-2 hover:bg-secondary-100 dark:hover:bg-secondary-700 rounded-lg"> |
|
|
<i data-feather="more-vertical" class="w-4 h-4"></i> |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="space-y-6"> |
|
|
|
|
|
<div class="bg-white dark:bg-secondary-800 rounded-xl shadow-lg p-6"> |
|
|
<h2 class="text-xl font-bold mb-4">Quick Actions</h2> |
|
|
<div class="space-y-3"> |
|
|
<button class="w-full bg-primary-600 text-white px-4 py-3 rounded-lg font-medium hover:bg-primary-700 transition-colors flex items-center justify-center space-x-2"> |
|
|
<i data-feather="plus-circle" class="w-5 h-5"></i> |
|
|
<span>Create New Agent</span> |
|
|
</button> |
|
|
<button class="w-full bg-secondary-100 dark:bg-secondary-700 text-secondary-700 dark:text-secondary-300 px-4 py-3 rounded-lg font-medium hover:bg-secondary-200 dark:hover:bg-secondary-600 transition-colors flex items-center justify-center space-x-2"> |
|
|
<i data-feather="play-circle" class="w-5 h-5"></i> |
|
|
<span>Start Workflow</span> |
|
|
</button> |
|
|
<button class="w-full bg-secondary-100 dark:bg-secondary-700 text-secondary-700 dark:text-secondary-300 px-4 py-3 rounded-lg font-medium hover:bg-secondary-200 dark:hover:bg-secondary-600 transition-colors flex items-center justify-center space-x-2"> |
|
|
<i data-feather="upload" class="w-5 h-5"></i> |
|
|
<span>Import Knowledge</span> |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="bg-white dark:bg-secondary-800 rounded-xl shadow-lg p-6"> |
|
|
<h2 class="text-xl font-bold mb-4">Recent Activity</h2> |
|
|
<div class="space-y-3"> |
|
|
<div class="flex items-start space-x-3"> |
|
|
<div class="w-2 h-2 bg-green-500 rounded-full mt-2"></div> |
|
|
<div class="flex-1"> |
|
|
<p class="text-sm font-medium">CodeAgent Pro completed task</p> |
|
|
<p class="text-xs text-secondary-500 dark:text-secondary-400">2 minutes ago</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="flex items-start space-x-3"> |
|
|
<div class="w-2 h-2 bg-blue-500 rounded-full mt-2"></div> |
|
|
<div class="flex-1"> |
|
|
<p class="text-sm font-medium">New agent deployed</p> |
|
|
<p class="text-xs text-secondary-500 dark:text-secondary-400">15 minutes ago</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="flex items-start space-x-3"> |
|
|
<div class="w-2 h-2 bg-yellow-500 rounded-full mt-2"></div> |
|
|
<div class="flex-1"> |
|
|
<p class="text-sm font-medium">Workflow paused</p> |
|
|
<p class="text-xs text-secondary-500 dark:text-secondary-400">1 hour ago</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="flex items-start space-x-3"> |
|
|
<div class="w-2 h-2 bg-purple-500 rounded-full mt-2"></div> |
|
|
<div class="flex-1"> |
|
|
<p class="text-sm font-medium">Knowledge base updated</p> |
|
|
<p class="text-xs text-secondary-500 dark:text-secondary-400">2 hours ago</p> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="bg-white dark:bg-secondary-800 rounded-xl shadow-lg p-6"> |
|
|
<h2 class="text-xl font-bold mb-4">Performance Overview</h2> |
|
|
<canvas id="performanceChart" width="400" height="200"></canvas> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</section> |
|
|
|
|
|
|
|
|
<section class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pb-8"> |
|
|
<div class="bg-white dark:bg-secondary-800 rounded-xl shadow-lg p-6"> |
|
|
<div class="flex justify-between items-center mb-6"> |
|
|
<h2 class="text-xl font-bold">Task Queue</h2> |
|
|
<div class="flex space-x-2"> |
|
|
<button class="px-4 py-2 bg-primary-600 text-white rounded-lg text-sm font-medium hover:bg-primary-700 transition-colors"> |
|
|
All Tasks |
|
|
</button> |
|
|
<button class="px-4 py-2 bg-secondary-100 dark:bg-secondary-700 text-secondary-700 dark:text-secondary-300 rounded-lg text-sm font-medium hover:bg-secondary-200 dark:hover:bg-secondary-600 transition-colors"> |
|
|
Running |
|
|
</button> |
|
|
<button class="px-4 py-2 bg-secondary-100 dark:bg-secondary-700 text-secondary-700 dark:text-secondary-300 rounded-lg text-sm font-medium hover:bg-secondary-200 dark:hover:bg-secondary-600 transition-colors"> |
|
|
Completed |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
<div class="overflow-x-auto"> |
|
|
<table class="w-full"> |
|
|
<thead> |
|
|
<tr class="border-b border-secondary-200 dark:border-secondary-700"> |
|
|
<th class="text-left py-3 px-4 font-medium text-secondary-700 dark:text-secondary-300">Task ID</th> |
|
|
<th class="text-left py-3 px-4 font-medium text-secondary-700 dark:text-secondary-300">Name</th> |
|
|
<th class="text-left py-3 px-4 font-medium text-secondary-700 dark:text-secondary-300">Agent</th> |
|
|
<th class="text-left py-3 px-4 font-medium text-secondary-700 dark:text-secondary-300">Priority</th> |
|
|
<th class="text-left py-3 px-4 font-medium text-secondary-700 dark:text-secondary-300">Status</th> |
|
|
<th class="text-left py-3 px-4 font-medium text-secondary-700 dark:text-secondary-300">Progress</th> |
|
|
<th class="text-left py-3 px-4 font-medium text-secondary-700 dark:text-secondary-300">Actions</th> |
|
|
</tr> |
|
|
</thead> |
|
|
<tbody> |
|
|
<tr class="border-b border-secondary-100 dark:border-secondary-800 hover:bg-secondary-50 dark:hover:bg-secondary-900"> |
|
|
<td class="py-3 px-4 text-sm">#TK001</td> |
|
|
<td class="py-3 px-4 text-sm">Code Review</td> |
|
|
<td class="py-3 px-4 text-sm">CodeAgent Pro</td> |
|
|
<td class="py-3 px-4"> |
|
|
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"> |
|
|
High |
|
|
</span> |
|
|
</td> |
|
|
<td class="py-3 px-4"> |
|
|
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200"> |
|
|
Running |
|
|
</span> |
|
|
</td> |
|
|
<td class="py-3 px-4"> |
|
|
<div class="flex items-center space-x-2"> |
|
|
<div class="w-24 bg-secondary-200 dark:bg-secondary-700 rounded-full h-2"> |
|
|
<div class="bg-blue-600 h-2 rounded-full" style="width: 75%"></div> |
|
|
</div> |
|
|
<span class="text-xs">75%</span> |
|
|
</div> |
|
|
</td> |
|
|
<td class="py-3 px-4"> |
|
|
<button class="p-1 hover:bg-secondary-100 dark:hover:bg-secondary-700 rounded"> |
|
|
<i data-feather="pause" class="w-4 h-4"></i> |
|
|
</button> |
|
|
</td> |
|
|
</tr> |
|
|
<tr class="border-b border-secondary-100 dark:border-secondary-800 hover:bg-secondary-50 dark:hover:bg-secondary-900"> |
|
|
<td class="py-3 px-4 text-sm">#TK002</td> |
|
|
<td class="py-3 px-4 text-sm">Content Generation</td> |
|
|
<td class="py-3 px-4 text-sm">WriterAI</td> |
|
|
<td class="py-3 px-4"> |
|
|
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200"> |
|
|
Medium |
|
|
</span> |
|
|
</td> |
|
|
<td class="py-3 px-4"> |
|
|
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200"> |
|
|
Completed |
|
|
</span> |
|
|
</td> |
|
|
<td class="py-3 px-4"> |
|
|
<div class="flex items-center space-x-2"> |
|
|
<div class="w-24 bg-secondary-200 dark:bg-secondary-700 rounded-full h-2"> |
|
|
<div class="bg-green-600 h-2 rounded-full" style="width: 100%"></div> |
|
|
</div> |
|
|
<span class="text-xs">100%</span> |
|
|
</div> |
|
|
</td> |
|
|
<td class="py-3 px-4"> |
|
|
<button class="p-1 hover:bg-secondary-100 dark:hover:bg-secondary-700 rounded"> |
|
|
<i data-feather="check" class="w-4 h-4"></i> |
|
|
</button> |
|
|
</td> |
|
|
</tr> |
|
|
<tr class="border-b border-secondary-100 dark:border-secondary-800 hover:bg-secondary-50 dark:hover:bg-secondary-900"> |
|
|
<td class="py-3 px-4 text-sm">#TK003</td> |
|
|
<td class="py-3 px-4 text-sm">Data Analysis</td> |
|
|
<td class="py-3 px-4 text-sm">DataAnalyzer</td> |
|
|
<td class="py-3 px-4"> |
|
|
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200"> |
|
|
Low |
|
|
</span> |
|
|
</td> |
|
|
<td class="py-3 px-4"> |
|
|
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-200"> |
|
|
Queued |
|
|
</span> |
|
|
</td> |
|
|
<td class="py-3 px-4"> |
|
|
<div class="flex items-center space-x-2"> |
|
|
<div class="w-24 bg-secondary-200 dark:bg-secondary-700 rounded-full h-2"> |
|
|
<div class="bg-gray-600 h-2 rounded-full" style="width: 0%"></div> |
|
|
</div> |
|
|
<span class="text-xs">0%</span> |
|
|
</div> |
|
|
</td> |
|
|
<td class="py-3 px-4"> |
|
|
<button class="p-1 hover:bg-secondary-100 dark:hover:bg-secondary-700 rounded"> |
|
|
<i data-feather="play" class="w-4 h-4"></i> |
|
|
</button> |
|
|
</td> |
|
|
</tr> |
|
|
</tbody> |
|
|
</table> |
|
|
</div> |
|
|
</div> |
|
|
</section> |
|
|
</main> |
|
|
|
|
|
|
|
|
<button class="fixed bottom-6 right-6 bg-primary-600 text-white p-4 rounded-full shadow-lg hover:bg-primary-700 transition-all hover:scale-110 z-40"> |
|
|
<i data-feather="message-circle" class="w-6 h-6"></i> |
|
|
</button> |
|
|
|
|
|
<script> |
|
|
|
|
|
feather.replace(); |
|
|
|
|
|
|
|
|
function toggleTheme() { |
|
|
document.documentElement.classList.toggle('dark'); |
|
|
localStorage.setItem('theme', document.documentElement.classList.contains('dark') ? 'dark' : 'light'); |
|
|
} |
|
|
|
|
|
|
|
|
if (localStorage.getItem('theme') === 'dark' || (!localStorage.getItem('theme') && window.matchMedia('(prefers-color-scheme: dark)').matches)) { |
|
|
document.documentElement.classList.add('dark'); |
|
|
} |
|
|
|
|
|
|
|
|
const ctx = document.getElementById('performanceChart').getContext('2d'); |
|
|
const performanceChart = new Chart(ctx, { |
|
|
type: 'line', |
|
|
data: { |
|
|
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], |
|
|
datasets: [{ |
|
|
label: 'Tasks Completed', |
|
|
data: [120, 190, 300, 250, 420, 380, 450], |
|
|
borderColor: 'rgb(59, 130, 246)', |
|
|
backgroundColor: 'rgba(59, 130, 246, 0.1)', |
|
|
tension: 0.4 |
|
|
}, { |
|
|
label: 'Active Agents', |
|
|
data: [20, 22, 24, 21, 26, 24, 24], |
|
|
borderColor: 'rgb(16, 185, 129)', |
|
|
backgroundColor: 'rgba(16, 185, 129, 0.1)', |
|
|
tension: 0.4 |
|
|
}] |
|
|
}, |
|
|
options: { |
|
|
responsive: true, |
|
|
maintainAspectRatio: false, |
|
|
plugins: { |
|
|
legend: { |
|
|
display: true, |
|
|
position: 'bottom' |
|
|
} |
|
|
}, |
|
|
scales: { |
|
|
y: { |
|
|
beginAtZero: true, |
|
|
grid: { |
|
|
color: 'rgba(156, 163, 175, 0.1)' |
|
|
} |
|
|
}, |
|
|
x: { |
|
|
grid: { |
|
|
display: false |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
|
|
|
|
|
|
setInterval(() => { |
|
|
|
|
|
const agents = document.querySelectorAll('.space-y-4 > div'); |
|
|
if (agents.length > 0) { |
|
|
const randomAgent = agents[Math.floor(Math.random() * agents.length)]; |
|
|
const progressBar = randomAgent.querySelector('.bg-primary-600, .bg-yellow-600'); |
|
|
if (progressBar) { |
|
|
const currentWidth = parseInt(progressBar.style.width); |
|
|
const newWidth = Math.min(100, currentWidth + Math.random() * 10); |
|
|
progressBar.style.width = newWidth + '%'; |
|
|
const percentText = progressBar.parentElement.parentElement.querySelector('.text-xs:last-child'); |
|
|
if (percentText) { |
|
|
percentText.textContent = Math.round(newWidth) + '%'; |
|
|
} |
|
|
} |
|
|
} |
|
|
}, 3000); |
|
|
</script> |
|
|
</body> |
|
|
</html> |
|
|
|