Spaces:
Running

foot / index.html
masterseb's picture
mettre les boutons pour chaque séance listée et activer ces bouton - Follow Up Deployment
2eafd66 verified
Raw History Blame Contribute Delete
63.1 kB
<!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>FootManager U18 - Gestion d'entraînements</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> #objectives-select option { padding: 8px 12px; margin: 2px 0; border-radius: 4px; } #objectives-select option:hover { background-color: #f3f4f6; } #objectives-select option:checked { background-color: #e5e7eb; } .calendar-day:hover { transform: scale(1.05); transition: all 0.2s ease; } .exercise-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); transition: all 0.3s ease; } .progress-bar { height: 8px; border-radius: 4px; background-color: #e5e7eb; } .progress-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; } #calendar { scrollbar-width: thin; scrollbar-color: #3b82f6 #e5e7eb; } #calendar::-webkit-scrollbar { height: 8px; } #calendar::-webkit-scrollbar-track { background: #e5e7eb; border-radius: 10px; } #calendar::-webkit-scrollbar-thumb { background-color: #3b82f6; border-radius: 10px; } /* Table styles */ table { border-collapse: separate; border-spacing: 0; } th { position: sticky; top: 0; background-color: #f9fafb; } tr:last-child td { border-bottom-width: 0; } .action-btn { padding: 4px 8px; border-radius: 4px; transition: all 0.2s; } .action-btn:hover { transform: scale(1.1); } </style> </head> <body class="bg-gray-50 font-sans"> <!-- Header --> <header class="bg-blue-600 text-white shadow-lg"> <div class="container mx-auto px-4 py-4 flex justify-between items-center"> <div class="flex items-center space-x-2"> <i class="fas fa-futbol text-2xl"></i> <h1 class="text-2xl font-bold">FootManager U18</h1> </div> <nav class="hidden md:flex space-x-6"> <a href="#" id="nav-planning" class="hover:text-blue-200 font-medium active-nav">Planning</a> <a href="#" id="nav-sessions" class="hover:text-blue-200 font-medium">Séances</a> <a href="#" id="nav-exercises" class="hover:text-blue-200 font-medium">Exercices</a> <a href="#" id="nav-stats" class="hover:text-blue-200 font-medium">Statistiques</a> </nav> <div class="flex items-center space-x-4"> <button class="bg-blue-700 hover:bg-blue-800 px-4 py-2 rounded-lg font-medium"> <i class="fas fa-user mr-2"></i>Mon compte </button> <button class="md:hidden text-2xl" id="mobile-menu-button"> <i class="fas fa-bars"></i> </button> </div> </div> </header> <!-- Mobile Menu --> <div class="hidden bg-blue-700 text-white py-4 px-4" id="mobile-menu"> <nav class="flex flex-col space-y-3"> <a href="#" class="hover:text-blue-200 font-medium">Planning</a> <a href="#" class="hover:text-blue-200 font-medium">Séances</a> <a href="#" class="hover:text-blue-200 font-medium">Exercices</a> <a href="#" class="hover:text-blue-200 font-medium">Statistiques</a> </nav> </div> <!-- Main Content --> <main class="container mx-auto px-4 py-8"> <!-- Season Overview --> <section id="section-planning" class="mb-12 bg-white rounded-xl shadow-md p-6"> <div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6"> <h2 class="text-2xl font-bold text-gray-800">Saison 2025/2026</h2> <div class="flex space-x-4 mt-4 md:mt-0"> <button id="new-session-btn" class="bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded-lg font-medium flex items-center"> <i class="fas fa-plus mr-2"></i>Nouvelle séance </button> <button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg font-medium flex items-center"> <i class="fas fa-file-pdf mr-2"></i>Exporter PDF </button> </div> </div> <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6"> <!-- Season Stats --> <div class="bg-blue-50 rounded-lg p-4 border border-blue-100"> <h3 class="font-semibold text-blue-800 mb-2">Statistiques de la saison</h3> <div class="space-y-3"> <div> <div class="flex justify-between mb-1"> <span class="text-sm font-medium text-blue-700">Séances planifiées</span> <span class="text-sm font-medium text-blue-700">24/36</span> </div> <div class="progress-bar"> <div class="progress-fill bg-blue-400" style="width: 66%"></div> </div> </div> <div> <div class="flex justify-between mb-1"> <span class="text-sm font-medium text-green-700">Objectifs techniques</span> <span class="text-sm font-medium text-green-700">58%</span> </div> <div class="progress-bar"> <div class="progress-fill bg-green-400" style="width: 58%"></div> </div> </div> <div> <div class="flex justify-between mb-1"> <span class="text-sm font-medium text-purple-700">Objectifs tactiques</span> <span class="text-sm font-medium text-purple-700">42%</span> </div> <div class="progress-bar"> <div class="progress-fill bg-purple-400" style="width: 42%"></div> </div> </div> </div> </div> <!-- Training Cycles --> <div class="bg-gray-50 rounded-lg p-4 border border-gray-200"> <h3 class="font-semibold text-gray-800 mb-3">Cycles d'entraînement</h3> <div class="space-y-3"> <div class="flex items-center"> <div class="w-3 h-3 bg-red-500 rounded-full mr-2"></div> <span class="text-sm">Pré-saison (Août 2025) - Physique</span> </div> <div class="flex items-center"> <div class="w-3 h-3 bg-yellow-500 rounded-full mr-2"></div> <span class="text-sm">Sept-Oct 2025 - Technique passes</span> </div> <div class="flex items-center"> <div class="w-3 h-3 bg-green-500 rounded-full mr-2"></div> <span class="text-sm">Nov-Déc 2025 - Défense</span> </div> <div class="flex items-center"> <div class="w-3 h-3 bg-blue-500 rounded-full mr-2"></div> <span class="text-sm">Jan-Fév 2026 - Attaque</span> </div> </div> </div> <!-- Next Session --> <div class="bg-white rounded-lg p-4 border border-gray-200 shadow-sm"> <h3 class="font-semibold text-gray-800 mb-3">Prochaine séance</h3> <div class="bg-blue-50 p-3 rounded-lg"> <div class="flex justify-between items-center mb-2"> <span class="font-medium text-blue-800">Mercredi 15 Nov</span> <span class="text-sm bg-blue-100 text-blue-800 px-2 py-1 rounded">19h15-20h45</span> </div> <p class="text-sm text-gray-700 mb-2">Thème: Défense en bloc bas</p> <div class="flex flex-wrap gap-1"> <span class="text-xs bg-blue-200 text-blue-800 px-2 py-1 rounded">Tactique</span> <span class="text-xs bg-green-200 text-green-800 px-2 py-1 rounded">Physique</span> <span class="text-xs bg-purple-200 text-purple-800 px-2 py-1 rounded">Cohésion</span> </div> </div> </div> </div> <!-- Selected Session Details --> <section class="mb-12 bg-white rounded-xl shadow-md p-6"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold text-gray-800">Séance du 15 Août 2025</h2> <div class="flex space-x-2"> <button class="bg-gray-100 hover:bg-gray-200 px-4 py-2 rounded-lg font-medium"> <i class="fas fa-edit mr-2"></i>Modifier </button> <button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg font-medium"> <i class="fas fa-print mr-2"></i>Imprimer </button> </div> </div> <div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-6"> <div class="bg-blue-50 p-3 rounded-lg border border-blue-100"> <div class="flex items-center justify-between"> <span class="font-medium text-blue-800">Durée totale</span> <i class="fas fa-clock text-blue-500"></i> </div> <p class="text-2xl font-bold text-blue-700">1h30 (19h15-20h45)</p> </div> <div class="bg-green-50 p-3 rounded-lg border border-green-100"> <div class="flex items-center justify-between"> <span class="font-medium text-green-800">Thème principal</span> <i class="fas fa-bullseye text-green-500"></i> </div> <p class="text-2xl font-bold text-green-700">Défense</p> </div> <div class="bg-purple-50 p-3 rounded-lg border border-purple-100"> <div class="flex items-center justify-between"> <span class="font-medium text-purple-800">Objectifs</span> <i class="fas fa-tasks text-purple-500"></i> </div> <p class="text-xl font-bold text-purple-700">4/5</p> </div> <div class="bg-yellow-50 p-3 rounded-lg border border-yellow-100"> <div class="flex items-center justify-between"> <span class="font-medium text-yellow-800">Matériel</span> <i class="fas fa-tools text-yellow-500"></i> </div> <p class="text-xl font-bold text-yellow-700">6 items</p> </div> </div> <div class="mb-6"> <h3 class="text-lg font-semibold text-gray-800 mb-2">Objectifs pédagogiques</h3> <div class="flex flex-wrap gap-2"> <span class="bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-sm flex items-center"> <i class="fas fa-chess mr-1"></i> Tactique: Défense en bloc bas </span> <span class="bg-green-100 text-green-800 px-3 py-1 rounded-full text-sm flex items-center"> <i class="fas fa-running mr-1"></i> Physique: Endurance défensive </span> <span class="bg-purple-100 text-purple-800 px-3 py-1 rounded-full text-sm flex items-center"> <i class="fas fa-brain mr-1"></i> Mental: Concentration défensive </span> <span class="bg-yellow-100 text-yellow-800 px-3 py-1 rounded-full text-sm flex items-center"> <i class="fas fa-users mr-1"></i> Cohésion: Communication défensive </span> </div> </div> <div class="mb-6"> <h3 class="text-lg font-semibold text-gray-800 mb-2">Matériel nécessaire</h3> <div class="flex flex-wrap gap-2"> <span class="bg-gray-100 text-gray-800 px-3 py-1 rounded-full text-sm flex items-center"> <i class="fas fa-futbol mr-1"></i> Ballons (12) </span> <span class="bg-gray-100 text-gray-800 px-3 py-1 rounded-full text-sm flex items-center"> <i class="fas fa-square mr-1"></i> Cônes (20) </span> <span class="bg-gray-100 text-gray-800 px-3 py-1 rounded-full text-sm flex items-center"> <i class="fas fa-tshirt mr-1"></i> Chasubles (8) </span> <span class="bg-gray-100 text-gray-800 px-3 py-1 rounded-full text-sm flex items-center"> <i class="fas fa-vector-square mr-1"></i> Plots (10) </span> <span class="bg-gray-100 text-gray-800 px-3 py-1 rounded-full text-sm flex items-center"> <i class="fas fa-futbol mr-1"></i> Buts mobiles (2) </span> <span class="bg-gray-100 text-gray-800 px-3 py-1 rounded-full text-sm flex items-center"> <i class="fas fa-stopwatch mr-1"></i> Chronomètre </span> </div> </div> <!-- Exercises --> <h3 class="text-lg font-semibold text-gray-800 mb-4">Exercices (1h30 total)</h3> <div class="space-y-4"> <!-- Exercise 1 --> <div class="exercise-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm hover:shadow-md transition-shadow"> <div class="flex justify-between items-start mb-2"> <h4 class="font-bold text-lg text-blue-700">1. Échauffement spécifique (15min)</h4> <span class="bg-blue-100 text-blue-800 px-2 py-1 rounded text-sm font-medium"> <i class="fas fa-clock mr-1"></i>19h15-19h30 </span> </div> <div class="mb-3"> <p class="text-gray-700">Parcours technique avec ballon intégrant des appuis, conduite et passes courtes.</p> </div> <div class="flex flex-wrap gap-2 mb-3"> <span class="bg-blue-100 text-blue-800 px-2 py-1 rounded text-xs">Technique</span> <span class="bg-green-100 text-green-800 px-2 py-1 rounded text-xs">Physique</span> </div> <div class="bg-gray-50 p-3 rounded border border-gray-100"> <h5 class="font-semibold text-sm text-gray-800 mb-1">Consignes:</h5> <ul class="list-disc list-inside text-sm text-gray-700 space-y-1"> <li>2 groupes de 8 joueurs</li> <li>Parcours en slalom avec ballon</li> <li>Alterner pied droit/gauche</li> <li>À la fin du parcours, passe à 10m au partenaire</li> </ul> </div> </div> <!-- Exercise 2 --> <div class="exercise-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm hover:shadow-md transition-shadow"> <div class="flex justify-between items-start mb-2"> <h4 class="font-bold text-lg text-purple-700">2. Jeu de position défensif (25min)</h4> <span class="bg-purple-100 text-purple-800 px-2 py-1 rounded text-sm font-medium"> <i class="fas fa-clock mr-1"></i>19h30-19h55 </span> </div> <div class="mb-3"> <p class="text-gray-700">8v8 dans un espace réduit avec obligation de rester dans son couloir défensif.</p> </div> <div class="flex flex-wrap gap-2 mb-3"> <span class="bg-blue-100 text-blue-800 px-2 py-1 rounded text-xs">Tactique</span> <span class="bg-purple-100 text-purple-800 px-2 py-1 rounded text-xs">Mental</span> <span class="bg-yellow-100 text-yellow-800 px-2 py-1 rounded text-xs">Cohésion</span> </div> <div class="bg-gray-50 p-3 rounded border border-gray-100"> <h5 class="font-semibold text-sm text-gray-800 mb-1">Consignes:</h5> <ul class="list-disc list-inside text-sm text-gray-700 space-y-1"> <li>Terrain divisé en 3 couloirs verticaux</li> <li>Chaque défenseur reste dans son couloir</li> <li>Communication obligatoire entre défenseurs</li> <li>1 point si récupération + 3 passes consécutives</li> </ul> </div> </div> <!-- Exercise 3 --> <div class="exercise-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm hover:shadow-md transition-shadow"> <div class="flex justify-between items-start mb-2"> <h4 class="font-bold text-lg text-green-700">3. Match réduit thématique (35min)</h4> <span class="bg-green-100 text-green-800 px-2 py-1 rounded text-sm font-medium"> <i class="fas fa-clock mr-1"></i>19h55-20h30 </span> </div> <div class="mb-3"> <p class="text-gray-700">Match 8v8 avec focus sur le repli défensif rapide et l'organisation en bloc bas.</p> </div> <div class="flex flex-wrap gap-2 mb-3"> <span class="bg-blue-100 text-blue-800 px-2 py-1 rounded text-xs">Tactique</span> <span class="bg-green-100 text-green-800 px-2 py-1 rounded text-xs">Physique</span> <span class="bg-purple-100 text-purple-800 px-2 py-1 rounded text-xs">Mental</span> </div> <div class="bg-gray-50 p-3 rounded border border-gray-100"> <h5 class="font-semibold text-sm text-gray-800 mb-1">Consignes:</h5> <ul class="list-disc list-inside text-sm text-gray-700 space-y-1"> <li>Terrain de 60x40m</li> <li>À chaque perte de balle, repli défensif immédiat</li> <li>Défense en bloc bas (16m)</li> <li>Encourager la communication défensive</li> <li>Points supplémentaires pour récupérations en zone défensive</li> </ul> </div> </div> <!-- Exercise 4 --> <div class="exercise-card bg-white border border-gray-200 rounded-lg p-4 shadow-sm hover:shadow-md transition-shadow"> <div class="flex justify-between items-start mb-2"> <h4 class="font-bold text-lg text-red-700">4. Retour au calme (15min)</h4> <span class="bg-red-100 text-red-800 px-2 py-1 rounded text-sm font-medium"> <i class="fas fa-clock mr-1"></i>20h30-20h45 </span> </div> <div class="mb-3"> <p class="text-gray-700">Étirements et débriefing sur les points clés de la séance.</p> </div> <div class="flex flex-wrap gap-2 mb-3"> <span class="bg-green-100 text-green-800 px-2 py-1 rounded text-xs">Physique</span> <span class="bg-purple-100 text-purple-800 px-2 py-1 rounded text-xs">Mental</span> </div> <div class="bg-gray-50 p-3 rounded border border-gray-100"> <h5 class="font-semibold text-sm text-gray-800 mb-1">Consignes:</h5> <ul class="list-disc list-inside text-sm text-gray-700 space-y-1"> <li>Étirements dirigés par le capitaine</li> <li>Tour de parole sur les points positifs/à améliorer</li> <li>Rappel des 3 points clés de la séance</li> </ul> </div> </div> </div> </section> <!-- New Session Template (Hidden by default) --> <section id="new-session-template" class="hidden bg-white rounded-xl shadow-md p-6 mb-8"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold text-gray-800">Nouvelle Séance</h2> <button id="close-template-btn" class="text-gray-500 hover:text-gray-700"> <i class="fas fa-times text-xl"></i> </button> </div> <form id="session-form"> <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6"> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Date</label> <input type="date" class="w-full px-3 py-2 border border-gray-300 rounded-md"> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Heure</label> <div class="flex space-x-2"> <input type="time" class="w-1/2 px-3 py-2 border border-gray-300 rounded-md"> <input type="time" class="w-1/2 px-3 py-2 border border-gray-300 rounded-md"> </div> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Thème principal</label> <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md"> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Durée estimée</label> <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md"> </div> </div> <div class="mb-6"> <label class="block text-sm font-medium text-gray-700 mb-2">Objectifs pédagogiques</label> <div class="mb-3"> <select multiple class="w-full px-3 py-2 border border-gray-300 rounded-md" id="objectives-select"> <option value="tactique" class="bg-blue-50 text-blue-800">Tactique: Défense en bloc bas</option> <option value="tactique" class="bg-blue-50 text-blue-800">Tactique: Transition défense-attaque</option> <option value="physique" class="bg-green-50 text-green-800">Physique: Endurance défensive</option> <option value="physique" class="bg-green-50 text-green-800">Physique: Explosivité</option> <option value="mental" class="bg-purple-50 text-purple-800">Mental: Concentration défensive</option> <option value="mental" class="bg-purple-50 text-purple-800">Mental: Gestion du stress</option> <option value="cohesion" class="bg-yellow-50 text-yellow-800">Cohésion: Communication défensive</option> <option value="cohesion" class="bg-yellow-50 text-yellow-800">Cohésion: Travail d'équipe</option> </select> </div> <div id="selected-objectives" class="flex flex-wrap gap-2 mb-3"></div> <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md" rows="3" placeholder="Détaillez les objectifs spécifiques..."></textarea> </div> <div class="mb-6"> <label class="block text-sm font-medium text-gray-700 mb-2">Matériel nécessaire</label> <div class="flex mb-3"> <select class="w-2/3 px-3 py-2 border border-gray-300 rounded-l-md" id="material-select"> <option value="">Sélectionner un matériel</option> <option value="ballons">Ballons</option> <option value="cones">Cônes</option> <option value="chasubles">Chasubles</option> <option value="plots">Plots</option> <option value="buts">Buts mobiles</option> <option value="chrono">Chronomètre</option> </select> <input type="number" min="1" value="1" class="w-1/6 px-3 py-2 border-t border-b border-gray-300" id="material-qty"> <button type="button" onclick="addMaterial()" class="w-1/6 bg-blue-500 text-white px-3 py-2 rounded-r-md hover:bg-blue-600"> <i class="fas fa-plus"></i> </button> </div> <div id="selected-materials" class="flex flex-wrap gap-2 mb-3"></div> </div> <div class="mb-6"> <div class="flex justify-between items-center mb-2"> <h3 class="text-lg font-semibold text-gray-800">Exercices</h3> <button type="button" class="text-blue-600 hover:text-blue-800 font-medium"> <i class="fas fa-plus mr-1"></i>Ajouter un exercice </button> </div> <div class="space-y-4"> <div class="border border-gray-200 rounded-lg p-4"> <div class="flex justify-between items-start mb-2"> <input type="text" class="font-bold text-lg text-blue-700 bg-transparent border-b border-gray-200 focus:border-blue-500 focus:outline-none" placeholder="Nom de l'exercice"> <div class="flex items-center"> <span class="text-sm font-medium mr-2">Durée:</span> <input type="text" class="w-16 px-2 py-1 border border-gray-300 rounded text-sm"> </div> </div> <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md text-sm mb-3" rows="2" placeholder="Description de l'exercice..."></textarea> <div class="flex flex-wrap gap-2"> <span class="exercise-theme text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded cursor-pointer" data-theme-type="tactique"> <i class="fas fa-chess mr-1"></i>Tactique </span> <span class="exercise-theme text-xs bg-green-100 text-green-800 px-2 py-1 rounded cursor-pointer" data-theme-type="physique"> <i class="fas fa-running mr-1"></i>Physique </span> <span class="exercise-theme text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded cursor-pointer" data-theme-type="mental"> <i class="fas fa-brain mr-1"></i>Mental </span> <span class="exercise-theme text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded cursor-pointer" data-theme-type="cohesion"> <i class="fas fa-users mr-1"></i>Cohésion </span> </div> </div> </div> </div> <div class="flex justify-end space-x-3"> <button type="button" class="bg-gray-200 hover:bg-gray-300 px-4 py-2 rounded-lg font-medium"> Annuler </button> <button type="submit" class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded-lg font-medium"> Enregistrer </button> </div> </form> </section> <!-- Saved Sessions List --> <section id="saved-sessions" class="bg-white rounded-xl shadow-md p-6 mb-8" data-section-id="sessions-view"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold text-gray-800">Liste complète des séances</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">Date</th> <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Thème</th> <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Durée</th> <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Objectifs</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"> <!-- Séance 1 --> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm font-medium text-gray-900">15/11/2025</div> <div class="text-sm text-gray-500">19h15-20h45</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm font-medium text-gray-900">Défense en bloc bas</div> <div class="flex flex-wrap gap-1 mt-1"> <span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded">Tactique</span> <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">Physique</span> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> 1h30 </td> <td class="px-6 py-4"> <div class="flex flex-wrap gap-1"> <span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded">Bloc bas</span> <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">Endurance</span> <span class="text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded">Concentration</span> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex space-x-2"> <button class="action-btn text-blue-600 hover:text-blue-900" title="Voir"> <i class="fas fa-eye"></i> </button> <button class="action-btn text-green-600 hover:text-green-900" title="Éditer"> <i class="fas fa-edit"></i> </button> <button class="action-btn text-red-600 hover:text-red-900" title="Supprimer"> <i class="fas fa-trash"></i> </button> </div> </td> </tr> <!-- Séance 2 --> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm font-medium text-gray-900">18/11/2025</div> <div class="text-sm text-gray-500">19h15-20h45</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm font-medium text-gray-900">Transition défense-attaque</div> <div class="flex flex-wrap gap-1 mt-1"> <span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded">Tactique</span> <span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded">Cohésion</span> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> 1h30 </td> <td class="px-6 py-4"> <div class="flex flex-wrap gap-1"> <span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded">Transition rapide</span> <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">Vitesse</span> <span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded">Communication</span> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex space-x-2"> <button class="action-btn text-blue-600 hover:text-blue-900" title="Voir"> <i class="fas fa-eye"></i> </button> <button class="action-btn text-green-600 hover:text-green-900" title="Éditer"> <i class="fas fa-edit"></i> </button> <button class="action-btn text-red-600 hover:text-red-900" title="Supprimer"> <i class="fas fa-trash"></i> </button> </div> </td> </tr> <!-- Séance 3 --> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm font-medium text-gray-900">22/11/2025</div> <div class="text-sm text-gray-500">19h15-20h45</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm font-medium text-gray-900">Technique de passes longues</div> <div class="flex flex-wrap gap-1 mt-1"> <span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded">Technique</span> <span class="text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded">Mental</span> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> 1h30 </td> <td class="px-6 py-4"> <div class="flex flex-wrap gap-1"> <span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded">Précision</span> <span class="text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded">Confiance</span> <span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded">Vision</span> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex space-x-2"> <button class="action-btn text-blue-600 hover:text-blue-900" title="Voir"> <i class="fas fa-eye"></i> </button> <button class="action-btn text-green-600 hover:text-green-900" title="Éditer"> <i class="fas fa-edit"></i> </button> <button class="action-btn text-red-600 hover:text-red-900" title="Supprimer"> <i class="fas fa-trash"></i> </button> </div> </td> </tr> <!-- Séance 4 --> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm font-medium text-gray-900">25/11/2025</div> <div class="text-sm text-gray-500">19h15-20h45</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm font-medium text-gray-900">Préparation physique</div> <div class="flex flex-wrap gap-1 mt-1"> <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">Physique</span> <span class="text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded">Mental</span> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> 1h30 </td> <td class="px-6 py-4"> <div class="flex flex-wrap gap-1"> <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">Endurance</span> <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">Explosivité</span> <span class="text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded">Dépassement</span> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex space-x-2"> <button class="action-btn text-blue-600 hover:text-blue-900" title="Voir"> <i class="fas fa-eye"></i> </button> <button class="action-btn text-green-600 hover:text-green-900" title="Éditer"> <i class="fas fa-edit"></i> </button> <button class="action-btn text-red-600 hover:text-red-900" title="Supprimer"> <i class="fas fa-trash"></i> </button> </div> </td> </tr> </tbody> </table> </div> </section> <!-- Session Templates --> <section class="bg-white rounded-xl shadow-md p-6"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold text-gray-800">Séances types</h2> <button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg font-medium"> <i class="fas fa-plus mr-2"></i>Créer une séance type </button> </div> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <!-- Séance 1 --> <div class="border border-gray-200 rounded-lg overflow-hidden shadow-sm hover:shadow-md transition-shadow"> <div class="bg-blue-600 p-4 text-white"> <h3 class="font-bold text-lg">Séance 1 - Technique de passes</h3> <p class="text-sm opacity-90">Développement des passes courtes et longues</p> </div> <div class="p-4"> <div class="flex justify-between items-center mb-3"> <span class="text-sm font-medium text-gray-700">Durée: <span class="font-bold">1h30</span></span> <span class="text-sm font-medium text-gray-700">Exercices: <span class="font-bold">5</span></span> </div> <div class="flex flex-wrap gap-1 mb-4"> <span class="text-xs bg-blue-200 text-blue-800 px-2 py-1 rounded">Technique</span> <span class="text-xs bg-green-200 text-green-800 px-2 py-1 rounded">Physique</span> <span class="text-xs bg-yellow-200 text-yellow-800 px-2 py-1 rounded">Cohésion</span> </div> <div class="flex justify-between"> <button class="text-blue-600 hover:text-blue-800 text-sm font-medium"> <i class="fas fa-eye mr-1"></i>Voir </button> <button class="text-gray-600 hover:text-gray-800 text-sm font-medium"> <i class="fas fa-copy mr-1"></i>Dupliquer </button> <button class="text-green-600 hover:text-green-800 text-sm font-medium"> <i class="fas fa-calendar-plus mr-1"></i>Planifier </button> </div> </div> </div> <!-- Séance 2 --> <div class="border border-gray-200 rounded-lg overflow-hidden shadow-sm hover:shadow-md transition-shadow"> <div class="bg-green-600 p-4 text-white"> <h3 class="font-bold text-lg">Séance 2 - Préparation physique</h3> <p class="text-sm opacity-90">Endurance et explosivité</p> </div> <div class="p-4"> <div class="flex justify-between items-center mb-3"> <span class="text-sm font-medium text-gray-700">Durée: <span class="font-bold">1h30</span></span> <span class="text-sm font-medium text-gray-700">Exercices: <span class="font-bold">4</span></span> </div> <div class="flex flex-wrap gap-1 mb-4"> <span class="text-xs bg-green-200 text-green-800 px-2 py-1 rounded">Physique</span> <span class="text-xs bg-purple-200 text-purple-800 px-2 py-1 rounded">Mental</span> </div> <div class="flex justify-between"> <button class="text-blue-600 hover:text-blue-800 text-sm font-medium"> <i class="fas fa-eye mr-1"></i>Voir </button> <button class="text-gray-600 hover:text-gray-800 text-sm font-medium"> <i class="fas fa-copy mr-1"></i>Dupliquer </button> <button class="text-green-600 hover:text-green-800 text-sm font-medium"> <i class="fas fa-calendar-plus mr-1"></i>Planifier </button> </div> </div> </div> <!-- Séance 3 --> <div class="border border-gray-200 rounded-lg overflow-hidden shadow-sm hover:shadow-md transition-shadow"> <div class="bg-purple-600 p-4 text-white"> <h3 class="font-bold text-lg">Séance 3 - Tactique offensive</h3> <p class="text-sm opacity-90">Démarquages et création de supériorité</p> </div> <div class="p-4"> <div class="flex justify-between items-center mb-3"> <span class="text-sm font-medium text-gray-700">Durée: <span class="font-bold">1h30</span></span> <span class="text-sm font-medium text-gray-700">Exercices: <span class="font-bold">6</span></span> </div> <div class="flex flex-wrap gap-1 mb-4"> <span class="text-xs bg-blue-200 text-blue-800 px-2 py-1 rounded">Tactique</span> <span class="text-xs bg-yellow-200 text-yellow-800 px-2 py-1 rounded">Cohésion</span> </div> <div class="flex justify-between"> <button class="text-blue-600 hover:text-blue-800 text-sm font-medium"> <i class="fas fa-eye mr-1"></i>Voir </button> <button class="text-gray-600 hover:text-gray-800 text-sm font-medium"> <i class="fas fa-copy mr-1"></i>Dupliquer </button> <button class="text-green-600 hover:text-green-800 text-sm font-medium"> <i class="fas fa-calendar-plus mr-1"></i>Planifier </button> </div> </div> </div> </div> </section> </main> <!-- Footer --> <footer class="bg-gray-800 text-white py-8"> <div class="container mx-auto px-4"> <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> <div> <h3 class="text-lg font-bold mb-4">FootManager U18</h3> <p class="text-gray-400">L'application complète pour la gestion et la planification des entraînements de football pour les équipes de jeunes.</p> </div> <div> <h3 class="text-lg font-bold mb-4">Fonctionnalités</h3> <ul class="space-y-2 text-gray-400"> <li><a href="#" class="hover:text-white">Planification saisonnière</a></li> <li><a href="#" class="hover:text-white">Gestion des séances</a></li> <li><a href="#" class="hover:text-white">Bibliothèque d'exercices</a></li> <li><a href="#" class="hover:text-white">Suivi des objectifs</a></li> </ul> </div> <div> <h3 class="text-lg font-bold mb-4">Contact</h3> <ul class="space-y-2 text-gray-400"> <li class="flex items-center"><i class="fas fa-envelope mr-2"></i> contact@footmanager.com</li> <li class="flex items-center"><i class="fas fa-phone mr-2"></i> +33 1 23 45 67 89</li> <li class="flex items-center"><i class="fas fa-map-marker-alt mr-2"></i> Paris, France</li> </ul> </div> </div> <div class="border-t border-gray-700 mt-8 pt-6 text-center text-gray-400"> <p>© 2023 FootManager U18. Tous droits réservés.</p> </div> </div> </footer> <script> // Navigation functions function setActiveNav(id) { // Remove active class from all nav items document.querySelectorAll('nav a').forEach(link => { link.classList.remove('active-nav', 'text-blue-300'); }); // Add active class to clicked item const activeLink = document.getElementById(id); if (activeLink) { activeLink.classList.add('active-nav', 'text-blue-300'); } // Hide all sections document.querySelectorAll('main > section').forEach(section => { section.classList.add('hidden'); }); // Show corresponding section const sectionId = id.replace('nav-', 'section-'); const activeSection = document.getElementById(sectionId); if (activeSection) { activeSection.classList.remove('hidden'); } } // Mobile menu toggle document.getElementById('mobile-menu-button').addEventListener('click', function() { const menu = document.getElementById('mobile-menu'); menu.classList.toggle('hidden'); }); // Calendar day click event document.querySelectorAll('.calendar-day').forEach(day => { day.addEventListener('click', function() { // Remove previous selection document.querySelectorAll('.calendar-day').forEach(d => { d.classList.remove('bg-blue-50', 'border-blue-200'); }); // Add selection to clicked day this.classList.add('bg-blue-50', 'border-blue-200'); // In a real app, you would load the session for this day console.log('Selected day:', this.querySelector('div').textContent.trim()); }); }); // Exercise card click event (for expansion) document.querySelectorAll('.exercise-card').forEach(card => { card.addEventListener('click', function(e) { // Don't trigger if clicking on a button inside the card if (e.target.tagName === 'BUTTON' || e.target.closest('button')) { return; } // Toggle expanded view const details = this.querySelector('ul'); details.classList.toggle('hidden'); }); }); // Simulate loading data // Set up navigation event listeners document.getElementById('nav-planning').addEventListener('click', () => setActiveNav('nav-planning')); document.getElementById('nav-sessions').addEventListener('click', () => setActiveNav('nav-sessions')); document.getElementById('nav-exercises').addEventListener('click', () => setActiveNav('nav-exercises')); document.getElementById('nav-stats').addEventListener('click', () => setActiveNav('nav-stats')); // Set up button event listeners document.querySelectorAll('button').forEach(button => { if (!button.id) return; button.addEventListener('click', () => { alert(`Bouton ${button.id} cliqué!`); // Add specific functionality for each button here }); }); // New session button document.getElementById('new-session-btn').addEventListener('click', function(e) { e.stopPropagation(); document.getElementById('new-session-template').classList.remove('hidden'); window.scrollTo({ top: document.getElementById('new-session-template').offsetTop - 20, behavior: 'smooth' }); }); // Close template button document.getElementById('close-template-btn').addEventListener('click', function() { document.getElementById('new-session-template').classList.add('hidden'); }); // Material selection function addMaterial() { const select = document.getElementById('material-select'); const qty = document.getElementById('material-qty'); const container = document.getElementById('selected-materials'); if (select.value) { const material = document.createElement('span'); material.className = 'bg-gray-100 text-gray-800 px-3 py-1 rounded-full text-sm flex items-center'; material.innerHTML = ` <i class="fas fa-${getMaterialIcon(select.value)} mr-1"></i> ${select.options[select.selectedIndex].text} (${qty.value}) <button type="button" onclick="this.parentElement.remove()" class="ml-2 text-gray-500 hover:text-gray-700"> <i class="fas fa-times text-xs"></i> </button> `; container.appendChild(material); select.value = ''; qty.value = 1; } } function getMaterialIcon(type) { const icons = { 'ballons': 'futbol', 'cones': 'square', 'chasubles': 'tshirt', 'plots': 'vector-square', 'buts': 'futbol', 'chrono': 'stopwatch' }; return icons[type] || 'tools'; } // Objectives selection with multiple choices document.getElementById('objectives-select').addEventListener('change', function() { const container = document.getElementById('selected-objectives'); container.innerHTML = ''; Array.from(this.selectedOptions).forEach(option => { const colorClass = option.value === 'tactique' ? 'bg-blue-100 text-blue-800' : option.value === 'physique' ? 'bg-green-100 text-green-800' : option.value === 'mental' ? 'bg-purple-100 text-purple-800' : 'bg-yellow-100 text-yellow-800'; const icon = option.value === 'tactique' ? 'chess' : option.value === 'physique' ? 'running' : option.value === 'mental' ? 'brain' : 'users'; const objective = document.createElement('span'); objective.className = `${colorClass} px-3 py-1 rounded-full text-sm flex items-center mb-2`; objective.innerHTML = ` <i class="fas fa-${icon} mr-1"></i> ${option.text} <button type="button" onclick="removeObjective(this)" class="ml-2 text-gray-500 hover:text-gray-700"> <i class="fas fa-times text-xs"></i> </button> `; container.appendChild(objective); }); updateExerciseThemes(); }); function removeObjective(button) { const objective = button.parentElement; const container = document.getElementById('selected-objectives'); container.removeChild(objective); // Also remove from select options const select = document.getElementById('objectives-select'); const optionText = objective.textContent.trim().replace('×', '').trim(); Array.from(select.options).forEach(option => { if (option.text === optionText) { option.selected = false; } }); updateExerciseThemes(); } function updateExerciseThemes() { const selectedObjectives = Array.from(document.getElementById('objectives-select').selectedOptions); const exerciseThemeSpans = document.querySelectorAll('.exercise-theme'); exerciseThemeSpans.forEach(span => { const themeType = span.dataset.themeType; const isSelected = selectedObjectives.some(opt => opt.value === themeType || opt.text.includes(themeType.charAt(0).toUpperCase() + themeType.slice(1)) ); span.style.display = isSelected ? 'inline-flex' : 'none'; }); } // Open session view in new window function openSessionView() { const section = document.querySelector('[data-section-id="sessions-view"]'); const htmlContent = ` <!DOCTYPE html> <html> <head> <title>Visualisation des séances</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"> </head> <body> ${section.outerHTML} <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=masterseb/foot" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> </html> `; const newWindow = window.open('', '_blank', 'width=1200,height=800'); newWindow.document.write(htmlContent); newWindow.document.close(); } // Session actions document.querySelectorAll('#saved-sessions .action-btn').forEach(btn => { btn.addEventListener('click', function() { const action = this.title.toLowerCase(); const row = this.closest('tr'); const sessionDate = row.querySelector('td:first-child div:first-child').textContent; const sessionTitle = row.querySelector('td:nth-child(2) div:first-child').textContent; switch(action) { case 'voir': alert(`Visualisation de la séance: ${sessionTitle} (${sessionDate})`); // Ici vous pourriez ouvrir une vue détaillée break; case 'éditer': alert(`Édition de la séance: ${sessionTitle} (${sessionDate})`); // Ici vous pourriez ouvrir le formulaire d'édition break; case 'supprimer': if(confirm(`Voulez-vous vraiment supprimer la séance "${sessionTitle}" du ${sessionDate} ?`)) { row.remove(); alert('Séance supprimée avec succès'); } break; } }); }); // Form submission document.getElementById('session-form').addEventListener('submit', function(e) { e.preventDefault(); alert('Séance enregistrée avec succès!'); document.getElementById('new-session-template').classList.add('hidden'); // Ici vous pourriez ajouter la logique pour sauvegarder la séance }); window.addEventListener('DOMContentLoaded', function() { // Select today's date in the calendar const today = new Date(); if (today.getMonth() === 10) { // November is month 10 (0-indexed) const dayElements = document.querySelectorAll('.calendar-day'); dayElements.forEach(day => { const dayNumber = day.querySelector('div').textContent.trim(); if (dayNumber === today.getDate().toString()) { day.classList.add('bg-blue-50', 'border-blue-200'); } }); } }); </script> </body> </html>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FootManager U18 - Gestion d'entraînements</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>
#objectives-select option {
padding: 8px 12px;
margin: 2px 0;
border-radius: 4px;
}
#objectives-select option:hover {
background-color: #f3f4f6;
}
#objectives-select option:checked {
background-color: #e5e7eb;
}
.calendar-day:hover {
transform: scale(1.05);
transition: all 0.2s ease;
}
.exercise-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
transition: all 0.3s ease;
}
.progress-bar {
height: 8px;
border-radius: 4px;
background-color: #e5e7eb;
}
.progress-fill {
height: 100%;
border-radius: 4px;
transition: width 0.5s ease;
}
#calendar {
scrollbar-width: thin;
scrollbar-color: #3b82f6 #e5e7eb;
}
#calendar::-webkit-scrollbar {
height: 8px;
}
#calendar::-webkit-scrollbar-track {
background: #e5e7eb;
border-radius: 10px;
}
#calendar::-webkit-scrollbar-thumb {
background-color: #3b82f6;
border-radius: 10px;
}
/* Table styles */
table {
border-collapse: separate;
border-spacing: 0;
}
th {
position: sticky;
top: 0;
background-color: #f9fafb;
}
tr:last-child td {
border-bottom-width: 0;
}
.action-btn {
padding: 4px 8px;
border-radius: 4px;
transition: all 0.2s;
}
.action-btn:hover {
transform: scale(1.1);
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<!-- Header -->
<header class="bg-blue-600 text-white shadow-lg">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-futbol text-2xl"></i>
<h1 class="text-2xl font-bold">FootManager U18</h1>
</div>
<nav class="hidden md:flex space-x-6">
<a href="#" id="nav-planning" class="hover:text-blue-200 font-medium active-nav">Planning</a>
<a href="#" id="nav-sessions" class="hover:text-blue-200 font-medium">Séances</a>
<a href="#" id="nav-exercises" class="hover:text-blue-200 font-medium">Exercices</a>
<a href="#" id="nav-stats" class="hover:text-blue-200 font-medium">Statistiques</a>
</nav>
<div class="flex items-center space-x-4">
<button class="bg-blue-700 hover:bg-blue-800 px-4 py-2 rounded-lg font-medium">
<i class="fas fa-user mr-2"></i>Mon compte
</button>
<button class="md:hidden text-2xl" id="mobile-menu-button">
<i class="fas fa-bars"></i>
</button>
</div>