ajout première SAE WEB 1ere année 17/20
This commit is contained in:
269
SAE_WEB1/html/inscription.html
Normal file
269
SAE_WEB1/html/inscription.html
Normal file
@@ -0,0 +1,269 @@
|
||||
<!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="../css/style_global.css">
|
||||
<title>Inscription</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Arial', sans-serif;
|
||||
background-color: #f4f4f9;
|
||||
color: #333;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden; /* Empêche les débordements horizontaux */
|
||||
|
||||
background: url("../img/background.jpg");
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Style de l'en-tête */
|
||||
header {
|
||||
background-color: #F9A03F;
|
||||
color: white;
|
||||
padding: 20px 0;
|
||||
text-align: center;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
width: 100%;
|
||||
position: relative; /* Ajouté pour éviter tout décalage */
|
||||
}
|
||||
|
||||
header .logo {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
header .logo img {
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
/* Menu burger */
|
||||
.burger-menu {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
cursor: pointer;
|
||||
padding: 15px;
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
z-index: 15; /* Toujours au-dessus du contenu */
|
||||
background: none; /* Pas de fond */
|
||||
border: none; /* Pas de bordure */
|
||||
}
|
||||
.burger-menu span {
|
||||
display: block;
|
||||
width: 30px;
|
||||
height: 3px;
|
||||
background-color: #fff;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
/* Menu de navigation (sur mobile seulement) */
|
||||
@media (max-width: 768px) {
|
||||
nav {
|
||||
display: none; /* Masquer le menu par défaut */
|
||||
width: 100%;
|
||||
background-color: #F9A03F;
|
||||
position: fixed; /* Position fixe pour qu'il reste sous l'en-tête */
|
||||
top: 80px; /* Laisser de l'espace sous l'en-tête */
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
text-align: center;
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
nav.open {
|
||||
display: block; /* Afficher le menu quand 'open' est ajouté */
|
||||
}
|
||||
|
||||
.burger-menu {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
nav ul li a {
|
||||
padding: 10px;
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Styles pour le conteneur principal */
|
||||
.signup-container {
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
background: #ffffff;
|
||||
padding: 20px 30px;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
margin: 80px auto;
|
||||
}
|
||||
|
||||
.signup-container h1 {
|
||||
font-size: 24px;
|
||||
color: #333;
|
||||
margin-bottom: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.signup-container label {
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.signup-container input {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
margin-bottom: 15px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.signup-container button {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
background-color: #ffcc00;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
|
||||
.signup-container button:hover {
|
||||
background-color: #e6b800;
|
||||
}
|
||||
|
||||
.signup-container .login-link {
|
||||
margin-top: 15px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.signup-container .login-link a {
|
||||
color: #007BFF;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.signup-container .login-link a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.signup-container {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- En-tête avec logo et menu -->
|
||||
<header>
|
||||
<div class="logo">
|
||||
<a href="../index.html">
|
||||
<img src="../img/logo_etoile&saveurs.png" alt="Logo du site">
|
||||
</a>
|
||||
</div>
|
||||
<button class="burger-menu" aria-label="Ouvrir le menu">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</button>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="../index.html">Accueil</a></li>
|
||||
<li><a href="apropos.html">Qui sommes-nous</a></li>
|
||||
<li><a href="page_recettes.html">Nos Chefs et Nos Recettes</a></li>
|
||||
<li><a href="carte_chefs.html">Carte des Chefs</a></li> <!-- Nouveau lien -->
|
||||
<li><a href="disponibilite.html">Disponibilité</a></li>
|
||||
<li><a href="page_contact.html">Contact</a></li>
|
||||
<li><a href="javascript:history.back()" class="back-button">Retour</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
||||
<!-- Contenu principal -->
|
||||
<div class="signup-container">
|
||||
<h1>Inscription</h1>
|
||||
<label for="prenom">Prénom</label>
|
||||
<input type="text" id="prenom" name="prenom" placeholder="Votre prénom" required>
|
||||
|
||||
<label for="nom">Nom</label>
|
||||
<input type="text" id="nom" name="nom" placeholder="Votre nom" required>
|
||||
|
||||
<label for="email">Adresse e-mail</label>
|
||||
<input type="email" id="email" name="email" placeholder="Votre email" required>
|
||||
|
||||
<label for="phone">Numéro de téléphone</label>
|
||||
<input type="tel" id="phone" name="phone" placeholder="Votre numéro de téléphone" pattern="[0-9]{10}" required>
|
||||
|
||||
<label for="password">Mot de passe</label>
|
||||
<input type="password" id="password" name="password" placeholder="Votre mot de passe" required>
|
||||
|
||||
<label for="confirm-password">Confirmer le mot de passe</label>
|
||||
<input type="password" id="confirm-password" name="confirm-password" placeholder="Confirmez votre mot de passe" required>
|
||||
|
||||
<button type="submit">S'inscrire</button>
|
||||
</form>
|
||||
<div class="login-link">
|
||||
<p>Déjà un compte ? <a href="connecter.html">Se connecter</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="scroll-to-top" onclick="scrollToTop()">
|
||||
<img src="../img/fleche.png" alt="Retour en haut">
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<p>© 2024 Étoiles & Saveurs. Tous droits réservés.</p>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
const burgerMenu = document.querySelector('.burger-menu');
|
||||
const nav = document.querySelector('header nav');
|
||||
|
||||
burgerMenu.addEventListener('click', () => {
|
||||
nav.classList.toggle('open');
|
||||
});
|
||||
|
||||
window.addEventListener('resize', () => {
|
||||
if (window.innerWidth > 768) {
|
||||
nav.classList.remove('open');
|
||||
}
|
||||
});
|
||||
|
||||
// Fonction pour revenir en haut de la page
|
||||
function scrollToTop() {
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user