-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
650 lines (576 loc) · 19.8 KB
/
Copy pathindex.php
File metadata and controls
650 lines (576 loc) · 19.8 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
<?php
/**
* ============================================================
* LMS - Learning Management System
* UE INF222
* Auteur: BONGKEM HERODIA
* Matricule: 24F2986
* Description: Page d'accueil - Landing page attractive du LMS
* ============================================================
*/
require_once __DIR__ . '/includes/functions.php';
// Rediriger vers le dashboard si déjà connecté
if (isLoggedIn()) {
redirect(getRoleRedirect(getUserRole()));
}
$pageTitle = 'Accueil';
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="LMS - Learning Management System - Plateforme d'apprentissage en ligne">
<title><?= $pageTitle ?> - LMS</title>
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
/* ============================================================
STYLES SPÉCIFIQUES À LA LANDING PAGE
Design moderne inspiré des meilleurs LMS
============================================================ */
body {
background: var(--white);
overflow-x: hidden;
}
/* Navigation */
.landing-nav {
position: fixed;
top: 0;
left: 0;
right: 0;
height: var(--navbar-height);
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 var(--spacing-xl);
z-index: 1000;
}
.landing-nav-brand {
display: flex;
align-items: center;
gap: var(--spacing-md);
}
.landing-nav-logo {
width: 40px;
height: 40px;
background: var(--primary);
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
color: var(--white);
font-size: 1.2rem;
font-weight: 700;
}
.landing-nav-title {
font-size: 1.3rem;
font-weight: 700;
color: var(--text-primary);
}
.landing-nav-links {
display: flex;
gap: var(--spacing-md);
}
.landing-nav-links a {
padding: 8px 20px;
border-radius: var(--radius-md);
font-weight: 500;
font-size: 0.9rem;
transition: all var(--transition-fast);
}
/* Héros */
.hero {
padding: 160px var(--spacing-xl) 100px;
text-align: center;
background: linear-gradient(135deg, #e8f0fe 0%, #f8f9ff 50%, #e8f4fd 100%);
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: -50%;
right: -20%;
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(26, 115, 232, 0.08) 0%, transparent 70%);
border-radius: 50%;
}
.hero::after {
content: '';
position: absolute;
bottom: -30%;
left: -10%;
width: 400px;
height: 400px;
background: radial-gradient(circle, rgba(26, 115, 232, 0.05) 0%, transparent 70%);
border-radius: 50%;
}
.hero-content {
position: relative;
z-index: 1;
max-width: 800px;
margin: 0 auto;
}
.hero-badge {
display: inline-block;
padding: 6px 16px;
background: var(--primary-bg);
color: var(--primary);
border-radius: 20px;
font-size: 0.85rem;
font-weight: 600;
margin-bottom: var(--spacing-lg);
}
.hero-title {
font-size: 3rem;
font-weight: 800;
color: var(--text-primary);
line-height: 1.2;
margin-bottom: var(--spacing-lg);
}
.hero-title span {
color: var(--primary);
}
.hero-description {
font-size: 1.15rem;
color: var(--text-secondary);
max-width: 600px;
margin: 0 auto var(--spacing-xl);
line-height: 1.7;
}
.hero-buttons {
display: flex;
gap: var(--spacing-md);
justify-content: center;
flex-wrap: wrap;
}
.hero-buttons .btn {
padding: 14px 32px;
font-size: 1rem;
border-radius: var(--radius-lg);
}
.hero-stats {
display: flex;
justify-content: center;
gap: var(--spacing-xxl);
margin-top: var(--spacing-xxl);
padding-top: var(--spacing-xl);
border-top: 1px solid var(--border-color);
}
.hero-stat {
text-align: center;
}
.hero-stat-value {
font-size: 2rem;
font-weight: 700;
color: var(--primary);
}
.hero-stat-label {
font-size: 0.85rem;
color: var(--text-secondary);
margin-top: var(--spacing-xs);
}
/* Section fonctionnalités */
.features {
padding: var(--spacing-xxl) var(--spacing-xl);
max-width: 1200px;
margin: 0 auto;
}
.section-title {
text-align: center;
font-size: 2rem;
font-weight: 700;
margin-bottom: var(--spacing-md);
}
.section-subtitle {
text-align: center;
color: var(--text-secondary);
max-width: 600px;
margin: 0 auto var(--spacing-xl);
}
.features-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--spacing-xl);
}
.feature-card {
text-align: center;
padding: var(--spacing-xl);
border-radius: var(--radius-xl);
border: 1px solid var(--border-color);
transition: all var(--transition-normal);
}
.feature-card:hover {
transform: translateY(-8px);
box-shadow: var(--shadow-lg);
}
.feature-icon {
width: 72px;
height: 72px;
border-radius: var(--radius-xl);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.8rem;
margin: 0 auto var(--spacing-lg);
}
.feature-card:nth-child(1) .feature-icon {
background: var(--primary-bg);
color: var(--primary);
}
.feature-card:nth-child(2) .feature-icon {
background: var(--success-bg);
color: var(--success);
}
.feature-card:nth-child(3) .feature-icon {
background: var(--warning-bg);
color: var(--warning);
}
.feature-title {
font-size: 1.15rem;
font-weight: 600;
margin-bottom: var(--spacing-sm);
}
.feature-text {
font-size: 0.9rem;
color: var(--text-secondary);
line-height: 1.6;
}
/* Section rôles */
.roles {
padding: var(--spacing-xxl) var(--spacing-xl);
background: var(--bg-body);
}
.roles-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--spacing-xl);
max-width: 1200px;
margin: 0 auto;
}
.role-card {
background: var(--white);
border-radius: var(--radius-xl);
padding: var(--spacing-xl);
text-align: center;
border: 1px solid var(--border-color);
transition: all var(--transition-normal);
}
.role-card:hover {
box-shadow: var(--shadow-md);
transform: translateY(-4px);
}
.role-icon-lg {
width: 80px;
height: 80px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
margin: 0 auto var(--spacing-lg);
}
.role-card:nth-child(1) .role-icon-lg {
background: #e8f0fe;
color: #1a73e8;
}
.role-card:nth-child(2) .role-icon-lg {
background: #e6f4ea;
color: #0f9d58;
}
.role-card:nth-child(3) .role-icon-lg {
background: #fef7e0;
color: #f9ab00;
}
.role-name {
font-size: 1.2rem;
font-weight: 700;
margin-bottom: var(--spacing-sm);
}
.role-desc {
font-size: 0.9rem;
color: var(--text-secondary);
line-height: 1.6;
margin-bottom: var(--spacing-lg);
}
.role-features {
text-align: left;
padding: 0;
list-style: none;
}
.role-features li {
display: flex;
align-items: center;
gap: var(--spacing-sm);
padding: var(--spacing-sm) 0;
font-size: 0.9rem;
color: var(--text-secondary);
}
.role-features li i {
color: var(--success);
}
/* CTA */
.cta {
padding: var(--spacing-xxl) var(--spacing-xl);
text-align: center;
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
color: var(--white);
}
.cta-title {
font-size: 2rem;
font-weight: 700;
margin-bottom: var(--spacing-md);
}
.cta-text {
font-size: 1.1rem;
opacity: 0.9;
margin-bottom: var(--spacing-xl);
}
.cta-buttons {
display: flex;
gap: var(--spacing-md);
justify-content: center;
}
.cta .btn {
padding: 14px 32px;
font-size: 1rem;
border-radius: var(--radius-lg);
}
.btn-white {
background: var(--white);
color: var(--primary);
}
.btn-white:hover {
background: var(--bg-body);
color: var(--primary-dark);
}
.btn-outline-white {
background: transparent;
color: var(--white);
border: 2px solid var(--white);
}
.btn-outline-white:hover {
background: rgba(255, 255, 255, 0.1);
color: var(--white);
}
/* Footer */
.landing-footer {
padding: var(--spacing-xl);
text-align: center;
background: var(--sidebar-bg);
color: var(--text-light);
}
.landing-footer a {
color: var(--primary-light);
}
.footer-author {
margin-top: var(--spacing-md);
font-size: 0.8rem;
opacity: 0.7;
}
/* Responsive */
@media (max-width: 768px) {
.hero-title { font-size: 2rem; }
.hero-stats { flex-direction: column; gap: var(--spacing-lg); }
.features-grid, .roles-grid { grid-template-columns: 1fr; }
.landing-nav-links { display: none; }
}
</style>
</head>
<body>
<!-- ============================================================
NAVIGATION
============================================================ -->
<nav class="landing-nav">
<div class="landing-nav-brand">
<div class="landing-nav-logo">
<i class="fas fa-graduation-cap"></i>
</div>
<span class="landing-nav-title">LMS</span>
</div>
<div class="landing-nav-links">
<a href="#fonctionnalites" class="btn btn-sm btn-secondary">Fonctionnalités</a>
<a href="#roles" class="btn btn-sm btn-secondary">Rôles</a>
<a href="login.php" class="btn btn-sm btn-secondary">Connexion</a>
<a href="register.php" class="btn btn-sm btn-primary">Inscription</a>
</div>
</nav>
<!-- ============================================================
SECTION HÉROS
============================================================ -->
<section class="hero">
<div class="hero-content">
<span class="hero-badge">
<i class="fas fa-star"></i> Plateforme d'apprentissage
</span>
<h1 class="hero-title">
Apprenez à votre rythme avec<br>
<span>Learning Management System</span>
</h1>
<p class="hero-description">
Une plateforme complète de formation en ligne. Suivez des cours, passez des évaluations,
et obtenez des certificats de validation. Conçue pour les étudiants, enseignants et promoteurs.
</p>
<div class="hero-buttons">
<a href="register.php" class="btn btn-primary btn-lg">
<i class="fas fa-rocket"></i> Commencer maintenant
</a>
<a href="login.php" class="btn btn-secondary btn-lg">
<i class="fas fa-sign-in-alt"></i> Se connecter
</a>
</div>
<div class="hero-stats">
<div class="hero-stat">
<div class="hero-stat-value">3</div>
<div class="hero-stat-label">Types d'utilisateurs</div>
</div>
<div class="hero-stat">
<div class="hero-stat-value">∞</div>
<div class="hero-stat-label">Cours disponibles</div>
</div>
<div class="hero-stat">
<div class="hero-stat-value">100%</div>
<div class="hero-stat-label">Gratuit</div>
</div>
</div>
</div>
</section>
<!-- ============================================================
FONCTIONNALITÉS
============================================================ -->
<section class="features" id="fonctionnalites">
<h2 class="section-title">Fonctionnalités principales</h2>
<p class="section-subtitle">
Tout ce dont vous avez besoin pour une expérience d'apprentissage complète.
</p>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-book-open"></i>
</div>
<h3 class="feature-title">Cours interactifs</h3>
<p class="feature-text">
Suivez des cours en PDF ou vidéo, avec navigation intuitive entre les leçons.
Avancez à votre rythme.
</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-clipboard-check"></i>
</div>
<h3 class="feature-title">Évaluations en ligne</h3>
<p class="feature-text">
Testez vos connaissances avec des QCM interactifs. Obtenez vos résultats
instantanément avec un suivi de progression.
</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-certificate"></i>
</div>
<h3 class="feature-title">Certificats de validation</h3>
<p class="feature-text">
Complétez des modules de cours et obtenez des certificats officiels
reconnaissant vos compétences acquises.
</p>
</div>
</div>
</section>
<!-- ============================================================
RÔLES
============================================================ -->
<section class="roles" id="roles">
<div style="max-width: 1200px; margin: 0 auto;">
<h2 class="section-title">Une plateforme pour chaque rôle</h2>
<p class="section-subtitle">
Trois profils distincts, une expérience unifiée.
</p>
<div class="roles-grid">
<!-- Enseignant -->
<div class="role-card">
<div class="role-icon-lg">
<i class="fas fa-chalkboard-teacher"></i>
</div>
<h3 class="role-name">Enseignant</h3>
<p class="role-desc">
Créez et gérez vos cours, ajoutez des leçons et concevez des évaluations.
</p>
<ul class="role-features">
<li><i class="fas fa-check"></i> Créer des cours (PDF/Vidéo)</li>
<li><i class="fas fa-check"></i> Organiser les leçons par ordre</li>
<li><i class="fas fa-check"></i> Créer des évaluations QCM</li>
<li><i class="fas fa-check"></i> Consulter les notes</li>
</ul>
</div>
<!-- Étudiant -->
<div class="role-card">
<div class="role-icon-lg">
<i class="fas fa-user-graduate"></i>
</div>
<h3 class="role-name">Étudiant</h3>
<p class="role-desc">
Suivez des cours, passez des évaluations et suivez votre progression.
</p>
<ul class="role-features">
<li><i class="fas fa-check"></i> Explorer et s'inscrire aux cours</li>
<li><i class="fas fa-check"></i> Consulter PDF et vidéos</li>
<li><i class="fas fa-check"></i> Passer des évaluations</li>
<li><i class="fas fa-check"></i> Suivre sa progression (%)</li>
</ul>
</div>
<!-- Promoteur -->
<div class="role-card">
<div class="role-icon-lg">
<i class="fas fa-user-shield"></i>
</div>
<h3 class="role-name">Promoteur</h3>
<p class="role-desc">
Définissez des modules, associez des cours et délivrez des certificats.
</p>
<ul class="role-features">
<li><i class="fas fa-check"></i> Créer des modules</li>
<li><i class="fas fa-check"></i> Associer des cours aux modules</li>
<li><i class="fas fa-check"></i> Suivre les étudiants</li>
<li><i class="fas fa-check"></i> Délivrer des certificats</li>
</ul>
</div>
</div>
</div>
</section>
<!-- ============================================================
CTA - APPEL À L'ACTION
============================================================ -->
<section class="cta">
<h2 class="cta-title">Prêt à commencer votre apprentissage ?</h2>
<p class="cta-text">
Rejoignez notre plateforme et commencez à apprendre dès aujourd'hui.
</p>
<div class="cta-buttons">
<a href="register.php" class="btn btn-white btn-lg">
<i class="fas fa-user-plus"></i> Créer un compte
</a>
<a href="login.php" class="btn btn-outline-white btn-lg">
<i class="fas fa-sign-in-alt"></i> Déjà inscrit ? Se connecter
</a>
</div>
</section>
<!-- ============================================================
FOOTER
============================================================ -->
<footer class="landing-footer">
<p>
<strong>LMS</strong> — Learning Management System
</p>
<p class="footer-author">
UE INF222 — BONGKEM HERODIA — Matricule : 24F2986
</p>
</footer>
<!-- JavaScript -->
<script src="assets/js/main.js"></script>
</body>
</html>