-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
468 lines (426 loc) · 21.2 KB
/
index.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wellness Renewed</title>
<!-- Bootstrap and CSS file -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="stylesheet" href="static/styles.css">
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1em' viewBox='0 0 576 512'%3E%3Cpath d='M183.1 235.3c33.7 20.7 62.9 48.1 85.8 80.5c7 9.9 13.4 20.3 19.1 31c5.7-10.8 12.1-21.1 19.1-31c22.9-32.4 52.1-59.8 85.8-80.5C437.6 207.8 490.1 192 546 192h9.9c11.1 0 20.1 9 20.1 20.1C576 360.1 456.1 480 308.1 480H288 267.9C119.9 480 0 360.1 0 212.1C0 201 9 192 20.1 192H30c55.9 0 108.4 15.8 153.1 43.3zM301.5 37.6c15.7 16.9 61.1 71.8 84.4 164.6c-38 21.6-71.4 50.8-97.9 85.6c-26.5-34.8-59.9-63.9-97.9-85.6c23.2-92.8 68.6-147.7 84.4-164.6C278 33.9 282.9 32 288 32s10 1.9 13.5 5.6z' fill='%230bb10e' /%3E%3C/svg%3E" type="image/svg+xml">
</head>
<body>
<!-- Chatbot -->
<div id="chat-bubble">
<i class="fas fa-comments"></i>
</div>
<div id="chat-container" class="chat-container" style="display: none;">
<button id="close-button"><i class="fas fa-times"></i></button>
<h1>Virtual<span class="green-text">Assistant</span></h1>
<div id="chat-body">
<!-- Chatbot and user messages -->
</div>
<div id="chat-input">
<input type="text" id="user-input" placeholder="Type your question...">
<button id="send-button">Send</button>
</div>
</div>
<!-- Modal -->
<div id="disclaimerModal" class="modal fade" tabindex="-1" aria-labelledby="disclaimerModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="disclaimerModalLabel">Important Notice</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
This page has been created with a special focus on chatbot implementation.<br>The rest of the page is intentionally inactive.<br>The purpose of this demonstration is to showcase my skills in chatbot development and be part of my portfolio.<br>We invite you to interact with the chatbot and explore its capabilities.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand" href="#">Wellness <span class="green-text">Renewed</span></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav navbar-nav-right">
<li class="nav-item">
<a class="nav-link" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Testimonials</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Blog</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contact</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">FAQ</a>
</li>
</ul>
</div>
</nav>
<!-- Content -->
<div class="container-fluid page-content">
<div class="row">
<div class="col-md-12">
<div class="image-container">
<img src="static/img/Background.jpg" alt="Massage Image">
<div class="overlay">
<h2>Your Destination for Relaxation & Wellbeing</h2>
<hr class="green-line">
<p>Discover a unique massage experience that helps you relieve stress and enhance your overall well-being. At Wellness Renewed, we offer a wide range of relaxing and therapeutic massages, as well as rejuvenating spa treatments. Whether you seek relaxation or specific relief, we're here to take care of you.</p>
<div class="text-center">
<a href="#" class="btn btn-success btn-sm">Services</a>
</div>
</div>
</div>
</div>
<div class="col-md-6">
</div>
</div>
</div>
<!-- Choose Us -->
<section class="container-fluid why-choose-us">
<h3 class="text-center mb-4">Why Choose Us?</h3>
<div class="row justify-content-center">
<!-- Reason 1 -->
<div class="col-md-4">
<div class="card mb-4">
<i class="fas fa-hand-rock card-icon text-primary mb-3"></i>
<div class="card-body text-center">
<h5 class="card-title">Experienced Therapists</h5>
<p class="card-text">Our team of experienced therapists is dedicated to providing the best massage therapy tailored to your needs.</p>
</div>
</div>
</div>
<!-- Reason 2 -->
<div class="col-md-4">
<div class="card mb-4">
<i class="fas fa-spa card-icon text-success mb-3"></i>
<div class="card-body text-center">
<h5 class="card-title">Relaxing Atmosphere</h5>
<p class="card-text">We offer a peaceful and tranquil environment that enhances your relaxation and overall experience.</p>
</div>
</div>
</div>
<!-- Reason 3 -->
<div class="col-md-4">
<div class="card mb-4">
<i class="fas fa-heart card-icon text-danger mb-3"></i>
<div class="card-body text-center">
<h5 class="card-title">Customized Treatments</h5>
<p class="card-text">Each massage session is tailored to your specific needs and preferences for the best results.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Services -->
<section class="container-fluid services-section">
<h3 class="text-center">Our Services</h3>
<div class="row">
<!-- Service 1 -->
<div class="col-md-3">
<div class="card mb-4 service-card">
<img src="static/img/SwedishMassage.jpeg" class="card-img-top" alt="Service 1">
<div class="card-body">
<h5 class="card-title">Swedish Massage</h5>
<p class="card-text">Enjoy the ultimate relaxation with our Swedish massage. It helps reduce stress and improve circulation.</p>
</div>
</div>
</div>
<!-- Service 2 -->
<div class="col-md-3">
<div class="card mb-4 service-card">
<img src="static/img/DeepTissueMassage.jpg" class="card-img-top" alt="Service 2">
<div class="card-body">
<h5 class="card-title">Deep Tissue Massage</h5>
<p class="card-text">Experience relief from muscle tension and chronic pain with our deep tissue massage.</p>
</div>
</div>
</div>
<!-- Service 3 -->
<div class="col-md-3">
<div class="card mb-4 service-card">
<img src="static/img/HotStoneMassage.jpg" class="card-img-top" alt="Service 3">
<div class="card-body">
<h5 class="card-title">Hot Stone Massage</h5>
<p class="card-text">Indulge in the soothing warmth of hot stones, combined with massage techniques, for a truly relaxing experience.</p>
</div>
</div>
</div>
<!-- Service 4 -->
<div class="col-md-3">
<div class="card mb-4 service-card">
<img src="static/img/RelaxationAromatherapy.jpg" class="card-img-top" alt="Service 4">
<div class="card-body">
<h5 class="card-title">Relaxation Aromatherapy</h5>
<p class="card-text">Indulge in the blissful world of relaxation with our Aromatherapy Massage. Our expert therapists use essential oils to enhance your experience and promote tranquility.</p>
</div>
</div>
</div>
</div>
<!-- All Services -->
<div class="text-center mt-5">
<a href="#" class="btn btn-success view-all-services-button">Browse all treatments</a>
</div>
</section>
<!-- Custom -->
<section class="container-fluid custom-section">
<div class="row justify-content-center align-items-center">
<!-- left -->
<div class="col-md-6">
<h2 class="section-title">Elevate Your Senses with Rejuvenating Massages</h2>
</div>
<!-- right -->
<div class="col-md-6">
<p class="section-text">
Embark on a journey of bliss and relaxation at Wellness Renewed.<br>Our skilled therapists are dedicated to providing you with an unforgettable experience through a variety of massage treatments.<br>Indulge in the perfect escape from the hustle and bustle of daily life.
</p>
</div>
</div>
</section>
<!-- Testimonials -->
<section class="container-fluid testimonials-section">
<h3 class="text-center mb-4">What Our Clients Say</h3>
<div class="row justify-content-center">
<!-- Testimonial 1 -->
<div class="col-md-4">
<div class="card mb-4 testimonial-card">
<div class="card-body">
<div class="testimonial-author-img">
<img src="static/img/Sarah.jpg" class="card-img-top" alt="Sarah's Photo">
</div>
<div class="testimonial-content">
<p class="testimonial-text">The massage I received at Wellness Renewed was exceptional. The therapist was highly skilled, and I left feeling completely relaxed and rejuvenated.</p>
<div class="testimonial-stars">
<span class="star">★</span>
<span class="star">★</span>
<span class="star">★</span>
<span class="star">★</span>
<span class="star">★</span>
</div>
<p class="testimonial-author">- Sarah M.</p>
</div>
</div>
</div>
</div>
<!-- Testimonial 2 -->
<div class="col-md-4">
<div class="card mb-4 testimonial-card">
<div class="card-body">
<div class="testimonial-author-img">
<img src="static/img/john.jpg" class="card-img-top" alt="John's Photo">
</div>
<div class="testimonial-content">
<p class="testimonial-text">I've been a regular client at Wellness Renewed for months, and I couldn't be happier with their services. The therapists are friendly and professional.</p>
<div class="testimonial-stars">
<span class="star">★</span>
<span class="star">★</span>
<span class="star">★</span>
<span class="star">★</span>
<span class="star">★</span>
</div>
<p class="testimonial-author">- John D.</p>
</div>
</div>
</div>
</div>
<!-- Testimonial 3 -->
<div class="col-md-4">
<div class="card mb-4 testimonial-card">
<div class="card-body">
<div class="testimonial-author-img">
<img src="static/img/emily.jpg" class="card-img-top" alt="Emily's Photo">
</div>
<div class="testimonial-content">
<p class="testimonial-text">Wellness Renewed has become my go-to place for relaxation. Their customized treatments have made a significant difference in my well-being.</p>
<div class="testimonial-stars">
<span class="star">★</span>
<span class="star">★</span>
<span class="star">★</span>
<span class="star">★</span>
<span class="star">★</span>
</div>
<p class="testimonial-author">- Emily R.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="container-fluid footer-section">
<div class="row">
<div class="col-md-4">
<h4>Wellness <span class="green-text">Renewed</span></h4>
</div>
<div class="col-md-12 text-center">
<div class="row">
<div class="col-md-2">
<ul class="list-unstyled">
<!-- links -->
</ul>
</div>
<div class="col-md-2">
<ul class="list-unstyled">
<li><a href="#">Home</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">About Us</a></li>
</ul>
</div>
<div class="col-md-2">
<ul class="list-unstyled">
<li><a href="#">Testimonials</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div class="col-md-2">
<ul class="list-unstyled">
<li><a href="#">FAQ</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Gallery</a></li>
</ul>
</div>
<div class="col-md-2">
<ul class="list-unstyled">
<li><a href="#">Terms of Service</a></li>
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Careers</a></li>
<!-- links -->
</ul>
</div>
<div class="col-md-2">
<ul class="list-unstyled">
<!-- links -->
</ul>
</div>
</div>
</div>
<!-- horizontal line -->
<hr style="background-color: white;">
</div>
<div class="row">
<!-- Social icons -->
<div class="col-md-12 text-center">
<a href="#" class="social-icon"><i class="fab fa-facebook"></i></a>
<a href="#" class="social-icon"><i class="fab fa-instagram"></i></a>
<a href="#" class="social-icon"><i class="fa-brands fa-x-twitter"></i></a>
</div>
<div class="col-md-12 text-center">
<p>© 2023 Dev.Eugenius. All rights reserved.</p>
</div>
</div>
</footer>
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://kit.fontawesome.com/84092d3ce0.js" crossorigin="anonymous"></script>
<script>
function showModal() {
$('#disclaimerModal').modal('show');
}
$(document).ready(function() {
$('a, button').click(function(event) {
if (!($(this).is('#close-button') || $(this).is('#send-button'))) {
showModal();
}
event.preventDefault();
});
});
</script>
<script>
const welcomeMessage = "Hello! I'm your virtual assistant. How can I assist you today?";
document.getElementById("send-button").addEventListener("click", function () {
sendMessage();
});
document.getElementById("user-input").addEventListener("keydown", function (event) {
if (event.keyCode === 13) {
sendMessage();
}
});
function appendMessage(message, className) {
const chatBody = document.getElementById("chat-body");
const messageBubble = document.createElement("div");
messageBubble.className = className;
messageBubble.textContent = message;
chatBody.appendChild(messageBubble);
scrollChatToBottom();
}
function appendUserMessage(message) {
appendMessage(message, "user-bubble");
}
function appendBotMessage(message) {
appendMessage(message, "bot-bubble");
}
function getUserResponse(userMessage) {
fetch(`/get?user_message=${userMessage}`)
.then((response) => response.json())
.then((data) => {
const botResponse = data.bot_response;
appendBotMessage(botResponse);
scrollChatToBottom();
});
}
function sendMessage() {
const userMessage = document.getElementById("user-input").value;
if (userMessage.trim() !== "") {
appendUserMessage(userMessage);
getUserResponse(userMessage);
document.getElementById("user-input").value = "";
}
}
function scrollChatToBottom() {
const chatBody = document.getElementById("chat-body");
chatBody.scrollTop = chatBody.scrollHeight;
}
document.getElementById("chat-bubble").addEventListener("click", function () {
const chatContainer = document.getElementById("chat-container");
const chatBubble = document.getElementById("chat-bubble");
chatContainer.style.display = "block";
chatBubble.style.display = "none";
});
document.getElementById("close-button").addEventListener("click", function () {
const chatContainer = document.getElementById("chat-container");
const chatBubble = document.getElementById("chat-bubble");
chatContainer.style.display = "none";
chatBubble.style.display = "flex";
});
const chatBubble = document.getElementById("chat-bubble");
const chatContainer = document.getElementById("chat-container");
const closeButton = document.getElementById("close-button");
chatBubble.addEventListener("click", function () {
chatContainer.classList.add("active");
});
closeButton.addEventListener("click", function () {
chatContainer.classList.remove("active");
});
function showWelcomeMessage() {
const chatBody = document.getElementById("chat-body");
const welcomeMessageBubble = document.createElement("div");
welcomeMessageBubble.className = "bot-bubble";
welcomeMessageBubble.textContent = welcomeMessage;
chatBody.appendChild(welcomeMessageBubble);
scrollChatToBottom();
}
showWelcomeMessage();
</script>
</body>
</html>