-
Notifications
You must be signed in to change notification settings - Fork 1
/
booking.html
755 lines (647 loc) · 21.5 KB
/
booking.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
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BOOKING </title>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@500&family=Poppins:wght@300&family=Raleway:wght@700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
background-color: #fbf5e5;
color: #2d2d2d;
overflow-x: hidden;
position: relative;
}
#video-background {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
object-fit: cover;
z-index: -1;
opacity: 1.9;
}
.navlist li h1 a:hover{
width: auto;
color: rgb(212, 24, 149);
}
.navbar{
margin: 1rem 10rem 2rem 10rem ;
font-family: 'Times New Roman', Times, serif;
}
.navlist{
padding-left: 0px;
display:flex;
justify-content: center;
}
.navlist li{
align-content: center;
width: 500px;
/* margin-left: 40px; */
margin-right: 40px;
list-style: none;
font-size: 15px;
}
.logo{
margin-right: 5rem;
margin-left: 5rem;
width: 150px;
height: auto;
border-radius: 50%;
}
.navlist li a{
text-decoration: none;
color: black;
}
.hero {
height: 350px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
z-index: 1;
}
.hero-text {
position: relative;
padding: 40px;
text-align: center;
color: rgb(0, 0, 0);
font-family: 'Raleway', sans-serif;
z-index: 1;
}
.hero-text::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: url(https://static.vecteezy.com/system/resources/thumbnails/026/518/009/small_2x/look-of-a-young-boy-in-manga-and-anime-style-free-vector.jpg);
background-size: cover;
background-position: center;
filter: blur(3.231s);
z-index: -1;
opacity: 0.9; /* Adjust the opacity for better visibility */
}
.hero-text p {
position: relative;
z-index: 2;
}
.hero-btn {
margin-top: 20px;
padding: 10px 20px;
background-color: #ffd600;
border: none;
cursor: pointer;
font-size: 18px;
color: #333;
font-weight: bold;
}
.hero-btn:hover {
background-color: #ffea00;
}
.booking-section {
padding: 40px;
position: relative;
max-width: 1200px;
margin: 0 auto;
z-index: 1;
}
.booking-form {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05)); /* Gradient overlay */
padding: 40px;
border-radius: 20px;
backdrop-filter: blur(20px); /* Stronger blur */
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); /* Deeper shadow for better depth */
max-width: 550px;
border: 2px solid rgba(38, 65, 67, 0.5); /* Subtle, semi-transparent border */
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}
.form-image {
position: absolute;
margin-left: 300px;
top: 32%; /* Adjust this value to control vertical position */
width: 100%; /* Adjust width to fit your design */
height: auto; /* Maintain aspect ratio */
}
.booking-img {
width: 1200px; /* Responsive image */
height: 700px;
}
.left-pic{
width: auto;
height: auto;
margin-left: -1500px;
top: 30%;
position: absolute;
}
/* Initial hidden state off-screen */
.left-pic, .booking-img {
opacity: 0; /* Hidden initially */
transform: translateX(-100%); /* Start off-screen to the left */
transition: transform 1s ease-out, opacity 1s ease-out;
}
/* Class to animate to visible position */
.show-left-pic {
opacity: 1;
transform: translateX(0); /* Move to the original position */
}
.booking-img {
opacity: 0; /* Hidden initially */
transform: translateX(100%); /* Start off-screen to the right */
transition: transform 1s ease-out, opacity 1s ease-out;
}
.show-booking-img {
opacity: 1;
transform: translateX(0); /* Move to the original position */
}
.form-row {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 40px;
margin-bottom: 20px;
}
.form-group {
flex: 1;
min-width: 220px;
}
label {
display: block;
font-size: 14px;
margin-bottom: 8px;
font-weight: bold;
}
input, select, textarea {
width: 100%;
padding: 10px;
border: 1px solid #000000;
border-radius: 6px;
transition: border-color 0.3s ease;
font-size: 14px;
background-color:#ffd9e5;
}
input:focus, select:focus, textarea:focus {
border-color: #264143;
box-shadow: 0 4px 20px rgba(38, 65, 67, 0.5); /* More pronounced glow effect */
background: rgba(150, 147, 147, 0.9); /* More opacity on focus */
transform: scale(1.01); /* Slightly expand on focus */
}
.submit-btn {
width: 100%;
padding: 14px;
background-color: #264143;
color: white;
border: none;
border-radius: 8px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease;
}
.submit-btn:hover {
background-color: #000000;
}
.error {
color: red;
font-size: 14px;
margin-top: 5px;
}
.confirmation {
text-align: center;
margin-top: 20px;
font-size: 18px;
color: green;
}
@media (max-width: 600px) {
.form-row {
flex-direction: column;
}
}
/* Container to hold the slider */
.slider-container {
width: 100%;
overflow: hidden;
position: relative;
margin: 50px auto;
}
/* Slider row (flex) */
.slider {
display: flex;
width: max-content;
animation: slide 20s linear infinite; /* Looping animation */
}
/* Each box in the slider */
.slide {
width: 250px;
height: 250px;
margin-right: 20px;
flex-shrink: 0;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.slide img {
width: 100%;
height: 100%;
object-fit: cover; /* Ensure the image covers the box without distortion */
transition: transform 0.3s ease; /* Smooth image zoom effect on hover */
}
.slide img:hover {
transform: scale(1.1); /* Zoom in slightly when hovered */
}
/* Sliding animation */
@keyframes slide {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-50%); /* Slide halfway (to show the duplicated content) */
}
}
/* Responsive Styles */
/* For smaller screens (tablets) */
@media (max-width: 1024px) {
.slide {
width: 200px;
height: 200px;
margin-right: 15px;
}
.slider-container {
padding: 0 20px;
}
.slider {
animation: slide 25s linear infinite;
}
}
/* For mobile screens */
@media (max-width: 768px) {
.slide {
width: 150px;
height: 150px;
margin-right: 10px;
}
.slider {
animation: slide 30s linear infinite;
}
}
/* For very small screens (phones) */
@media (max-width: 480px) {
.slide {
width: 120px;
height: 120px;
margin-right: 5px;
}
.slider {
animation: slide 35s linear infinite;
}
}
footer{
background-image: url(images/footer\ for\ anime\ restraunt.png);
margin: 10px;
background-size: cover; /* Ensures the image covers the entire background */
background-position: center; /* Centers the background image */
background-repeat: no-repeat; /* Prevents the image from repeating */
padding: 20px; /* Adjust padding as needed */
color: white; /* Text color on top of the image */
}
.Footer_container {
display: flex;
gap: 5rem;
backdrop-filter: blur(4px) saturate(188%);
-webkit-backdrop-filter: blur(4px) saturate(188%);
background-color: rgba(68, 65, 54, 0.603);
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.241);
margin-left: 30px;
margin-right: 70vh;
padding: 20px;
}
.links_content ul,
.About ul {
list-style: none;
padding: 0;
margin: 0;
}
.links_content ul li,
.About ul li {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.About img {
width: 20px;
margin-right: 10px;
}
.About p {
margin: 0;
}
@media (min-height: 1300px) {
footer{
min-height: 200px;
}
.moresvg img {
width: 250px;
}
.header p{
font-size: 40px;
}
.subheader h1{
font-size: 50px;
}
.end-cover{
margin-top: 150px;
}
.svg-container {
width: 700px;
height: 900px;
}
.svg-container img {
width: 700px;
}
.svg2-container{
left: -140px;
width: 850px;
}
.svg2-container img {
width: 750px;
}
}
@media (max-width: 1366px) {
.navlist li img{
margin-left: 0px;
margin-right: 0px;
max-width: 150px;
}
.text-content p {
font-size: 20px;
}
.text-content h1{
font-size: 60px;
}
.image-content{
width: 500px;
}
footer{
max-height: 350px;
padding: 5px;
}
.Footer_container{
max-height: 200px;
padding: 3px;
}
.Footer_container .logo{
max-width: 80px;
}
.Footer_container iframe{
max-height: 100px;
}
.Footer_container h2{
font-size: 15px;
}
.About{
max-height:180px ;
}
.links_content button{
margin: 0;
font-size: 10px;
}
.About p{
font-size: 10px;
}
.About li{
margin: 0;
}
.end-cover{
margin-top: 150px;
}
}
</style>
</style>
</head>
<body>
<video autoplay muted loop id="video-background">
<!-- <source src="back.mp4" type="video/mp4"> -->
Your browser does not support the video tag.
</video>
<!-- Navbar -->
<header>
<nav class="navbar">
<div class="navContent" >
<div class="pointer">
<ul class="navlist">
<li><h1><a href="index.html">Home</a></h1></li>
<li><h1><a href="menu.html">Menu</a></h1></li>
<li><h1><a href="newlogin.html">Login/Signup</a></h1></li>
<li>
<img class="logo" src="logonew.png" alt="" class="logo" >
</li>
<li><h1><a href="OurStory.html">Our Story</a></h1></li>
<li><h1> <a href="ContactUs.html">Contact us</a></h1></li>
<li><h1><a href="guest.html">For guests</a></h1></li>
</ul>
</div>
</div>
</nav>
</header>
<!-- Hero Section -->
<section class="hero">
<div class="hero-text">
<h1 style="color: #e60303; display:inline; background-color: rgba(0, 0, 0, 0.3); padding: 1px 10px; text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); border: 3px solid #ff4081; border-radius: 8px; font-family:'Times New Roman', Times, serif; font-weight: bolder; backdrop-filter: blur(10px);">
𝐑𝐄𝐒𝐄𝐑𝐕𝐄 𝐘𝐎𝐔𝐑 𝐓𝐀𝐁𝐋𝐄 𝐓𝐎𝐃𝐀𝐘 !
</h1><br><br><br>
<p style="color: #ffffff;border: 3px solid #ff4081; font-family: 'Arial', sans-serif; font-size: 18px; background-color: rgba(0, 0, 0, 0.5); padding: 10px 20px; border-radius: 8px; margin-top: 10px;">
We take reservations for groups of any size.
<br> You are very welcome to come along as a walk-in, and we will get you seated as quickly as possible,<br> but at busy times there may be a wait.
</p>
<button style="background: linear-gradient(90deg, #ff4081, #ff79a1); color: white; padding: 12px 25px; border: none; border-radius: 30px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); font-size: 16px; font-weight: bold; font-family: 'Arial', sans-serif; cursor: pointer; transition: background 0.3s ease, box-shadow 0.3s ease;"
onmouseover="this.style.background='linear-gradient(90deg, #ff79a1, #ff4081)'; this.style.boxShadow='0 6px 15px rgba(0, 0, 0, 0.5)';"
onmouseout="this.style.background='linear-gradient(90deg, #ff4081, #ff79a1)'; this.style.boxShadow='0 4px 10px rgba(0, 0, 0, 0.3)';">
Book Now
</button>
</div>
</section>
</div>
</section>
<!-- Booking Section -->
<center>
<section id="booking" class="booking-section">
<div class="booking-form">
<center><h2>Book a Table</h2></center>
<!-- EMAIL FORM SUBMISSION USING WEB3 FORM API -->
<form action="https://api.web3forms.com/submit" method="POST">
<!-- Replace with your Access Key -->
<input type="hidden" name="access_key" value="18ef18e0-4998-4505-a0b4-b06521f5df7e">
<!-- remember to make sure redirectit to our page -->
<!-- Row 1: Select Date and Select Time -->
<div class="form-row">
<div class="form-group">
<label for="date">Select Date:</label>
<input type="date" id="date" name="date" required>
</div>
<div class="form-group">
<label for="time">SELECT YOUR TIME SLOT:</label>
<select id="time" name="DURATION" required multiple size="6">
<option value="07:00">7:00 AM - 8:00 AM</option>
<option value="08:00">8:00 AM - 9:00 AM</option>
<option value="09:00">9:00 AM - 10:00 AM</option>
<option value="10:00">10:00 AM - 11:00 AM</option>
<option value="11:00">11:00 AM - 12:00 PM</option>
<option value="12:00">12:00 PM - 1:00 PM</option>
<option value="13:00">1:00 PM - 2:00 PM</option>
<option value="14:00">2:00 PM - 3:00 PM</option>
<option value="15:00">3:00 PM - 4:00 PM</option>
<option value="16:00">4:00 PM - 5:00 PM</option>
<option value="17:00">5:00 PM - 6:00 PM</option>
<option value="18:00">6:00 PM - 7:00 PM</option>
<option value="19:00">7:00 PM - 8:00 PM</option>
<option value="20:00">8:00 PM - 9:00 PM</option>
<option value="21:00">9:00 PM - 10:00 PM</option>
<option value="22:00">10:00 PM - 11:00 PM</option>
</select>
</div>
</div>
<!-- Row 2: Number of Guests and Seating Preference -->
<div class="form-row">
<div class="form-group">
<label for="guests">Number of Guests:</label>
<input type="number" id="guests" name="guests" min="1" max="10" required>
</div>
<div class="form-group">
<label for="preference">Seating Preference:</label>
<select id="preference" name="preference">
<option value="indoor">Indoor</option>
<option value="outdoor">Outdoor</option>
</select>
</div>
</div>
<!-- Row 3: Name and Email -->
<div class="form-row">
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<div class="error" id="nameError"></div>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<div class="error" id="emailError"></div>
</div>
</div>
<!-- Row 4: Special Requests -->
<div class="form-row">
<div class="form-group">
<label for="requests">Special Requests:</label>
<textarea id="requests" name="requests" rows="3" placeholder="Allergies, preferences, etc."></textarea>
</div>
</div>
<button type="submit" class="submit-btn">Submit Booking</button>
</form>
<div class="confirmation" id="confirmationMessage"></div>
</div>
</section>
<div class="form-image">
<img src="blackbutler.png" alt="Reservation" class="booking-img">
</div><br><br>
<center>
<div class="leftpic">
<img src="leftpic.png" alt="leftpic" class="left-pic">
</div>
<div class="slider-container">
<div class="slider">
<!-- Original set of slides -->
<div class="slide"><img src="https://static.tildacdn.com/tild3930-6565-4261-b264-363332383838/Frame_82.svg" alt="Image 1"></div>
<div class="slide"><img src="https://static.tildacdn.com/tild3464-3837-4233-a665-633561653839/Frame_84.svg" alt="Image 2"></div>
<div class="slide"><img src="https://static.tildacdn.com/tild3561-6635-4061-b535-633630393330/Frame_85.svg" alt="Image 3"></div>
<div class="slide"><img src="https://static.tildacdn.com/tild3437-3530-4535-a464-613262623538/Frame_89.svg" alt="Image 4"></div>
<div class="slide"><img src="https://static.tildacdn.com/tild3038-6163-4635-b238-353365633264/Frame_88.svg" alt="Image 5"></div>
<!-- Duplicate set of slides to create a seamless loop -->
<div class="slide"><img src="https://static.tildacdn.com/tild3930-6565-4261-b264-363332383838/Frame_82.svg" alt="Image 1"></div>
<div class="slide"><img src="https://static.tildacdn.com/tild3464-3837-4233-a665-633561653839/Frame_84.svg" alt="Image 2"></div>
<div class="slide"><img src="https://static.tildacdn.com/tild3561-6635-4061-b535-633630393330/Frame_85.svg" alt="Image 3"></div>
<div class="slide"><img src="https://static.tildacdn.com/tild3437-3530-4535-a464-613262623538/Frame_89.svg" alt="Image 4"></div>
<div class="slide"><img src="https://static.tildacdn.com/tild3038-6163-4635-b238-353365633264/Frame_88.svg" alt="Image 5"></div>
</div>
</div>
<Footer>
<div class="Footer_container">
<div >
<img class="logo" src="images/THE NINE-TAILS KITCHEN (1).png" style="width: 100px;"><br>
<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d13748.700537259449!2d76.6597778!3d30.5160865!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x390fc32344a6e2d7%3A0x81b346dee91799ca!2sChitkara%20University!5e0!3m2!1sen!2sin!4v1722535334365!5m2!1sen!2sin" width="300" height="200" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
</div>
<div class="links_content">
<h2>Links</h1>
<ul>
<li><button>Home</button></li><br>
<li><button>Menu</button></li><br>
<li><button>Our Story</button></li><br>
<li><button>Contact us</button></li>
</ul>
</div>
<div class="About">
<h2>About</h2><br>
<ul>
<li><img src="images/icons8-location-48.png" alt="" srcset=""><p>Chandigarh-Patiala National Highway (NH-64)
Punjab- 140 401, India</p></li><br>
<li><img src="images/icons8-phonecall-100.png" alt="" srcset=""><p>+91 98274 ****3 ,+91 86778 ****0</p></li><br>
<li><img src="images/icons8-sent-64.png" alt="" srcset=""><p>TheNineTailRestro@X</p></li><br>
</ul>
</div>
</div>
</Footer>
<script>
window.addEventListener('scroll', function() {
let leftPic = document.querySelector('.left-pic');
let bookingImg = document.querySelector('.booking-img');
let leftPicPosition = leftPic.getBoundingClientRect().top;
let bookingImgPosition = bookingImg.getBoundingClientRect().top;
let screenPosition = window.innerHeight / 1.5;
if(leftPicPosition < screenPosition) {
leftPic.classList.add('show-left-pic');
}
if(bookingImgPosition < screenPosition) {
bookingImg.classList.add('show-booking-img');
}
});
document.getElementById("bookingForm").addEventListener("submit", function(e) {
e.preventDefault();
var name = document.getElementById("name").value;
var email = document.getElementById("email").value;
var date = document.getElementById("date").value;
var guests = document.getElementById("guests").value;
var preference = document.getElementById("preference").value;
// Get selected time slots
var selectedTimes = [];
var timeSelect = document.getElementById("time");
for (var option of timeSelect.options) {
if (option.selected) {
selectedTimes.push(option.value);
}
}
// Form validation
var error = false;
if (name.length < 2) {
document.getElementById("nameError").textContent = "Name must be at least 2 characters long.";
error = true;
} else {
document.getElementById("nameError").textContent = "";
}
if (!email.includes("@")) {
document.getElementById("emailError").textContent = "Please enter a valid email.";
error = true;
} else {
document.getElementById("emailError").textContent = "";
}
if (!error) {
document.getElementById("confirmationMessage").textContent =
`Thank you, ${name}! Your booking is confirmed for ${date} at ${selectedTimes.join(", ")}.`;
// Submits the form to Web3Forms
}
});
</script>
</body>
</html>