-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
79 lines (78 loc) · 4.31 KB
/
index.html
File metadata and controls
79 lines (78 loc) · 4.31 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DéfiMaths</title>
<link rel="icon" type="image/x-icon" href="Assets/Logo/Personnal/SiteLogo-NoText.png"> <!-- Version of the logo without the text -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
<link rel="stylesheet" href="./CSS/config.css">
<link rel="stylesheet" href="./CSS/style.css">
<link rel="stylesheet" href="./CSS/user-feedback.css">
<link rel="stylesheet" href="CSS/cookies.css">
<script type="module" src="./JS/initialise.js"></script>
<script type="module" src="./JS/update-header.js"></script>
<script type="module" src="./JS/toast.js"></script>
<script src="./JS/cookies-handler.js"></script>
<script type="module">
import * as user from './JS/user-information.js';
const user_name = await user.get_user_name();
const page_title = document.getElementById('main-title');
page_title.innerText = "Bienvenue" + (user_name ? " " + user_name : " sur DéfiMaths") + " !"
</script>
</head>
<body>
<!-- Adding the toast notifications elements -->
<div id="toast" class="feedback-container warning" style="display: none;">
<div class="toast-image">
<i class="fas"></i>
</div>
<div class="toast-content">
</div>
</div>
<!-- Main page -->
<header class="header">
<div class="header-logo">
<img src="Assets/Logo/Personnal/SiteLogo-Text.png" alt="Logo" class="logo"> <!-- Version of the logo with just the text -->
</div>
<div class="header-menu">
<a href="index.html" class="header-text">Menu</a>
<a href="selection-page.html" class="header-text">Nos quiz</a>
</div>
<div class="account-info">
<a href="login.html" class="header-text" id="user-name-text"><i class="fa-solid fa-user"></i> Se connecter</a>
</div>
<!-- Button to toggle the burger menu visibility -->
<i class="fa-solid fa-bars burger-menu-visibility-switch"></i>
</header>
<main>
<!-- Burger menu for mobile version -->
<div class="burger-menu">
<a class="burger-text" style="text-transform: uppercase" href="index.html">Menu</a>
<a class="burger-text" style="text-transform: uppercase" href="selection-page.html">Nos quiz</a>
<a class="burger-text" href="login.html" id="user-name-text-burger" ><i class="fa-solid fa-user"></i>Se connecter</a>
</div>
<div class="logo-container">
<img src="/Assets/Logo/Personnal/SiteLogo-Base.png" alt="Logo with text an image"> <!-- Version of the logo with the text and the image-->
</div>
<div class="page-presentation">
<div class="presentation-container">
<h2 class="presentation-title" id="main-title">Bienvenue sur DéfiMaths !</h2>
<p class="presentation-text">
DéfiMaths est une plateforme interactive dédiée à l'apprentissage des mathématiques à travers des quiz variés et stimulants.
Explorez nos quiz pour tester vos connaissanceset améliorer vos compétences.
Connectez-vous ou inscrivez-vous pour suivre votre progression.
Prêt à relever le défi ? Commencez dès maintenant !
</p>
</div>
</div>
</main>
<footer>
<p>Vous voulez voir mes autres projets ? <a href="https://github.com/SAMSAM-55" target="_blank">Cliquez ici !</a></p>
<div class="cookies-container">
<h2 class="cookies-title"><i class="fa-solid fa-cookie-bite"></i> Cookies</h2>
<p>DéfiMaths utilise uniquement des cookies fonctionnels. Pour plus d'informations, consultez <a href="cookies.html">cette page</a></p>
</div>
</footer>
</body>
</html>