Update templates/index.html
Browse files- templates/index.html +57 -56
templates/index.html
CHANGED
|
@@ -59,24 +59,24 @@
|
|
| 59 |
<span class="font-bold text-xl tracking-wider">Mariam Eps</span>
|
| 60 |
</div>
|
| 61 |
<div>
|
| 62 |
-
<button class="md:hidden focus:outline-none">
|
| 63 |
-
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 64 |
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7" />
|
| 65 |
-
</svg>
|
| 66 |
-
</button>
|
| 67 |
<nav class="hidden md:flex space-x-6">
|
| 68 |
<a href="#" class="hover:text-indigo-200 transition-colors duration-200 font-medium">Accueil</a>
|
| 69 |
<a href="#" class="hover:text-indigo-200 transition-colors duration-200 font-medium">Évaluations</a>
|
| 70 |
<a href="#" class="hover:text-indigo-200 transition-colors duration-200 font-medium">Ressources</a>
|
| 71 |
<a href="#" class="hover:text-indigo-200 transition-colors duration-200 font-medium">Contact</a>
|
| 72 |
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
</div>
|
| 74 |
</div>
|
| 75 |
</header>
|
| 76 |
|
| 77 |
<!-- Contenu principal (avec espacement pour la barre de navigation) -->
|
| 78 |
<div class="pt-16 pb-8">
|
| 79 |
-
<div class="container max-w-4xl mx-auto px-4 mt-8"
|
| 80 |
<div class="mb-8 text-center animate__animated animate__fadeInDown">
|
| 81 |
<h1 class="text-3xl md:text-4xl font-bold text-indigo-700 mb-2">Générateur d'évaluation gymnique</h1>
|
| 82 |
<p class="text-gray-600 max-w-2xl mx-auto">Créez facilement des documents d'évaluation personnalisés pour vos examens de gymnastique</p>
|
|
@@ -97,43 +97,37 @@
|
|
| 97 |
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 98 |
<div>
|
| 99 |
<label for="centre_examen" class="block text-sm font-medium text-gray-700 mb-1">Centre d'examen</label>
|
| 100 |
-
<input type="text" id="centre_examen" name="centre_examen"
|
| 101 |
class="w-full px-4 py-2 bg-gray-50 border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 102 |
</div>
|
| 103 |
|
| 104 |
<div>
|
| 105 |
<label for="type_examen" class="block text-sm font-medium text-gray-700 mb-1">Type d'examen</label>
|
| 106 |
-
<
|
| 107 |
-
|
| 108 |
-
<option value="Bac Général">Bac Général</option>
|
| 109 |
-
<option value="Bac Technologique">Bac Technologique</option>
|
| 110 |
-
<option value="Bac Professionnel">Bac Professionnel</option>
|
| 111 |
-
<option value="Brevet">Brevet</option>
|
| 112 |
-
<option value="Autre">Autre</option>
|
| 113 |
-
</select>
|
| 114 |
</div>
|
| 115 |
|
| 116 |
<div>
|
| 117 |
<label for="serie" class="block text-sm font-medium text-gray-700 mb-1">Série</label>
|
| 118 |
-
<input type="text" id="serie" name="serie"
|
| 119 |
class="w-full px-4 py-2 bg-gray-50 border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 120 |
</div>
|
| 121 |
|
| 122 |
<div>
|
| 123 |
<label for="etablissement" class="block text-sm font-medium text-gray-700 mb-1">Établissement</label>
|
| 124 |
-
<input type="text" id="etablissement" name="etablissement"
|
| 125 |
class="w-full px-4 py-2 bg-gray-50 border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 126 |
</div>
|
| 127 |
|
| 128 |
<div>
|
| 129 |
<label for="session" class="block text-sm font-medium text-gray-700 mb-1">Session</label>
|
| 130 |
-
<input type="text" id="session" name="session"
|
| 131 |
class="w-full px-4 py-2 bg-gray-50 border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 132 |
</div>
|
| 133 |
|
| 134 |
<div>
|
| 135 |
<label for="nom_candidat" class="block text-sm font-medium text-gray-700 mb-1">Nom du candidat</label>
|
| 136 |
-
<input type="text" id="nom_candidat" name="nom_candidat"
|
| 137 |
class="w-full px-4 py-2 bg-gray-50 border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 138 |
</div>
|
| 139 |
</div>
|
|
@@ -149,55 +143,31 @@
|
|
| 149 |
</h2>
|
| 150 |
|
| 151 |
<div id="elements_container" class="space-y-4">
|
| 152 |
-
<
|
| 153 |
-
<div class="
|
| 154 |
-
<div
|
| 155 |
-
<
|
| 156 |
-
<
|
| 157 |
-
|
| 158 |
-
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 159 |
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
|
| 160 |
-
</svg>
|
| 161 |
-
</button>
|
| 162 |
</div>
|
| 163 |
-
|
| 164 |
-
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
| 165 |
-
<div class="md:col-span-2">
|
| 166 |
-
<label class="block text-sm font-medium text-gray-700 mb-1">Nom de l'élément</label>
|
| 167 |
-
<input type="text" name="element_name[]" placeholder="Ex : Saut groupé"
|
| 168 |
-
class="w-full px-4 py-2 bg-white border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 169 |
-
</div>
|
| 170 |
-
|
| 171 |
<div>
|
| 172 |
<label class="block text-sm font-medium text-gray-700 mb-1">Catégorie</label>
|
| 173 |
-
<
|
| 174 |
-
class="w-full px-4 py-2 bg-white border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 175 |
-
<option value="A">A</option>
|
| 176 |
-
<option value="B">B</option>
|
| 177 |
-
<option value="C">C</option>
|
| 178 |
-
<option value="D">D</option>
|
| 179 |
-
<option value="E">E</option>
|
| 180 |
-
</select>
|
| 181 |
-
</div>
|
| 182 |
-
|
| 183 |
-
<div class="md:col-span-2">
|
| 184 |
-
<label class="block text-sm font-medium text-gray-700 mb-1">Description</label>
|
| 185 |
-
<input type="text" name="element_description[]" placeholder="Description de l'élément"
|
| 186 |
class="w-full px-4 py-2 bg-white border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 187 |
</div>
|
| 188 |
-
|
| 189 |
<div>
|
| 190 |
<label class="block text-sm font-medium text-gray-700 mb-1">Points</label>
|
| 191 |
-
<input type="
|
| 192 |
class="w-full px-4 py-2 bg-white border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 193 |
</div>
|
| 194 |
</div>
|
| 195 |
</div>
|
| 196 |
-
</
|
| 197 |
</div>
|
| 198 |
|
| 199 |
<div class="flex justify-center mt-6">
|
| 200 |
-
<button type="button"
|
| 201 |
class="inline-flex items-center px-4 py-2 bg-indigo-100 text-indigo-700 rounded-lg btn-hover-effect">
|
| 202 |
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 203 |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6" />
|
|
@@ -210,16 +180,47 @@
|
|
| 210 |
|
| 211 |
<!-- Bouton de génération -->
|
| 212 |
<div class="animate__animated animate__fadeInUp">
|
| 213 |
-
<button type="submit"
|
| 214 |
class="w-full py-3 px-6 bg-gradient-to-r from-indigo-600 to-blue-500 text-white font-medium rounded-lg btn-hover-effect flex items-center justify-center">
|
| 215 |
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 216 |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
|
| 217 |
</svg>
|
| 218 |
-
Générer le document
|
| 219 |
</button>
|
| 220 |
</div>
|
| 221 |
</form>
|
| 222 |
</div>
|
| 223 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 224 |
</body>
|
| 225 |
</html>
|
|
|
|
| 59 |
<span class="font-bold text-xl tracking-wider">Mariam Eps</span>
|
| 60 |
</div>
|
| 61 |
<div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
<nav class="hidden md:flex space-x-6">
|
| 63 |
<a href="#" class="hover:text-indigo-200 transition-colors duration-200 font-medium">Accueil</a>
|
| 64 |
<a href="#" class="hover:text-indigo-200 transition-colors duration-200 font-medium">Évaluations</a>
|
| 65 |
<a href="#" class="hover:text-indigo-200 transition-colors duration-200 font-medium">Ressources</a>
|
| 66 |
<a href="#" class="hover:text-indigo-200 transition-colors duration-200 font-medium">Contact</a>
|
| 67 |
</nav>
|
| 68 |
+
<button class="md:hidden focus:outline-none">
|
| 69 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 70 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7" />
|
| 71 |
+
</svg>
|
| 72 |
+
</button>
|
| 73 |
</div>
|
| 74 |
</div>
|
| 75 |
</header>
|
| 76 |
|
| 77 |
<!-- Contenu principal (avec espacement pour la barre de navigation) -->
|
| 78 |
<div class="pt-16 pb-8">
|
| 79 |
+
<div class="container max-w-4xl mx-auto px-4 mt-8">
|
| 80 |
<div class="mb-8 text-center animate__animated animate__fadeInDown">
|
| 81 |
<h1 class="text-3xl md:text-4xl font-bold text-indigo-700 mb-2">Générateur d'évaluation gymnique</h1>
|
| 82 |
<p class="text-gray-600 max-w-2xl mx-auto">Créez facilement des documents d'évaluation personnalisés pour vos examens de gymnastique</p>
|
|
|
|
| 97 |
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 98 |
<div>
|
| 99 |
<label for="centre_examen" class="block text-sm font-medium text-gray-700 mb-1">Centre d'examen</label>
|
| 100 |
+
<input type="text" id="centre_examen" name="centre_examen" value="Centre d'examen"
|
| 101 |
class="w-full px-4 py-2 bg-gray-50 border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 102 |
</div>
|
| 103 |
|
| 104 |
<div>
|
| 105 |
<label for="type_examen" class="block text-sm font-medium text-gray-700 mb-1">Type d'examen</label>
|
| 106 |
+
<input type="text" id="type_examen" name="type_examen" value="Bac Général"
|
| 107 |
+
class="w-full px-4 py-2 bg-gray-50 border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
</div>
|
| 109 |
|
| 110 |
<div>
|
| 111 |
<label for="serie" class="block text-sm font-medium text-gray-700 mb-1">Série</label>
|
| 112 |
+
<input type="text" id="serie" name="serie" value="Série"
|
| 113 |
class="w-full px-4 py-2 bg-gray-50 border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 114 |
</div>
|
| 115 |
|
| 116 |
<div>
|
| 117 |
<label for="etablissement" class="block text-sm font-medium text-gray-700 mb-1">Établissement</label>
|
| 118 |
+
<input type="text" id="etablissement" name="etablissement" value="Établissement"
|
| 119 |
class="w-full px-4 py-2 bg-gray-50 border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 120 |
</div>
|
| 121 |
|
| 122 |
<div>
|
| 123 |
<label for="session" class="block text-sm font-medium text-gray-700 mb-1">Session</label>
|
| 124 |
+
<input type="text" id="session" name="session" value="2025"
|
| 125 |
class="w-full px-4 py-2 bg-gray-50 border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 126 |
</div>
|
| 127 |
|
| 128 |
<div>
|
| 129 |
<label for="nom_candidat" class="block text-sm font-medium text-gray-700 mb-1">Nom du candidat</label>
|
| 130 |
+
<input type="text" id="nom_candidat" name="nom_candidat" value="Candidat"
|
| 131 |
class="w-full px-4 py-2 bg-gray-50 border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 132 |
</div>
|
| 133 |
</div>
|
|
|
|
| 143 |
</h2>
|
| 144 |
|
| 145 |
<div id="elements_container" class="space-y-4">
|
| 146 |
+
<div class="p-5 bg-gray-50 border border-gray-200 rounded-lg element-card">
|
| 147 |
+
<div class="grid grid-cols-1 gap-2">
|
| 148 |
+
<div>
|
| 149 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Nom de l'élément</label>
|
| 150 |
+
<input type="text" name="new_element_name" placeholder="Ex : Saut groupé"
|
| 151 |
+
class="w-full px-4 py-2 bg-white border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
</div>
|
| 153 |
+
<div class="grid grid-cols-2 gap-2">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
<div>
|
| 155 |
<label class="block text-sm font-medium text-gray-700 mb-1">Catégorie</label>
|
| 156 |
+
<input type="text" name="new_element_categorie" placeholder="Ex : A"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
class="w-full px-4 py-2 bg-white border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 158 |
</div>
|
|
|
|
| 159 |
<div>
|
| 160 |
<label class="block text-sm font-medium text-gray-700 mb-1">Points</label>
|
| 161 |
+
<input type="text" name="new_element_points" placeholder="Ex : 1.5"
|
| 162 |
class="w-full px-4 py-2 bg-white border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 163 |
</div>
|
| 164 |
</div>
|
| 165 |
</div>
|
| 166 |
+
</div>
|
| 167 |
</div>
|
| 168 |
|
| 169 |
<div class="flex justify-center mt-6">
|
| 170 |
+
<button type="button" onclick="addElement()"
|
| 171 |
class="inline-flex items-center px-4 py-2 bg-indigo-100 text-indigo-700 rounded-lg btn-hover-effect">
|
| 172 |
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 173 |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6" />
|
|
|
|
| 180 |
|
| 181 |
<!-- Bouton de génération -->
|
| 182 |
<div class="animate__animated animate__fadeInUp">
|
| 183 |
+
<button type="submit" value="Générer le document"
|
| 184 |
class="w-full py-3 px-6 bg-gradient-to-r from-indigo-600 to-blue-500 text-white font-medium rounded-lg btn-hover-effect flex items-center justify-center">
|
| 185 |
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 186 |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
|
| 187 |
</svg>
|
| 188 |
+
Générer le document
|
| 189 |
</button>
|
| 190 |
</div>
|
| 191 |
</form>
|
| 192 |
</div>
|
| 193 |
</div>
|
| 194 |
+
|
| 195 |
+
<script>
|
| 196 |
+
// Fonction d'ajout dynamique d'un élément technique
|
| 197 |
+
function addElement() {
|
| 198 |
+
const container = document.getElementById("elements_container");
|
| 199 |
+
const div = document.createElement("div");
|
| 200 |
+
div.className = "p-5 bg-gray-50 border border-gray-200 rounded-lg element-card";
|
| 201 |
+
div.innerHTML = `
|
| 202 |
+
<div class="grid grid-cols-1 gap-2">
|
| 203 |
+
<div>
|
| 204 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Nom de l'élément</label>
|
| 205 |
+
<input type="text" name="new_element_name" placeholder="Ex : Saut groupé"
|
| 206 |
+
class="w-full px-4 py-2 bg-white border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 207 |
+
</div>
|
| 208 |
+
<div class="grid grid-cols-2 gap-2">
|
| 209 |
+
<div>
|
| 210 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Catégorie</label>
|
| 211 |
+
<input type="text" name="new_element_categorie" placeholder="Ex : A"
|
| 212 |
+
class="w-full px-4 py-2 bg-white border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 213 |
+
</div>
|
| 214 |
+
<div>
|
| 215 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Points</label>
|
| 216 |
+
<input type="text" name="new_element_points" placeholder="Ex : 1.5"
|
| 217 |
+
class="w-full px-4 py-2 bg-white border border-gray-200 rounded-lg input-focus-effect focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
|
| 218 |
+
</div>
|
| 219 |
+
</div>
|
| 220 |
+
</div>
|
| 221 |
+
`;
|
| 222 |
+
container.appendChild(div);
|
| 223 |
+
}
|
| 224 |
+
</script>
|
| 225 |
</body>
|
| 226 |
</html>
|