Spaces:
Running

web-planning / index.html
sidyben's picture
page web planning agent centre d'appel - Initial Deployment
d997419 verified
Raw History Blame Contribute Delete
37.1 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Call Center Agent Planning</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>
.time-slot {
transition: all 0.3s ease;
}
.time-slot:hover {
transform: scale(1.03);
}
.agent-card {
transition: all 0.3s ease;
}
.agent-card:hover {
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.custom-scrollbar::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: #f1f1f1;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: #888;
border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background: #555;
}
</style>
</head>
<body class="bg-gray-50">
<div class="min-h-screen flex flex-col">
<!-- Header -->
<header class="bg-blue-600 text-white shadow-md">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-headset text-2xl"></i>
<h1 class="text-2xl font-bold">Call Center Planner</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<i class="fas fa-bell text-xl cursor-pointer"></i>
<span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-4 w-4 flex items-center justify-center">3</span>
</div>
<div class="flex items-center space-x-2">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="w-8 h-8 rounded-full">
<span class="font-medium">Admin</span>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="flex-1 container mx-auto px-4 py-6">
<div class="flex flex-col lg:flex-row gap-6">
<!-- Left Sidebar -->
<div class="w-full lg:w-1/4 space-y-6">
<!-- Date Picker -->
<div class="bg-white rounded-lg shadow p-4">
<h2 class="text-lg font-semibold mb-4 text-gray-700">Select Date</h2>
<div class="flex justify-between items-center mb-4">
<button class="p-2 rounded-full hover:bg-gray-100">
<i class="fas fa-chevron-left"></i>
</button>
<span class="font-medium" id="current-date">Today, June 15, 2023</span>
<button class="p-2 rounded-full hover:bg-gray-100">
<i class="fas fa-chevron-right"></i>
</button>
</div>
<div class="grid grid-cols-7 gap-1 text-center">
<div class="py-2 text-xs font-medium text-gray-500">S</div>
<div class="py-2 text-xs font-medium text-gray-500">M</div>
<div class="py-2 text-xs font-medium text-gray-500">T</div>
<div class="py-2 text-xs font-medium text-gray-500">W</div>
<div class="py-2 text-xs font-medium text-gray-500">T</div>
<div class="py-2 text-xs font-medium text-gray-500">F</div>
<div class="py-2 text-xs font-medium text-gray-500">S</div>
<!-- Calendar days -->
<div class="py-2 text-sm text-gray-400">28</div>
<div class="py-2 text-sm text-gray-400">29</div>
<div class="py-2 text-sm text-gray-400">30</div>
<div class="py-2 text-sm text-gray-400">31</div>
<div class="py-2 text-sm">1</div>
<div class="py-2 text-sm">2</div>
<div class="py-2 text-sm">3</div>
<div class="py-2 text-sm">4</div>
<div class="py-2 text-sm">5</div>
<div class="py-2 text-sm">6</div>
<div class="py-2 text-sm">7</div>
<div class="py-2 text-sm">8</div>
<div class="py-2 text-sm">9</div>
<div class="py-2 text-sm">10</div>
<div class="py-2 text-sm">11</div>
<div class="py-2 text-sm">12</div>
<div class="py-2 text-sm">13</div>
<div class="py-2 text-sm">14</div>
<div class="py-2 text-sm bg-blue-100 rounded-full font-medium text-blue-600">15</div>
<div class="py-2 text-sm">16</div>
<div class="py-2 text-sm">17</div>
<div class="py-2 text-sm">18</div>
<div class="py-2 text-sm">19</div>
<div class="py-2 text-sm">20</div>
<div class="py-2 text-sm">21</div>
<div class="py-2 text-sm">22</div>
<div class="py-2 text-sm">23</div>
<div class="py-2 text-sm">24</div>
<div class="py-2 text-sm">25</div>
<div class="py-2 text-sm">26</div>
<div class="py-2 text-sm">27</div>
<div class="py-2 text-sm">28</div>
<div class="py-2 text-sm">29</div>
<div class="py-2 text-sm">30</div>
<div class="py-2 text-sm text-gray-400">1</div>
</div>
</div>
<!-- Agent List -->
<div class="bg-white rounded-lg shadow p-4">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold text-gray-700">Agents</h2>
<button class="text-blue-600 hover:text-blue-800">
<i class="fas fa-plus"></i> Add
</button>
</div>
<div class="space-y-3 max-h-96 overflow-y-auto custom-scrollbar">
<!-- Agent Cards -->
<div class="agent-card bg-white border border-gray-200 rounded-lg p-3 flex items-center space-x-3 cursor-pointer hover:border-blue-300">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Agent" class="w-10 h-10 rounded-full">
<div>
<h3 class="font-medium">John Smith</h3>
<p class="text-xs text-gray-500">Senior Agent</p>
</div>
<div class="ml-auto">
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Available</span>
</div>
</div>
<div class="agent-card bg-white border border-gray-200 rounded-lg p-3 flex items-center space-x-3 cursor-pointer hover:border-blue-300">
<img src="https://randomuser.me/api/portraits/women/65.jpg" alt="Agent" class="w-10 h-10 rounded-full">
<div>
<h3 class="font-medium">Sarah Johnson</h3>
<p class="text-xs text-gray-500">Team Lead</p>
</div>
<div class="ml-auto">
<span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full">Training</span>
</div>
</div>
<div class="agent-card bg-white border border-gray-200 rounded-lg p-3 flex items-center space-x-3 cursor-pointer hover:border-blue-300">
<img src="https://randomuser.me/api/portraits/men/75.jpg" alt="Agent" class="w-10 h-10 rounded-full">
<div>
<h3 class="font-medium">Michael Brown</h3>
<p class="text-xs text-gray-500">Junior Agent</p>
</div>
<div class="ml-auto">
<span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded-full">On Leave</span>
</div>
</div>
<div class="agent-card bg-white border border-gray-200 rounded-lg p-3 flex items-center space-x-3 cursor-pointer hover:border-blue-300">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Agent" class="w-10 h-10 rounded-full">
<div>
<h3 class="font-medium">Emily Davis</h3>
<p class="text-xs text-gray-500">Senior Agent</p>
</div>
<div class="ml-auto">
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Available</span>
</div>
</div>
<div class="agent-card bg-white border border-gray-200 rounded-lg p-3 flex items-center space-x-3 cursor-pointer hover:border-blue-300">
<img src="https://randomuser.me/api/portraits/men/22.jpg" alt="Agent" class="w-10 h-10 rounded-full">
<div>
<h3 class="font-medium">Robert Wilson</h3>
<p class="text-xs text-gray-500">Quality Analyst</p>
</div>
<div class="ml-auto">
<span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded-full">QA Session</span>
</div>
</div>
</div>
</div>
</div>
<!-- Main Planning Area -->
<div class="w-full lg:w-3/4">
<div class="bg-white rounded-lg shadow p-4">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-semibold text-gray-700">Shift Planning</h2>
<div class="flex space-x-2">
<button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700">
<i class="fas fa-save mr-2"></i> Save
</button>
<button class="px-4 py-2 border border-gray-300 rounded-lg hover:bg-gray-50">
<i class="fas fa-print mr-2"></i> Print
</button>
</div>
</div>
<!-- Time Slots -->
<div class="overflow-x-auto">
<table class="w-full">
<thead>
<tr class="border-b border-gray-200">
<th class="py-3 text-left text-gray-500 font-medium">Time</th>
<th class="py-3 text-left text-gray-500 font-medium">Agent</th>
<th class="py-3 text-left text-gray-500 font-medium">Status</th>
<th class="py-3 text-left text-gray-500 font-medium">Skills</th>
<th class="py-3 text-left text-gray-500 font-medium">Actions</th>
</tr>
</thead>
<tbody>
<!-- Morning Shift -->
<tr class="border-b border-gray-100">
<td colspan="5" class="py-2 px-4 bg-gray-50 text-gray-600 font-medium">Morning Shift (8:00 AM - 12:00 PM)</td>
</tr>
<tr class="border-b border-gray-100 hover:bg-gray-50">
<td class="py-4 px-4">8:00 AM - 9:00 AM</td>
<td class="py-4 px-4">
<select class="border border-gray-300 rounded px-3 py-1 text-sm">
<option>Select Agent</option>
<option>John Smith</option>
<option>Sarah Johnson</option>
<option>Michael Brown</option>
<option>Emily Davis</option>
<option>Robert Wilson</option>
</select>
</td>
<td class="py-4 px-4">
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Available</span>
</td>
<td class="py-4 px-4">
<div class="flex flex-wrap gap-1">
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">English</span>
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Sales</span>
</div>
</td>
<td class="py-4 px-4">
<button class="text-blue-600 hover:text-blue-800 mr-2">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
<tr class="border-b border-gray-100 hover:bg-gray-50">
<td class="py-4 px-4">9:00 AM - 10:00 AM</td>
<td class="py-4 px-4">
<select class="border border-gray-300 rounded px-3 py-1 text-sm">
<option>Select Agent</option>
<option selected>Sarah Johnson</option>
<option>John Smith</option>
<option>Michael Brown</option>
<option>Emily Davis</option>
<option>Robert Wilson</option>
</select>
</td>
<td class="py-4 px-4">
<span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full">Training</span>
</td>
<td class="py-4 px-4">
<div class="flex flex-wrap gap-1">
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">English</span>
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Support</span>
</div>
</td>
<td class="py-4 px-4">
<button class="text-blue-600 hover:text-blue-800 mr-2">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
<tr class="border-b border-gray-100 hover:bg-gray-50">
<td class="py-4 px-4">10:00 AM - 11:00 AM</td>
<td class="py-4 px-4">
<select class="border border-gray-300 rounded px-3 py-1 text-sm">
<option>Select Agent</option>
<option>John Smith</option>
<option>Sarah Johnson</option>
<option selected>Emily Davis</option>
<option>Michael Brown</option>
<option>Robert Wilson</option>
</select>
</td>
<td class="py-4 px-4">
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Available</span>
</td>
<td class="py-4 px-4">
<div class="flex flex-wrap gap-1">
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">French</span>
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Sales</span>
</div>
</td>
<td class="py-4 px-4">
<button class="text-blue-600 hover:text-blue-800 mr-2">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
<tr class="border-b border-gray-100 hover:bg-gray-50">
<td class="py-4 px-4">11:00 AM - 12:00 PM</td>
<td class="py-4 px-4">
<select class="border border-gray-300 rounded px-3 py-1 text-sm">
<option>Select Agent</option>
<option>John Smith</option>
<option>Sarah Johnson</option>
<option>Michael Brown</option>
<option>Emily Davis</option>
<option selected>Robert Wilson</option>
</select>
</td>
<td class="py-4 px-4">
<span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded-full">QA Session</span>
</td>
<td class="py-4 px-4">
<div class="flex flex-wrap gap-1">
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">English</span>
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Quality</span>
</div>
</td>
<td class="py-4 px-4">
<button class="text-blue-600 hover:text-blue-800 mr-2">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
<!-- Afternoon Shift -->
<tr class="border-b border-gray-100">
<td colspan="5" class="py-2 px-4 bg-gray-50 text-gray-600 font-medium">Afternoon Shift (1:00 PM - 5:00 PM)</td>
</tr>
<tr class="border-b border-gray-100 hover:bg-gray-50">
<td class="py-4 px-4">1:00 PM - 2:00 PM</td>
<td class="py-4 px-4">
<select class="border border-gray-300 rounded px-3 py-1 text-sm">
<option>Select Agent</option>
<option selected>John Smith</option>
<option>Sarah Johnson</option>
<option>Michael Brown</option>
<option>Emily Davis</option>
<option>Robert Wilson</option>
</select>
</td>
<td class="py-4 px-4">
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Available</span>
</td>
<td class="py-4 px-4">
<div class="flex flex-wrap gap-1">
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">English</span>
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Sales</span>
</div>
</td>
<td class="py-4 px-4">
<button class="text-blue-600 hover:text-blue-800 mr-2">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
<tr class="border-b border-gray-100 hover:bg-gray-50">
<td class="py-4 px-4">2:00 PM - 3:00 PM</td>
<td class="py-4 px-4">
<select class="border border-gray-300 rounded px-3 py-1 text-sm">
<option>Select Agent</option>
<option>John Smith</option>
<option>Sarah Johnson</option>
<option selected>Michael Brown</option>
<option>Emily Davis</option>
<option>Robert Wilson</option>
</select>
</td>
<td class="py-4 px-4">
<span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded-full">On Leave</span>
</td>
<td class="py-4 px-4">
<div class="flex flex-wrap gap-1">
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Spanish</span>
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Support</span>
</div>
</td>
<td class="py-4 px-4">
<button class="text-blue-600 hover:text-blue-800 mr-2">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
<tr class="border-b border-gray-100 hover:bg-gray-50">
<td class="py-4 px-4">3:00 PM - 4:00 PM</td>
<td class="py-4 px-4">
<select class="border border-gray-300 rounded px-3 py-1 text-sm">
<option>Select Agent</option>
<option>John Smith</option>
<option selected>Sarah Johnson</option>
<option>Michael Brown</option>
<option>Emily Davis</option>
<option>Robert Wilson</option>
</select>
</td>
<td class="py-4 px-4">
<span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full">Training</span>
</td>
<td class="py-4 px-4">
<div class="flex flex-wrap gap-1">
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">English</span>
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Support</span>
</div>
</td>
<td class="py-4 px-4">
<button class="text-blue-600 hover:text-blue-800 mr-2">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
<tr class="border-b border-gray-100 hover:bg-gray-50">
<td class="py-4 px-4">4:00 PM - 5:00 PM</td>
<td class="py-4 px-4">
<select class="border border-gray-300 rounded px-3 py-1 text-sm">
<option>Select Agent</option>
<option>John Smith</option>
<option>Sarah Johnson</option>
<option>Michael Brown</option>
<option selected>Emily Davis</option>
<option>Robert Wilson</option>
</select>
</td>
<td class="py-4 px-4">
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Available</span>
</td>
<td class="py-4 px-4">
<div class="flex flex-wrap gap-1">
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">French</span>
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Sales</span>
</div>
</td>
<td class="py-4 px-4">
<button class="text-blue-600 hover:text-blue-800 mr-2">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Add New Slot -->
<div class="mt-6 flex justify-end">
<button class="px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 flex items-center">
<i class="fas fa-plus mr-2"></i> Add Time Slot
</button>
</div>
</div>
<!-- Statistics -->
<div class="mt-6 grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="bg-white rounded-lg shadow p-4">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Total Agents</p>
<h3 class="text-2xl font-bold">24</h3>
</div>
<div class="bg-blue-100 p-3 rounded-full">
<i class="fas fa-users text-blue-600 text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-4">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Available Today</p>
<h3 class="text-2xl font-bold">18</h3>
</div>
<div class="bg-green-100 p-3 rounded-full">
<i class="fas fa-check-circle text-green-600 text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-4">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">On Leave</p>
<h3 class="text-2xl font-bold">3</h3>
</div>
<div class="bg-red-100 p-3 rounded-full">
<i class="fas fa-bed text-red-600 text-xl"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-4">
<div class="container mx-auto px-4 text-center">
<p>© 2023 Call Center Planner. All rights reserved.</p>
</div>
</footer>
</div>
<script>
// Update current date
const currentDateElement = document.getElementById('current-date');
const today = new Date();
const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
currentDateElement.textContent = today.toLocaleDateString('en-US', options);
// Simple agent selection functionality
document.querySelectorAll('.agent-card').forEach(card => {
card.addEventListener('click', function() {
// Remove active class from all cards
document.querySelectorAll('.agent-card').forEach(c => {
c.classList.remove('border-blue-500', 'bg-blue-50');
});
// Add active class to clicked card
this.classList.add('border-blue-500', 'bg-blue-50');
});
});
// Time slot hover effect
document.querySelectorAll('tbody tr').forEach(row => {
if (!row.querySelector('td[colspan]')) {
row.addEventListener('mouseenter', function() {
this.classList.add('bg-blue-50');
});
row.addEventListener('mouseleave', function() {
this.classList.remove('bg-blue-50');
});
}
});
</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=sidyben/web-planning" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>