File size: 13,904 Bytes
f8bfec6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 |
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Générateur d'évaluation gymnique - Mariam Eps</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/alpinejs/3.13.0/cdn.min.js" defer></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Montserrat', sans-serif;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.card-shadow {
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.input-focus-effect {
transition: all 0.3s ease;
}
.input-focus-effect:focus {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(45, 85, 255, 0.2);
}
.btn-hover-effect {
transition: all 0.3s ease;
}
.btn-hover-effect:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(45, 85, 255, 0.2);
}
.element-card {
transition: all 0.3s ease;
}
.element-card:hover {
transform: translateY(-3px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.navbar-shadow {
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
/* Style pour les textarea de noms d'éléments */
textarea.element-name {
resize: vertical;
min-height: 60px;
}
</style>
</head>
<body class="min-h-screen">
<!-- Loader -->
<div id="loader" class="hidden fixed inset-0 bg-gray-900 bg-opacity-50 flex items-center justify-center z-50">
<div class="flex flex-col items-center">
<div class="animate-spin rounded-full h-16 w-16 border-t-4 border-blue-500"></div>
<p class="mt-4 text-white text-lg">Veuillez patienter...</p>
</div>
</div>
<!-- Barre de navigation -->
<header class="bg-indigo-700 text-white navbar-shadow fixed w-full top-0 z-50">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<div class="flex items-center">
<span class="font-bold text-xl tracking-wider">Mariam Eps</span>
</div>
<div>
<nav class="hidden md:flex space-x-6">
<a href="#" class="hover:text-indigo-200 transition-colors duration-200 font-medium">Accueil</a>
<a href="#" class="hover:text-indigo-200 transition-colors duration-200 font-medium">Évaluations</a>
<a href="#" class="hover:text-indigo-200 transition-colors duration-200 font-medium">Ressources</a>
<a href="#" class="hover:text-indigo-200 transition-colors duration-200 font-medium">Contact</a>
</nav>
<button class="md:hidden focus:outline-none">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7" />
</svg>
</button>
</div>
</div>
</header>
<!-- Contenu principal -->
<div class="pt-16 pb-8">
<div class="container max-w-4xl mx-auto px-4 mt-8">
<div class="mb-8 text-center animate__animated animate__fadeInDown">
<h1 class="text-3xl md:text-4xl font-bold text-indigo-700 mb-2">Générateur d'évaluation gymnique</h1>
<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>
</div>
<form method="POST" class="space-y-8 animate__animated animate__fadeIn">
<!-- Card principale -->
<div class="bg-white rounded-xl card-shadow p-6 md:p-8">
<!-- Informations générales -->
<div class="mb-8">
<h2 class="text-xl font-semibold text-indigo-600 mb-4 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 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" />
</svg>
Informations générales
</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label for="centre_examen" class="block text-sm font-medium text-gray-700 mb-1">Centre d'examen</label>
<input type="text" id="centre_examen" name="centre_examen" value="Centre d'examen"
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">
</div>
<div>
<label for="type_examen" class="block text-sm font-medium text-gray-700 mb-1">Type d'examen</label>
<input type="text" id="type_examen" name="type_examen" value="Bac Général"
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">
</div>
<div>
<label for="serie" class="block text-sm font-medium text-gray-700 mb-1">Série</label>
<input type="text" id="serie" name="serie" value="Série"
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">
</div>
<div>
<label for="etablissement" class="block text-sm font-medium text-gray-700 mb-1">Établissement</label>
<input type="text" id="etablissement" name="etablissement" value="Établissement"
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">
</div>
<div>
<label for="session" class="block text-sm font-medium text-gray-700 mb-1">Session</label>
<input type="text" id="session" name="session" value="2025"
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">
</div>
<div>
<label for="nom_candidat" class="block text-sm font-medium text-gray-700 mb-1">Nom du candidat</label>
<input type="text" id="nom_candidat" name="nom_candidat" value="Candidat"
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">
</div>
</div>
</div>
<!-- Choix du format de téléchargement -->
<div class="mb-6">
<label class="block text-sm font-medium text-gray-700 mb-1">Choisissez le format de téléchargement :</label>
<div class="flex items-center space-x-4">
<label class="inline-flex items-center">
<input type="radio" name="format" value="docx" checked class="form-radio">
<span class="ml-2">DOCX</span>
</label>
<label class="inline-flex items-center">
<input type="radio" name="format" value="pdf" class="form-radio">
<span class="ml-2">PDF</span>
</label>
</div>
</div>
<!-- Éléments techniques -->
<div>
<h2 class="text-xl font-semibold text-indigo-600 mb-4 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2" />
</svg>
Éléments techniques
</h2>
<div id="elements_container" class="space-y-4">
<div class="p-5 bg-gray-50 border border-gray-200 rounded-lg element-card">
<div class="grid grid-cols-1 gap-2">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Nom de l'élément</label>
<textarea name="new_element_name" placeholder="Ex : Saut groupé"
class="element-name 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"></textarea>
</div>
<div class="grid grid-cols-2 gap-2">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Catégorie</label>
<input type="text" name="new_element_categorie" placeholder="Ex : A"
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">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Points</label>
<input type="text" inputmode="decimal" pattern="^\d+(\.\d+)?$" name="new_element_points" placeholder="Ex : 1.5"
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">
</div>
</div>
</div>
</div>
</div>
<div class="flex justify-center mt-6">
<button type="button" onclick="addElement()"
class="inline-flex items-center px-4 py-2 bg-indigo-100 text-indigo-700 rounded-lg btn-hover-effect">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6" />
</svg>
Ajouter un autre élément
</button>
</div>
</div>
</div>
<!-- Bouton de génération -->
<div class="animate__animated animate__fadeInUp">
<button type="submit" value="Générer le document"
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">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<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" />
</svg>
Générer le document
</button>
</div>
</form>
</div>
</div>
<script>
</script>
</body>
</html> |