Docfile commited on
Commit
0381e75
·
verified ·
1 Parent(s): 11f615f

Delete templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +0 -243
templates/index.html DELETED
@@ -1,243 +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 pour les textarea de noms d'éléments */
45
- textarea.element-name {
46
- resize: vertical;
47
- min-height: 60px;
48
- }
49
- </style>
50
- </head>
51
- <body class="min-h-screen">
52
- <!-- Loader -->
53
- <div id="loader" class="hidden fixed inset-0 bg-gray-900 bg-opacity-50 flex items-center justify-center z-50">
54
- <div class="flex flex-col items-center">
55
- <div class="animate-spin rounded-full h-16 w-16 border-t-4 border-blue-500"></div>
56
- <p class="mt-4 text-white text-lg">Veuillez patienter...</p>
57
- </div>
58
- </div>
59
-
60
- <!-- Barre de navigation -->
61
- <header class="bg-indigo-700 text-white navbar-shadow fixed w-full top-0 z-50">
62
- <div class="container mx-auto px-4 py-3 flex justify-between items-center">
63
- <div class="flex items-center">
64
- <span class="font-bold text-xl tracking-wider">Mariam Eps</span>
65
- </div>
66
- <div>
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
- <button class="md:hidden focus:outline-none">
74
- <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
75
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7" />
76
- </svg>
77
- </button>
78
- </div>
79
- </div>
80
- </header>
81
-
82
- <!-- Contenu principal -->
83
- <div class="pt-16 pb-8">
84
- <div class="container max-w-4xl mx-auto px-4 mt-8">
85
- <div class="mb-8 text-center animate__animated animate__fadeInDown">
86
- <h1 class="text-3xl md:text-4xl font-bold text-indigo-700 mb-2">Générateur d'évaluation gymnique</h1>
87
- <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>
88
- </div>
89
-
90
- <form method="POST" class="space-y-8 animate__animated animate__fadeIn">
91
- <!-- Card principale -->
92
- <div class="bg-white rounded-xl card-shadow p-6 md:p-8">
93
- <!-- Informations générales -->
94
- <div class="mb-8">
95
- <h2 class="text-xl font-semibold text-indigo-600 mb-4 flex items-center">
96
- <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
97
- <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" />
98
- </svg>
99
- Informations générales
100
- </h2>
101
- <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
102
- <div>
103
- <label for="centre_examen" class="block text-sm font-medium text-gray-700 mb-1">Centre d'examen</label>
104
- <input type="text" id="centre_examen" name="centre_examen" value="Centre d'examen"
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="type_examen" class="block text-sm font-medium text-gray-700 mb-1">Type d'examen</label>
109
- <input type="text" id="type_examen" name="type_examen" value="Bac Général"
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="serie" class="block text-sm font-medium text-gray-700 mb-1">Série</label>
114
- <input type="text" id="serie" name="serie" value="Série"
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="etablissement" class="block text-sm font-medium text-gray-700 mb-1">Établissement</label>
119
- <input type="text" id="etablissement" name="etablissement" value="Établissement"
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="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
- <div>
128
- <label for="nom_candidat" class="block text-sm font-medium text-gray-700 mb-1">Nom du candidat</label>
129
- <input type="text" id="nom_candidat" name="nom_candidat" value="Candidat"
130
- 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">
131
- </div>
132
- </div>
133
- </div>
134
-
135
- <!-- Choix du format de téléchargement -->
136
- <div class="mb-6">
137
- <label class="block text-sm font-medium text-gray-700 mb-1">Choisissez le format de téléchargement :</label>
138
- <div class="flex items-center space-x-4">
139
- <label class="inline-flex items-center">
140
- <input type="radio" name="format" value="docx" checked class="form-radio">
141
- <span class="ml-2">DOCX</span>
142
- </label>
143
- <label class="inline-flex items-center">
144
- <input type="radio" name="format" value="pdf" class="form-radio">
145
- <span class="ml-2">PDF</span>
146
- </label>
147
- </div>
148
- </div>
149
-
150
- <!-- Éléments techniques -->
151
- <div>
152
- <h2 class="text-xl font-semibold text-indigo-600 mb-4 flex items-center">
153
- <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
154
- <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" />
155
- </svg>
156
- Éléments techniques
157
- </h2>
158
- <div id="elements_container" class="space-y-4">
159
- <div class="p-5 bg-gray-50 border border-gray-200 rounded-lg element-card">
160
- <div class="grid grid-cols-1 gap-2">
161
- <div>
162
- <label class="block text-sm font-medium text-gray-700 mb-1">Nom de l'élément</label>
163
- <textarea name="new_element_name" placeholder="Ex : Saut groupé"
164
- 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>
165
- </div>
166
- <div class="grid grid-cols-2 gap-2">
167
- <div>
168
- <label class="block text-sm font-medium text-gray-700 mb-1">Catégorie</label>
169
- <input type="text" name="new_element_categorie" placeholder="Ex : A"
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
- <label class="block text-sm font-medium text-gray-700 mb-1">Points</label>
174
- <input type="text" name="new_element_points" placeholder="Ex : 1.5"
175
- 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">
176
- </div>
177
- </div>
178
- </div>
179
- </div>
180
- </div>
181
- <div class="flex justify-center mt-6">
182
- <button type="button" onclick="addElement()"
183
- class="inline-flex items-center px-4 py-2 bg-indigo-100 text-indigo-700 rounded-lg btn-hover-effect">
184
- <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
185
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6" />
186
- </svg>
187
- Ajouter un autre élément
188
- </button>
189
- </div>
190
- </div>
191
- </div>
192
-
193
- <!-- Bouton de génération -->
194
- <div class="animate__animated animate__fadeInUp">
195
- <button type="submit" value="Générer le document"
196
- 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">
197
- <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
198
- <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" />
199
- </svg>
200
- Générer le document
201
- </button>
202
- </div>
203
- </form>
204
- </div>
205
- </div>
206
-
207
- <script>
208
- // Fonction d'ajout dynamique d'un élément technique
209
- function addElement() {
210
- const container = document.getElementById("elements_container");
211
- const div = document.createElement("div");
212
- div.className = "p-5 bg-gray-50 border border-gray-200 rounded-lg element-card";
213
- div.innerHTML = `
214
- <div class="grid grid-cols-1 gap-2">
215
- <div>
216
- <label class="block text-sm font-medium text-gray-700 mb-1">Nom de l'élément</label>
217
- <textarea name="new_element_name" placeholder="Ex : Saut groupé"
218
- 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>
219
- </div>
220
- <div class="grid grid-cols-2 gap-2">
221
- <div>
222
- <label class="block text-sm font-medium text-gray-700 mb-1">Catégorie</label>
223
- <input type="text" name="new_element_categorie" placeholder="Ex : A"
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
- <label class="block text-sm font-medium text-gray-700 mb-1">Points</label>
228
- <input type="text" name="new_element_points" placeholder="Ex : 1.5"
229
- 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">
230
- </div>
231
- </div>
232
- </div>
233
- `;
234
- container.appendChild(div);
235
- }
236
-
237
- // Affichage du loader dès la soumission du formulaire
238
- document.querySelector('form').addEventListener('submit', function() {
239
- document.getElementById('loader').classList.remove('hidden');
240
- });
241
- </script>
242
- </body>
243
- </html>