-
Notifications
You must be signed in to change notification settings - Fork 219
/
Faq.html
294 lines (264 loc) · 8.75 KB
/
Faq.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FAQ - Ticket Booking</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
<style>
/* Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body */
body {
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #2e2e2e, #3a8ff0);
color: #fff;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
min-height: 100vh;
}
/* Navbar styling */
.navbar {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 20px;
background-color: #1e1e2f;
color: #ffffff;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
position: fixed;
top: 0;
left: 0;
z-index: 100;
}
.logo-img {
border-radius: 50%;
height: 35px;
width: 35px;
margin-right: 10px;
}
.logo {
font-size: 20px;
color: #00d1b2;
}
.nav-links {
display: flex;
gap: 15px;
}
.nav-links a {
color: #ffffff;
font-size: 15px;
text-decoration: none;
display: flex;
align-items: center;
gap: 5px;
transition: color 0.3s;
}
.nav-links a:hover {
color: #00d1b2;
}
.dark-mode-toggle {
background: none;
border: none;
color: #ffffff;
font-size: 20px;
cursor: pointer;
transition: color 0.3s;
}
.dark-mode-toggle:hover {
color: #00d1b2;
}
/* Toggle Button (for small screens) */
.nav-toggle {
display: none;
font-size: 24px;
color: #ffffff;
background: none;
border: none;
cursor: pointer;
}
@media (max-width: 768px) {
.nav-links {
display: none;
flex-direction: column;
background-color: #1e1e2f;
position: absolute;
top: 60px;
right: 20px;
width: 200px;
padding: 10px;
border-radius: 8px;
}
.nav-links.show {
display: flex;
}
.nav-toggle {
display: block;
}
}
/* FAQ Section */
.faq-section {
margin-top: 80px;
width: 80%;
max-width: 700px;
padding: 20px;
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
backdrop-filter: blur(10px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.faq-section h2 {
font-size: 2em;
text-align: center;
color: #3a8ff0;
margin-bottom: 20px;
text-transform: uppercase;
}
.faq-container .faq-item {
margin-bottom: 15px;
border-radius: 8px;
overflow: hidden;
background: rgba(255, 255, 255, 0.15);
}
.faq-question {
width: 100%;
padding: 15px;
background-color: #1e1e1e;
color: #fff;
font-size: 1.2em;
font-weight: bold;
text-align: left;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
border: none;
outline: none;
transition: all 0.3s;
}
.faq-question i {
font-size: 1.2em;
color: #3a8ff0;
transition: transform 0.3s ease;
}
.faq-answer {
max-height: 0;
overflow: hidden;
padding: 0 15px;
color: #ddd;
transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
max-height: 100px;
padding: 15px;
}
.faq-item.open .faq-question i {
transform: rotate(180deg);
}
</style>
</head>
<body>
<!-- Navbar -->
<nav class="navbar">
<div class="logo">
<img src="https://ticket-booking-blue.vercel.app/images/4.jpeg" class="logo-img" alt="logo">
Ticket Marketplace
</div>
<!-- Toggle Button (Visible on Small Screens) -->
<button class="nav-toggle">☰</button>
<!-- Navbar Links -->
<div class="nav-links">
<a href="index.html"><i class="fas fa-home"></i> Home</a>
<a href="about.html"><i class="fas fa-info-circle"></i> About</a>
<a href="buy.html"><i class="fas fa-ticket-alt"></i> Buy Ticket</a>
<a href="sell.html"><i class="fas fa-tags"></i> Sell</a>
<a href="contactus.html"><i class="fas fa-envelope"></i> Contact</a>
<a href="contributor.html"><i class="fas fa-users"></i> Contributors</a>
<a href="login.html"><i class="fas fa-sign-in-alt"></i> Login</a>
</div>
<!-- Dark Mode Button -->
<button class="dark-mode-toggle">🌙</button>
</nav>
<!-- FAQ Section -->
<section class="faq-section">
<h2>Frequently Asked Questions</h2>
<div class="faq-container">
<div class="faq-item">
<div class="faq-question">
<span>What is your cancellation policy?</span>
<i class="fas fa-chevron-down"></i>
</div>
<div class="faq-answer">
<p>You can cancel your booking up to 24 hours before the flight for a full refund.</p>
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<span>How do I make changes to my booking?</span>
<i class="fas fa-chevron-down"></i>
</div>
<div class="faq-answer">
<p>You can make changes through our app or website by accessing your booking.</p>
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<span>Can I change the date of my travel after booking?</span>
<i class="fas fa-chevron-down"></i>
</div>
<div class="faq-answer">
<p>Yes, you can change the travel date up to 48 hours before your flight.</p>
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<span>Are there any additional fees not included in the booking price?</span>
<i class="fas fa-chevron-down"></i>
</div>
<div class="faq-answer">
<p>Additional fees such as luggage or in-flight services may apply.</p>
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<span>What should I do if I miss my flight?</span>
<i class="fas fa-chevron-down"></i>
</div>
<div class="faq-answer">
<p>Please contact our support immediately for rebooking or further assistance.</p>
</div>
</div>
<div class="faq-item">
<div class="faq-question">
<span>Do you offer travel insurance?</span>
<i class="fas fa-chevron-down"></i>
</div>
<div class="faq-answer">
<p>Yes, you can add travel insurance during the booking process.</p>
</div>
</div>
</div>
</section>
<!-- JavaScript for Navbar Toggle -->
<script>
const navToggle = document.querySelector('.nav-toggle');
const navLinks = document.querySelector('.nav-links');
navToggle.addEventListener('click', () => {
navLinks.classList.toggle('show');
});
const faqItems = document.querySelectorAll('.faq-item');
faqItems.forEach(item => {
item.addEventListener('click', () => {
item.classList.toggle('open');
});
});
</script>
</body>
</html>