cookiesync-ai-dashboard / session.html
Germinal's picture
Complete a Barra lateral e atualize a cor para corresponder ao dashboard principal
479fff0 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Session Manager | CookieSync</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="components/navbar.js"></script>
<script src="components/sidebar.js"></script>
</head>
<body class="bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-gray-100">
<custom-navbar></custom-navbar>
<div class="flex">
<custom-sidebar></custom-sidebar>
<main class="flex-1 p-6 ml-64">
<h1 class="text-2xl font-bold mb-6 flex items-center">
<i data-feather="key" class="mr-2"></i> Session Manager
</h1>
<div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6 mb-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-bold">Active Sessions</h2>
<button class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded flex items-center">
<i data-feather="plus" class="mr-2"></i> New Session
</button>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
<thead class="bg-gray-50 dark:bg-gray-800">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider">ID</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider">Created</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider">Last Used</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white dark:bg-gray-800 divide-y divide-gray-200 dark:divide-gray-700">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">sess_abc123</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 rounded text-xs font-medium bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200">ACTIVE</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">2 hours ago</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">5 minutes ago</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">
<button class="text-blue-600 hover:text-blue-900 dark:text-blue-400 dark:hover:text-blue-300 mr-3">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
</button>
<button class="text-red-600 hover:text-red-900 dark:text-red-400 dark:hover:text-red-300">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">sess_def456</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 rounded text-xs font-medium bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-200">IDLE</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">1 day ago</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">3 hours ago</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">
<button class="text-blue-600 hover:text-blue-900 dark:text-blue-400 dark:hover:text-blue-300 mr-3">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
</button>
<button class="text-red-600 hover:text-red-900 dark:text-red-400 dark:hover:text-red-300">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">sess_ghi789</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 rounded text-xs font-medium bg-red-100 dark:bg-red-900 text-red-800 dark:text-red-200">EXPIRED</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">3 days ago</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">1 day ago</td>
<td class="px-6 py-4 whitespace-nowrap text-sm">
<button class="text-blue-600 hover:text-blue-900 dark:text-blue-400 dark:hover:text-blue-300 mr-3">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
</button>
<button class="text-red-600 hover:text-red-900 dark:text-red-400 dark:hover:text-red-300">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
<h2 class="text-xl font-bold mb-4">Create New Session</h2>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium mb-1">Session Name</label>
<input type="text" class="w-full p-2 border rounded dark:bg-gray-700 dark:border-gray-600" placeholder="My Session">
</div>
<div>
<label class="block text-sm font-medium mb-1">Expiration</label>
<select class="w-full p-2 border rounded dark:bg-gray-700 dark:border-gray-600">
<option>1 hour</option>
<option>8 hours</option>
<option>1 day</option>
<option>7 days</option>
<option>30 days</option>
</select>
</div>
<button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded flex items-center justify-center">
<i data-feather="plus" class="mr-2"></i> Create Session
</button>
</div>
</div>
<div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
<h2 class="text-xl font-bold mb-4">Session Statistics</h2>
<div class="space-y-4">
<div class="flex justify-between">
<span>Active Sessions:</span>
<span class="font-medium">1</span>
</div>
<div class="flex justify-between">
<span>Total Sessions:</span>
<span class="font-medium">3</span>
</div>
<div class="flex justify-between">
<span>Average Duration:</span>
<span class="font-medium">12h 34m</span>
</div>
<div class="pt-4">
<div class="h-2 bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden">
<div class="h-full bg-blue-500" style="width: 33%"></div>
</div>
<div class="flex justify-between text-xs text-gray-600 dark:text-gray-400 mt-1">
<span>33% active</span>
<span>67% inactive</span>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
<script src="script.js"></script>
<script>
feather.replace();
</script>
</body>
</html>