secutorpro's picture
🐳 24/02 - 16:53 - corrige le systeme
b56a800 verified
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ComSync Pro - Tableau de Bord</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sortablejs@latest/Sortable.min.js"></script>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--bg-primary: #111827;
--bg-secondary: #1f2937;
--bg-tertiary: #374151;
--accent-blue: #3b82f6;
--accent-purple: #8b5cf6;
--accent-green: #10b981;
--accent-red: #ef4444;
--accent-yellow: #f59e0b;
--text-primary: #f3f4f6;
--text-secondary: #9ca3af;
}
.light-mode {
--bg-primary: #f9fafb;
--bg-secondary: #ffffff;
--bg-tertiary: #f3f4f6;
--text-primary: #111827;
--text-secondary: #6b7280;
}
body {
font-family: 'Inter', sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
transition: all 0.3s ease;
}
/* Smooth Animations */
.animate-float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.animate-glow { animation: glow 2s ease-in-out infinite alternate; }
@keyframes glow { from { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); } to { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6); } }
.slide-in-bottom { animation: slideInBottom 0.5s ease-out; }
@keyframes slideInBottom { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.pulse-ring {
animation: pulseRing 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulseRing {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.1); opacity: 0.8; }
}
/* Glass Morphism Enhanced */
.glass-card {
background: rgba(31, 41, 55, 0.7);
backdrop-filter: blur(20px);
border: 1px solid rgba(75, 85, 99, 0.4);
transition: all 0.3s ease;
}
.glass-card:hover {
background: rgba(31, 41, 55, 0.85);
border-color: rgba(75, 85, 99, 0.6);
transform: translateY(-2px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
/* Widget Grid */
.widget-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
/* Notification Panel */
.notification-panel {
transform: translateX(100%);
transition: transform 0.3s ease;
}
.notification-panel.open { transform: translateX(0); }
/* Task Progress */
.progress-ring { transition: stroke-dashoffset 0.5s ease; }
/* Status Pulse */
.status-online { position: relative; }
.status-online::after {
content: '';
position: absolute;
top: 0;
right: 0;
width: 12px;
height: 12px;
background: #10b981;
border-radius: 50%;
border: 2px solid #1f2937;
}
/* Draggable Widgets */
.widget { cursor: grab; transition: transform 0.2s, box-shadow 0.2s; }
.widget:active { cursor: grabbing; }
.widget.sortable-ghost { opacity: 0.5; }
/* Quick Actions FAB */
.fab-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 50; }
.fab {
width: 56px;
height: 56px;
border-radius: 50%;
background: linear-gradient(135deg, #3b82f6, #8b5cf6);
box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
}
.fab:hover { transform: scale(1.1); box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5); }
.fab-menu { opacity: 0; pointer-events: none; transform: translateY(20px); transition: all 0.3s ease; }
.fab-menu.open { opacity: 1; pointer-events: all; transform: translateY(0); }
/* Command Center Toggle */
.command-center { transition: all 0.3s ease; }
.command-center:hover { transform: scale(1.02); }
/* Live Indicator */
.live-indicator {
display: flex;
align-items: center;
gap: 0.5rem;
}
.live-dot {
width: 8px;
height: 8px;
background: #ef4444;
border-radius: 50%;
animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.5; transform: scale(1.2); }
}
/* Scrollbar Styling */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(55, 65, 81, 0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(75, 85, 99, 0.8); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(107, 114, 128, 1); }
/* Mode Toggle */
.mode-toggle { transition: all 0.3s ease; }
/* Metric Card */
.metric-card { position: relative; overflow: hidden; }
.metric-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}
/* Chart Container */
.chart-container { position: relative; height: 250px; }
</style>
</head>
<body class="bg-gray-900 text-gray-100 font-inter overflow-x-hidden">
<!-- Animated Background -->
<div id="vanta-bg" class="fixed inset-0 z-0"></div>
<!-- Notification Panel -->
<div id="notificationPanel" class="notification-panel fixed right-0 top-0 h-full w-96 bg-gray-800/95 backdrop-blur-xl z-50 shadow-2xl">
<div class="p-6 border-b border-gray-700">
<div class="flex items-center justify-between">
<h2 class="text-xl font-bold flex items-center">
<i data-feather="bell" class="w-5 h-5 mr-2 text-blue-400"></i>
Notifications
</h2>
<button onclick="toggleNotifications()" class="p-2 hover:bg-gray-700 rounded-lg transition-colors">
<i data-feather="x" class="w-5 h-5"></i>
</button>
</div>
<div class="mt-4 flex gap-2">
<button class="px-3 py-1 bg-blue-600 rounded-full text-sm">Tout</button>
<button class="px-3 py-1 bg-gray-700 rounded-full text-sm hover:bg-gray-600">Non lu</button>
<button class="px-3 py-1 bg-gray-700 rounded-full text-sm hover:bg-gray-600">Alertes</button>
</div>
</div>
<div id="notificationList" class="p-4 space-y-3 overflow-y-auto h-[calc(100%-140px)]">
<!-- Notifications inserted by JS -->
</div>
</div>
<!-- Custom Navigation -->
<div id="vanta-bg" class="fixed inset-0 z-0"></div>
<script src="components/navbar.js"></script>
<custom-navbar></custom-navbar>
<!-- Quick Actions FAB -->
<div class="fab-container">
<div id="fabMenu" class="fab-menu flex flex-col-reverse gap-3 mb-4">
<button onclick="openVideoCall()" class="fab bg-green-600 hover:bg-green-700" title="Appel Vidéo">
<i data-feather="video" class="w-6 h-6"></i>
</button>
<button onclick="openBroadcast()" class="fab bg-red-600 hover:bg-red-700" title="Broadcast Urgence">
<i data-feather="radio" class="w-6 h-6"></i>
</button>
<button onclick="openAIChat()" class="fab bg-purple-600 hover:bg-purple-700" title="Assistant IA">
<i data-feather="cpu" class="w-6 h-6"></i>
</button>
<button onclick="toggleWidgets()" class="fab bg-yellow-600 hover:bg-yellow-700" title="Widgets">
<i data-feather="grid" class="w-6 h-6"></i>
</button>
</div>
<div onclick="toggleFabMenu()" class="fab">
<i data-feather="plus" class="w-8 h-8"></i>
</div>
</div>
<!-- Main Content -->
<main class="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<!-- Welcome Section -->
<div class="mb-8 slide-in-bottom">
<div class="flex flex-col md:flex-row md:items-center justify-between gap-4">
<div>
<h2 class="text-3xl font-bold text-white mb-2">Welcome, Commander</h2>
<p class="text-gray-400">Here's an overview of your operations in real-time</p>
</div>
<div class="flex items-center gap-3">
<div class="live-indicator px-3 py-1 bg-red-900/30 rounded-full">
<div class="live-dot"></div>
<span class="text-red-400 text-sm font-medium">LIVE</span>
</div>
<button onclick="toggleTheme()" class="mode-toggle p-3 bg-gray-700/50 rounded-xl hover:bg-gray-600/50">
<i data-feather="sun" class="w-5 h-5 text-yellow-400"></i>
</button>
<button onclick="toggleNotifications()" class="mode-toggle p-3 bg-gray-700/50 rounded-xl hover:bg-gray-600/50 relative">
<i data-feather="bell" class="w-5 h-5"></i>
<span id="notifBadge" class="absolute -top-1 -right-1 w-5 h-5 bg-red-500 rounded-full text-xs flex items-center justify-center">3</span>
</button>
<button class="btn-primary">
<i data-feather="plus" class="w-4 h-4 mr-2"></i>
New Mission
</button>
</div>
</div>
</div>
<!-- Command Center Stats -->
<div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-8">
<div class="metric-card glass-card rounded-xl p-6">
<div class="flex items-center justify-between mb-4">
<div class="p-3 bg-blue-900/30 rounded-xl">
<i data-feather="users" class="w-6 h-6 text-blue-400"></i>
</div>
<span class="text-green-400 text-sm">+3 aujourd'hui</span>
</div>
<p class="text-3xl font-bold text-white">24</p>
<p class="text-gray-400">Membres Actifs</p>
<div class="mt-3 h-1 bg-gray-700 rounded-full">
<div class="h-1 bg-blue-500 rounded-full" style="width: 85%"></div>
</div>
</div>
<div class="metric-card glass-card rounded-xl p-6">
<div class="flex items-center justify-between mb-4">
<div class="p-3 bg-green-900/30 rounded-xl">
<i data-feather="radio" class="w-6 h-6 text-green-400"></i>
</div>
<span class="text-green-400 text-sm">98%</span>
</div>
<p class="text-3xl font-bold text-white">18</p>
<p class="text-gray-400">Canaux FM</p>
<div class="mt-3 h-1 bg-gray-700 rounded-full">
<div class="h-1 bg-green-500 rounded-full" style="width: 98%"></div>
</div>
</div>
<div class="metric-card glass-card rounded-xl p-6">
<div class="flex items-center justify-between mb-4">
<div class="p-3 bg-purple-900/30 rounded-xl">
<i data-feather="cpu" class="w-6 h-6 text-purple-400"></i>
</div>
<span class="text-purple-400 text-sm animate-pulse">En cours</span>
</div>
<p class="text-3xl font-bold text-white">96%</p>
<p class="text-gray-400">IA Active</p>
<div class="mt-3 h-1 bg-gray-700 rounded-full">
<div class="h-1 bg-purple-500 rounded-full" style="width: 96%"></div>
</div>
</div>
<div class="metric-card glass-card rounded-xl p-6">
<div class="flex items-center justify-between mb-4">
<div class="p-3 bg-yellow-900/30 rounded-xl">
<i data-feather="shield" class="w-6 h-6 text-yellow-400"></i>
</div>
<span class="text-green-400 text-sm">Securisé</span>
</div>
<p class="text-3xl font-bold text-white">99%</p>
<p class="text-gray-400">Sécurité</p>
<div class="mt-3 h-1 bg-gray-700 rounded-full">
<div class="h-1 bg-yellow-500 rounded-full" style="width: 99%"></div>
</div>
</div>
</div>
<!-- Main Dashboard Grid -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
<!-- Left Column -->
<div class="lg:col-span-2 space-y-8">
<!-- Team Activity -->
<div class="glass-card rounded-xl overflow-hidden">
<div class="p-6 border-b border-gray-700/50">
<div class="flex items-center justify-between">
<h3 class="text-xl font-semibold text-white flex items-center">
<i data-feather="users" class="w-5 h-5 mr-3 text-blue-400"></i>
Équipe en Action
</h3>
<div class="flex gap-2">
<button class="px-3 py-1 bg-blue-900/30 text-blue-400 rounded-full text-sm">En direct</button>
<button class="px-3 py-1 bg-gray-700 text-gray-400 rounded-full text-sm hover:bg-gray-600">Historique</button>
</div>
</div>
</div>
<div class="p-6">
<div class="space-y-4" id="teamActivity">
<!-- Team Member Item -->
<div class="flex items-center space-x-4 p-4 bg-gray-700/30 rounded-xl hover:bg-gray-700/50 transition-all cursor-pointer group">
<div class="relative">
<div class="w-12 h-12 bg-gradient-to-r from-blue-500 to-purple-600 rounded-full flex items-center justify-center text-white font-medium group-hover:scale-110 transition-transform">
JS
</div>
<div class="absolute -bottom-1 -right-1 w-4 h-4 bg-green-500 border-2 border-gray-800 rounded-full animate-pulse"></div>
</div>
<div class="flex-1">
<div class="flex items-center justify-between">
<div>
<h4 class="text-white font-medium group-hover:text-blue-400 transition-colors">John Smith</h4>
<p class="text-sm text-gray-400">Opérations • Secteur 7</p>
</div>
<div class="text-right">
<p class="text-sm text-green-400">En mission</p>
<p class="text-xs text-gray-500">il y a 2 min</p>
</div>
</div>
</div>
<div class="flex gap-2 opacity-0 group-hover:opacity-100 transition-opacity">
<button class="p-2 bg-blue-600 rounded-lg hover:bg-blue-700 transition-colors">
<i data-feather="phone" class="w-4 h-4"></i>
</button>
<button class="p-2 bg-green-600 rounded-lg hover:bg-green-700 transition-colors">
<i data-feather="radio" class="w-4 h-4"></i>
</button>
<button class="p-2 bg-purple-600 rounded-lg hover:bg-purple-700 transition-colors">
<i data-feather="map-pin" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="flex items-center space-x-4 p-4 bg-gray-700/30 rounded-xl hover:bg-gray-700/50 transition-all cursor-pointer group">
<div class="relative">
<div class="w-12 h-12 bg-gradient-to-r from-green-500 to-blue-600 rounded-full flex items-center justify-center text-white font-medium group-hover:scale-110 transition-transform">
MG
</div>
<div class="absolute -bottom-1 -right-1 w-4 h-4 bg-green-500 border-2 border-gray-800 rounded-full animate-pulse"></div>
</div>
<div class="flex-1">
<div class="flex items-center justify-between">
<div>
<h4 class="text-white font-medium group-hover:text-blue-400 transition-colors">Maria Garcia</h4>
<p class="text-sm text-gray-400">Logistique • Base</p>
</div>
<div class="text-right">
<p class="text-sm text-blue-400">Coordination</p>
<p class="text-xs text-gray-500">il y a 5 min</p>
</div>
</div>
</div>
<div class="flex gap-2 opacity-0 group-hover:opacity-100 transition-opacity">
<button class="p-2 bg-blue-600 rounded-lg hover:bg-blue-700 transition-colors">
<i data-feather="phone" class="w-4 h-4"></i>
</button>
<button class="p-2 bg-green-600 rounded-lg hover:bg-green-700 transition-colors">
<i data-feather="radio" class="w-4 h-4"></i>
</button>
<button class="p-2 bg-purple-600 rounded-lg hover:bg-purple-700 transition-colors">
<i data-feather="map-pin" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
<button onclick="loadMoreTeam()" class="w-full mt-4 py-3 bg-gray-700/50 rounded-xl text-gray-400 hover:text-white hover:bg-gray-700 transition-all">
<i data-feather="chevron-down" class="w-4 h-4 mx-auto"></i>
</button>
</div>
</div>
<!-- Live Map -->
<div class="glass-card rounded-xl overflow-hidden">
<div class="p-6 border-b border-gray-700/50">
<div class="flex items-center justify-between">
<h3 class="text-xl font-semibold text-white flex items-center">
<i data-feather="map" class="w-5 h-5 mr-3 text-green-400"></i>
Carte de Suivi
</h3>
<div class="flex gap-2">
<button class="p-2 bg-gray-700 rounded-lg hover:bg-gray-600 transition-colors">
<i data-feather="plus" class="w-4 h-4"></i>
</button>
<button class="p-2 bg-gray-700 rounded-lg hover:bg-gray-600 transition-colors">
<i data-feather="minus" class="w-4 h-4"></i>
</button>
<button class="p-2 bg-blue-600 rounded-lg hover:bg-blue-700 transition-colors">
<i data-feather="layers" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
<div class="relative h-96">
<iframe
src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d3022.21537388927!2d-73.98784468459382!3d40.74844047932893!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2sus!4v1620000000000!5m2!1sen!2sus"
class="w-full h-full"
style="border:0;"
allowfullscreen=""
loading="lazy">
</iframe>
<!-- Map Overlay -->
<div class="absolute top-4 left-4 bg-gray-900/90 backdrop-blur-sm rounded-xl p-4">
<h4 class="text-sm font-semibold mb-3 text-white">Zones Actives</h4>
<div class="space-y-2">
<div class="flex items-center space-x-2">
<div class="w-3 h-3 rounded-full bg-green-500 animate-pulse"></div>
<span class="text-xs text-white">Zone Opérationnelle</span>
</div>
<div class="flex items-center space-x-2">
<div class="w-3 h-3 rounded-full bg-blue-500"></div>
<span class="text-xs text-white">Base Principale</span>
</div>
<div class="flex items-center space-x-2">
<div class="w-3 h-3 rounded-full bg-yellow-500"></div>
<span class="text-xs text-white">Zone de Surveillance</span>
</div>
</div>
</div>
<!-- Quick Stats -->
<div class="absolute bottom-4 left-4 bg-gray-900/90 backdrop-blur-sm rounded-xl p-3">
<div class="flex items-center space-x-4">
<div class="text-center">
<p class="text-lg font-bold text-green-400">12</p>
<p class="text-xs text-gray-400">Unités</p>
</div>
<div class="w-px h-8 bg-gray-600"></div>
<div class="text-center">
<p class="text-lg font-bold text-blue-400">3</p>
<p class="text-xs text-gray-400">Zones</p>
</div>
<div class="w-px h-8 bg-gray-600"></div>
<div class="text-center">
<p class="text-lg font-bold text-purple-400">98%</p>
<p class="text-xs text-gray-400">Couverture</p>
</div>
</div>
</div>
</div>
</div>
<!-- Real-time Analytics -->
<div class="glass-card rounded-xl p-6">
<div class="flex items-center justify-between mb-6">
<h3 class="text-xl font-semibold text-white flex items-center">
<i data-feather="trending-up" class="w-5 h-5 mr-3 text-green-400"></i>
Analytiques en Temps Réel
</h3>
<select class="bg-gray-700 rounded-lg px-3 py-1 text-sm border-none">
<option>Dernières 24h</option>
<option>Cette semaine</option>
<option>Ce mois</option>
</select>
</div>
<div class="chart-container">
<canvas id="analyticsChart"></canvas>
</div>
</div>
</div>
<!-- Right Column -->
<div class="space-y-6">
<!-- Command Center -->
<div class="glass-card rounded-xl p-6 command-center">
<h3 class="text-xl font-semibold text-white mb-4 flex items-center">
<i data-feather="command" class="w-5 h-5 mr-3 text-yellow-400"></i>
Command Center
</h3>
<div class="grid grid-cols-2 gap-3">
<button class="p-4 bg-red-600/20 hover:bg-red-600/30 rounded-xl border border-red-500/30 transition-all group">
<i data-feather="alert-triangle" class="w-6 h-6 text-red-400 mb-2 group-hover:animate-pulse"></i>
<p class="text-sm font-medium text-red-400">Urgence</p>
</button>
<button class="p-4 bg-blue-600/20 hover:bg-blue-600/30 rounded-xl border border-blue-500/30 transition-all group">
<i data-feather="radio" class="w-6 h-6 text-blue-400 mb-2"></i>
<p class="text-sm font-medium text-blue-400">Broadcast</p>
</button>
<button class="p-4 bg-green-600/20 hover:bg-green-600/30 rounded-xl border border-green-500/30 transition-all group">
<i data-feather="phone-call" class="w-6 h-6 text-green-400 mb-2"></i>
<p class="text-sm font-medium text-green-400">Appeler</p>
</button>
<button class="p-4 bg-purple-600/20 hover:bg-purple-600/30 rounded-xl border border-purple-500/30 transition-all group">
<i data-feather="map-pin" class="w-6 h-6 text-purple-400 mb-2"></i>
<p class="text-sm font-medium text-purple-400">Suivi</p>
</button>
</div>
</div>
<!-- Active Missions -->
<div class="glass-card rounded-xl p-6">
<h3 class="text-xl font-semibold text-white mb-4 flex items-center">
<i data-feather="target" class="w-5 h-5 mr-3 text-green-400"></i>
Missions Actives
</h3>
<div class="space-y-4" id="missionList">
<div class="p-4 bg-gray-700/30 rounded-xl border-l-4 border-green-500">
<div class="flex items-center justify-between mb-2">
<span class="text-sm font-medium text-green-400">En Cours</span>
<span class="text-xs text-gray-500">2h 15m</span>
</div>
<p class="text-white font-medium">Surveillance Secteur 7</p>
<div class="mt-2 flex items-center gap-2">
<div class="flex-1 h-1 bg-gray-600 rounded-full">
<div class="h-1 bg-green-500 rounded-full" style="width: 65%"></div>
</div>
<span class="text-xs text-gray-400">65%</span>
</div>
</div>
<div class="p-4 bg-gray-700/30 rounded-xl border-l-4 border-blue-500">
<div class="flex items-center justify-between mb-2">
<span class="text-sm font-medium text-blue-400">Planifiée</span>
<span class="text-xs text-gray-500">1h 30m</span>
</div>
<p class="text-white font-medium">Coordination Logistique</p>
<div class="mt-2 flex items-center gap-2">
<div class="flex-1 h-1 bg-gray-600 rounded-full">
<div class="h-1 bg-blue-500 rounded-full" style="width: 40%"></div>
</div>
<span class="text-xs text-gray-400">40%</span>
</div>
</div>
<div class="p-4 bg-gray-700/30 rounded-xl border-l-4 border-yellow-500">
<div class="flex items-center justify-between mb-2">
<span class="text-sm font-medium text-yellow-400">En Attente</span>
<span class="text-xs text-gray-500">45m</span>
</div>
<p class="text-white font-medium">Inspection Base Camp</p>
<div class="mt-2 flex items-center gap-2">
<div class="flex-1 h-1 bg-gray-600 rounded-full">
<div class="h-1 bg-yellow-500 rounded-full" style="width: 15%"></div>
</div>
<span class="text-xs text-gray-400">15%</span>
</div>
</div>
</div>
</div>
<!-- System Status -->
<div class="glass-card rounded-xl p-6">
<h3 class="text-xl font-semibold text-white mb-4 flex items-center">
<i data-feather="activity" class="w-5 h-5 mr-3 text-green-400"></i>
État des Systèmes
</h3>
<div class="space-y-4">
<div class="flex items-center justify-between p-3 bg-gray-700/30 rounded-lg">
<div class="flex items-center gap-3">
<div class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></div>
<span class="text-gray-300">Réseau Principal</span>
</div>
<span class="text-green-400 text-sm">En ligne</span>
</div>
<div class="flex items-center justify-between p-3 bg-gray-700/30 rounded-lg">
<div class="flex items-center gap-3">
<div class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></div>
<span class="text-gray-300">GPS & Positionnement</span>
</div>
<span class="text-green-400 text-sm">Actif</span>
</div>
<div class="flex items-center justify-between p-3 bg-gray-700/30 rounded-lg">
<div class="flex items-center gap-3">
<div class="w-2 h-2 bg-blue-500 rounded-full animate-pulse"></div>
<span class="text-gray-300">Système IA</span>
</div>
<span class="text-blue-400 text-sm">Traitement</span>
</div>
<div class="flex items-center justify-between p-3 bg-gray-700/30 rounded-lg">
<div class="flex items-center gap-3">
<div class="w-2 h-2 bg-green-500 rounded-full"></div>
<span class="text-gray-300">Sécurité</span>
</div>
<span class="text-green-400 text-sm">Protégé</span>
</div>
</div>
</div>
<!-- Recent Activity -->
<div class="glass-card rounded-xl p-6">
<h3 class="text-xl font-semibold text-white mb-4 flex items-center">
<i data-feather="clock" class="w-5 h-5 mr-3 text-purple-400"></i>
Activité Récente
</h3>
<div class="space-y-3" id="activityFeed">
<div class="flex items-start gap-3 p-3 bg-gray-700/30 rounded-lg hover:bg-gray-700/50 transition-colors cursor-pointer">
<div class="w-2 h-2 bg-blue-500 rounded-full mt-2"></div>
<div class="flex-1">
<p class="text-sm text-white">Nouveau membre connecté</p>
<p class="text-xs text-gray-400">il y a 3 minutes</p>
</div>
</div>
<div class="flex items-start gap-3 p-3 bg-gray-700/30 rounded-lg hover:bg-gray-700/50 transition-colors cursor-pointer">
<div class="w-2 h-2 bg-green-500 rounded-full mt-2"></div>
<div class="flex-1">
<p class="text-sm text-white">Mission mise à jour</p>
<p class="text-xs text-gray-400">il y a 8 minutes</p>
</div>
</div>
<div class="flex items-start gap-3 p-3 bg-gray-700/30 rounded-lg hover:bg-gray-700/50 transition-colors cursor-pointer">
<div class="w-2 h-2 bg-yellow-500 rounded-full mt-2"></div>
<div class="flex-1">
<p class="text-sm text-white">Alerte système</p>
<p class="text-xs text-gray-400">il y a 15 minutes</p>
</div>
</div>
<div class="flex items-start gap-3 p-3 bg-gray-700/30 rounded-lg hover:bg-gray-700/50 transition-colors cursor-pointer">
<div class="w-2 h-2 bg-purple-500 rounded-full mt-2"></div>
<div class="flex-1">
<p class="text-sm text-white">Synchronisation terminée</p>
<p class="text-xs text-gray-400">il y a 23 minutes</p>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<script>
// Initialize Vanta.js background
let vantaInstance;
function initVanta() {
if (typeof VANTA !== 'undefined') {
vantaInstance = VANTA.NET({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x3a82ff,
backgroundColor: 0x111827,
points: 10.00,
maxDistance: 22.00,
spacing: 18.00
});
}
}
initVanta();
// Theme Toggle
let isDarkMode = true;
function toggleTheme() {
isDarkMode = !isDarkMode;
document.body.classList.toggle('light-mode', !isDarkMode);
if (vantaInstance) {
vantaInstance.setOptions({
backgroundColor: isDarkMode ? 0x111827 : 0xf9fafb,
color: isDarkMode ? 0x3a82ff : 0x6366f1
});
}
}
// Notification System
const notifications = [
{ id: 1, type: 'urgent', title: 'Alerte Urgente', message: 'Signal faible détecté - Secteur 7', time: '2 min', read: false },
{ id: 2, type: 'info', title: 'Nouveau Membre', message: 'John Smith a rejoint l\'équipe', time: '5 min', read: false },
{ id: 3, type: 'success', title: 'Mission Complétée', message: 'Surveillance Base Camp terminée', time: '12 min', read: false },
{ id: 4, type: 'warning', title: 'Batterie Faible', message: 'Radio de RobertJohnson à 15%', time: '18 min', read: true },
{ id: 5, type: 'info', title: 'Synchronisation', message: 'Données sync avec le serveur', time: '25 min', read: true }
];
function renderNotifications() {
const container = document.getElementById('notificationList');
container.innerHTML = notifications.map(n => `
<div class="p-4 bg-gray-700/50 rounded-xl hover:bg-gray-700 transition-colors cursor-pointer border-l-4 ${n.type === 'urgent' ? 'border-red-500' : n.type === 'warning' ? 'border-yellow-500' : n.type === 'success' ? 'border-green-500' : 'border-blue-500'}">
<div class="flex items-start gap-3">
<i data-feather="${n.type === 'urgent' ? 'alert-triangle' : n.type === 'warning' ? 'alert-circle' : n.type === 'success' ? 'check-circle' : 'info'}" class="w-5 h-5 mt-0.5 ${n.type === 'urgent' ? 'text-red-400' : n.type === 'warning' ? 'text-yellow-400' : n.type === 'success' ? 'text-green-400' : 'text-blue-400'}"></i>
<div class="flex-1">
<p class="text-white font-medium">${n.title}</p>
<p class="text-sm text-gray-400">${n.message}</p>
<p class="text-xs text-gray-500 mt-1">${n.time}</p>
</div>
${!n.read ? '<div class="w-2 h-2 bg-blue-500 rounded-full"></div>' : ''}
</div>
</div>
`).join('');
feather.replace();
const unreadCount = notifications.filter(n => !n.read).length;
document.getElementById('notifBadge').textContent = unreadCount;
}
function toggleNotifications() {
const panel = document.getElementById('notificationPanel');
panel.classList.toggle('open');
if (panel.classList.contains('open')) {
renderNotifications();
}
}
// FAB Menu
function toggleFabMenu() {
const menu = document.getElementById('fabMenu');
menu.classList.toggle('open');
}
// Quick Actions
function openAIChat() {
window.location.href = 'chat.html';
}
function openVideoCall() {
window.location.href = 'video-call.html';
}
function openBroadcast() {
if (confirm('📡 Voulez-vous envoyer un broadcast d\'urgence à toutes les équipes?')) {
alert('✅ Broadcast envoyé avec succès à toutes les unités!');
}
}
function toggleWidgets() {
alert('🧩 Mode widgets activé!\n\nGlissez-déposez les widgets pour personnaliser votre dashboard.');
}
// Analytics Chart
function initAnalyticsChart() {
const ctx = document.getElementById('analyticsChart');
if (!ctx) return;
new Chart(ctx, {
type: 'line',
data: {
labels: ['00:00', '04:00', '08:00', '12:00', '16:00', '20:00'],
datasets: [{
label: 'Communications',
data: [45, 52, 78, 95, 88, 72],
borderColor: '#3b82f6',
backgroundColor: 'rgba(59, 130, 246, 0.1)',
tension: 0.4,
fill: true
}, {
label: 'Efficacité IA',
data: [85, 88, 92, 94, 91, 89],
borderColor: '#10b981',
backgroundColor: 'rgba(16, 185, 129, 0.1)',
tension: 0.4,
fill: true
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'top',
labels: { color: '#9ca3af' }
}
},
scales: {
y: {
beginAtZero: true,
max: 100,
ticks: { color: '#9ca3af' },
grid: { color: 'rgba(75, 85, 99, 0.3)' }
},
x: {
ticks: { color: '#9ca3af' },
grid: { color: 'rgba(75, 85, 99, 0.3)' }
}
}
}
});
}
// Update current time
function updateTime() {
const now = new Date();
const timeElements = document.querySelectorAll('[id="current-time"]');
timeElements.forEach(element => {
element.textContent = now.toLocaleTimeString();
});
}
setInterval(updateTime, 1000);
updateTime();
// Initialize Feather Icons
feather.replace();
// Handle browser back/forward buttons
window.addEventListener('popstate', function(event) {
location.reload();
});
// Add history entry for proper back navigation
history.pushState(null, null, location.href);
// Initialize
document.addEventListener('DOMContentLoaded', function() {
initAnalyticsChart();
renderNotifications();
});
// Simulate real-time updates
setInterval(() => {
// Add random activity
const activityTypes = [
{ icon: 'user-plus', color: 'text-green-400', text: 'Nouveau membre connecté' },
{ icon: 'refresh-cw', color: 'text-blue-400', text: 'Synchronisation en cours' },
{ icon: 'radio', color: 'text-purple-400', text: 'Appel FM reçu' },
{ icon: 'map-pin', color: 'text-yellow-400', text: 'Position mise à jour' }
];
if (Math.random() > 0.7) {
const activity = activityTypes[Math.floor(Math.random() * activityTypes.length)];
const feed = document.getElementById('activityFeed');
if (!feed) return;
const newActivity = document.createElement('div');
newActivity.className = 'flex items-start gap-3 p-3 bg-gray-700/30 rounded-lg hover:bg-gray-700/50 transition-colors cursor-pointer animate-slide-in';
newActivity.innerHTML = `
<div class="w-2 h-2 bg-purple-500 rounded-full mt-2"></div>
<div class="flex-1">
<p class="text-sm text-white">${activity ? activity.text : 'Nouvelle activité'}</p>
<p class="text-xs text-gray-400">À l'instant</p>
</div>
`;
feed.insertBefore(newActivity, feed.firstChild);
// Keep only last 5 activities
while (feed.children.length > 5) {
feed.removeChild(feed.lastChild);
}
}
}, 5000);
</script>
</body>
</html>
<!-- Welcome Section -->
<div class="mb-8">
<div class="flex items-center justify-between">
<div>
<h2 class="text-3xl font-bold text-white mb-2">Welcome, Commander</h2>
<p class="text-gray-400">Here's an overview of your operations in real-time</p>
</div>
<div class="flex items-center space-x-3">
<button class="btn-secondary">
<i data-feather="refresh-cw" class="w-4 h-4 mr-2"></i>
Refresh
</button>
<button class="btn-primary">
<i data-feather="plus" class="w-4 h-4 mr-2"></i>
New Mission
</button>
</div>
</div>
</div>
<!-- Status Overview Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="card-hover bg-gray-800/80 backdrop-blur-sm rounded-xl p-6 border border-gray-700/50">
<div class="flex items-center justify-between mb-4">
<div class="p-3 bg-blue-900/30 rounded-lg">
<i data-feather="users" class="w-6 h-6 text-blue-400"></i>
</div>
<div class="text-right">
<p class="text-2xl font-bold text-white">24</p>
<p class="text-sm text-gray-400">Membres Actifs</p>
</div>
</div>
<div class="flex items-center space-x-2">
<div class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></div>
<span class="text-sm text-green-400">+3 aujourd'hui</span>
</div>
</div>
<div class="card-hover bg-gray-800/80 backdrop-blur-sm rounded-xl p-6 border border-gray-700/50">
<div class="flex items-center justify-between mb-4">
<div class="p-3 bg-green-900/30 rounded-lg">
<i data-feather="radio" class="w-6 h-6 text-green-400"></i>
</div>
<div class="text-right">
<p class="text-2xl font-bold text-white">18</p>
<p class="text-sm text-gray-400">Canaux FM</p>
</div>
</div>
<div class="flex items-center space-x-2">
<div class="w-2 h-2 bg-green-500 rounded-full"></div>
<span class="text-sm text-green-400">Tous opérationnels</span>
</div>
</div>
<div class="card-hover bg-gray-800/80 backdrop-blur-sm rounded-xl p-6 border border-gray-700/50">
<div class="flex items-center justify-between mb-4">
<div class="p-3 bg-purple-900/30 rounded-lg">
<i data-feather="cpu" class="w-6 h-6 text-purple-400"></i>
</div>
<div class="text-right">
<p class="text-2xl font-bold text-white">96%</p>
<p class="text-sm text-gray-400">IA Active</p>
</div>
</div>
<div class="flex items-center space-x-2">
<div class="w-2 h-2 bg-purple-500 rounded-full animate-pulse"></div>
<span class="text-sm text-purple-400">Traitement en cours</span>
</div>
</div>
<div class="card-hover bg-gray-800/80 backdrop-blur-sm rounded-xl p-6 border border-gray-700/50">
<div class="flex items-center justify-between mb-4">
<div class="p-3 bg-yellow-900/30 rounded-lg">
<i data-feather="shield" class="w-6 h-6 text-yellow-400"></i>
</div>
<div class="text-right">
<p class="text-2xl font-bold text-white">99%</p>
<p class="text-sm text-gray-400">Sécurité</p>
</div>
</div>
<div class="flex items-center space-x-2">
<div class="w-2 h-2 bg-green-500 rounded-full"></div>
<span class="text-sm text-green-400">Système sécurisé</span>
</div>
</div>
</div>
<!-- Main Dashboard Grid -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
<!-- Left Column -->
<div class="lg:col-span-2 space-y-8">
<!-- Team Activity -->
<div class="bg-gray-800/80 backdrop-blur-sm rounded-xl border border-gray-700/50 overflow-hidden">
<div class="p-6 border-b border-gray-700/50">
<div class="flex items-center justify-between">
<h3 class="text-xl font-semibold text-white flex items-center">
<i data-feather="users" class="w-5 h-5 mr-3 text-blue-400"></i>
Équipe en Action
</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-blue-900/30 text-blue-400 rounded-full text-sm">En direct</button>
<button class="px-3 py-1 bg-gray-700 text-gray-400 rounded-full text-sm">Historique</button>
</div>
</div>
</div>
<div class="p-6">
<div class="space-y-4">
<!-- Team Member Item -->
<div class="flex items-center space-x-4 p-4 bg-gray-700/30 rounded-lg hover:bg-gray-700/50 transition-colors">
<div class="relative">
<div class="w-12 h-12 bg-gradient-to-r from-blue-500 to-purple-600 rounded-full flex items-center justify-center">
<span class="text-white font-medium">JS</span>
</div>
<div class="absolute -bottom-1 -right-1 w-4 h-4 bg-green-500 border-2 border-gray-800 rounded-full"></div>
</div>
<div class="flex-1">
<div class="flex items-center justify-between">
<div>
<h4 class="text-white font-medium">John Smith</h4>
<p class="text-sm text-gray-400">Opérations • Secteur 7</p>
</div>
<div class="text-right">
<p class="text-sm text-green-400">En mission</p>
<p class="text-xs text-gray-500">il y a 2 min</p>
</div>
</div>
</div>
<div class="flex space-x-2">
<button class="p-2 bg-blue-600 rounded-lg hover:bg-blue-700 transition-colors">
<i data-feather="phone" class="w-4 h-4"></i>
</button>
<button class="p-2 bg-green-600 rounded-lg hover:bg-green-700 transition-colors">
<i data-feather="radio" class="w-4 h-4"></i>
</button>
</div>
</div>
<!-- More team members... -->
<div class="flex items-center space-x-4 p-4 bg-gray-700/30 rounded-lg hover:bg-gray-700/50 transition-colors">
<div class="relative">
<div class="w-12 h-12 bg-gradient-to-r from-green-500 to-blue-600 rounded-full flex items-center justify-center">
<span class="text-white font-medium">MG</span>
</div>
<div class="absolute -bottom-1 -right-1 w-4 h-4 bg-green-500 border-2 border-gray-800 rounded-full"></div>
</div>
<div class="flex-1">
<div class="flex items-center justify-between">
<div>
<h4 class="text-white font-medium">Maria Garcia</h4>
<p class="text-sm text-gray-400">Logistique • Base</p>
</div>
<div class="text-right">
<p class="text-sm text-blue-400">Coordination</p>
<p class="text-xs text-gray-500">il y a 5 min</p>
</div>
</div>
</div>
<div class="flex space-x-2">
<button class="p-2 bg-blue-600 rounded-lg hover:bg-blue-700 transition-colors">
<i data-feather="phone" class="w-4 h-4"></i>
</button>
<button class="p-2 bg-green-600 rounded-lg hover:bg-green-700 transition-colors">
<i data-feather="radio" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Live Map -->
<div class="bg-gray-800/80 backdrop-blur-sm rounded-xl border border-gray-700/50 overflow-hidden">
<div class="p-6 border-b border-gray-700/50">
<div class="flex items-center justify-between">
<h3 class="text-xl font-semibold text-white flex items-center">
<i data-feather="map" class="w-5 h-5 mr-3 text-green-400"></i>
Carte de Suivi
</h3>
<div class="flex space-x-2">
<button class="p-2 bg-gray-700 rounded-lg hover:bg-gray-600 transition-colors">
<i data-feather="plus" class="w-4 h-4"></i>
</button>
<button class="p-2 bg-gray-700 rounded-lg hover:bg-gray-600 transition-colors">
<i data-feather="minus" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
<div class="relative h-96">
<iframe
src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d3022.21537388927!2d-73.98784468459382!3d40.74844047932893!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2sus!4v1620000000000!5m2!1sen!2sus"
class="w-full h-full"
style="border:0;"
allowfullscreen=""
loading="lazy">
</iframe>
<!-- Map Overlay -->
<div class="absolute top-4 left-4 bg-black/70 rounded-lg p-3">
<h4 class="text-sm font-semibold mb-2 text-white">Zones Actives</h4>
<div class="space-y-2">
<div class="flex items-center space-x-2">
<div class="w-3 h-3 rounded-full bg-green-500"></div>
<span class="text-xs text-white">Zone Opérationnelle</span>
</div>
<div class="flex items-center space-x-2">
<div class="w-3 h-3 rounded-full bg-blue-500"></div>
<span class="text-xs text-white">Base Principale</span>
</div>
<div class="flex items-center space-x-2">
<div class="w-3 h-3 rounded-full bg-yellow-500"></div>
<span class="text-xs text-white">Zone de Surveillance</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Right Column -->
<div class="space-y-8">
<!-- Quick Actions -->
<div class="bg-gray-800/80 backdrop-blur-sm rounded-xl border border-gray-700/50 p-6">
<h3 class="text-xl font-semibold text-white mb-6 flex items-center">
<i data-feather="zap" class="w-5 h-5 mr-3 text-yellow-400"></i>
Actions Rapides
</h3>
<div class="space-y-3">
<button class="w-full btn-primary justify-start">
<i data-feather="radio" class="w-4 h-4 mr-3"></i>
Appel d'Urgence FM
</button>
<button class="w-full btn-secondary justify-start">
<i data-feather="video" class="w-4 h-4 mr-3"></i>
Appel Vidéo d'Urgence
</button>
<button class="w-full btn-secondary justify-start">
<i data-feather="bell" class="w-4 h-4 mr-3"></i>
Alerte Générale
</button>
<button class="w-full btn-secondary justify-start">
<i data-feather="map-pin" class="w-4 h-4 mr-3"></i>
Localiser l'Équipe
</button>
</div>
</div>
<!-- System Status -->
<div class="bg-gray-800/80 backdrop-blur-sm rounded-xl border border-gray-700/50 p-6">
<h3 class="text-xl font-semibold text-white mb-6 flex items-center">
<i data-feather="activity" class="w-5 h-5 mr-3 text-green-400"></i>
État des Systèmes
</h3>
<div class="space-y-4">
<div class="flex items-center justify-between">
<span class="text-gray-300">Réseau Principal</span>
<div class="flex items-center space-x-2">
<div class="w-2 h-2 bg-green-500 rounded-full"></div>
<span class="text-green-400 text-sm">En ligne</span>
</div>
</div>
<div class="flex items-center justify-between">
<span class="text-gray-300">GPS & Positionnement</span>
<div class="flex items-center space-x-2">
<div class="w-2 h-2 bg-green-500 rounded-full"></div>
<span class="text-green-400 text-sm">Actif</span>
</div>
</div>
<div class="flex items-center justify-between">
<span class="text-gray-300">Système IA</span>
<div class="flex items-center space-x-2">
<div class="w-2 h-2 bg-blue-500 rounded-full animate-pulse"></div>
<span class="text-blue-400 text-sm">Traitement</span>
</div>
</div>
<div class="flex items-center justify-between">
<span class="text-gray-300">Sécurité</span>
<div class="flex items-center space-x-2">
<div class="w-2 h-2 bg-green-500 rounded-full"></div>
<span class="text-green-400 text-sm">Protégé</span>
</div>
</div>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-gray-800/80 backdrop-blur-sm rounded-xl border border-gray-700/50 p-6">
<h3 class="text-xl font-semibold text-white mb-6 flex items-center">
<i data-feather="clock" class="w-5 h-5 mr-3 text-purple-400"></i>
Activité Récente
</h3>
<div class="space-y-4">
<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 text-white">Nouveau membre connecté</p>
<p class="text-xs text-gray-400">il y a 3 minutes</p>
</div>
</div>
<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 text-white">Mission mise à jour</p>
<p class="text-xs text-gray-400">il y a 8 minutes</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 text-white">Alerte système</p>
<p class="text-xs text-gray-400">il y a 15 minutes</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 text-white">Synchronisation terminée</p>
<p class="text-xs text-gray-400">il y a 23 minutes</p>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<script>
// Initialize Vanta.js background
VANTA.NET({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x3a82ff,
backgroundColor: 0x111827,
points: 10.00,
maxDistance: 22.00,
spacing: 18.00
});
// See enhanced version above for updated JavaScript
</script>