forked from ankit071105/Ticket-Booking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
611 lines (524 loc) · 20.5 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ticket Booking</title>
<link rel="shortcut icon" href="images/4.jpeg" type="image/x-icon">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="index.css">
<style>
.close-btn {
position: absolute;
top: -10px;
right: -10px;
width: 25px;
height: 25px;
font-size: 24px;
color: white;
cursor: pointer;
background-color: black;
border: 2px solid white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
.toggle-arrow {
position: fixed;
top: 50%;
left: 0;
transform: translateY(-50%);
background-color: #1fb899;
padding: 5px;
border-radius: 0 10px 10px 0;
cursor: pointer;
color: white;
font-size: 24px;
}
.social-sidebar {
position: fixed;
top: 50%;
left: 0;
transform: translateY(-50%);
display: flex;
flex-direction: column;
gap: 15px;
background-color: #1fb899;
padding: 8px;
border-radius: 0 10px 10px 0;
border: none;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.social-sidebar a {
text-decoration: none;
color: white;
font-size: 20px;
padding: 10px;
transition: background-color 0.6s ease, transform 0.3s ease;
border: none;
border-bottom: none;
border-radius: 5px;
}
.social-sidebar a:hover {
background-color: #ffffff;
border-radius: 50%;
color: black;
transform: scale(1.1);
}
.social-sidebar i {
display: block;
transition: transform 0.3s ease;
}
.social-sidebar a:hover i {
transform: scale(1);
}
</style>
<link rel="stylesheet" href="faq.css">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="index.css">
<style>
.close-btn {
position: absolute;
top: -10px;
right: -10px;
width: 25px;
height: 25px;
font-size: 24px;
color: white;
cursor: pointer;
background-color: black;
border: 2px solid white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
.toggle-arrow {
position: fixed;
top: 50%;
left: 0;
transform: translateY(-50%);
background-color: #1fb899;
padding: 5px;
border-radius: 0 10px 10px 0;
cursor: pointer;
color: white;
font-size: 24px;
}
.social-sidebar {
position: fixed;
top: 50%;
left: 0;
transform: translateY(-50%);
display: flex;
flex-direction: column;
gap: 15px;
background-color: #1fb899;
padding: 8px;
border-radius: 0 10px 10px 0;
border: none;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.social-sidebar a {
text-decoration: none;
color: white;
font-size: 20px;
padding: 10px;
transition: background-color 0.6s ease, transform 0.3s ease;
border: none;
border-bottom: none;
border-radius: 5px;
}
.social-sidebar a:hover {
background-color: #ffffff;
border-radius: 50%;
color: black;
transform: scale(1.1);
}
.social-sidebar i {
display: block;
transition: transform 0.3s ease;
}
.social-sidebar a:hover i {
transform: scale(1);
}
/* code for bottom to to nav */
#myBtn {
display: none;
position: fixed;
bottom: 20px;
right: 30px;
z-index: 99;
font-size: 18px;
border: none;
outline: none;
background-color:#1fb899;
color: white;
cursor: pointer;
padding: 10px 6px;
border-radius: 4px;
width: 40px !important;
height: 40px !important;
}
#myBtn:hover {
background-color: #4cc6ad;
}
/* code for bottom to to nav */
</style>
</head>
<body>
<button onclick="moveToTop()" id="myBtn" title="Go to top"><i class="fa fa-arrow-up" aria-hidden="true"></i></button>
<nav class="navbar">
<a href="./index.html" id="logo-href">
<div class="logo-container">
<img src="images/4.jpeg" alt="Ticket Booking Logo" class="logo-image">
<div class="logo">Ticket Booking</div>
</div>
</a>
<div class="nav-container">
<div class="menu-toggle">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</div>
<ul class="nav-links">
<li><a href="#about"><i class="fas fa-info-circle"></i> About Us</a></li>
<li><a href="buy.html"><i class="fas fa-shopping-cart"></i> Buy</a></li>
<li><a href="sell.html"><i class="fas fa-tag"></i> Sell</a></li>
<li><a href="#sxs"><i class="fas fa-envelope"></i> Contact</a></li>
<li><a href="/client/register.html" class="login-btn"><i class="fas fa-user"></i>Signup</a></li>
</ul>
<button id="darkModeToggle" style="width: 40px; height: 40px;">🌙</button>
</div>
</nav>
<div class="slider">
<div class="slide active">
<img src="images/6.jpeg" alt="Slide 1">
</div>
<div class="slide">
<img src="images/4.jpeg" alt="Slide 2">
</div>
<div class="slide">
<img src="images/3.jpeg" alt="Slide 3">
</div>
<div class="slide">
<img src="images/2.jpeg" alt="Slide 3">
</div>
<div class="slide">
<img src="images/1.jpeg" alt="Slide 3">
</div>
<div class="slide">
<img src="images/5.jpeg" alt="Slide 3">
</div>
<div class="slide">
<img src="images/7.jpeg" alt="Slide 3">
</div>
</div>
<div class="nav-buttons">
<button class="prev" onclick="prevSlide()" style="width: 40px; height: 40px;">❮</button>
<button class="next" onclick="nextSlide()" style="width: 40px; height: 40px;">❯</button>
</div>
</div>
</div>
<div class="social-sidebar">
<div class="close-btn" onclick="toggleSidebar()" title="Close Sidebar">×</div>
<a href="https://www.facebook.com" target="_blank"><i class="fa-brands fa-meta"></i></a>
<a href="https://www.twitter.com" target="_blank"><i class="fab fa-twitter"></i></a>
<a href="https://www.instagram.com" target="_blank"><i class="fa-brands fa-instagram"></i></a>
<a href="https://www.linkedin.com" target="_blank"><i class="fa-brands fa-linkedin"></i></a>
</div>
<div class="toggle-arrow" onclick="toggleSidebar()" title="Open Sidebar" style="display: none;">
<i class="fas fa-arrow-right"></i>
</div>
<div class="home">
<h2>Book Bus or Train Tickets</h2>
<div class="ticket-list">
<div class="ticket-card">
<h3>Bus Tickets</h3>
<p>Find affordable bus tickets for your travel needs. Select your destination and date of travel to get
started.</p>
<br> <a href="buy.html"><button style="text-align: center; width: auto; height: auto;">Buy Bus
Tickets</button></a>
<br>
<p>Looking to sell your bus tickets? Contact us for reselling options!</p>
<br> <a href="bus_sell.html"> <button style="width: auto; height: auto;">Sell Bus Tickets</button></a>
</div>
<div class="ticket-card">
<h3>Train Tickets</h3>
<p>Secure train tickets for your journey across the country. Check availability and book now.</p>
<br> <a href="buy.html"><button style="width: auto; height: auto;">Buy Train Tickets</button></a>
<br>
<p>Have train tickets to sell? Reach out to us to list your tickets.</p>
<br> <a href="train_sell.html"> <button style="width: auto; height: auto;">Sell Train
Tickets</button></a>
</div>
</div>
</div>
<div id="about" class="about">
<h2>Why book with us?</h2>
<div class="features-container">
<div class="feature-box">
<img src="images/easy-booking.svg" alt="Easy Booking">
<h3>Easy Booking</h3>
<p>We make bus and train ticket booking simple and hassle-free, offering a streamlined experience so you
can plan your journeys effortlessly.</p>
</div>
<div class="feature-box">
<img src="images/lowest-booking.svg" alt="Lowest Price">
<h3>Lowest Price</h3>
<p>Find the best deals on bus and train tickets. We guarantee competitive prices to ensure you save more
on every trip. </p>
</div>
<div class="feature-box">
<img src="images/exc-deal.svg" alt="Exciting Deals">
<h3>Exciting Deals</h3>
<p>Unlock special discounts and offers on bus and train bookings, helping you travel for less without
compromising on quality.</p>
</div>
<div class="feature-box">
<img src="images/support.svg" alt="24/7 Support">
<h3>24/7 Support</h3>
<p>Our customer support is available 24/7 to assist with your bus and train booking needs. We're here to
help anytime you need us.</p>
</div>
</div>
</div>
<!--FAQ section-->
<section id="faq" class="faq-section">
<h1 style="font-size: 3rem; color: rgb(14, 71, 150);">Frequently Asked Questions</h1>
<div class="faq-container">
<div class="faq-item">
<button class="faq-question" aria-expanded="false">
How can I ensure I get the best possible deal on my ticket?
</button>
<div class="faq-answer">
<p>
Our app utilizes dynamic pricing technology to offer you the most competitive fares.
</p>
</div>
</div>
<div class="faq-item">
<button class="faq-question" aria-expanded="false">
What payment methods are accepted?
</button>
<div class="faq-answer">
<p>
We accept a variety of payment methods, including credit cards, debit cards, net banking, UPI payments, and digital wallets.
</p>
</div>
</div>
<div class="faq-item">
<button class="faq-question" aria-expanded="false">
What is the significance of the name ‘Krishna’?
</button>
<div class="faq-answer">
<p>What if I need to cancel or modify my booking?</p>
</div>
</div>
<div class="faq-item">
<button class="faq-question" aria-expanded="false">
How can I track my booking status and receive updates?
</button>
<div class="faq-answer">
<p>Our app provides real-time tracking of your booking status and automatic updates.</p>
</div>
</div>
</div>
</section>
<div class="containers" id="sxs">
<h1 style="font-size: 3rem; color: rgb(14, 71, 150);">Contact Us</h1>
<div class="map-container">
<iframe
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d126915.40242030277!2d85.7892607!3d20.2498709!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3a19a7a3b9692fff%3A0x87cd0a356bbc39ce!2sITER%2C%20Siksha%20'O'%20Anusandhan!5e0!3m2!1sen!2sin!4v1689514124518!5m2!1sen!2sin"
allowfullscreen>
</iframe>
</div>
<p style="font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;">
Also reach us on:
</p>
<br>
<div class="contact-links">
<div class="contact-links-block">
<a class="anchor" href="mailto:[email protected]" class="email-link">
<img class="btm-logo contact-icon" src="./images/gmail.png" alt="Mail Icon">
Mail Us
</a>
</div>
<div class="contact-links-block">
<a class="anchor" href="https://wa.me/919031358194" target="_blank">
<img class="btm-logo contact-icon" src="./images/whatsapp.png" alt="WhatsApp Icon">
WhatsApp Us
</a>
</div>
</div>
<!-- <div class="faq-section">
<header>
<h2>FAQs</h2>
<p>Answers to the most frequently asked questions.</p>
</header>
<details>
<summary>
<h4>Why is Raycast free for personal use?</h4>
<span class="material-symbols-outlined"><i class="fa fa-angle-down down-arrow"></i></span>
</summary>
<p>We think of Raycast as a productivity layer that everybody should use to get work done faster. To make it accessible, we don't charge for the individual plan. The plan covers all built-in extensions, such as Clipboard History, Calendar or Window Management and provides access to all public extensions built by our community.</p>
</details>
<hr>
<details>
<summary>
<h4>When is Raycast for teams available?</h4>
<span class="material-symbols-outlined"><i class="fa fa-angle-down down-arrow"></i></span>
</summary>
<p>We don't have an exact date right now, but we will launch Raycast for Teams in 2022. You can sign up to get early access above, and be the first to hear when we're launching it.</p>
</details>
<hr>
<details>
<summary>
<h4>How many seats do I get in a Team plan?</h4>
<span class="material-symbols-outlined"><i class="fa fa-angle-down down-arrow"></i></span>
</summary>
<p>We don't have an exact date right now, but we will launch Raycast for Teams in 2022. You can sign up to get early access above, and be the first to hear when we're launching it.</p>
</details>
<hr>
<details>
<summary>
<h4>Can I have personal Extensions and Team Extensions?</h4>
<span class="material-symbols-outlined"><i class="fa fa-angle-down down-arrow"></i></span>
</summary>
<p>Yes, you can create personal Extensions that are personalized to you, and speed up your productivity, and have team Extensions that can be shared around in your organization for everyone to use. Team Extensions will be available in the Store command, behind a filter for your Team. This is where all of your Team Extensions will live, and where you can install them.</p>
</details>
<hr>
<details>
<summary>
<h4>How much will Team features cost?</h4>
<span class="material-symbols-outlined"><i class="fa fa-angle-down down-arrow"></i></span>
</summary>
<p>Team features will cost $10 per user, per month.</p>
</details>
</div> -->
<footer>
<div class="footer">
© 2024 Ticket Booking. All rights reserved. | <a href="#">Privacy Policy</a>
</div>
</footer>
<script>
let currentSlide = 0;
const slides = document.querySelectorAll('.slide');
function showSlide(index) {
slides.forEach((slide, i) => {
slide.classList.remove('active');
if (i === index) {
slide.classList.add('active');
}
});
}
function nextSlide() {
currentSlide = (currentSlide + 1) % slides.length;
showSlide(currentSlide);
}
function prevSlide() {
currentSlide = (currentSlide - 1 + slides.length) % slides.length;
showSlide(currentSlide);
}
function toggleSidebar() {
const sidebar = document.querySelector('.social-sidebar');
const arrow = document.querySelector('.toggle-arrow');
if (sidebar.style.display === 'none' || !sidebar.style.display) {
sidebar.style.display = 'flex'; // Show sidebar
arrow.style.display = 'none'; // Hide arrow
} else {
sidebar.style.display = 'none'; // Hide sidebar
arrow.style.display = 'block'; // Show arrow
}
}
// Initialize sidebar to be visible on page load
document.querySelector('.social-sidebar').style.display = 'flex';
setInterval(nextSlide, 5000);
showSlide(currentSlide);
const darkModeToggle = document.getElementById('darkModeToggle');
const body = document.querySelector('body');
if (darkModeToggle) {
darkModeToggle.addEventListener('click', () => {
document.body.classList.toggle('dark-mode');
if (body.classList.contains('dark-mode')) {
darkModeToggle.innerHTML = "🔆";
}
else {
darkModeToggle.innerHTML = "🌙";
}
});
}
// change icon of the dark/light mode
const menuToggle = document.querySelector('.menu-toggle');
const navLinks = document.querySelector('.nav-links');
menuToggle.addEventListener('click', () => {
navLinks.classList.toggle('active');
menuToggle.classList.toggle('active');
// Special effect for hamburger icon
const bars = menuToggle.querySelectorAll('.bar');
bars.forEach((bar, index) => {
if (menuToggle.classList.contains('active')) {
bar.style.transform = index === 1 ? 'scale(0)' : `rotate(${index === 0 ? '45deg' : '-45deg'})`;
} else {
bar.style.transform = 'none';
}
});
});
// Close menu when clicking outside
document.addEventListener('click', (event) => {
if (!navLinks.contains(event.target) && !menuToggle.contains(event.target)) {
navLinks.classList.remove('active');
menuToggle.classList.remove('active');
menuToggle.querySelectorAll('.bar').forEach(bar => {
bar.style.transform = 'none';
});
}
});
// When the user scrolls down 100px from the top, show the button
window.onscroll = function() { scrollFunction() };
function scrollFunction() {
const topBtn = document.getElementById("topBtn");
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
topBtn.style.display = "block"; // Show button
} else {
topBtn.style.display = "none"; // Hide button
}
}
// When the user clicks on the button, scroll to the top of the document
function moveToTop() {
window.scrollTo({ top: 0, behavior: 'smooth' }); // Smooth scroll to top
}
// script for faq section
document.querySelectorAll('.faq-question').forEach(button => {
button.addEventListener('click', () => {
const answer = button.nextElementSibling;
const isExpanded = button.getAttribute('aria-expanded') === 'true';
document.querySelectorAll('.faq-answer').forEach(a => a.style.display = 'none');
document.querySelectorAll('.faq-question').forEach(q => q.setAttribute('aria-expanded', 'false'));
if (!isExpanded) {
answer.style.display = 'block';
button.setAttribute('aria-expanded', 'true');
}
});
});
let mybutton = document.getElementById("myBtn");
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
</body>
</html>