Spaces:
Running

gesttemps / index.html
dSteve01's picture
Activez fonctionnalités suivantes : "Pointage" ,"Congés", " Équipe" "Rapports" , "Pointer maintenant", "Ajouter une tâche", "Demander un congé", "Créer un rapport" et "Paramètres" - Follow Up Deployment
1153dab verified
Raw History Blame Contribute Delete
35.6 kB
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="GesTemps - Solution complète de gestion du temps pour PME avec pointage, suivi des congés, gestion d'équipe et rapports">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<title>GesTemps | Logiciel de gestion du temps pour PME</title>
<meta property="og:title" content="GesTemps - Solution de gestion du temps">
<meta property="og:description" content="Optimisez la gestion du temps de votre équipe avec notre solution complète pour PME">
<meta name="keywords" content="gestion temps, pointage, congés, équipe, PME, rapports">
<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>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
}
body {
font-family: 'Inter', sans-serif;
background-color: #f8fafc;
}
.sidebar {
transition: all 0.3s ease;
}
.sidebar.collapsed {
width: 80px;
}
.sidebar.collapsed .nav-text {
display: none;
}
.sidebar.collapsed .logo-text {
display: none;
}
.sidebar.collapsed .nav-item {
justify-content: center;
}
.main-content {
transition: margin-left 0.3s ease;
}
.time-card {
transition: all 0.3s ease;
}
.time-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.chart-container {
height: 300px;
}
@media (max-width: 768px) {
.sidebar {
position: fixed;
z-index: 50;
transform: translateX(-100%);
}
.sidebar.open {
transform: translateX(0);
}
.main-content {
margin-left: 0 !important;
}
.mobile-menu-button {
display: block;
}
}
</style>
</head>
<body class="bg-gray-50">
<!-- Sidebar -->
<div class="sidebar bg-white h-screen fixed shadow-lg flex flex-col w-64">
<!-- Logo -->
<div class="flex items-center justify-between p-4 border-b">
<div class="flex items-center">
<div class="w-10 h-10 rounded-full bg-blue-600 flex items-center justify-center text-white font-bold text-xl">GT</div>
<span class="logo-text ml-3 text-xl font-semibold text-gray-800">GesTemps</span>
</div>
<button id="toggle-sidebar" class="text-gray-500 hover:text-gray-700 focus:outline-none">
<i class="fas fa-chevron-left"></i>
</button>
</div>
<!-- Navigation -->
<nav class="flex-1 overflow-y-auto py-4" aria-label="Navigation principale">
<div class="space-y-1 px-4">
<a href="dashboard.html" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
<i class="fas fa-home text-gray-500 mr-3"></i>
<span class="nav-text">Tableau de bord</span>
</a>
<a href="pointage.html" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md bg-blue-50 text-blue-700 hover:bg-blue-100">
<i class="fas fa-clock text-blue-600 mr-3"></i>
<span class="nav-text">Pointage</span>
</a>
<a href="conges.html" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md bg-blue-50 text-blue-700 hover:bg-blue-100">
<i class="fas fa-calendar-alt text-blue-600 mr-3"></i>
<span class="nav-text">Congés</span>
</a>
<a href="equipe.html" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md bg-blue-50 text-blue-700 hover:bg-blue-100">
<i class="fas fa-user-friends text-blue-600 mr-3"></i>
<span class="nav-text">Équipe</span>
</a>
<a href="rapports.html" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md bg-blue-50 text-blue-700 hover:bg-blue-100">
<i class="fas fa-chart-bar text-blue-600 mr-3"></i>
<span class="nav-text">Rapports</span>
</a>
<a href="parametres.html" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md bg-blue-50 text-blue-700 hover:bg-blue-100">
<i class="fas fa-cog text-blue-600 mr-3"></i>
<span class="nav-text">Paramètres</span>
</a>
</div>
<div class="mt-8 px-4">
<h3 class="px-3 text-xs font-semibold text-gray-500 uppercase tracking-wider nav-text">
Mon équipe
</h3>
<div class="mt-1 space-y-1">
<a href="profil.html?id=jd" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
<div class="w-6 h-6 rounded-full bg-green-500 flex items-center justify-center text-white text-xs mr-3">JD</div>
<span class="nav-text">Jean Dupont</span>
</a>
<a href="profil.html?id=ml" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
<div class="w-6 h-6 rounded-full bg-purple-500 flex items-center justify-center text-white text-xs mr-3">ML</div>
<span class="nav-text">Marie Lambert</span>
</a>
<a href="profil.html?id=pt" class="nav-item flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
<div class="w-6 h-6 rounded-full bg-yellow-500 flex items-center justify-center text-white text-xs mr-3">PT</div>
<span class="nav-text">Pierre Tremblay</span>
</a>
</div>
</div>
</nav>
<!-- User Profile -->
<div class="p-4 border-t relative">
<div class="flex items-center">
<a href="profil.html?id=admin" class="flex items-center">
<div class="w-10 h-10 rounded-full bg-indigo-500 flex items-center justify-center text-white font-bold text-sm">AD</div>
<div class="ml-3 nav-text">
<p class="text-sm font-medium text-gray-800">Admin Demo</p>
<p class="text-xs text-gray-500">Administrateur</p>
</div>
</a>
<button id="user-menu-button" class="ml-auto text-gray-500 hover:text-gray-700 focus:outline-none">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
<!-- User dropdown menu -->
<div id="user-dropdown" class="hidden absolute bottom-16 left-4 right-4 bg-white rounded-md shadow-lg py-1 z-10">
<a href="profil.html?id=admin" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Mon profil</a>
<a href="parametres.html" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Paramètres</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Déconnexion</a>
</div>
</div>
</div>
<!-- Main Content -->
<div class="main-content ml-64">
<!-- Mobile Header -->
<header class="bg-white shadow-sm lg:hidden">
<div class="flex items-center justify-between px-4 py-3">
<button id="mobile-menu-button" class="mobile-menu-button text-gray-500 hover:text-gray-600 focus:outline-none">
<i class="fas fa-bars"></i>
</button>
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-indigo-500 flex items-center justify-center text-white font-bold text-xs">AD</div>
</div>
</div>
</header>
<!-- Content -->
<main class="p-6">
<!-- Header -->
<div class="flex flex-col md:flex-row md:items-center md:justify-between mb-6">
<div>
<h1 class="text-2xl font-bold text-gray-800">Tableau de bord</h1>
<p class="text-gray-600">Bienvenue sur votre espace de gestion du temps</p>
</div>
<div class="mt-4 md:mt-0">
<div class="flex space-x-4 mb-4">
<a href="pointage.html" class="px-4 py-2 text-sm font-medium text-blue-600 border-b-2 border-blue-600">Pointage</a>
<a href="conges.html" class="px-4 py-2 text-sm font-medium text-blue-600 border-b-2 border-blue-600">Congés</a>
<a href="equipe.html" class="px-4 py-2 text-sm font-medium text-blue-600 border-b-2 border-blue-600">Équipe</a>
<a href="rapports.html" class="px-4 py-2 text-sm font-medium text-blue-600 border-b-2 border-blue-600">Rapports</a>
<a href="parametres.html" class="px-4 py-2 text-sm font-medium text-blue-600 border-b-2 border-blue-600">Paramètres</a>
</div>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i class="fas fa-calendar-alt text-gray-400"></i>
</div>
<input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm" placeholder="Sélectionner une période" value="Aujourd'hui">
</div>
</div>
</div>
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="time-card bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i class="fas fa-clock"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Temps travaillé</p>
<p class="text-2xl font-semibold text-gray-800">7h 42m</p>
</div>
</div>
<div class="mt-4">
<div class="flex items-center justify-between text-sm">
<span class="text-green-600 font-medium">+12%</span>
<span class="text-gray-500">vs hier</span>
</div>
</div>
</div>
<div class="time-card bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i class="fas fa-check-circle"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Tâches complétées</p>
<p class="text-2xl font-semibold text-gray-800">14/18</p>
</div>
</div>
<div class="mt-4">
<div class="flex items-center justify-between text-sm">
<span class="text-green-600 font-medium">+3</span>
<span class="text-gray-500">vs hier</span>
</div>
</div>
</div>
<div class="time-card bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i class="fas fa-calendar-alt"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Congés restants</p>
<p class="text-2xl font-semibold text-gray-800">18 jours</p>
</div>
</div>
<div class="mt-4">
<div class="flex items-center justify-between text-sm">
<span class="text-red-600 font-medium">-2</span>
<span class="text-gray-500">ce mois</span>
</div>
</div>
</div>
<div class="time-card bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
<i class="fas fa-users"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-500">Équipe active</p>
<p class="text-2xl font-semibold text-gray-800">8/12</p>
</div>
</div>
<div class="mt-4">
<div class="flex items-center justify-between text-sm">
<span class="text-green-600 font-medium">+2</span>
<span class="text-gray-500">en ligne</span>
</div>
</div>
</div>
</div>
<!-- Charts and Recent Activity -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<!-- Weekly Hours Chart -->
<div class="bg-white rounded-lg shadow p-6 lg:col-span-2">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-semibold text-gray-800">Heures travaillées cette semaine</h2>
<div class="flex space-x-2">
<button class="px-3 py-1 text-xs font-medium rounded-md bg-blue-50 text-blue-600">Semaine</button>
<button class="px-3 py-1 text-xs font-medium rounded-md text-gray-500 hover:bg-gray-50">Mois</button>
<button class="px-3 py-1 text-xs font-medium rounded-md text-gray-500 hover:bg-gray-50">Année</button>
</div>
</div>
<div class="chart-container">
<canvas id="weeklyHoursChart"></canvas>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-white rounded-lg shadow p-6">
<h2 class="text-lg font-semibold text-gray-800 mb-4">Activité récente</h2>
<div class="space-y-4">
<div class="flex">
<div class="flex-shrink-0">
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
<i class="fas fa-clock"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-800">Marie Lambert a pointé</p>
<p class="text-sm text-gray-500">Il y a 15 minutes</p>
</div>
</div>
<div class="flex">
<div class="flex-shrink-0">
<div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center text-green-600">
<i class="fas fa-check-circle"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-800">Pierre Tremblay a terminé une tâche</p>
<p class="text-sm text-gray-500">Il y a 1 heure</p>
</div>
</div>
<div class="flex">
<div class="flex-shrink-0">
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center text-purple-600">
<i class="fas fa-calendar-alt"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-800">Jean Dupont a demandé un congé</p>
<p class="text-sm text-gray-500">Il y a 2 heures</p>
</div>
</div>
<div class="flex">
<div class="flex-shrink-0">
<div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600">
<i class="fas fa-users"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-800">Nouveau membre dans l'équipe</p>
<p class="text-sm text-gray-500">Il y a 5 heures</p>
</div>
</div>
</div>
<button class="mt-4 w-full py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Voir toute l'activité
</button>
</div>
</div>
<!-- Team Time Tracking -->
<div class="bg-white rounded-lg shadow overflow-hidden mb-6">
<div class="px-6 py-4 border-b border-gray-200">
<h2 class="text-lg font-semibold text-gray-800">Suivi du temps de l'équipe</h2>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider" id="member-header">Membre</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Statut</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Temps travaillé</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tâches</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<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-500 flex items-center justify-center text-white font-bold text-sm">JD</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Jean Dupont</div>
<div class="text-sm text-gray-500">Développeur</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">En ligne</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">6h 45m</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12/15</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="details.html?id=1" class="text-blue-600 hover:text-blue-900">Détails</a>
</td>
</tr>
<tr>
<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-500 flex items-center justify-center text-white font-bold text-sm">ML</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Marie Lambert</div>
<div class="text-sm text-gray-500">Designer</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">En ligne</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">7h 30m</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">8/10</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="details.html?id=2" class="text-blue-600 hover:text-blue-900">Détails</a>
</td>
</tr>
<tr>
<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-yellow-500 flex items-center justify-center text-white font-bold text-sm">PT</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Pierre Tremblay</div>
<div class="text-sm text-gray-500">Marketing</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">Hors ligne</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5h 15m</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">6/8</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="details.html?id=3" class="text-blue-600 hover:text-blue-900">Détails</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Quick Actions -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<button onclick="location.href='pointage.html'" class="bg-white rounded-lg shadow p-6 text-left hover:bg-gray-50 transition-colors cursor-pointer">
<div class="flex items-center">
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i class="fas fa-fingerprint"></i>
</div>
<div class="ml-4">
<h3 class="text-lg font-medium text-gray-800">Pointer maintenant</h3>
<p class="text-sm text-gray-500">Enregistrez votre heure d'arrivée ou de départ</p>
</div>
</div>
</button>
<button onclick="location.href='conges.html'" class="bg-white rounded-lg shadow p-6 text-left hover:bg-gray-50 transition-colors cursor-pointer">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i class="fas fa-calendar-plus"></i>
</div>
<div class="ml-4">
<h3 class="text-lg font-medium text-gray-800">Demander un congé</h3>
<p class="text-sm text-gray-500">Soumettre une demande de congé</p>
</div>
</div>
</button>
<button onclick="location.href='taches.html'" class="bg-white rounded-lg shadow p-6 text-left hover:bg-gray-50 transition-colors cursor-pointer">
<div class="flex items-center">
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i class="fas fa-tasks"></i>
</div>
<div class="ml-4">
<h3 class="text-lg font-medium text-gray-800">Ajouter une tâche</h3>
<p class="text-sm text-gray-500">Créer une nouvelle tâche pour votre équipe</p>
</div>
</div>
</button>
</div>
</main>
</div>
<!-- Floating Action Button -->
<div class="fixed bottom-6 right-6">
<button id="quick-action-btn" class="w-14 h-14 rounded-full bg-blue-600 text-white shadow-lg flex items-center justify-center hover:bg-blue-700 transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
<i class="fas fa-plus text-xl"></i>
</button>
</div>
<!-- Quick Action Menu (hidden by default) -->
<div id="quick-action-menu" class="fixed bottom-20 right-6 hidden">
<div class="bg-white rounded-lg shadow-lg overflow-hidden w-56">
<a href="pointage.html" class="block px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer" onclick="pointageNow()">
<i class="fas fa-fingerprint text-blue-500 mr-2"></i> Pointer maintenant
</a>
<a href="conges.html" class="block px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer" onclick="requestLeave()">
<i class="fas fa-calendar-plus text-green-500 mr-2"></i> Demander un congé
</a>
<a href="taches.html" class="block px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer" onclick="addTask()">
<i class="fas fa-tasks text-purple-500 mr-2"></i> Ajouter une tâche
</a>
<a href="rapports.html" class="block px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer" onclick="createReport()">
<i class="fas fa-file-alt text-yellow-500 mr-2"></i> Créer un rapport
</a>
</div>
</div>
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/chart.js" defer></script>
<script>
function pointageNow() {
// Logique de pointage
console.log("Pointage en cours...");
}
function requestLeave() {
// Logique de demande de congé
console.log("Demande de congé...");
}
function addTask() {
// Logique d'ajout de tâche
console.log("Ajout de tâche...");
}
function createReport() {
// Logique de création de rapport
console.log("Création de rapport...");
}
</script>
<script>
// Toggle sidebar
const toggleSidebar = document.getElementById('toggle-sidebar');
const sidebar = document.querySelector('.sidebar');
const mainContent = document.querySelector('.main-content');
const mobileMenuButton = document.getElementById('mobile-menu-button');
toggleSidebar.addEventListener('click', () => {
sidebar.classList.toggle('collapsed');
if (sidebar.classList.contains('collapsed')) {
mainContent.style.marginLeft = '80px';
toggleSidebar.innerHTML = '<i class="fas fa-chevron-right"></i>';
} else {
mainContent.style.marginLeft = '256px';
toggleSidebar.innerHTML = '<i class="fas fa-chevron-left"></i>';
}
});
// Mobile menu toggle
mobileMenuButton.addEventListener('click', () => {
sidebar.classList.toggle('open');
});
// Quick action button
const quickActionBtn = document.getElementById('quick-action-btn');
const quickActionMenu = document.getElementById('quick-action-menu');
quickActionBtn.addEventListener('click', () => {
quickActionMenu.classList.toggle('hidden');
});
// Close quick action menu when clicking outside
document.addEventListener('click', (e) => {
if (!quickActionBtn.contains(e.target) && !quickActionMenu.contains(e.target)) {
quickActionMenu.classList.add('hidden');
}
if (!userMenuButton.contains(e.target) && !userDropdown.contains(e.target)) {
userDropdown.classList.add('hidden');
}
});
// User dropdown menu
const userMenuButton = document.getElementById('user-menu-button');
const userDropdown = document.getElementById('user-dropdown');
userMenuButton.addEventListener('click', () => {
userDropdown.classList.toggle('hidden');
quickActionMenu.classList.add('hidden');
});
// Initialize charts
document.addEventListener('DOMContentLoaded', () => {
// Weekly Hours Chart
const weeklyHoursCtx = document.getElementById('weeklyHoursChart').getContext('2d');
const weeklyHoursChart = new Chart(weeklyHoursCtx, {
type: 'bar',
data: {
labels: ['Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi', 'Dimanche'],
datasets: [
{
label: 'Heures travaillées',
data: [6.5, 7.2, 6.8, 7.5, 8.0, 0, 0],
backgroundColor: '#3B82F6',
borderRadius: 4
},
{
label: 'Heures estimées',
data: [8, 8, 8, 8, 8, 0, 0],
backgroundColor: '#EFF6FF',
borderRadius: 4
}
]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
ticks: {
callback: function(value) {
return value + 'h';
}
}
}
},
plugins: {
legend: {
position: 'top',
},
tooltip: {
callbacks: {
label: function(context) {
let label = context.dataset.label || '';
if (label) {
label += ': ';
}
if (context.parsed.y !== null) {
const hours = Math.floor(context.parsed.y);
const minutes = Math.round((context.parsed.y - hours) * 60);
label += hours + 'h ' + (minutes < 10 ? '0' + minutes : minutes) + 'm';
}
return label;
}
}
}
}
}
});
});
</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=dSteve01/gesttemps" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>