-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrdv.html
131 lines (121 loc) · 4.94 KB
/
rdv.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="style/style.css" rel="stylesheet" />
<title>rendez-vous</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<style>
body {
background-image: url("/images/particle-lines-futuristic-gradient-background.jpg");
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
}
</style>
<header>
<nav class="d-flex justify-content-between align-items-center p-3">
<a href="index.html">
<img src="images/logo.jpg" alt="Logo">
</a>
<div>
<a href="index.html">Accueil</a>
<a href="a-propos.html">Actualités</a>
<a href="rdv.html">rendez-vous</a>
<a href="gallery.html">Gallery</a>
<a href="contact.html">Contact</a>
<a href="about.html">About Us</a>
</div>
</nav>
</header>
<div class="container mt-5">
<!-- Card -->
<div class="card">
<div class="card-header">
<h4 class="card-title">Rendezvous (RDV) Form</h4>
</div>
<div class="card-body">
<!-- RDV Form -->
<form id="rdvForm">
<div class="mb-3">
<label for="name" class="form-label">Full Name</label>
<input type="text" class="form-control" id="name" name="name" required
placeholder="Enter your full name">
</div>
<div class="mb-3">
<label for="email" class="form-label">Email Address</label>
<input type="email" class="form-control" id="email" name="email" required
placeholder="Enter your email address">
</div>
<div class="mb-3">
<label for="date" class="form-label">Date of Rendezvous</label>
<input type="date" class="form-control" id="date" name="date" required>
</div>
<div class="mb-3">
<label for="time" class="form-label">Time of Rendezvous</label>
<input type="time" class="form-control" id="time" name="time" required>
</div>
<div class="mb-3">
<label for="message" class="form-label">Additional Message</label>
<textarea class="form-control" id="message" name="message" rows="4"
placeholder="Enter any additional information"></textarea>
</div>
<button type="submit" class="btn btn-primary">Schedule RDV</button>
</form>
</div>
</div>
</div>
<!-- Bootstrap 5 JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script type="text/javascript" src="https://cdn.emailjs.com/dist/email.min.js"></script>
<script>
// Initialize EmailJS
emailjs.init('PAE10o3uxIPn2MVjy');
// Handle form submission
document.getElementById("rdvForm").addEventListener("submit", function (event) {
event.preventDefault(); // Prevent the default form submission
// Get form values
var name = document.getElementById("name").value;
var email = document.getElementById("email").value;
var date = document.getElementById("date").value;
var time = document.getElementById("time").value;
var message = document.getElementById("message").value;
// Send email using EmailJS
var templateParams = {
name: name,
email: email,
date: date,
time: time,
message: message
};
// var templateParams = {
// name: "Test User",
// email: "[email protected]",
// date: "2024-12-20",
// time: "10:00",
// message: "This is a test message"
// };
emailjs.send('service_q82z71r', 'template_rtkbhot', templateParams).then(function (response) {
alert('RDV confirmation email sent successfully!');
}, function (error) {
alert('Failed to send email. Please try again.');
});
});
</script>
<footer>
<img src="images/logo.jpg" alt="Logo " width="5%" height="5%">
<div>
<a target="_blank" href="https://twitter.com/" class="lien-icone">
<img src="images/twitter.png" alt="Logo Twitter">
</a>
<a target="_blank" href="https://www.instagram.com/" class="lien-icone">
<img src="images/instagram.png" alt="Logo Instagram">
</a>
</div>
</footer>
</body>
</html>