-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
365 lines (352 loc) Β· 18 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Smart Ticketing</title>
<link href="https://cdn.jsdelivr.net/npm/daisyui@4.7.2/dist/full.min.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.tailwindcss.com"></script>
<!-- CSS -->
<link rel="stylesheet" href="styles/styles.css">
<!-- TAILWIND CUSTOM CLASSES -->
<script>
tailwind.config = {
theme: {
extend: {
colors: {
'primary-green': '#1DD100',
'custom-black': '#030712',
'custom-gray': '#5e626b',
'btn-green-bg': '#ddffd7',
}
}
}
}
</script>
</head>
<body>
<header class="p-4">
<nav>
<div class="navbar bg-base-100">
<div class="navbar-start">
<div class="dropdown">
<div tabindex="0" role="button" class="btn btn-ghost lg:hidden">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h8m-8 6h16" /></svg>
</div>
<ul tabindex="0" class="menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52">
<li><a>Home</a></li>
<li><a>About</a></li>
<li><a>Destination</a></li>
<li><a>Search</a></li>
</ul>
</div>
<a class="btn btn-ghost text-3xl"><span class="text-green-500">R</span>- Ticket</a>
</div>
<div class="navbar-center hidden lg:flex">
<ul class="menu menu-horizontal px-1 text-xl">
<li><a>Home</a></li>
<li><a>About</a></li>
<li><a>Destination</a></li>
<li><a>Search</a></li>
</ul>
</div>
<div class="navbar-end">
<a class="btn bg-green-100 border-green-500 border-2 text-green-500 text-2xl">Bus <img src="./images/bus-icon.png" alt="Bus-Icon"></a>
</div>
</div>
</nav>
</header>
<!-- MAIN SECTION SECTION START -->
<main class="p-4">
<!-- 1 BANNER SECTION START -->
<section class="relative bg-cover bg-center h-screen rounded-3xl" style="background-image: url('./images/banner.png');">
<div class="absolute inset-0"></div>
<div class="h-full flex flex-col justify-center items-center">
<h2 class="text-8xl font-bold text-white mb-4">End-to-End Travel with</h2>
<h2 class="text-7xl font-bold text-green-500 mb-4">Royal Paribahan</h2>
<p class="text-2xl m-6 text-white mb-8">Embark on a journey fit for royalty with Royal Paribohon - where excellence in service meets the art of travel.</p>
</div>
<div class="absolute inset-0 flex justify-center items-end mb-20">
<a href="#para-button" class="btn text-2xl m-4 bg-green-500" id="scrollToHere">Buy Tickets</a>
</div>
</section>
<!-- 2 OFFER SECTION START -->
<section class="mt-28">
<h1 class="text-4xl font-bold text-center">Best offers for you</h1>
<!-- card one -->
<div class="flex justify-around mt-12">
<div class="flex bg-[#FFBF0F] gap-48 px-12 py-12 rounded-3xl">
<div>
<h1 class="text-5xl font-sans font-black">15% OFF</h1>
<p class="text-xl font-semibold text-[#030712CC]">
on your next purchase
</p>
<p class="text-lg font-medium text-[#03071280]">
use by January 2024
</p>
</div>
<div class="flex flex-col justify-center items-center">
<h1 class="text-3xl font-black">NEW15</h1>
<p class="text-xl text-[#03071280] font-medium">Coupon Code</p>
</div>
</div>
<!-- card two -->
<div class="flex bg-[#F78C9C] gap-48 px-12 py-12 rounded-3xl">
<div>
<h1 class="text-5xl font-sans font-black">20% OFF</h1>
<p class="text-xl font-semibold text-[#030712CC]">
on your next purchase
</p>
<p class="text-lg font-medium text-[#03071280]">
use by January 2024
</p>
</div>
<div class="flex flex-col justify-center items-center">
<h1 class="text-3xl font-black">Couple 20</h1>
<p class="text-xl text-[#03071280] font-medium">Coupon Code</p>
</div>
</div>
</div>
<div class="flex justify-center items-center mt-16">
<button class="btn px-8 py-6 pb-10 border-[#1DD100] text-[#1DD100] text-lg font-bold">See All Offers</button>
</div>
</section>
<!-- INFORMATION SECTION START -->
<div id="info-section" class="info-box px-36 pt-32 bg-[#F7F8F8] border-t border-primary-green rounded-[88px] text-center">
<!-- heading -->
<div class="heading">
<h3 class="text-custom-black text-[2.5rem] font-bold font-raleway">Royal Paribahan</h3>
<p class="mx-auto w-3/5 mt-6 mb-12 font-inter text-lg font-normal text-custom-gray">All the information regarding our bus seats, travel routes and ticket pricings are given to save your time and help make bookings easier!!</p>
</div>
<!-- 1ST INFO BOX -->
<div class="bg-white flex px-8 rounded-3xl">
<!-- left info -->
<div class="w-3/4 py-8">
<!-- top info -->
<div class="flex justify-between">
<div class="flex gap-5 items-center">
<img src="images/bus-logo.png" alt="">
<div class="text-left w-4/5">
<h3 class="font-raleway text-custom-black font-bold text-3xl">Royal Paribahan</h3>
<p class="font-inter text-custom-gray text-lg font-normal">Coach-009-WEB | AC_Business</p>
</div>
</div>
<div class="bg-btn-green-bg flex rounded-xl p-5">
<img src="images/seat-green.png" alt="">
<p class="text-primary-green font-inter text-lg font-medium"><span id="available-seat">40</span> Seats left</p>
</div>
</div>
<!-- bottom info -->
<div class="bg-[#F7F8F8] p-8 mt-6 rounded-3xl">
<!-- 1st line -->
<div class="flex justify-between">
<span>Route</span>
<span class="text-[#030712] font-raleway font-semibold text-lg">Dhaka - Sylhet</span>
</div>
<hr class="my-4 border-2 border-dashed text-gray-800">
<!-- 2nd line -->
<div class="flex justify-between">
<span>Departure Time</span>
<span class="text-[#030712] font-raleway font-semibold text-lg">9:00 PM</span>
</div>
<hr class="my-4 border-2 border-dashed text-gray-800">
<!-- 3rd line -->
<div class="flex gap-6 ">
<div class="bg-gray-200 rounded-xl py-5 px-4 w-full">Boarding Point - Laxmipur</div>
<div class="bg-gray-200 rounded-xl py-5 px-4 w-full">Dropping Point - Bogura</div>
<div class="bg-gray-200 rounded-xl py-5 px-4 w-full">Est. Time - 11 Hour</div>
</div>
</div>
</div>
<!-- divider -->
<img class="px-8" src="images/info-devider.png" alt="">
<!-- right info -->
<div class="my-auto flex lg:flex-col items-center gap-2">
<img class="w-fit mb-4" src="images/fare.png" alt="">
<h5 class="text-custom-black font-raleway font-bold text-3xl">550 Taka</h5>
<p class="text-custom-gray font-raleway font-semibold text-2xl">Per Seat</p>
</div>
</div>
<!-- 2ND INFO BOX -->
<div id="para-button" class="bg-white flex mb-32">
<!-- left part -->
<div class="p-8 w-3/5">
<h5 class="font-raleway font-semibold text-2xl text-left">Select Your Seat</h5>
<hr class="my-5 border-1 border-dashed text-gray-800">
<div class="flex justify-between">
<div class="flex gap-2">
<img src="images/seat-gray.png" alt="">
<p class="text-custom-gray font-inter text-lg font-medium">Available</p>
</div>
<div class="flex gap-2">
<img src="images/seat-green-filled.png" alt="">
<p class="text-primary-green font-inter text-lg font-medium">Selected</p>
</div>
</div>
<hr class="my-5 border-1 border-dashed text-gray-800">
<!-- driver seat -->
<div class="flex justify-end mb-6">
<div class="bg-gray-300 rounded-xl py-3 px-10">
<img class="" src="images/steering-wheel.png" alt="">
</div>
</div>
<!-- main seating grid -->
<div class="seating-grid grid grid-cols-5 gap-8 items-center text-gray-500 font-medium text-lg">
<p>A</p>
<button class="seat">A1</button>
<button class="seat">A2</button>
<button class="seat">A3</button>
<button class="seat">A4</button>
<p>B</p>
<button class="seat">B1</button>
<button class="seat">B2</button>
<button class="seat">B3</button>
<button class="seat">B4</button>
<p>C</p>
<button class="seat">C1</button>
<button class="seat">C2</button>
<button class="seat">C3</button>
<button class="seat">C4</button>
<p>D</p>
<button class="seat">D1</button>
<button class="seat">D2</button>
<button class="seat">D3</button>
<button class="seat">D4</button>
<p>E</p>
<button class="seat">E1</button>
<button class="seat">E2</button>
<button class="seat">E3</button>
<button class="seat">E4</button>
<p>F</p>
<button class="seat">F1</button>
<button class="seat">F2</button>
<button class="seat">F3</button>
<button class="seat">F4</button>
<p>G</p>
<button class="seat">G1</button>
<button class="seat">G2</button>
<button class="seat">G3</button>
<button class="seat">G4</button>
<p>H</p>
<button class="seat">H1</button>
<button class="seat">H2</button>
<button class="seat">H3</button>
<button class="seat">H4</button>
<p>I</p>
<button class="seat">I1</button>
<button class="seat">I2</button>
<button class="seat">I3</button>
<button class="seat">I4</button>
<p>J</p>
<button class="seat">J1</button>
<button class="seat">J2</button>
<button class="seat">J3</button>
<button class="seat">J4</button>
</div>
</div>
<div class="vertical-line"></div>
<!-- right part -->
<div class="p-8 w-2/5">
<h5 class="font-raleway font-semibold text-2xl">Select Your Seat</h5>
<hr class="my-5 border-1 border-dashed text-gray-800">
<!-- price div -->
<div class="bg-[#F7F8F8] p-8 rounded-xl ">
<div class=" flex justify-between rounded-xl price-title">
<p>Seat<span id="seat-count" class="bg-primary-green px-2 rounded-md ml-1 text-white font-inter text-xs font-bold">0</span></p>
<p>Class</p>
<p class="ml-6 mr-1">Price</p>
</div>
<hr class="my-5 border-1 border-dashed text-gray-700">
<div id="seat-info" class=" grid grid-cols-3 gap-x-36 gap-y-4 text-left rounded-xl font-inter font-normal text-gray-500">
</div>
<hr class="my-5 border-1 border-solid text-gray-800">
<!-- total price -->
<div class="price-title flex justify-between mb-4">
<p>Total Price</p>
<p>BDT <span id="total-price">0</span></p>
</div>
<!-- coupon -->
<div id="coupon-field" class="bg-white flex justify-between p-2 pl-5 rounded-xl w-full">
<input id="coupon-code" type="text" placeholder="Have any coupon?">
<button id="btn-apply" onclick="couponCheck()" class="bg-primary-green py-3 px-5 text-white font-inter font-semibold rounded-lg">Apply</button>
</div>
<!-- discount -->
<div id="discount-price" class="price-title flex justify-between my-5 hidden">
<p>Discount</p>
<p id="discount-amount">BDT 0</p>
</div>
<!-- grand total -->
<div class="price-title flex justify-between mt-6">
<p>Grand total</p>
<p>BDT <span id="grand-total">0</span></p>
</div>
<!-- passenger info -->
<div class="mt-6">
<label class="block text-left m-2" for="name">Passenger Name*</label>
<input
class="border-solid border w-full border-[#f1efef] rounded-lg p-6"
type="text"
name=""
id="name"
placeholder="Enter your name"
/>
<label class="block text-left m-2" for="name">Phone Number*</label>
<input
class="border-solid border w-full border-[#f1efef] rounded-lg p-6"
type="number"
name=""
id="phone"
placeholder="Enter your phone number"
/>
<label class="block text-left m-2" for="name">Email ID</label>
<input
class="border-solid border w-full border-[#f1efef] rounded-lg p-6"
type="text"
name=""
id=""
placeholder="Enter your email id"
/>
</div>
<button onclick="my_modal_4.showModal()" id="btn-next" class="text-white font-inter bg-primary-green font-semibold py-6 px-8 w-full rounded-2xl mt-6 text-xl">Next</button>
</div>
</div>
</div>
<!-- INFORMATION SECTION END -->
<!-- MODAL -->
<dialog id="my_modal_4" class="modal">
<div class="modal-box w-11/12 max-w-3xl text-center">
<img src="images/success.png" alt="" class="mx-auto py-14 px-14">
<h3 class="font-bold text-2xl text-[#27AE60] font-roboto">Success</h3>
<p class="py-4 font-roboto text-xl font-medium text-[#4A4A4A]">Thank you for Booking Our Bus Seats. <br> We are working hard to find the best service and deals for you.</p>
<p class="font-roboto text-xl text-[#4A4A4A] font-light">Shortly you will find a confirmation in your email.</p>
<div class="modal-action">
<form method="dialog" class="mx-auto">
<!-- if there is a button, it will close the modal -->
<button class="btn mb-14 mx-auto bg-[#27AE60] rounded-[32px] px-28 font-roboto text-white font-semibold text-xl h-16">Continue</button>
</form>
</div>
</div>
</dialog>
<!-- MAIN SECTION END -->
</main>
<!-- FOOTER SECTION START -->
<footer>
<div class="footer p-10 bg-neutral text-neutral-content">
<aside>
<svg width="50" height="50" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" class="fill-current"><path d="M22.672 15.226l-2.432.811.841 2.515c.33 1.019-.209 2.127-1.23 2.456-1.15.325-2.148-.321-2.463-1.226l-.84-2.518-5.013 1.677.84 2.517c.391 1.203-.434 2.542-1.831 2.542-.88 0-1.601-.564-1.86-1.314l-.842-2.516-2.431.809c-1.135.328-2.145-.317-2.463-1.229-.329-1.018.211-2.127 1.231-2.456l2.432-.809-1.621-4.823-2.432.808c-1.355.384-2.558-.59-2.558-1.839 0-.817.509-1.582 1.327-1.846l2.433-.809-.842-2.515c-.33-1.02.211-2.129 1.232-2.458 1.02-.329 2.13.209 2.461 1.229l.842 2.515 5.011-1.677-.839-2.517c-.403-1.238.484-2.553 1.843-2.553.819 0 1.585.509 1.85 1.326l.841 2.517 2.431-.81c1.02-.33 2.131.211 2.461 1.229.332 1.018-.21 2.126-1.23 2.456l-2.433.809 1.622 4.823 2.433-.809c1.242-.401 2.557.484 2.557 1.838 0 .819-.51 1.583-1.328 1.847m-8.992-6.428l-5.01 1.675 1.619 4.828 5.011-1.674-1.62-4.829z"></path></svg>
<p><span class="text-blue-500">Royal</span> Paribohon Ltd.<br>Providing Reliable Journey since 1992</p>
</aside>
<nav>
<h6 class="footer-title">Social</h6>
<div class="grid grid-flow-col gap-4">
<a><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" class="fill-current"><path d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"></path></svg></a>
<a><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" class="fill-current"><path d="M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z"></path></svg></a>
<a><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" class="fill-current"><path d="M9 8h-3v4h3v12h5v-12h3.642l.358-4h-4v-1.667c0-.955.192-1.333 1.115-1.333h2.885v-5h-3.808c-3.596 0-5.192 1.583-5.192 4.615v3.385z"></path></svg></a>
</div>
</nav>
</div>
</footer>
<!-- LINK JAVASCRIPT TO HTML FILE -->
<script src="scripts/script.js"></script>
</body>
</html>