Version finale

This commit is contained in:
Moncef STITI 2024-01-19 13:10:24 +01:00
parent f1598cb26e
commit ec783f56af
4 changed files with 151 additions and 2 deletions

107
html/messageSucces.html Normal file
View File

@ -0,0 +1,107 @@
<!DOCTYPE html>
<html lang="fr-FR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="../img/Logo/logo-tab.ico">
<link rel="stylesheet" href="../css/styles.css">
<link rel="stylesheet" href="../css/ReservationSuccess.css">
<title>Réservation réussie - Neo Eat</title>
</head>
<body>
<header class="navbar">
<div class="logo">
<img src="../img/Logo/LogoNeoEat.png" alt="Neo Eat Logo">
</div>
<nav class="nav-links">
<a href="../index.html">Accueil</a>
<a href="menu.html">Menu</a>
<div class="dropdown">
<a class="dropdown-btn">À propos <i class="ri-arrow-down-s-line"></i></a>
<div class="dropdown-content">
<a href="a-propos.html">Qui sommes-nous ?</a>
<a href="faq.html">FAQ</a>
<a href="nos-chefs.html">Nos chefs</a>
<a href="fournisseurs.html">Nos fournisseurs</a>
<a href="notre-equipe.html">Notre équipe</a>
</div>
</div>
<a href="../html/contact.html" class="nav-link">Contact</a>
<a href="../html/reservation.html" class="nav-link reserve-btn">Réserver une table</a>
</nav>
<!-- BARRE DU MENU BURGER -->
<div class="burger-menu">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
</header>
<div class="contenue">
<section class="reservation-successful-section">
<h1>Message envoyé avec succès</h1>
<p>Merci pour votre message ! Nous vous répondrons sous peu.</p>
<a href="../index.html" class="home-button">Retourner à l'accueil</a>
</section>
</div>
<footer class="footer">
<div class="footer-content">
<div class="footer-section">
<h3>Plan du site</h3>
<a href="plan-du-site.html">Consulter le plan du site</a>
</div>
<div class="footer-section">
<h3>Mentions légales</h3>
<a href="mention-legal.html">Consulter nos mentions légales</a>
</div>
<div class="footer-section">
<h3>Contact</h3>
<p>Email : <a href="mailto:neoeat.sav@gmail.com">neoeat.sav@gmail.com</a></p>
<p>
<p>Téléphone : <a href="tel:+33175489632">+33 01 75 48 96 32</a></p>
</div>
<div class="footer-section horizontally-aligned">
<h3>Réseaux sociaux</h3>
<div class="logo-reseaux">
<p>
<a href="https://www.instagram.com/neoeat75/" target="_blank" class="social-icon">
<img src="../img/LogoReseaux/Instagram.png" alt="Logo Instagram">
</a>
</p>
<p>
<a href="https://www.facebook.com/neoeat75/" target="_blank" class="social-icon">
<img src="../img/LogoReseaux/Facebook.png" alt="Logo Facebook">
</a>
</p>
<p>
<a href="https://www.X.com/neoeat75/" target="_blank" class="social-icon">
<img src="../img/LogoReseaux/X.png" alt="Logo X">
</a>
</p>
<p>
<a href="https://www.youtube.com/channel/UCNSi53sTJ7LYqgonJ4CfCCQ" target="_blank" class="social-icon">
<img src="../img/LogoReseaux/Youtube.png" alt="Logo Youtube">
</a>
</p>
<p>
<a href="https://www.TripAdvisor.com/neoeat/" target="_blank" class="social-icon">
<img src="../img/LogoReseaux/Tripadvisor.png" alt="TripAdvisor">
</a>
</p>
</div>
</div>
</div>
<div class="footer-signature">
<img src="../img/Logo/LogoNeoEat.png" alt="Neo Eat Logo">
<p>&copy; 2024 Neo Eat. Tous droits réservés.</p>
<p>Crée par Moncef STITI, Marco ORFAO et Louay DARDOURI</p>
</div>
</footer>
<button id="scrollTopBtn" onclick="scrollToTop()">
<span>&#8593;</span>
</button>
</body>
</html>

View File

@ -41,7 +41,7 @@
<div class="content">
<!-- Vidéo et message de bienvenue -->
<div class="bienvenue-section">
<video controls autoplay class="bienvenue-video">
<video controls class="bienvenue-video">
<source src="video/VideoExplicationConcept.mp4" type="video/mp4">
Votre navigateur ne supporte pas les vidéos.
</video>

View File

@ -20,7 +20,7 @@ if (isset($_POST['name']) && isset($_POST['email']) && isset($_POST['phone']) &&
$mail->Host = 'smtp.gmail.com';
$mail->SMTPAuth = true;
$mail->Username = 'neoeat.sav@gmail.com';
$mail->Password = 'zann afaj cnus tifc'; // Remplacez par le mot de passe de votre compte Gmail
$mail->Password = 'zann afaj cnus tifc';
$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS;
$mail->Port = 465;

View File

@ -0,0 +1,42 @@
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
require 'phpmailer/Exception.php';
require 'phpmailer/PHPMailer.php';
require 'phpmailer/SMTP.php';
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$name = $_POST["name"];
$email = $_POST["email"];
$message = $_POST["message"];
$mail = new PHPMailer(true);
try {
// Paramètres du serveur SMTP
$mail->isSMTP();
$mail->Host = 'smtp.gmail.com';
$mail->SMTPAuth = true;
$mail->Username = 'neoeat.sav@gmail.com';
$mail->Password = 'zann afaj cnus tifc';
$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS;
$mail->Port = 465;
$mail->setFrom($email, $name);
$mail->addAddress('neoeat.sav@gmail.com', 'Neo Eat');
$mail->isHTML(false);
$mail->Subject = 'Contact Form Submission';
$mail->Body = "Name: $name\nEmail: $email\nMessage:\n$message";
$mail->send();
header("Location: ../html/messageSucces.html");
} catch (Exception $e) {
echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
}
}
?>