| <!DOCTYPE html> |
| <html lang="fr"> |
| <head> |
| <meta charset="UTF-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| <title>École Primaire Les Petits Génies</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> |
| .sidebar { |
| transition: all 0.3s ease; |
| } |
| @media (max-width: 768px) { |
| .sidebar { |
| transform: translateX(-100%); |
| } |
| .sidebar.active { |
| transform: translateX(0); |
| } |
| } |
| .hamburger { |
| display: none; |
| } |
| @media (max-width: 768px) { |
| .hamburger { |
| display: block; |
| } |
| } |
| .dashboard-card:hover { |
| transform: translateY(-5px); |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); |
| } |
| .progress-bar { |
| height: 8px; |
| border-radius: 4px; |
| background-color: #e2e8f0; |
| } |
| .progress-fill { |
| height: 100%; |
| border-radius: 4px; |
| transition: width 0.5s ease; |
| } |
| </style> |
| </head> |
| <body class="bg-gray-100 font-sans"> |
| <div class="flex h-screen overflow-hidden"> |
| |
| <div class="fixed inset-0 bg-black bg-opacity-50 z-40 md:hidden" id="sidebar-overlay"></div> |
| |
| |
| <div class="sidebar bg-blue-800 text-white w-64 fixed md:relative h-full z-50" id="sidebar"> |
| <div class="p-4 flex items-center space-x-2 border-b border-blue-700"> |
| <div class="bg-yellow-400 text-blue-800 p-2 rounded-lg"> |
| <i class="fas fa-school text-2xl"></i> |
| </div> |
| <h1 class="text-xl font-bold">Les Petits Génies</h1> |
| </div> |
| |
| <div class="p-4"> |
| <div class="flex items-center space-x-3 mb-6"> |
| <img src="https://randomuser.me/api/portraits/women/65.jpg" alt="Profil" class="w-10 h-10 rounded-full border-2 border-white"> |
| <div> |
| <p class="font-semibold">Mme. Dupont</p> |
| <p class="text-xs text-blue-200">Directrice</p> |
| </div> |
| </div> |
| |
| <nav> |
| <ul class="space-y-2"> |
| <li> |
| <a href="#" class="dashboard-tab active flex items-center p-2 rounded-lg bg-blue-700"> |
| <i class="fas fa-home mr-3"></i> |
| <span>Tableau de bord</span> |
| </a> |
| </li> |
| <li> |
| <a href="#" class="dashboard-tab flex items-center p-2 rounded-lg hover:bg-blue-700"> |
| <i class="fas fa-users mr-3"></i> |
| <span>Élèves</span> |
| </a> |
| </li> |
| <li> |
| <a href="#" class="dashboard-tab flex items-center p-2 rounded-lg hover:bg-blue-700"> |
| <i class="fas fa-chalkboard-teacher mr-3"></i> |
| <span>Enseignants</span> |
| </a> |
| </li> |
| <li> |
| <a href="#" class="dashboard-tab flex items-center p-2 rounded-lg hover:bg-blue-700"> |
| <i class="fas fa-clipboard-list mr-3"></i> |
| <span>Classes</span> |
| </a> |
| </li> |
| <li> |
| <a href="#" class="dashboard-tab flex items-center p-2 rounded-lg hover:bg-blue-700"> |
| <i class="fas fa-calendar-alt mr-3"></i> |
| <span>Emploi du temps</span> |
| </a> |
| </li> |
| <li> |
| <a href="#" class="dashboard-tab flex items-center p-2 rounded-lg hover:bg-blue-700"> |
| <i class="fas fa-book mr-3"></i> |
| <span>Notes & Évaluations</span> |
| </a> |
| </li> |
| <li> |
| <a href="#" class="dashboard-tab flex items-center p-2 rounded-lg hover:bg-blue-700"> |
| <i class="fas fa-bell mr-3"></i> |
| <span>Notifications</span> |
| </a> |
| </li> |
| <li> |
| <a href="#" class="dashboard-tab flex items-center p-2 rounded-lg hover:bg-blue-700"> |
| <i class="fas fa-cog mr-3"></i> |
| <span>Paramètres</span> |
| </a> |
| </li> |
| </ul> |
| </nav> |
| </div> |
| </div> |
| |
| |
| <div class="flex-1 overflow-auto"> |
| |
| <header class="bg-white shadow-sm"> |
| <div class="flex items-center justify-between p-4"> |
| <div class="flex items-center space-x-4"> |
| <button id="hamburger" class="hamburger text-gray-600 focus:outline-none"> |
| <i class="fas fa-bars text-xl"></i> |
| </button> |
| <h1 class="text-xl font-semibold text-gray-800">Tableau de bord</h1> |
| </div> |
| <div class="flex items-center space-x-4"> |
| <div class="relative"> |
| <button class="text-gray-600 hover:text-gray-800 focus:outline-none"> |
| <i class="fas fa-bell"></i> |
| <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span> |
| </button> |
| </div> |
| <div class="relative"> |
| <button class="flex items-center space-x-2 focus:outline-none"> |
| <span class="text-gray-800 font-medium">Admin</span> |
| <img src="https://randomuser.me/api/portraits/women/65.jpg" alt="Profil" class="w-8 h-8 rounded-full"> |
| </button> |
| </div> |
| </div> |
| </div> |
| </header> |
| |
| |
| <main class="p-6"> |
| |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6"> |
| |
| <div class="dashboard-card bg-white rounded-lg shadow p-6 flex items-center transition-all duration-300"> |
| <div class="bg-blue-100 p-3 rounded-full mr-4"> |
| <i class="fas fa-users text-blue-600 text-xl"></i> |
| </div> |
| <div> |
| <p class="text-gray-500 text-sm">Élèves</p> |
| <h3 class="text-2xl font-bold text-gray-800">312</h3> |
| <div class="flex items-center mt-1"> |
| <span class="text-green-500 text-xs mr-1"><i class="fas fa-arrow-up"></i> 5%</span> |
| <span class="text-gray-500 text-xs">vs. l'année dernière</span> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="dashboard-card bg-white rounded-lg shadow p-6 flex items-center transition-all duration-300"> |
| <div class="bg-green-100 p-3 rounded-full mr-4"> |
| <i class="fas fa-chalkboard-teacher text-green-600 text-xl"></i> |
| </div> |
| <div> |
| <p class="text-gray-500 text-sm">Enseignants</p> |
| <h3 class="text-2xl font-bold text-gray-800">18</h3> |
| <div class="flex items-center mt-1"> |
| <span class="text-green-500 text-xs mr-1"><i class="fas fa-arrow-up"></i> 2%</span> |
| <span class="text-gray-500 text-xs">vs. l'année dernière</span> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="dashboard-card bg-white rounded-lg shadow p-6 flex items-center transition-all duration-300"> |
| <div class="bg-yellow-100 p-3 rounded-full mr-4"> |
| <i class="fas fa-door-open text-yellow-600 text-xl"></i> |
| </div> |
| <div> |
| <p class="text-gray-500 text-sm">Classes</p> |
| <h3 class="text-2xl font-bold text-gray-800">12</h3> |
| <div class="flex items-center mt-1"> |
| <span class="text-gray-500 text-xs">3 CP, 3 CE1, etc.</span> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="dashboard-card bg-white rounded-lg shadow p-6 flex items-center transition-all duration-300"> |
| <div class="bg-purple-100 p-3 rounded-full mr-4"> |
| <i class="fas fa-percentage text-purple-600 text-xl"></i> |
| </div> |
| <div> |
| <p class="text-gray-500 text-sm">Assiduité</p> |
| <h3 class="text-2xl font-bold text-gray-800">94.5%</h3> |
| <div class="flex items-center mt-1"> |
| <span class="text-green-500 text-xs mr-1"><i class="fas fa-arrow-up"></i> 1.2%</span> |
| <span class="text-gray-500 text-xs">vs. le mois dernier</span> |
| </div> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6"> |
| |
| <div class="lg:col-span-2 bg-white rounded-lg shadow p-6"> |
| <div class="flex justify-between items-center mb-6"> |
| <h2 class="text-lg font-semibold text-gray-800">Classes et effectifs</h2> |
| <select class="bg-gray-100 border-0 rounded-lg p-2 text-sm focus:ring-2 focus:ring-blue-500"> |
| <option>Année scolaire 2023-2024</option> |
| <option>Année scolaire 2022-2023</option> |
| </select> |
| </div> |
| |
| <div class="overflow-x-auto"> |
| <table class="min-w-full divide-y divide-gray-200"> |
| <thead class="bg-gray-50"> |
| <tr> |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Classe</th> |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Enseignant</th> |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Élèves</th> |
| <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Assiduité</th> |
| </tr> |
| </thead> |
| <tbody class="bg-white divide-y divide-gray-200"> |
| <tr class="hover:bg-gray-50"> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <div class="flex items-center"> |
| <div class="bg-blue-100 p-2 rounded-lg mr-3"> |
| <i class="fas fa-door-open text-blue-600"></i> |
| </div> |
| <div> |
| <div class="font-medium text-gray-900">CP-A</div> |
| <div class="text-gray-500">Salle 101</div> |
| </div> |
| </div> |
| </td> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <div class="flex items-center"> |
| <img class="w-8 h-8 rounded-full mr-2" src="https://randomuser.me/api/portraits/women/25.jpg" alt=""> |
| <div> |
| <div class="font-medium">Mme. Leroy</div> |
| <div class="text-gray-500">Français</div> |
| </div> |
| </div> |
| </td> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <div class="progress-bar w-full mt-1"> |
| <div class="progress-fill bg-blue-500" style="width: 100%"></div> |
| </div> |
| <div class="text-sm text-gray-500">25/25 élèves</div> |
| </td> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">97%</span> |
| </td> |
| </tr> |
| <tr class="hover:bg-gray-50"> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <div class="flex items-center"> |
| <div class="bg-green-100 p-2 rounded-lg mr-3"> |
| <i class="fas fa-door-open text-green-600"></i> |
| </div> |
| <div> |
| <div class="font-medium text-gray-900">CP-B</div> |
| <div class="text-gray-500">Salle 102</div> |
| </div> |
| </div> |
| </td> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <div class="flex items-center"> |
| <img class="w-8 h-8 rounded-full mr-2" src="https://randomuser.me/api/portraits/men/32.jpg" alt=""> |
| <div> |
| <div class="font-medium">M. Bernard</div> |
| <div class="text-gray-500">Maths</div> |
| </div> |
| </div> |
| </td> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <div class="progress-bar w-full mt-1"> |
| <div class="progress-fill bg-green-500" style="width: 90%"></div> |
| </div> |
| <div class="text-sm text-gray-500">23/25 élèves</div> |
| </td> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">96%</span> |
| </td> |
| </tr> |
| <tr class="hover:bg-gray-50"> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <div class="flex items-center"> |
| <div class="bg-yellow-100 p-2 rounded-lg mr-3"> |
| <i class="fas fa-door-open text-yellow-600"></i> |
| </div> |
| <div> |
| <div class="font-medium text-gray-900">CE1-A</div> |
| <div class="text-gray-500">Salle 103</div> |
| </div> |
| </div> |
| </td> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <div class="flex items-center"> |
| <img class="w-8 h-8 rounded-full mr-2" src="https://randomuser.me/api/portraits/women/45.jpg" alt=""> |
| <div> |
| <div class="font-medium">Mme. Laurent</div> |
| <div class="text-gray-500">Sciences</div> |
| </div> |
| </div> |
| </td> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <div class="progress-bar w-full mt-1"> |
| <div class="progress-fill bg-yellow-500" style="width: 80%"></div> |
| </div> |
| <div class="text-sm text-gray-500">24/30 élèves</div> |
| </td> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">89%</span> |
| </td> |
| </tr> |
| <tr class="hover:bg-gray-50"> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <div class="flex items-center"> |
| <div class="bg-purple-100 p-2 rounded-lg mr-3"> |
| <i class="fas fa-door-open text-purple-600"></i> |
| </div> |
| <div> |
| <div class="font-medium text-gray-900">CE2-A</div> |
| <div class="text-gray-500">Salle 201</div> |
| </div> |
| </div> |
| </td> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <div class="flex items-center"> |
| <img class="w-8 h-8 rounded-full mr-2" src="https://randomuser.me/api/portraits/men/45.jpg" alt=""> |
| <div> |
| <div class="font-medium">M. Dubois</div> |
| <div class="text-gray-500">Histoire</div> |
| </div> |
| </div> |
| </td> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <div class="progress-bar w-full mt-1"> |
| <div class="progress-fill bg-purple-500" style="width: 100%"></div> |
| </div> |
| <div class="text-sm text-gray-500">28/28 élèves</div> |
| </td> |
| <td class="px-4 py-4 whitespace-nowrap"> |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">98%</span> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| |
| <div class="mt-4 flex justify-end"> |
| <button class="text-blue-600 hover:text-blue-800 text-sm font-medium"> |
| Voir toutes les classes <i class="fas fa-arrow-right ml-1"></i> |
| </button> |
| </div> |
| </div> |
| |
| |
| <div class="space-y-6"> |
| |
| <div class="bg-white rounded-lg shadow p-6"> |
| <div class="flex justify-between items-center mb-4"> |
| <h2 class="text-lg font-semibold text-gray-800">Calendrier scolaire</h2> |
| <button class="text-blue-600 hover:text-blue-800 text-sm"> |
| <i class="fas fa-ellipsis-h"></i> |
| </button> |
| </div> |
| |
| <div class="mb-4"> |
| <div class="flex items-center justify-between"> |
| <button class="calendar-prev p-2 rounded-lg hover:bg-gray-100"> |
| <i class="fas fa-chevron-left"></i> |
| </button> |
| <span class="calendar-title font-semibold">Octobre 2023</span> |
| <button class="calendar-next p-2 rounded-lg hover:bg-gray-100"> |
| <i class="fas fa-chevron-right"></i> |
| </button> |
| </div> |
| </div> |
| |
| <div class="grid grid-cols-7 gap-1 text-center text-xs font-medium text-gray-500 mb-2"> |
| <div>L</div> |
| <div>M</div> |
| <div>M</div> |
| <div>J</div> |
| <div>V</div> |
| <div>S</div> |
| <div>D</div> |
| </div> |
| |
| <div class="grid grid-cols-7 gap-1"> |
| |
| <div class="h-8 flex items-center justify-center text-gray-400 text-sm">25</div> |
| <div class="h-8 flex items-center justify-center text-gray-400 text-sm">26</div> |
| <div class="h-8 flex items-center justify-center text-gray-400 text-sm">27</div> |
| <div class="h-8 flex items-center justify-center text-gray-400 text-sm">28</div> |
| <div class="h-8 flex items-center justify-center text-gray-400 text-sm">29</div> |
| <div class="h-8 flex items-center justify-center text-gray-400 text-sm">30</div> |
| <div class="h-8 flex items-center justify-center text-sm rounded-lg bg-blue-100 text-blue-800 font-medium">1</div> |
| |
| |
| <div class="h-8 flex items-center justify-center text-sm">2</div> |
| <div class="h-8 flex items-center justify-center text-sm">3</div> |
| <div class="h-8 flex items-center justify-center text-sm rounded-lg bg-blue-600 text-white font-medium">4</div> |
| <div class="h-8 flex items-center justify-center text-sm">5</div> |
| <div class="h-8 flex items-center justify-center text-sm rounded-lg bg-green-100 text-green-800 font-medium">6</div> |
| <div class="h-8 flex items-center justify-center text-gray-400 text-sm">7</div> |
| <div class="h-8 flex items-center justify-center text-gray-400 text-sm">8</div> |
| |
| |
| <div class="h-8 flex items-center justify-center text-sm">9</div> |
| <div class="h-8 flex items-center justify-center text-sm">10</div> |
| <div class="h-8 flex items-center justify-center text-sm">11</div> |
| <div class="h-8 flex items-center justify-center text-sm rounded-lg bg-yellow-100 text-yellow-800 font-medium">12</div> |
| <div class="h-8 flex items-center justify-center text-sm">13</div> |
| <div class="h-8 flex items-center justify-center text-gray-400 text-sm">14</div> |
| <div class="h-8 flex items-center justify-center text-gray-400 text-sm">15</div> |
| </div> |
| |
| <div class="mt-4 space-y-2"> |
| <div class="flex items-center"> |
| <div class="w-2 h-2 rounded-full bg-blue-600 mr-2"></div> |
| <span class="text-xs text-gray-600">Réunion parents-professeurs</span> |
| </div> |
| <div class="flex items-center"> |
| <div class="w-2 h-2 rounded-full bg-green-500 mr-2"></div> |
| <span class="text-xs text-gray-600">Sortie scolaire</span> |
| </div> |
| <div class="flex items-center"> |
| <div class="w-2 h-2 rounded-full bg-yellow-500 mr-2"></div> |
| <span class="text-xs text-gray-600">Vacances scolaires</span> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="bg-white rounded-lg shadow p-6"> |
| <div class="flex justify-between items-center mb-4"> |
| <h2 class="text-lg font-semibold text-gray-800">Tâches à faire</h2> |
| <button class="text-blue-600 hover:text-blue-800 text-sm"> |
| <i class="fas fa-plus"></i> |
| </button> |
| </div> |
| |
| <div class="space-y-4"> |
| <div class="flex items-start"> |
| <input type="checkbox" class="task-checkbox mt-1 rounded text-blue-600 focus:ring-blue-500"> |
| <div class="ml-3"> |
| <p class="text-sm font-medium text-gray-800">Réviser les plans de cours du CP</p> |
| <p class="text-xs text-gray-500">Pour le lundi 9 octobre</p> |
| </div> |
| </div> |
| |
| <div class="flex items-start"> |
| <input type="checkbox" class="mt-1 rounded text-blue-600 focus:ring-blue-500"> |
| <div class="ml-3"> |
| <p class="text-sm font-medium text-gray-800">Organiser la réunion des enseignants</p> |
| <p class="text-xs text-gray-500">Pour le mercredi 11 octobre</p> |
| </div> |
| </div> |
| |
| <div class="flex items-start"> |
| <input type="checkbox" class="mt-1 rounded text-blue-600 focus:ring-blue-500" checked> |
| <div class="ml-3"> |
| <p class="text-sm font-medium text-gray-500 line-through">Envoyer les bulletins trimestriels</p> |
| <p class="text-xs text-gray-400">Terminé le 2 octobre</p> |
| </div> |
| </div> |
| |
| <div class="flex items-start"> |
| <input type="checkbox" class="mt-1 rounded text-blue-600 focus:ring-blue-500"> |
| <div class="ml-3"> |
| <p class="text-sm font-medium text-gray-800">Planifier l'évaluation nationale</p> |
| <p class="text-xs text-gray-500">Pour le vendredi 13 octobre</p> |
| </div> |
| </div> |
| </div> |
| |
| <button class="mt-4 text-blue-600 hover:text-blue-800 text-sm font-medium"> |
| Voir toutes les tâches <i class="fas fa-arrow-right ml-1"></i> |
| </button> |
| </div> |
| </div> |
| </div> |
| |
| |
| <div class="mt-6 bg-white rounded-lg shadow p-6"> |
| <div class="flex justify-between items-center mb-6"> |
| <h2 class="text-lg font-semibold text-gray-800">Activité récente</h2> |
| <button class="text-blue-600 hover:text-blue-800 text-sm font-medium"> |
| Voir tout <i class="fas fa-arrow-right ml-1"></i> |
| </button> |
| </div> |
| |
| <div class="space-y-4"> |
| <div class="flex items-start"> |
| <div class="bg-blue-100 p-2 rounded-full mr-3"> |
| <i class="fas fa-user-plus text-blue-600"></i> |
| </div> |
| <div class="flex-1"> |
| <p class="text-sm font-medium text-gray-800"> |
| <span class="text-blue-600">M. Martin</span> a ajouté une nouvelle évaluation pour la classe de CE2-B |
| </p> |
| <p class="text-xs text-gray-500">Aujourd'hui à 10:45</p> |
| </div> |
| </div> |
| |
| <div class="flex items-start"> |
| <div class="bg-green-100 p-2 rounded-full mr-3"> |
| <i class="fas fa-check-circle text-green-600"></i> |
| </div> |
| <div class="flex-1"> |
| <p class="text-sm font-medium text-gray-800"> |
| <span class="text-blue-600">Mme. Dubois</span> a marqué la présence pour la classe de CP-A |
| </p> |
| <p class="text-xs text-gray-500">Aujourd'hui à 09:30</p> |
| </div> |
| </div> |
| |
| <div class="flex items-start"> |
| <div class="bg-yellow-100 p-2 rounded-full mr-3"> |
| <i class="fas fa-exclamation-triangle text-yellow-600"></i> |
| </div> |
| <div class="flex-1"> |
| <p class="text-sm font-medium text-gray-800"> |
| 3 élèves absents non excusés dans la classe de CE1-A |
| </p> |
| <p class="text-xs text-gray-500">Hier à 16:20</p> |
| </div> |
| </div> |
| |
| <div class="flex items-start"> |
| <div class="bg-purple-100 p-2 rounded-full mr-3"> |
| <i class="fas fa-envelope text-purple-600"></i> |
| </div> |
| <div class="flex-1"> |
| <p class="text-sm font-medium text-gray-800"> |
| Nouveau message de <span class="text-blue-600">M. et Mme. Durant</span> concernant leur enfant |
| </p> |
| <p class="text-xs text-gray-500">Hier à 14:15</p> |
| </div> |
| </div> |
| </div> |
| </div> |
| </main> |
| </div> |
| </div> |
|
|
| <script> |
| |
| document.getElementById('hamburger').addEventListener('click', function() { |
| const sidebar = document.getElementById('sidebar'); |
| const overlay = document.getElementById('sidebar-overlay'); |
| |
| sidebar.classList.toggle('active'); |
| overlay.classList.toggle('hidden'); |
| |
| if (sidebar.classList.contains('active')) { |
| document.body.style.overflow = 'hidden'; |
| } else { |
| document.body.style.overflow = 'auto'; |
| } |
| }); |
| |
| |
| document.getElementById('sidebar-overlay').addEventListener('click', function() { |
| document.getElementById('sidebar').classList.remove('active'); |
| this.classList.add('hidden'); |
| document.body.style.overflow = 'auto'; |
| }); |
| |
| |
| const tabs = document.querySelectorAll('.dashboard-tab'); |
| tabs.forEach(tab => { |
| tab.addEventListener('click', function(e) { |
| e.preventDefault(); |
| tabs.forEach(t => t.classList.remove('active', 'bg-blue-700')); |
| this.classList.add('active', 'bg-blue-700'); |
| |
| |
| const title = this.querySelector('span').textContent; |
| document.querySelector('header h1').textContent = title; |
| }); |
| }); |
| |
| |
| let currentDate = new Date(); |
| const monthNames = ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", |
| "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"]; |
| |
| function updateCalendar() { |
| const monthYear = document.querySelector('.calendar-title'); |
| const year = currentDate.getFullYear(); |
| monthYear.textContent = `${monthNames[currentDate.getMonth()]} ${year}`; |
| } |
| |
| document.querySelector('.calendar-prev').addEventListener('click', function() { |
| currentDate.setMonth(currentDate.getMonth() - 1); |
| updateCalendar(); |
| }); |
| |
| document.querySelector('.calendar-next').addEventListener('click', function() { |
| currentDate.setMonth(currentDate.getMonth() + 1); |
| updateCalendar(); |
| }); |
| |
| |
| const taskCheckboxes = document.querySelectorAll('.task-checkbox'); |
| taskCheckboxes.forEach(checkbox => { |
| checkbox.addEventListener('change', function() { |
| const taskText = this.nextElementSibling.querySelector('p:first-child'); |
| const taskDate = this.nextElementSibling.querySelector('p:last-child'); |
| |
| if (this.checked) { |
| taskText.classList.add('line-through', 'text-gray-500'); |
| taskText.classList.remove('text-gray-800'); |
| taskDate.classList.add('text-gray-400'); |
| taskDate.classList.remove('text-gray-500'); |
| taskDate.textContent = `Terminé le ${new Date().toLocaleDateString('fr-FR')}`; |
| } else { |
| taskText.classList.remove('line-through', 'text-gray-500'); |
| taskText.classList.add('text-gray-800'); |
| taskDate.classList.remove('text-gray-400'); |
| taskDate.classList.add('text-gray-500'); |
| const originalDate = this.dataset.originalDate; |
| taskDate.textContent = `Pour le ${originalDate}`; |
| } |
| }); |
| |
| |
| const originalDate = this.nextElementSibling.querySelector('p:last-child').textContent.replace('Pour le ', ''); |
| this.dataset.originalDate = originalDate; |
| }); |
| |
| |
| const dashboardCards = document.querySelectorAll('.dashboard-card'); |
| dashboardCards.forEach(card => { |
| card.addEventListener('mouseenter', () => { |
| const iconBg = card.querySelector('div:first-child'); |
| iconBg.classList.add('scale-110'); |
| }); |
| |
| card.addEventListener('mouseleave', () => { |
| const iconBg = card.querySelector('div:first-child'); |
| iconBg.classList.remove('scale-110'); |
| }); |
| }); |
| |
| |
| document.querySelector('.profile-button').addEventListener('click', function(e) { |
| e.stopPropagation(); |
| const dropdown = this.nextElementSibling; |
| dropdown.classList.toggle('hidden'); |
| }); |
| |
| |
| document.addEventListener('click', function() { |
| const dropdowns = document.querySelectorAll('.profile-dropdown'); |
| dropdowns.forEach(dropdown => { |
| dropdown.classList.add('hidden'); |
| }); |
| }); |
| </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=Rdvel/espace-1" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> |
| </html> |