-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathok.html
More file actions
735 lines (682 loc) · 39 KB
/
ok.html
File metadata and controls
735 lines (682 loc) · 39 KB
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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Élections - SIGMA ALUMNI</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
:root {
--primary-blue: #2563eb;
--secondary-gold: #d4af37;
--dark-blue: #1e3a8a;
--light-gray: #f8fafc;
}
body {
font-family: 'Segoe UI', Roboto, sans-serif;
background-color: #f5f7fa;
}
.election-card {
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
border-left: 4px solid var(--primary-blue);
}
.election-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.candidate-card {
border-radius: 12px;
overflow: hidden;
transition: all 0.3s ease;
}
.candidate-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.vote-btn {
background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
transition: all 0.3s ease;
}
.vote-btn:hover {
transform: scale(1.02);
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.nav-tab {
position: relative;
padding-bottom: 8px;
}
.nav-tab.active::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 3px;
background-color: var(--secondary-gold);
}
.progress-bar {
height: 8px;
border-radius: 4px;
background-color: #e2e8f0;
}
.progress-fill {
height: 100%;
border-radius: 4px;
background: linear-gradient(90deg, var(--primary-blue), var(--secondary-gold));
}
.timeline-item {
position: relative;
padding-left: 30px;
margin-bottom: 20px;
}
.timeline-item::before {
content: '';
position: absolute;
left: 8px;
top: 0;
height: 100%;
width: 2px;
background-color: var(--primary-blue);
}
.timeline-dot {
position: absolute;
left: 0;
top: 0;
width: 18px;
height: 18px;
border-radius: 50%;
background-color: var(--secondary-gold);
border: 3px solid white;
box-shadow: 0 0 0 2px var(--primary-blue);
}
</style>
</head>
<body class="bg-gray-50">
<!-- Header -->
<header class="bg-white shadow-sm">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<img src="https://via.placeholder.com/40" alt="Logo SIGMA" class="h-10">
<span class="text-xl font-semibold text-gray-800">SIGMA ALUMNI</span>
</div>
<nav class="flex items-center space-x-6">
<a href="dashboard.php" class="text-gray-600 hover:text-blue-600 transition">
<i class="fas fa-home mr-1"></i> Accueil
</a>
<div class="relative">
<button class="flex items-center space-x-1 text-gray-600 hover:text-blue-600">
<img src="https://via.placeholder.com/30" alt="Profil" class="rounded-full h-8 w-8">
<span>Jean Dupont</span>
</button>
</div>
</nav>
</div>
</header>
<!-- Election Navigation -->
<div class="bg-white shadow-sm sticky top-0 z-10">
<div class="container mx-auto px-4">
<div class="flex space-x-8 border-b border-gray-200">
<a href="#campaign" class="nav-tab py-4 text-gray-600 hover:text-blue-600 font-medium active">
<i class="fas fa-bullhorn mr-2"></i>Campagne
</a>
<a href="#vote" class="nav-tab py-4 text-gray-600 hover:text-blue-600 font-medium">
<i class="fas fa-vote-yea mr-2"></i>Vote
</a>
<a href="#results" class="nav-tab py-4 text-gray-600 hover:text-blue-600 font-medium">
<i class="fas fa-chart-bar mr-2"></i>Résultats
</a>
</div>
</div>
</div>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<!-- Election Status Banner -->
<div class="bg-gradient-to-r from-blue-600 to-blue-800 text-white rounded-xl p-6 mb-8 shadow-lg">
<div class="flex flex-col md:flex-row justify-between items-start md:items-center">
<div>
<h2 class="text-2xl font-bold mb-2">Élections du Bureau 2023</h2>
<p class="mb-4">Participez à l'élection des nouveaux membres du bureau de SIGMA ALUMNI</p>
<div class="flex items-center space-x-4 mb-4">
<div>
<div class="text-sm font-medium">Début: <span class="font-bold">15/06/2023</span></div>
<div class="text-sm font-medium">Fin: <span class="font-bold">30/06/2023</span></div>
</div>
<div class="bg-blue-500 text-white px-3 py-1 rounded-full text-sm font-semibold">
Période de Vote
</div>
</div>
<div class="w-full bg-blue-200 rounded-full h-2.5">
<div class="bg-yellow-400 h-2.5 rounded-full" style="width: 65%"></div>
</div>
<div class="text-xs mt-1 text-blue-100">65% du temps écoulé</div>
</div>
<div class="bg-white/20 rounded-lg p-4 mt-4 md:mt-0">
<h3 class="font-bold mb-2 text-yellow-300">Calendrier</h3>
<div class="space-y-4">
<div class="timeline-item">
<div class="timeline-dot"></div>
<div>
<div class="font-medium">1-14 juin</div>
<div class="text-sm">Période de campagne</div>
</div>
</div>
<div class="timeline-item">
<div class="timeline-dot"></div>
<div>
<div class="font-medium">15-30 juin</div>
<div class="text-sm">Période de vote</div>
</div>
</div>
<div class="timeline-item">
<div class="timeline-dot"></div>
<div>
<div class="font-medium">1 juillet</div>
<div class="text-sm">Publication des résultats</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Campaign Section -->
<section id="campaign" class="section active">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-800">
<i class="fas fa-bullhorn text-blue-600 mr-2"></i>Candidats
</h2>
<div class="flex items-center space-x-4">
<div class="relative">
<select class="appearance-none bg-white border border-gray-300 rounded-lg pl-4 pr-8 py-2 text-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500">
<option>Tous les postes</option>
<option>Président</option>
<option>Vice-Président</option>
<option>Secrétaire Général</option>
<option>Trésorier</option>
</select>
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
<i class="fas fa-chevron-down"></i>
</div>
</div>
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg transition flex items-center">
<i class="fas fa-search mr-2"></i> Rechercher
</button>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Candidate Card 1 -->
<div class="candidate-card bg-white rounded-xl shadow-md overflow-hidden">
<div class="relative">
<img src="https://via.placeholder.com/600x300" alt="Candidat" class="w-full h-48 object-cover">
<div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-4">
<h3 class="text-xl font-bold text-white">Marie Lambert</h3>
<span class="text-yellow-300 font-medium">Président</span>
</div>
</div>
<div class="p-6">
<div class="flex items-center mb-4">
<img src="https://via.placeholder.com/60" alt="Photo profil" class="rounded-full h-12 w-12 border-2 border-blue-500">
<div class="ml-3">
<div class="font-medium">Promo 2015</div>
<div class="text-sm text-gray-500">Sciences Politiques</div>
</div>
</div>
<p class="text-gray-600 mb-4 line-clamp-3">Engagée pour renforcer les liens entre les anciens et développer des partenariats stratégiques pour notre association...</p>
<div class="flex space-x-2">
<button class="flex-1 bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-lg transition flex items-center justify-center">
<i class="fas fa-play mr-2"></i> Vidéo
</button>
<button class="flex-1 bg-gray-100 hover:bg-gray-200 text-gray-800 py-2 px-4 rounded-lg transition flex items-center justify-center">
<i class="fas fa-user mr-2"></i> Profil
</button>
</div>
</div>
</div>
<!-- Candidate Card 2 -->
<div class="candidate-card bg-white rounded-xl shadow-md overflow-hidden">
<div class="relative">
<img src="https://via.placeholder.com/600x300" alt="Candidat" class="w-full h-48 object-cover">
<div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-4">
<h3 class="text-xl font-bold text-white">Thomas Durand</h3>
<span class="text-yellow-300 font-medium">Trésorier</span>
</div>
</div>
<div class="p-6">
<div class="flex items-center mb-4">
<img src="https://via.placeholder.com/60" alt="Photo profil" class="rounded-full h-12 w-12 border-2 border-blue-500">
<div class="ml-3">
<div class="font-medium">Promo 2018</div>
<div class="text-sm text-gray-500">Finance</div>
</div>
</div>
<p class="text-gray-600 mb-4 line-clamp-3">Mon objectif est de garantir une gestion transparente et efficace des ressources de l'association tout en développant de nouveaux...</p>
<div class="flex space-x-2">
<button class="flex-1 bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-lg transition flex items-center justify-center">
<i class="fas fa-play mr-2"></i> Vidéo
</button>
<button class="flex-1 bg-gray-100 hover:bg-gray-200 text-gray-800 py-2 px-4 rounded-lg transition flex items-center justify-center">
<i class="fas fa-user mr-2"></i> Profil
</button>
</div>
</div>
</div>
<!-- Candidate Card 3 -->
<div class="candidate-card bg-white rounded-xl shadow-md overflow-hidden">
<div class="relative">
<img src="https://via.placeholder.com/600x300" alt="Candidat" class="w-full h-48 object-cover">
<div class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-4">
<h3 class="text-xl font-bold text-white">Sophie Martin</h3>
<span class="text-yellow-300 font-medium">Secrétaire Général</span>
</div>
</div>
<div class="p-6">
<div class="flex items-center mb-4">
<img src="https://via.placeholder.com/60" alt="Photo profil" class="rounded-full h-12 w-12 border-2 border-blue-500">
<div class="ml-3">
<div class="font-medium">Promo 2016</div>
<div class="text-sm text-gray-500">Communication</div>
</div>
</div>
<p class="text-gray-600 mb-4 line-clamp-3">Je souhaite mettre mes compétences en communication au service de l'association pour améliorer notre visibilité et notre...</p>
<div class="flex space-x-2">
<button class="flex-1 bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-lg transition flex items-center justify-center">
<i class="fas fa-play mr-2"></i> Vidéo
</button>
<button class="flex-1 bg-gray-100 hover:bg-gray-200 text-gray-800 py-2 px-4 rounded-lg transition flex items-center justify-center">
<i class="fas fa-user mr-2"></i> Profil
</button>
</div>
</div>
</div>
</div>
<!-- Pagination -->
<div class="flex justify-center mt-8">
<nav class="inline-flex rounded-md shadow">
<a href="#" class="px-3 py-2 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-50">
<i class="fas fa-chevron-left"></i>
</a>
<a href="#" class="px-3 py-2 border-t border-b border-gray-300 bg-white text-blue-600 font-medium">1</a>
<a href="#" class="px-3 py-2 border-t border-b border-gray-300 bg-white text-gray-500 hover:text-blue-600">2</a>
<a href="#" class="px-3 py-2 border-t border-b border-gray-300 bg-white text-gray-500 hover:text-blue-600">3</a>
<a href="#" class="px-3 py-2 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-50">
<i class="fas fa-chevron-right"></i>
</a>
</nav>
</div>
</section>
<!-- Vote Section -->
<section id="vote" class="section hidden">
<div class="bg-white rounded-xl shadow-md overflow-hidden mb-8">
<div class="p-6">
<h2 class="text-2xl font-bold text-gray-800 mb-4">
<i class="fas fa-vote-yea text-blue-600 mr-2"></i>Formulaire de Vote
</h2>
<div class="bg-blue-50 border-l-4 border-blue-500 p-4 mb-6">
<div class="flex">
<div class="flex-shrink-0">
<i class="fas fa-info-circle text-blue-500"></i>
</div>
<div class="ml-3">
<p class="text-sm text-blue-700">
Vous ne pouvez voter qu'une seule fois pour chaque poste. Une fois votre vote soumis, vous ne pourrez plus le modifier.
</p>
</div>
</div>
</div>
<!-- President Position -->
<div class="mb-8">
<h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
<span class="bg-blue-600 text-white rounded-full w-8 h-8 flex items-center justify-center mr-3">1</span>
Président
</h3>
<div class="space-y-4">
<!-- Candidate Option 1 -->
<label class="flex items-center space-x-4 p-4 border border-gray-200 rounded-lg hover:border-blue-400 cursor-pointer">
<input type="radio" name="president" class="h-5 w-5 text-blue-600 focus:ring-blue-500 border-gray-300">
<div class="flex items-center space-x-3">
<img src="https://via.placeholder.com/50" alt="Candidat" class="rounded-full h-10 w-10">
<div>
<div class="font-medium">Marie Lambert</div>
<div class="text-sm text-gray-500">Promo 2015 - Sciences Politiques</div>
</div>
</div>
</label>
<!-- Candidate Option 2 -->
<label class="flex items-center space-x-4 p-4 border border-gray-200 rounded-lg hover:border-blue-400 cursor-pointer">
<input type="radio" name="president" class="h-5 w-5 text-blue-600 focus:ring-blue-500 border-gray-300">
<div class="flex items-center space-x-3">
<img src="https://via.placeholder.com/50" alt="Candidat" class="rounded-full h-10 w-10">
<div>
<div class="font-medium">Paul Lefèvre</div>
<div class="text-sm text-gray-500">Promo 2017 - Droit International</div>
</div>
</div>
</label>
<!-- Blank Vote Option -->
<label class="flex items-center space-x-4 p-4 border border-gray-200 rounded-lg hover:border-blue-400 cursor-pointer">
<input type="radio" name="president" class="h-5 w-5 text-blue-600 focus:ring-blue-500 border-gray-300">
<div class="flex items-center space-x-3 text-gray-500">
<div class="rounded-full h-10 w-10 border-2 border-gray-300 flex items-center justify-center">
<i class="fas fa-ban"></i>
</div>
<div>
<div class="font-medium">Vote blanc</div>
<div class="text-sm">Je ne souhaite pas voter pour ce poste</div>
</div>
</div>
</label>
</div>
</div>
<!-- Treasurer Position -->
<div class="mb-8">
<h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
<span class="bg-blue-600 text-white rounded-full w-8 h-8 flex items-center justify-center mr-3">2</span>
Trésorier
</h3>
<div class="space-y-4">
<!-- Candidate Option 1 -->
<label class="flex items-center space-x-4 p-4 border border-gray-200 rounded-lg hover:border-blue-400 cursor-pointer">
<input type="radio" name="treasurer" class="h-5 w-5 text-blue-600 focus:ring-blue-500 border-gray-300">
<div class="flex items-center space-x-3">
<img src="https://via.placeholder.com/50" alt="Candidat" class="rounded-full h-10 w-10">
<div>
<div class="font-medium">Thomas Durand</div>
<div class="text-sm text-gray-500">Promo 2018 - Finance</div>
</div>
</div>
</label>
<!-- Candidate Option 2 -->
<label class="flex items-center space-x-4 p-4 border border-gray-200 rounded-lg hover:border-blue-400 cursor-pointer">
<input type="radio" name="treasurer" class="h-5 w-5 text-blue-600 focus:ring-blue-500 border-gray-300">
<div class="flex items-center space-x-3">
<img src="https://via.placeholder.com/50" alt="Candidat" class="rounded-full h-10 w-10">
<div>
<div class="font-medium">Élodie Petit</div>
<div class="text-sm text-gray-500">Promo 2019 - Comptabilité</div>
</div>
</div>
</label>
<!-- Blank Vote Option -->
<label class="flex items-center space-x-4 p-4 border border-gray-200 rounded-lg hover:border-blue-400 cursor-pointer">
<input type="radio" name="treasurer" class="h-5 w-5 text-blue-600 focus:ring-blue-500 border-gray-300">
<div class="flex items-center space-x-3 text-gray-500">
<div class="rounded-full h-10 w-10 border-2 border-gray-300 flex items-center justify-center">
<i class="fas fa-ban"></i>
</div>
<div>
<div class="font-medium">Vote blanc</div>
<div class="text-sm">Je ne souhaite pas voter pour ce poste</div>
</div>
</div>
</label>
</div>
</div>
<!-- Submit Button -->
<div class="mt-8">
<button id="submitVoteBtn" class="vote-btn w-full py-3 px-6 rounded-lg text-white font-bold text-lg flex items-center justify-center">
<i class="fas fa-paper-plane mr-2"></i> Soumettre mon vote
</button>
</div>
</div>
</div>
<!-- Vote Confirmation Modal -->
<div id="voteModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-xl p-6 max-w-md w-full mx-4">
<div class="flex justify-between items-center mb-4">
<h3 class="text-xl font-bold text-gray-800">Confirmer votre vote</h3>
<button id="closeModalBtn" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<p class="text-gray-600 mb-6">Vous êtes sur le point de soumettre définitivement votre vote. Voulez-vous vraiment continuer ?</p>
<div class="flex justify-end space-x-3">
<button id="cancelVoteBtn" class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50">
Annuler
</button>
<button id="confirmVoteBtn" class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700">
Confirmer
</button>
</div>
</div>
</div>
</section>
<!-- Results Section -->
<section id="results" class="section hidden">
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="p-6">
<h2 class="text-2xl font-bold text-gray-800 mb-6">
<i class="fas fa-chart-bar text-blue-600 mr-2"></i>Résultats des Élections
</h2>
<div class="bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-6">
<div class="flex">
<div class="flex-shrink-0">
<i class="fas fa-exclamation-circle text-yellow-500"></i>
</div>
<div class="ml-3">
<p class="text-sm text-yellow-700">
Les résultats seront disponibles dès la fin de la période de vote et après validation par le bureau.
</p>
</div>
</div>
</div>
<!-- Results Placeholder -->
<div class="text-center py-12">
<i class="fas fa-lock text-gray-300 text-5xl mb-4"></i>
<h3 class="text-xl font-medium text-gray-500">Résultats indisponibles pour le moment</h3>
<p class="text-gray-400 mt-2">Les résultats seront publiés après le 30 juin 2023.</p>
</div>
<!-- Example of how results would display (hidden by default) -->
<div class="hidden">
<!-- President Results -->
<div class="mb-8">
<h3 class="text-xl font-semibold text-gray-800 mb-4">Président</h3>
<div class="bg-white rounded-lg shadow-sm p-4">
<div class="flex items-center justify-between mb-3">
<div class="flex items-center space-x-3">
<img src="https://via.placeholder.com/40" alt="Gagnant" class="rounded-full h-10 w-10 border-2 border-yellow-400">
<div>
<div class="font-medium">Marie Lambert</div>
<div class="text-sm text-gray-500">52% des votes</div>
</div>
</div>
<span class="bg-green-100 text-green-800 px-3 py-1 rounded-full text-sm font-medium">
Élue
</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-blue-600 h-2.5 rounded-full" style="width: 52%"></div>
</div>
<div class="mt-4 grid grid-cols-1 gap-2">
<div class="flex justify-between text-sm">
<span>Marie Lambert</span>
<span class="font-medium">52% (104 votes)</span>
</div>
<div class="flex justify-between text-sm">
<span>Paul Lefèvre</span>
<span class="font-medium">45% (90 votes)</span>
</div>
<div class="flex justify-between text-sm">
<span>Votes blancs</span>
<span class="font-medium">3% (6 votes)</span>
</div>
</div>
</div>
</div>
<!-- Treasurer Results -->
<div class="mb-8">
<h3 class="text-xl font-semibold text-gray-800 mb-4">Trésorier</h3>
<div class="bg-white rounded-lg shadow-sm p-4">
<div class="flex items-center justify-between mb-3">
<div class="flex items-center space-x-3">
<img src="https://via.placeholder.com/40" alt="Gagnant" class="rounded-full h-10 w-10 border-2 border-yellow-400">
<div>
<div class="font-medium">Thomas Durand</div>
<div class="text-sm text-gray-500">68% des votes</div>
</div>
</div>
<span class="bg-green-100 text-green-800 px-3 py-1 rounded-full text-sm font-medium">
Élu
</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-blue-600 h-2.5 rounded-full" style="width: 68%"></div>
</div>
<div class="mt-4 grid grid-cols-1 gap-2">
<div class="flex justify-between text-sm">
<span>Thomas Durand</span>
<span class="font-medium">68% (136 votes)</span>
</div>
<div class="flex justify-between text-sm">
<span>Élodie Petit</span>
<span class="font-medium">30% (60 votes)</span>
</div>
<div class="flex justify-between text-sm">
<span>Votes blancs</span>
<span class="font-medium">2% (4 votes)</span>
</div>
</div>
</div>
</div>
<!-- Results Chart -->
<div class="bg-white rounded-lg shadow-sm p-4 mt-8">
<h3 class="text-lg font-semibold text-gray-800 mb-4">Répartition des votes</h3>
<canvas id="resultsChart" height="300"></canvas>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-8">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<img src="https://via.placeholder.com/120x40" alt="Logo SIGMA" class="h-10">
<p class="mt-2 text-gray-400">Association des anciens élèves de SIGMA</p>
</div>
<div class="flex space-x-6">
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-linkedin-in"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-instagram"></i>
</a>
</div>
</div>
<div class="border-t border-gray-700 mt-6 pt-6 text-sm text-gray-400 text-center">
<p>© 2023 SIGMA ALUMNI. Tous droits réservés.</p>
</div>
</div>
</footer>
<script>
// Tab switching functionality
document.querySelectorAll('.nav-tab').forEach(tab => {
tab.addEventListener('click', function(e) {
e.preventDefault();
// Update active tab
document.querySelectorAll('.nav-tab').forEach(t => t.classList.remove('active'));
this.classList.add('active');
// Show corresponding section
const target = this.getAttribute('href').substring(1);
document.querySelectorAll('.section').forEach(section => {
section.classList.add('hidden');
section.classList.remove('active');
});
document.getElementById(target).classList.remove('hidden');
document.getElementById(target).classList.add('active');
});
});
// Vote submission modal
const submitVoteBtn = document.getElementById('submitVoteBtn');
const voteModal = document.getElementById('voteModal');
const closeModalBtn = document.getElementById('closeModalBtn');
const cancelVoteBtn = document.getElementById('cancelVoteBtn');
const confirmVoteBtn = document.getElementById('confirmVoteBtn');
submitVoteBtn.addEventListener('click', () => {
voteModal.classList.remove('hidden');
});
closeModalBtn.addEventListener('click', () => {
voteModal.classList.add('hidden');
});
cancelVoteBtn.addEventListener('click', () => {
voteModal.classList.add('hidden');
});
confirmVoteBtn.addEventListener('click', () => {
// Here you would typically submit the vote via AJAX
alert('Votre vote a été enregistré avec succès !');
voteModal.classList.add('hidden');
// Disable voting after submission
document.querySelectorAll('input[type="radio"]').forEach(radio => {
radio.disabled = true;
});
submitVoteBtn.disabled = true;
submitVoteBtn.classList.remove('bg-blue-600', 'hover:bg-blue-700');
submitVoteBtn.classList.add('bg-gray-400', 'cursor-not-allowed');
submitVoteBtn.innerHTML = '<i class="fas fa-check mr-2"></i> Vote enregistré';
});
// Results chart (would only be shown when results are published)
const ctx = document.getElementById('resultsChart')?.getContext('2d');
if (ctx) {
new Chart(ctx, {
type: 'bar',
data: {
labels: ['Président', 'Trésorier', 'Secrétaire'],
datasets: [
{
label: 'Marie Lambert',
data: [104, 0, 0],
backgroundColor: '#3b82f6',
},
{
label: 'Paul Lefèvre',
data: [90, 0, 0],
backgroundColor: '#ef4444',
},
{
label: 'Thomas Durand',
data: [0, 136, 0],
backgroundColor: '#3b82f6',
},
{
label: 'Élodie Petit',
data: [0, 60, 0],
backgroundColor: '#ef4444',
},
{
label: 'Sophie Martin',
data: [0, 0, 120],
backgroundColor: '#3b82f6',
},
{
label: 'Votes blancs',
data: [6, 4, 10],
backgroundColor: '#94a3b8',
}
]
},
options: {
responsive: true,
scales: {
x: {
stacked: true,
},
y: {
stacked: true,
beginAtZero: true
}
}
}
});
}
</script>
</body>
</html>