dial-saas-example / index.html
Yesouicom's picture
Turn into light theme white/grey and green - Initial Deployment
313aa74 verified
Raw History Blame Contribute Delete
36.5 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Parallel Dialer - Call Center Dashboard</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>
/* Custom animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
animation: fadeIn 0.2s ease-out forwards;
}
/* Scrollbar styling */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #1e293b;
}
::-webkit-scrollbar-thumb {
background: #475569;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #64748b;
}
/* Custom checkbox styling */
input[type="checkbox"].contact-checkbox {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
border: 2px solid #64748b;
border-radius: 4px;
cursor: pointer;
position: relative;
transition: all 0.2s ease;
}
input[type="checkbox"].contact-checkbox:checked {
background-color: #3b82f6;
border-color: #3b82f6;
}
input[type="checkbox"].contact-checkbox:checked::after {
content: "✓";
position: absolute;
color: white;
font-size: 12px;
left: 2px;
top: -1px;
}
/* Status badge animations */
.status-badge {
transition: all 0.2s ease;
}
.status-badge:hover {
transform: scale(1.05);
}
/* Button hover effects */
.action-btn {
transition: all 0.2s ease;
}
.action-btn:hover {
transform: translateY(-1px);
}
</style>
</head>
<body class="bg-slate-900 text-slate-100 font-sans antialiased min-h-screen">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="w-64 bg-slate-800 border-r border-slate-700 flex flex-col">
<div class="p-4 border-b border-slate-700">
<h1 class="text-xl font-bold flex items-center">
<i class="fas fa-phone-alt text-blue-400 mr-2"></i>
<span>Parallel Dialer</span>
</h1>
</div>
<nav class="flex-1 overflow-y-auto p-4">
<div class="space-y-1">
<button class="w-full flex items-center space-x-2 px-3 py-2 bg-slate-700 rounded-lg text-blue-400">
<i class="fas fa-home"></i>
<span>Dashboard</span>
</button>
<button class="w-full flex items-center space-x-2 px-3 py-2 hover:bg-slate-700 rounded-lg text-slate-300 hover:text-white transition-colors">
<i class="fas fa-phone"></i>
<span>Dialer</span>
</button>
<button class="w-full flex items-center space-x-2 px-3 py-2 bg-blue-900/50 rounded-lg text-blue-400 font-medium">
<i class="fas fa-users"></i>
<span>Contacts</span>
</button>
<button class="w-full flex items-center space-x-2 px-3 py-2 hover:bg-slate-700 rounded-lg text-slate-300 hover:text-white transition-colors">
<i class="fas fa-chart-line"></i>
<span>Reports</span>
</button>
<button class="w-full flex items-center space-x-2 px-3 py-2 hover:bg-slate-700 rounded-lg text-slate-300 hover:text-white transition-colors">
<i class="fas fa-cog"></i>
<span>Settings</span>
</button>
</div>
<div class="mt-8">
<h3 class="text-xs uppercase font-semibold text-slate-400 tracking-wider mb-2">Smart Lists</h3>
<div class="space-y-1">
<button class="w-full flex items-center space-x-2 px-3 py-2 hover:bg-slate-700 rounded-lg text-slate-300 hover:text-white transition-colors">
<i class="fas fa-star text-yellow-400"></i>
<span>VIP Contacts</span>
</button>
<button class="w-full flex items-center space-x-2 px-3 py-2 hover:bg-slate-700 rounded-lg text-slate-300 hover:text-white transition-colors">
<i class="fas fa-clock text-orange-400"></i>
<span>Follow-ups</span>
</button>
<button class="w-full flex items-center space-x-2 px-3 py-2 hover:bg-slate-700 rounded-lg text-slate-300 hover:text-white transition-colors">
<i class="fas fa-ban text-red-400"></i>
<span>Do Not Call</span>
</button>
<button class="w-full flex items-center space-x-2 px-3 py-2 hover:bg-slate-700 rounded-lg text-slate-300 hover:text-white transition-colors">
<i class="fas fa-plus-circle text-green-400"></i>
<span>Create New List</span>
</button>
</div>
</div>
</nav>
<div class="p-4 border-t border-slate-700">
<div class="flex items-center space-x-3">
<div class="w-8 h-8 rounded-full bg-blue-600 flex items-center justify-center">
<span class="text-sm font-medium">JD</span>
</div>
<div class="flex-1">
<div class="text-sm font-medium">John Doe</div>
<div class="text-xs text-slate-400">Agent</div>
</div>
<button class="text-slate-400 hover:text-white">
<i class="fas fa-sign-out-alt"></i>
</button>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Top Bar -->
<header class="bg-slate-800 border-b border-slate-700 p-4 flex items-center justify-between">
<div class="flex items-center space-x-4">
<h2 class="text-xl font-semibold">Contacts Management</h2>
<div class="relative">
<input type="text" placeholder="Search contacts..." class="bg-slate-700 border border-slate-600 rounded-lg px-4 py-2 pl-10 w-64 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
<i class="fas fa-search absolute left-3 top-3 text-slate-400"></i>
</div>
</div>
<div class="flex items-center space-x-3">
<button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-lg font-medium flex items-center space-x-2 action-btn">
<i class="fas fa-plus"></i>
<span>Add Contact</span>
</button>
<button class="bg-slate-700 hover:bg-slate-600 px-3 py-2 rounded-lg action-btn">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
</header>
<!-- Main Content Area -->
<main class="flex-1 overflow-auto p-6">
<!-- Filters Bar -->
<div class="bg-slate-800 rounded-lg p-4 mb-6 border border-slate-700 animate-fade-in">
<div class="flex flex-wrap items-center gap-4">
<div class="flex items-center space-x-2">
<span class="text-sm text-slate-400">Filters:</span>
<div class="flex items-center space-x-2 bg-slate-700 px-3 py-1 rounded-full">
<span class="text-sm">Status: Active</span>
<button class="text-slate-400 hover:text-white">
<i class="fas fa-times text-xs"></i>
</button>
</div>
<div class="flex items-center space-x-2 bg-slate-700 px-3 py-1 rounded-full">
<span class="text-sm">Last Contact: Today</span>
<button class="text-slate-400 hover:text-white">
<i class="fas fa-times text-xs"></i>
</button>
</div>
<button class="text-blue-400 hover:text-blue-300 text-sm flex items-center">
<i class="fas fa-plus mr-1 text-xs"></i>
<span>Add Filter</span>
</button>
</div>
<div class="ml-auto flex items-center space-x-3">
<button class="text-slate-400 hover:text-white">
<i class="fas fa-save"></i>
<span class="ml-1">Save</span>
</button>
<button class="text-slate-400 hover:text-white">
<i class="fas fa-trash-alt"></i>
<span class="ml-1">Clear</span>
</button>
</div>
</div>
</div>
<!-- Bulk Actions -->
<div id="bulkActions" class="hidden bg-blue-900/20 rounded-lg p-3 mb-4 border border-blue-800/50 animate-fade-in">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-4">
<span class="font-medium"><span id="selectedCount">0</span> contacts selected</span>
<div class="flex items-center space-x-2">
<button class="bg-blue-600 hover:bg-blue-700 px-3 py-1 rounded-lg text-sm flex items-center space-x-1 action-btn">
<i class="fas fa-phone-alt text-xs"></i>
<span>Call</span>
</button>
<button class="bg-slate-700 hover:bg-slate-600 px-3 py-1 rounded-lg text-sm flex items-center space-x-1 action-btn">
<i class="fas fa-envelope text-xs"></i>
<span>Email</span>
</button>
<button class="bg-slate-700 hover:bg-slate-600 px-3 py-1 rounded-lg text-sm flex items-center space-x-1 action-btn">
<i class="fas fa-tag text-xs"></i>
<span>Tag</span>
</button>
<button class="bg-slate-700 hover:bg-slate-600 px-3 py-1 rounded-lg text-sm flex items-center space-x-1 action-btn">
<i class="fas fa-list text-xs"></i>
<span>Add to List</span>
</button>
</div>
</div>
<button id="clearSelection" class="text-slate-400 hover:text-white text-sm">
<i class="fas fa-times"></i>
<span class="ml-1">Clear selection</span>
</button>
</div>
</div>
<!-- Contacts Table -->
<div class="bg-slate-800 rounded-lg border border-slate-700 overflow-hidden animate-fade-in">
<div class="overflow-x-auto">
<table class="w-full">
<thead class="bg-slate-700/50 border-b border-slate-700">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-slate-300 uppercase tracking-wider w-8">
<input type="checkbox" class="contact-checkbox" id="selectAll">
</th>
<th class="px-6 py-3 text-left text-xs font-medium text-slate-300 uppercase tracking-wider">Name</th>
<th class="px-6 py-3 text-left text-xs font-medium text-slate-300 uppercase tracking-wider">Phone</th>
<th class="px-6 py-3 text-left text-xs font-medium text-slate-300 uppercase tracking-wider">Email</th>
<th class="px-6 py-3 text-left text-xs font-medium text-slate-300 uppercase tracking-wider">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-slate-300 uppercase tracking-wider">Last Contact</th>
<th class="px-6 py-3 text-left text-xs font-medium text-slate-300 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="divide-y divide-slate-700">
<!-- Contact Row 1 -->
<tr class="hover:bg-slate-700/50 transition-colors">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox" class="contact-checkbox contact-select">
</td>
<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-600 flex items-center justify-center mr-3">
<span class="text-sm font-medium">SR</span>
</div>
<div>
<div class="font-medium">Sarah Rodriguez</div>
<div class="text-sm text-slate-400">Acme Corp</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<i class="fas fa-phone text-blue-400 mr-2 text-sm"></i>
<span>(555) 123-4567</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-slate-300">sarah@acme.com</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-green-900/50 text-green-400 status-badge">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-slate-300">
<div class="flex items-center">
<i class="fas fa-clock text-orange-400 mr-2 text-sm"></i>
<span>Today, 10:30 AM</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<div class="flex items-center space-x-2">
<button class="text-blue-400 hover:text-blue-300 action-btn" title="Call">
<i class="fas fa-phone-alt"></i>
</button>
<button class="text-slate-400 hover:text-white action-btn" title="Message">
<i class="fas fa-comment-alt"></i>
</button>
<button class="text-slate-400 hover:text-white action-btn" title="More">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
</td>
</tr>
<!-- Contact Row 2 -->
<tr class="hover:bg-slate-700/50 transition-colors">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox" class="contact-checkbox contact-select">
</td>
<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-600 flex items-center justify-center mr-3">
<span class="text-sm font-medium">MJ</span>
</div>
<div>
<div class="font-medium">Michael Johnson</div>
<div class="text-sm text-slate-400">Globex Inc</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<i class="fas fa-phone text-blue-400 mr-2 text-sm"></i>
<span>(555) 987-6543</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-slate-300">michael@globex.com</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-yellow-900/50 text-yellow-400 status-badge">Pending</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-slate-300">
<div class="flex items-center">
<i class="fas fa-clock text-orange-400 mr-2 text-sm"></i>
<span>Yesterday, 3:15 PM</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<div class="flex items-center space-x-2">
<button class="text-blue-400 hover:text-blue-300 action-btn" title="Call">
<i class="fas fa-phone-alt"></i>
</button>
<button class="text-slate-400 hover:text-white action-btn" title="Message">
<i class="fas fa-comment-alt"></i>
</button>
<button class="text-slate-400 hover:text-white action-btn" title="More">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
</td>
</tr>
<!-- Contact Row 3 -->
<tr class="hover:bg-slate-700/50 transition-colors">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox" class="contact-checkbox contact-select">
</td>
<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-red-600 flex items-center justify-center mr-3">
<span class="text-sm font-medium">EP</span>
</div>
<div>
<div class="font-medium">Emily Parker</div>
<div class="text-sm text-slate-400">Initech</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<i class="fas fa-phone text-blue-400 mr-2 text-sm"></i>
<span>(555) 456-7890</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-slate-300">emily@initech.com</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-red-900/50 text-red-400 status-badge">Do Not Call</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-slate-300">
<div class="flex items-center">
<i class="fas fa-clock text-orange-400 mr-2 text-sm"></i>
<span>1 week ago</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<div class="flex items-center space-x-2">
<button class="text-blue-400 hover:text-blue-300 action-btn" title="Call">
<i class="fas fa-phone-alt"></i>
</button>
<button class="text-slate-400 hover:text-white action-btn" title="Message">
<i class="fas fa-comment-alt"></i>
</button>
<button class="text-slate-400 hover:text-white action-btn" title="More">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
</td>
</tr>
<!-- Contact Row 4 -->
<tr class="hover:bg-slate-700/50 transition-colors">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox" class="contact-checkbox contact-select">
</td>
<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-600 flex items-center justify-center mr-3">
<span class="text-sm font-medium">DL</span>
</div>
<div>
<div class="font-medium">David Lee</div>
<div class="text-sm text-slate-400">Umbrella Corp</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<i class="fas fa-phone text-blue-400 mr-2 text-sm"></i>
<span>(555) 789-0123</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-slate-300">david@umbrella.com</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-blue-900/50 text-blue-400 status-badge">New Lead</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-slate-300">
<div class="flex items-center">
<i class="fas fa-clock text-orange-400 mr-2 text-sm"></i>
<span>2 days ago</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<div class="flex items-center space-x-2">
<button class="text-blue-400 hover:text-blue-300 action-btn" title="Call">
<i class="fas fa-phone-alt"></i>
</button>
<button class="text-slate-400 hover:text-white action-btn" title="Message">
<i class="fas fa-comment-alt"></i>
</button>
<button class="text-slate-400 hover:text-white action-btn" title="More">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
</td>
</tr>
<!-- Contact Row 5 -->
<tr class="hover:bg-slate-700/50 transition-colors">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox" class="contact-checkbox contact-select">
</td>
<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-600 flex items-center justify-center mr-3">
<span class="text-sm font-medium">TW</span>
</div>
<div>
<div class="font-medium">Taylor Wilson</div>
<div class="text-sm text-slate-400">Stark Industries</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<i class="fas fa-phone text-blue-400 mr-2 text-sm"></i>
<span>(555) 234-5678</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-slate-300">taylor@stark.com</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-green-900/50 text-green-400 status-badge">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-slate-300">
<div class="flex items-center">
<i class="fas fa-clock text-orange-400 mr-2 text-sm"></i>
<span>Today, 9:15 AM</span>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<div class="flex items-center space-x-2">
<button class="text-blue-400 hover:text-blue-300 action-btn" title="Call">
<i class="fas fa-phone-alt"></i>
</button>
<button class="text-slate-400 hover:text-white action-btn" title="Message">
<i class="fas fa-comment-alt"></i>
</button>
<button class="text-slate-400 hover:text-white action-btn" title="More">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Table Footer -->
<div class="bg-slate-800 px-6 py-3 border-t border-slate-700 flex items-center justify-between">
<div class="text-sm text-slate-400">
Showing <span class="font-medium">1</span> to <span class="font-medium">5</span> of <span class="font-medium">127</span> contacts
</div>
<div class="flex items-center space-x-2">
<button class="px-3 py-1 rounded-lg bg-slate-700 hover:bg-slate-600 disabled:opacity-50 disabled:cursor-not-allowed" disabled>
<i class="fas fa-chevron-left"></i>
</button>
<button class="px-3 py-1 rounded-lg bg-blue-600 text-white">1</button>
<button class="px-3 py-1 rounded-lg bg-slate-700 hover:bg-slate-600">2</button>
<button class="px-3 py-1 rounded-lg bg-slate-700 hover:bg-slate-600">3</button>
<span class="px-2">...</span>
<button class="px-3 py-1 rounded-lg bg-slate-700 hover:bg-slate-600">8</button>
<button class="px-3 py-1 rounded-lg bg-slate-700 hover:bg-slate-600">
<i class="fas fa-chevron-right"></i>
</button>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
// Toggle bulk actions bar based on checkbox selection
document.addEventListener('DOMContentLoaded', function() {
const selectAll = document.getElementById('selectAll');
const contactCheckboxes = document.querySelectorAll('.contact-select');
const bulkActions = document.getElementById('bulkActions');
const selectedCount = document.getElementById('selectedCount');
const clearSelection = document.getElementById('clearSelection');
// Select all functionality
selectAll.addEventListener('change', function() {
const isChecked = this.checked;
contactCheckboxes.forEach(checkbox => {
checkbox.checked = isChecked;
});
updateBulkActions();
});
// Individual checkbox functionality
contactCheckboxes.forEach(checkbox => {
checkbox.addEventListener('change', function() {
// Uncheck "select all" if any checkbox is unchecked
if (!this.checked && selectAll.checked) {
selectAll.checked = false;
}
updateBulkActions();
});
});
// Clear selection button
clearSelection.addEventListener('click', function() {
selectAll.checked = false;
contactCheckboxes.forEach(checkbox => {
checkbox.checked = false;
});
updateBulkActions();
});
// Update bulk actions bar
function updateBulkActions() {
const checkedCount = document.querySelectorAll('.contact-select:checked').length;
if (checkedCount > 0) {
bulkActions.classList.remove('hidden');
selectedCount.textContent = checkedCount;
} else {
bulkActions.classList.add('hidden');
}
}
// Simulate loading animation for demo purposes
setTimeout(() => {
document.querySelectorAll('.animate-fade-in').forEach(el => {
el.style.opacity = '1';
});
}, 100);
});
</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=Yesouicom/dial-saas-example" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>