Docfile commited on
Commit
fb25e4e
·
verified ·
1 Parent(s): c19caeb

Delete templates/index_v.html

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