Spaces:
Running
Running
autre chose animé mieux que les lottie file ?? Framer motion, svg animé ?? - Follow Up Deployment
5558d4d verified Download index.html from JeanPaulFootball/test: direct link, hf CLI and curl.
- Browser
- Download file 34.5 kB
-
https://huggingface.co/spaces/JeanPaulFootball/test/resolve/main/index.html
- Command line
-
hf download hf://spaces/JeanPaulFootball/test/index.html
-
curl -L -o index.html https://huggingface.co/spaces/JeanPaulFootball/test/resolve/main/index.html
34.5 kB
| <html lang="fr"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Présence Foot Simplifiée</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"> | |
| <script src="https://unpkg.com/framer-motion@10.16.4/dist/framer-motion.js"></script> | |
| <style> | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); | |
| } | |
| .event-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .transition-all { | |
| transition: all 0.3s ease; | |
| } | |
| .qr-code { | |
| width: 150px; | |
| height: 150px; | |
| background: white; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| border-radius: 8px; | |
| } | |
| /* Apple Watch bubble menu styles */ | |
| .bubble-menu { | |
| display: flex; | |
| justify-content: center; | |
| padding: 20px 0; | |
| position: relative; | |
| } | |
| .bubble-item { | |
| width: 50px; | |
| height: 50px; | |
| border-radius: 50%; | |
| background: white; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| margin: 0 10px; | |
| cursor: pointer; | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); | |
| position: relative; | |
| z-index: 1; | |
| } | |
| .bubble-item:hover { | |
| transform: scale(1.1); | |
| box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); | |
| } | |
| .bubble-item.active { | |
| transform: scale(1.2); | |
| background: #4f46e5; | |
| color: white; | |
| } | |
| .bubble-item lottie-player { | |
| pointer-events: none; | |
| } | |
| .bubble-connector { | |
| position: absolute; | |
| height: 3px; | |
| background: white; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| z-index: 0; | |
| opacity: 0.3; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 font-sans"> | |
| <!-- Apple Watch Bubble Navigation --> | |
| <nav class="gradient-bg text-white shadow-lg"> | |
| <div class="container mx-auto"> | |
| <div class="bubble-menu"> | |
| <div class="bubble-connector w-full"></div> | |
| <div class="bubble-item active" data-target="dashboard"> | |
| <motion.div | |
| whileHover={{ scale: 1.2 }} | |
| whileTap={{ scale: 0.9 }} | |
| transition={{ type: "spring", stiffness: 400, damping: 10 }} | |
| class="text-2xl"> | |
| <i class="fas fa-home"></i> | |
| </motion.div> | |
| </div> | |
| <div class="bubble-item" data-target="events"> | |
| <motion.div | |
| whileHover={{ scale: 1.2 }} | |
| whileTap={{ scale: 0.9 }} | |
| transition={{ type: "spring", stiffness: 400, damping: 10 }} | |
| class="text-2xl"> | |
| <i class="fas fa-calendar-alt"></i> | |
| </motion.div> | |
| </div> | |
| <div class="bubble-item" data-target="teams"> | |
| <motion.div | |
| whileHover={{ scale: 1.2 }} | |
| whileTap={{ scale: 0.9 }} | |
| transition={{ type: "spring", stiffness: 400, damping: 10 }} | |
| class="text-2xl"> | |
| <i class="fas fa-users"></i> | |
| </motion.div> | |
| </div> | |
| <div class="bubble-item" data-target="club"> | |
| <motion.div | |
| whileHover={{ scale: 1.2 }} | |
| whileTap={{ scale: 0.9 }} | |
| transition={{ type: "spring", stiffness: 400, damping: 10 }} | |
| class="text-2xl"> | |
| <i class="fas fa-trophy"></i> | |
| </motion.div> | |
| </div> | |
| <div class="bubble-item" data-target="profile"> | |
| <motion.div | |
| whileHover={{ scale: 1.2 }} | |
| whileTap={{ scale: 0.9 }} | |
| transition={{ type: "spring", stiffness: 400, damping: 10 }} | |
| class="text-2xl"> | |
| <i class="fas fa-user"></i> | |
| </motion.div> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <script> | |
| // Bubble menu interaction | |
| const bubbleItems = document.querySelectorAll('.bubble-item'); | |
| bubbleItems.forEach(item => { | |
| item.addEventListener('click', function() { | |
| // Remove active class from all items | |
| bubbleItems.forEach(i => i.classList.remove('active')); | |
| // Add active class to clicked item | |
| this.classList.add('active'); | |
| // Here you would typically load the corresponding content | |
| const target = this.dataset.target; | |
| console.log(`Loading ${target} section...`); | |
| }); | |
| }); | |
| </script> | |
| <!-- Main Content --> | |
| <div class="container mx-auto px-4 py-8"> | |
| <!-- Dashboard Header --> | |
| <div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-8"> | |
| <div> | |
| <h1 class="text-3xl font-bold text-gray-800">Bonjour, Coach</h1> | |
| <p class="text-gray-600">Gérez facilement les présences de votre équipe</p> | |
| </div> | |
| <motion.button | |
| whileHover={{ scale: 1.05 }} | |
| whileTap={{ scale: 0.95 }} | |
| transition={{ type: "spring", stiffness: 400, damping: 10 }} | |
| class="gradient-bg text-white px-6 py-2 rounded-lg shadow hover:shadow-lg mt-4 md:mt-0"> | |
| <i class="fas fa-plus mr-2"></i> Créer un événement | |
| </motion.button> | |
| </div> | |
| <!-- Stats Cards --> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8"> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500">Événements à venir</p> | |
| <h3 class="text-2xl font-bold text-gray-800">3</h3> | |
| </div> | |
| <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center"> | |
| <i class="fas fa-calendar-alt text-purple-600"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500">Taux de réponse moyen</p> | |
| <h3 class="text-2xl font-bold text-gray-800">78%</h3> | |
| </div> | |
| <div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center"> | |
| <i class="fas fa-check-circle text-green-600"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500">Joueurs enregistrés</p> | |
| <h3 class="text-2xl font-bold text-gray-800">15</h3> | |
| </div> | |
| <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center"> | |
| <i class="fas fa-users text-blue-600"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Upcoming Events --> | |
| <div class="mb-8"> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-4">Événements à venir</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> | |
| <!-- Event Card 1 --> | |
| <div class="bg-white rounded-lg shadow-md overflow-hidden event-card transition-all"> | |
| <div class="gradient-bg px-4 py-3 text-white"> | |
| <div class="flex justify-between items-center"> | |
| <span class="font-semibold">Entraînement</span> | |
| <span class="text-sm bg-white text-purple-600 px-2 py-1 rounded">U13 Fury</span> | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Entraînement hebdomadaire</h3> | |
| <p class="text-gray-600 mb-4"><i class="fas fa-calendar-day mr-2"></i> 15 Juin 2023, 18h30</p> | |
| <p class="text-gray-600 mb-4"><i class="fas fa-map-marker-alt mr-2"></i> Stade Municipal</p> | |
| <div class="flex justify-between items-center mb-4"> | |
| <div> | |
| <span class="text-sm text-gray-500">Réponses</span> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-purple-600 h-2.5 rounded-full" style="width: 70%"></div> | |
| </div> | |
| <span class="text-xs text-gray-500">7/10 joueurs</span> | |
| </div> | |
| <div> | |
| <span class="text-sm text-gray-500">Présents</span> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-green-500 h-2.5 rounded-full" style="width: 85%"></div> | |
| </div> | |
| <span class="text-xs text-gray-500">6/7 joueurs</span> | |
| </div> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="text-purple-600 border border-purple-600 px-3 py-1 rounded text-sm hover:bg-purple-50 transition-all"> | |
| <i class="fas fa-eye mr-1"></i> Voir | |
| </button> | |
| <button class="text-white bg-purple-600 px-3 py-1 rounded text-sm hover:bg-purple-700 transition-all"> | |
| <i class="fas fa-share-alt mr-1"></i> Partager | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Event Card 2 --> | |
| <div class="bg-white rounded-lg shadow-md overflow-hidden event-card transition-all"> | |
| <div class="bg-blue-600 px-4 py-3 text-white"> | |
| <div class="flex justify-between items-center"> | |
| <span class="font-semibold">Match</span> | |
| <span class="text-sm bg-white text-blue-600 px-2 py-1 rounded">U13 Fury</span> | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Match amical</h3> | |
| <p class="text-gray-600 mb-4"><i class="fas fa-calendar-day mr-2"></i> 18 Juin 2023, 10h00</p> | |
| <p class="text-gray-600 mb-4"><i class="fas fa-map-marker-alt mr-2"></i> Complexe Sportif</p> | |
| <div class="flex justify-between items-center mb-4"> | |
| <div> | |
| <span class="text-sm text-gray-500">Réponses</span> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-blue-600 h-2.5 rounded-full" style="width: 50%"></div> | |
| </div> | |
| <span class="text-xs text-gray-500">5/10 joueurs</span> | |
| </div> | |
| <div> | |
| <span class="text-sm text-gray-500">Présents</span> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-green-500 h-2.5 rounded-full" style="width: 80%"></div> | |
| </div> | |
| <span class="text-xs text-gray-500">4/5 joueurs</span> | |
| </div> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="text-blue-600 border border-blue-600 px-3 py-1 rounded text-sm hover:bg-blue-50 transition-all"> | |
| <i class="fas fa-eye mr-1"></i> Voir | |
| </button> | |
| <button class="text-white bg-blue-600 px-3 py-1 rounded text-sm hover:bg-blue-700 transition-all"> | |
| <i class="fas fa-share-alt mr-1"></i> Partager | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Event Card 3 --> | |
| <div class="bg-white rounded-lg shadow-md overflow-hidden event-card transition-all"> | |
| <div class="bg-green-600 px-4 py-3 text-white"> | |
| <div class="flex justify-between items-center"> | |
| <span class="font-semibold">Tournoi</span> | |
| <span class="text-sm bg-white text-green-600 px-2 py-1 rounded">U13 Fury</span> | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Tournoi régional</h3> | |
| <p class="text-gray-600 mb-4"><i class="fas fa-calendar-day mr-2"></i> 25 Juin 2023, 08h00</p> | |
| <p class="text-gray-600 mb-4"><i class="fas fa-map-marker-alt mr-2"></i> Stade Régional</p> | |
| <div class="flex justify-between items-center mb-4"> | |
| <div> | |
| <span class="text-sm text-gray-500">Réponses</span> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-green-600 h-2.5 rounded-full" style="width: 30%"></div> | |
| </div> | |
| <span class="text-xs text-gray-500">3/10 joueurs</span> | |
| </div> | |
| <div> | |
| <span class="text-sm text-gray-500">Présents</span> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-green-500 h-2.5 rounded-full" style="width: 100%"></div> | |
| </div> | |
| <span class="text-xs text-gray-500">3/3 joueurs</span> | |
| </div> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="text-green-600 border border-green-600 px-3 py-1 rounded text-sm hover:bg-green-50 transition-all"> | |
| <i class="fas fa-eye mr-1"></i> Voir | |
| </button> | |
| <button class="text-white bg-green-600 px-3 py-1 rounded text-sm hover:bg-green-700 transition-all"> | |
| <i class="fas fa-share-alt mr-1"></i> Partager | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recent Players Responses --> | |
| <div class="mb-8"> | |
| <h2 class="text-2xl font-bold text-gray-800 mb-4">Dernières réponses</h2> | |
| <div class="bg-white rounded-lg shadow overflow-hidden"> | |
| <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">Joueur</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Événement</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">Date</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Commentaire</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-purple-100 flex items-center justify-center"> | |
| <span class="text-purple-600 font-medium">JD</span> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">Jean Dupont</div> | |
| <div class="text-sm text-gray-500">U13 Fury</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="text-sm text-gray-900">Entraînement hebdo</div> | |
| <div class="text-sm text-gray-500">15 Juin, 18h30</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"> | |
| Présent | |
| </span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> | |
| 14 Juin, 19:23 | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> | |
| Je serai en retard de 15min | |
| </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-100 flex items-center justify-center"> | |
| <span class="text-purple-600 font-medium">MB</span> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">Marie Bernard</div> | |
| <div class="text-sm text-gray-500">U13 Fury</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="text-sm text-gray-900">Match amical</div> | |
| <div class="text-sm text-gray-500">18 Juin, 10h00</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-red-100 text-red-800"> | |
| Absent | |
| </span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> | |
| 16 Juin, 21:45 | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> | |
| En vacances | |
| </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-100 flex items-center justify-center"> | |
| <span class="text-purple-600 font-medium">TP</span> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">Thomas Petit</div> | |
| <div class="text-sm text-gray-500">U13 Fury</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="text-sm text-gray-900">Tournoi régional</div> | |
| <div class="text-sm text-gray-500">25 Juin, 08h00</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"> | |
| Présent | |
| </span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> | |
| 17 Juin, 08:12 | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> | |
| - | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Create Event Modal --> | |
| <div class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden" id="create-event-modal"> | |
| <div class="bg-white rounded-lg shadow-xl w-full max-w-md"> | |
| <div class="gradient-bg px-6 py-4 rounded-t-lg flex justify-between items-center"> | |
| <h3 class="text-lg font-semibold text-white">Créer un événement</h3> | |
| <button class="text-white" id="close-modal"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="p-6"> | |
| <form> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 text-sm font-bold mb-2" for="event-type"> | |
| Type d'événement | |
| </label> | |
| <select id="event-type" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"> | |
| <option value="training">Entraînement</option> | |
| <option value="match">Match</option> | |
| <option value="tournament">Tournoi</option> | |
| <option value="other">Autre</option> | |
| </select> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 text-sm font-bold mb-2" for="event-title"> | |
| Titre | |
| </label> | |
| <input id="event-title" type="text" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" placeholder="Ex: Entraînement hebdomadaire"> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4"> | |
| <div> | |
| <label class="block text-gray-700 text-sm font-bold mb-2" for="event-date"> | |
| Date | |
| </label> | |
| <input id="event-date" type="date" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"> | |
| </div> | |
| <div> | |
| <label class="block text-gray-700 text-sm font-bold mb-2" for="event-time"> | |
| Heure | |
| </label> | |
| <input id="event-time" type="time" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"> | |
| </div> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 text-sm font-bold mb-2" for="event-location"> | |
| Lieu | |
| </label> | |
| <input id="event-location" type="text" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" placeholder="Ex: Stade Municipal"> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 text-sm font-bold mb-2" for="event-message"> | |
| Message (optionnel) | |
| </label> | |
| <textarea id="event-message" rows="3" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" placeholder="Ex: N'oubliez pas vos protège-tibias"></textarea> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 text-sm font-bold mb-2" for="event-team"> | |
| Équipe | |
| </label> | |
| <select id="event-team" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"> | |
| <option value="u13fury">U13 Fury</option> | |
| <option value="u15fury">U15 Fury</option> | |
| </select> | |
| </div> | |
| <div class="flex justify-end space-x-3"> | |
| <button type="button" class="text-gray-600 border border-gray-300 px-4 py-2 rounded hover:bg-gray-50 transition-all"> | |
| Annuler | |
| </button> | |
| <button type="submit" class="gradient-bg text-white px-4 py-2 rounded hover:shadow-lg transition-all"> | |
| Créer l'événement | |
| </button> | |
| </div> | |
| </form> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Share Event Modal --> | |
| <div class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden" id="share-event-modal"> | |
| <div class="bg-white rounded-lg shadow-xl w-full max-w-md"> | |
| <div class="gradient-bg px-6 py-4 rounded-t-lg flex justify-between items-center"> | |
| <h3 class="text-lg font-semibold text-white">Partager l'événement</h3> | |
| <button class="text-white" id="close-share-modal"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="p-6"> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 text-sm font-bold mb-2"> | |
| Lien de participation | |
| </label> | |
| <div class="flex"> | |
| <input type="text" id="share-link" class="flex-grow shadow appearance-none border rounded-l py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" value="https://presence.app/evt123" readonly> | |
| <button onclick="copyToClipboard()" class="bg-purple-600 text-white px-4 py-2 rounded-r hover:bg-purple-700 transition-all"> | |
| <i class="fas fa-copy"></i> | |
| </button> | |
| </div> | |
| <p class="text-xs text-gray-500 mt-1">Les joueurs devront entrer le code de l'équipe: <span class="font-bold">u13fury</span></p> | |
| </div> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 text-sm font-bold mb-2"> | |
| QR Code | |
| </label> | |
| <div class="qr-code mx-auto mb-2"> | |
| <i class="fas fa-qrcode text-5xl text-gray-700"></i> | |
| </div> | |
| <p class="text-xs text-gray-500 text-center">Scannez ce code pour accéder directement à la page de réponse</p> | |
| </div> | |
| <div> | |
| <label class="block text-gray-700 text-sm font-bold mb-2"> | |
| Partager via | |
| </label> | |
| <div class="flex justify-center space-x-4"> | |
| <button class="w-10 h-10 rounded-full bg-blue-500 text-white flex items-center justify-center hover:bg-blue-600 transition-all"> | |
| <i class="fab fa-facebook-f"></i> | |
| </button> | |
| <button class="w-10 h-10 rounded-full bg-blue-400 text-white flex items-center justify-center hover:bg-blue-500 transition-all"> | |
| <i class="fab fa-twitter"></i> | |
| </button> | |
| <button class="w-10 h-10 rounded-full bg-green-500 text-white flex items-center justify-center hover:bg-green-600 transition-all"> | |
| <i class="fab fa-whatsapp"></i> | |
| </button> | |
| <button class="w-10 h-10 rounded-full bg-gray-700 text-white flex items-center justify-center hover:bg-gray-800 transition-all"> | |
| <i class="fas fa-envelope"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Mobile menu toggle | |
| document.getElementById('mobile-menu-button').addEventListener('click', function() { | |
| const menu = document.getElementById('mobile-menu'); | |
| menu.classList.toggle('hidden'); | |
| }); | |
| // Create event modal | |
| const createEventBtns = document.querySelectorAll('button:contains("Créer un événement")'); | |
| const createEventModal = document.getElementById('create-event-modal'); | |
| const closeModalBtn = document.getElementById('close-modal'); | |
| createEventBtns.forEach(btn => { | |
| btn.addEventListener('click', function() { | |
| createEventModal.classList.remove('hidden'); | |
| }); | |
| }); | |
| closeModalBtn.addEventListener('click', function() { | |
| createEventModal.classList.add('hidden'); | |
| }); | |
| // Share event modal | |
| const shareEventBtns = document.querySelectorAll('button:contains("Partager")'); | |
| const shareEventModal = document.getElementById('share-event-modal'); | |
| const closeShareModalBtn = document.getElementById('close-share-modal'); | |
| shareEventBtns.forEach(btn => { | |
| btn.addEventListener('click', function() { | |
| shareEventModal.classList.remove('hidden'); | |
| }); | |
| }); | |
| closeShareModalBtn.addEventListener('click', function() { | |
| shareEventModal.classList.add('hidden'); | |
| }); | |
| // Close modals when clicking outside | |
| window.addEventListener('click', function(event) { | |
| if (event.target === createEventModal) { | |
| createEventModal.classList.add('hidden'); | |
| } | |
| if (event.target === shareEventModal) { | |
| shareEventModal.classList.add('hidden'); | |
| } | |
| }); | |
| // Copy to clipboard function | |
| function copyToClipboard() { | |
| const copyText = document.getElementById("share-link"); | |
| copyText.select(); | |
| copyText.setSelectionRange(0, 99999); | |
| document.execCommand("copy"); | |
| // Show tooltip or notification | |
| alert("Lien copié dans le presse-papier!"); | |
| } | |
| </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=JeanPaulFootball/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |