Edition du login/register

Co-authored-by: Charpentier Juliette <DePatate@users.noreply.github.com>
This commit is contained in:
Loris BALOCCHI 2024-06-09 15:56:00 +02:00
parent c588fa1259
commit f82a630d14
3 changed files with 112 additions and 0 deletions

49
account/login/index.php Normal file
View File

@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../../styles/main.css" />
<link rel="stylesheet" href="../../styles/header.css" />
<link rel="stylesheet" href="../../styles/footer.css" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet" />
<link rel="icon" type="image/png" sizes="32x32"
href="https://tickets.paris2024.org/obj/media/FR-Paris2024/specialLogos/favicons/favicon-32x32.png" />
<title>Connexion | Jeux Olympiques - Paris 2024</title>
<script src="https://kit.fontawesome.com/f16a36bad3.js" crossorigin="anonymous"></script>
</head>
<body>
<?php include ('../../views/header.php'); ?>
<div class="login-container">
<img src="https://cdn-icons-png.flaticon.com/512/4139/4139948.png" alt="Avatar">
<h2 class="login-title">Connexion à votre compte</h2>
<p class="login-subtitle">Connectez-vous afin d'accéder à l'entièreté du site.</p>
<form>
<div class="form-group">
<label for="email">Adresse mail</label>
<input type="email" id="email" name="email" placeholder="ex : username@example.com" required
placeholder=" ">
</div>
<div class="form-group">
<label for="password">Mot de passe</label>
<input type="password" id="password" name="password" required placeholder=" ">
</div>
<div class="form-group forgot-password">
</div>
<button type="submit" class="submit-button" action="../../tools"><i class="fas fa-sign-in-alt"></i>
Connexion</i></button>
</form>
<p class="no-account">Vous n'avez pas de compte ? <a href="../register">Créez un compte pour commencer
!</a></p>
</div>
<?php include ('../../views/footer.php'); ?>
</body>
</html>

View File

@ -0,0 +1,63 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../../styles/main.css" />
<link rel="stylesheet" href="../../styles/header.css" />
<link rel="stylesheet" href="../../styles/footer.css" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet" />
<link rel="icon" type="image/png" sizes="32x32"
href="https://tickets.paris2024.org/obj/media/FR-Paris2024/specialLogos/favicons/favicon-32x32.png" />
<title>Nouveau compte | Jeux Olympiques - Paris 2024</title>
<script src="https://kit.fontawesome.com/f16a36bad3.js" crossorigin="anonymous">
function verifMDP() {
var pw1 = document.getElementById("password");
var pw2 = document.getElementById("password-bis");
if (pw1 != pw2) {
alert("Les mots de passe ne correspondent pas. Veuillez réessayer.");
}
</script>
</head>
<body>
<?php include ('../../views/header.php'); ?>
<div class="login-container">
<img src="https://cdn-icons-png.flaticon.com/512/4139/4139948.png" alt="Avatar">
<h2>Créer un compte</h2>
<p>Créez un nouveau compte afin d'accéder à l'entièreté du site.</p>
<form>
<div class="form-group">
<label for="email">Adresse mail</label>
<input type="email" id="email" name="email" placeholder="ex : username@example.com" required
placeholder=" ">
</div>
<div class="form-group">
<label for="password">Mot de passe</label>
<input type="password" id="password" name="password" required placeholder=" ">
</div>
<div class="form-group">
<label for="password">Confirmation du mot de passe</label>
<input type="password" id="password-bis" name="password-bis" required placeholder=" ">
</div>
<!-- <div class="form-group remember-me">
<input type="checkbox" id="remember-me" name="remember-me">
<label for="remember-me">Se souvenir de moi</label>
</div> -->
<div class="form-group forgot-password">
<!-- <a href="#">Mot de passe oublié ?</a>-->
</div>
<button type="submit" class="submit-button" onclick="verifMDP()"><i class="fas fa-sign-in-alt"></i>
Créer un compte</i></button>
</form>
<p class="no-account">Vous avez déjà un compte ? <a href="../login">Connectez-vous !</a></p>
</div>
<?php include ('../../views/footer.php'); ?>
</body>
</html>