-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
314 lines (258 loc) · 20.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tailwindcss With Vite</title>
<link rel="stylesheet" href="./css/tailwind.css" />
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
</head>
<body>
<nav class="lg:h-[470px] lg:w-full h-[152px] bg-primary" style="background-image: url('./dist/assets/background/background1.svg'); background-repeat: no-repeat; background-position: right; background-size: 40% 100%;">
<div class="container mx-auto relative">
<div class="flex justify-between items-center p-3">
<div>
<a href="#">
<img src="./dist/assets/logo/logo-white.svg" class="h-[54px] w-[111px]" alt="">
</a>
</div>
<div>
<button class="btn btn-sm btn-outline text-white border-gray-200 hover:bg-white hover:text-black rounded-full hover:border-white lg:px-8">Sign in</button>
</div>
</div>
<div class="flex flex-col pt-40 absolute w-full top-20 lg:top-36">
<div class="flex justify-between items-center translate-y-[-170px] lg:translate-y-[0]">
<div class="p-6">
<h2 class="font-inter text-[12px] lg:text-[24px] text-white">Bus Ticket</h2>
<p class="text-p_color text-[12px] lg:text-md">Bus tickting made easy</p>
</div>
<div class="p-6">
<button class="btn btn-sm btn-outline text-primary rounded-full bg-white hover:bg-primary hover:text-white ">Ticket History</button>
</div>
</div>
<div class="bg-[#F7F7F7] rounded-md py-10 translate-y-[-168px] lg:translate-y-[-0]" >
<div class="lg:grid lg:grid-cols-5 gap-3">
<div>
<div class="flex justify-center">
<div x-data="{ dropdownOpen1: true }" class="relative">
<button @click="dropdownOpen1 = !dropdownOpen1" class="relative z-10 block lg:w-[180px] w-[250px] xl:w-[242px] rounded-lg bg-white p-2 focus:outline-none">
<div class="flex gap-1 xl:gap-x-3 pr-6">
<div class="flex justify-center items-center">
<div class="rounded-xl bg-opacity-[0.12] bg-[#33DDF0] lg:h-[30px] xl:h-[40px] lg:w-[30px] xl:w-[40px] h-[40px] w-[40px] flex items-center justify-center">
<img src="./dist/assets/icon/Vector (1).png" class="w-4 lg:w-2 xl:w-4" alt="">
</div>
</div>
<div class="">
<p class="font-inter flex items-start lg:text-sm xl:text-md text-md">From</p>
<p class="font-inter font-[500] lg:text-sm xl:text-md text-md">choose location</p>
</div>
</div>
</button>
<!-- <div x-show="dropdownOpen1" @click="dropdownOpen1 = false" class="fixed inset-0 h-full w-full z-10"></div> -->
<div x-show="!dropdownOpen1" class="absolute lg:right-[-62px] xl:right-0 mt-2 py-2 overflow-y-auto leading-6 h-80 w-64 bg-white divide-y-2 rounded-md shadow-xl z-20 before:block before:-mt-5 before:ml-20 before:-skew-y-3 before:bg-white before:h-5 before:w-5 before:rotate-45">
<div class="flex justify-center items-center p-4">
<h2 class="font-inter text-sm xl:text-md font-[600]">Select Your Location</h2>
</div>
<div class="flex justify-center items-center p-2">
<input type="text" class="border border-gray-300 px-6 py-2 rounded-md outline-none" placeholder="Search Location">
</div>
<div class="flex justify-start items-start p-2 text-sm xl:text-md">
<li class="list-none cursor-pointer font-inter font-[400] hover:text-primary">Dhaka</li>
</div>
<div class="flex justify-start items-start p-2 text-sm xl:text-md">
<li class="list-none cursor-pointer font-inter font-[400] hover:text-primary">Chittagong</li>
</div>
<div class="flex justify-start items-start p-2 text-sm xl:text-md">
<li class="list-none cursor-pointer font-inter font-[400] hover:text-primary">Cumilla</li>
</div>
<div class="flex justify-start items-start p-2 text-sm xl:text-md">
<li class="list-none cursor-pointer font-inter font-[400] hover:text-primary">Sylhet</li>
</div>
<div class="flex justify-start items-start p-2 text-sm xl:text-md">
<li class="list-none cursor-pointer font-inter font-[400] hover:text-primary">jessore</li>
</div>
<div class="flex justify-start items-start p-2 text-sm xl:text-md">
<li class="list-none cursor-pointer font-inter font-[400] hover:text-primary">Teknaf</li>
</div>
</div>
</div>
</div>
</div>
<!-- second -->
<div class="mt-5 lg:mt-0">
<div class="flex justify-center">
<div x-data="{ dropdownOpen2: true }" class="relative">
<button @click="dropdownOpen2 = !dropdownOpen2" class="relative z-10 block lg:w-[200px] w-[250px] xl:w-[242px] rounded-lg bg-white p-2 focus:outline-none">
<div class="flex gap-1 xl:gap-x-3 pr-6">
<div class="flex justify-center items-center">
<div class="rounded-xl bg-opacity-[0.12] bg-[#f04935] h-[40px] w-[40px] flex items-center justify-center">
<img src="./dist/assets/icon/Vector (2).png" class="w-4" alt="">
</div>
</div>
<div class="">
<p class="font-inter flex items-start text-sm xl:text-md">To</p>
<p class="font-inter font-[500] text-sm xl:text-md">choose location</p>
</div>
</div>
</button>
<!-- <div x-show="dropdownOpen2" @click="dropdownOpen2 = false" class="fixed inset-0 h-full w-full z-10"></div> -->
<div x-show="!dropdownOpen2" class="absolute right-0 mt-2 py-2 overflow-y-auto leading-6 h-80 w-64 bg-white divide-y-2 rounded-md shadow-xl z-20">
<div class="flex justify-center items-center p-4">
<h2 class="font-inter text-sm xl:text-md font-[600]">Select Your Location</h2>
</div>
<div class="flex justify-center items-center p-2">
<input type="text" class="border border-gray-300 px-6 py-2 rounded-md outline-none" placeholder="Search Location">
</div>
<div class="flex justify-start items-start p-2 text-sm xl:text-md">
<li class="list-none cursor-pointer font-inter font-[400] hover:text-primary">Dhaka</li>
</div>
<div class="flex justify-start items-start p-2 text-sm xl:text-md">
<li class="list-none cursor-pointer font-inter font-[400] hover:text-primary">Chittagong</li>
</div>
<div class="flex justify-start items-start p-2 text-sm xl:text-md">
<li class="list-none cursor-pointer font-inter font-[400] hover:text-primary">Cumilla</li>
</div>
<div class="flex justify-start items-start p-2 text-sm xl:text-md">
<li class="list-none cursor-pointer font-inter font-[400] hover:text-primary">Sylhet</li>
</div>
<div class="flex justify-start items-start p-2 text-sm xl:text-md">
<li class="list-none cursor-pointer font-inter font-[400] hover:text-primary">jessore</li>
</div>
<div class="flex justify-start items-start p-2 text-sm xl:text-md">
<li class="list-none cursor-pointer font-inter font-[400] hover:text-primary">Teknaf</li>
</div>
</div>
</div>
</div>
</div>
<!-- 3rd -->
<div class="mt-5 lg:mt-0">
<div class="flex justify-center">
<div x-data="{ dropdownOpen3: true }" class="relative">
<button @click="dropdownOpen3 = !dropdownOpen3" class="relative z-10 block rounded-lg lg:w-[200px] w-[250px] xl:w-[242px] bg-white p-2 focus:outline-none">
<div class="flex gap-1 xl:gap-x-3">
<div class="flex justify-center items-center">
<div class="rounded-xl bg-opacity-[0.12] bg-[#4633F0] h-[40px] w-[40px] flex items-center justify-center">
<img src="./dist/assets/icon/Vector (3).png" class="w-4" alt="">
</div>
</div>
<div class="">
<p class="font-inter flex items-start text-sm xl:text-md">Bus Type</p>
<p class="font-inter font-[500] text-sm xl:text-md">choose bus type</p>
</div>
</div>
</button>
<!-- <div x-show="dropdownOpen3" @click="dropdownOpen3 = false" class="fixed inset-0 h-full w-full z-50"></div> -->
<div x-show="!dropdownOpen3" class="absolute right-0 mt-2 py-2 overflow-y-auto leading-6 z-50 h-52 w-64 bg-white divide-y-2 rounded-md shadow-xl">
<div class="flex justify-center items-center p-4">
<h2 class="font-inter text-sm xl:text-md font-[600]">Select bus type</h2>
</div>
<div class="flex justify-start items-start p-2 text-sm xl:text-md">
<li class="list-none cursor-pointer font-inter font-[400] hover:text-primary">Ac</li>
</div>
<div class="flex justify-start items-start p-2 text-sm xl:text-md">
<li class="list-none cursor-pointer font-inter font-[400] hover:text-primary">Non-Ac</li>
</div>
<div class="flex justify-start items-start p-2 text-sm xl:text-md">
<li class="list-none cursor-pointer font-inter font-[400] hover:text-primary">Any</li>
</div>
</div>
</div>
</div>
</div>
<!-- 4th -->
<div class="mt-5 lg:mt-0">
<div class="flex justify-center">
<div x-data="{ dropdownOpen4: true }" class="relative">
<button @click="dropdownOpen4 = !dropdownOpen4" class="relative z-10 block rounded-lg lg:w-[200px] w-[250px] xl:w-[242px] bg-white p-2 focus:outline-none">
<div class="flex gap-1 xl:gap-x-3">
<div class="flex justify-center items-center">
<div class="rounded-xl bg-opacity-[0.12] bg-[#33DDF0] h-[40px] w-[40px] flex items-center justify-center">
<img src="./dist/assets/icon/Vector (4).png" class="w-4" alt="">
</div>
</div>
<div class="">
<p class="font-inter flex items-start text-sm xl:text-md">Date</p>
<p class="font-inter font-[500] text-sm xl:text-md">Select Date</p>
</div>
</div>
</button>
<!-- <div x-show="dropdownOpen4" @click="dropdownOpen4 = false" class="fixed inset-0 h-full w-full z-10"></div> -->
<div x-show="!dropdownOpen4" class="absolute right-0 mt-5 overflow-y-auto leading-6 h-52 w-64 bg-white divide-y-2 rounded-md shadow-xl z-20 before:block before:-mt-2 before:ml-20 before:-skew-y-3 before:bg-white before:h-5 before:w-5 before:rotate-45 ">
<div class="flex justify-center items-center p-4">
<h2 class="font-inter text-sm xl:text-md font-[600]">Select journey date</h2>
</div>
</div>
</div>
</div>
</div>
<!-- 5th -->
<div class="mt-5 lg:mt-0">
<div class="flex justify-center">
<div x-data="{ dropdownOpen5: true }" class="relative">
<button @click="dropdownOpen5 = !dropdownOpen5" class="relative z-10 block rounded-lg lg:w-[180px] w-[250px] xl:w-[242px] bg-white p-2 focus:outline-none">
<div class="flex gap-x-3 pr-6">
<div class="flex justify-center items-center">
<div class="rounded-xl bg-opacity-[0.12] bg-[#f04935] h-[40px] w-[40px] flex items-center justify-center">
<img src="./dist/assets/icon/Vector (5).png" class="w-4" alt="">
</div>
</div>
<div class="">
<p class="font-inter flex items-start text-sm xl:text-md">Passenger</p>
<p class="font-inter font-[500] text-sm xl:text-md">No of people</p>
</div>
</div>
</button>
<!-- <div x-show="dropdownOpen5" @click="dropdownOpen5 = false" class="fixed inset-0 h-full w-full z-10"></div> -->
<div x-show="!dropdownOpen5" class="mt-5 h-52 w-64 bg-white rounded-md shadow-xl z-20 leading-6 before:block before:-mt-2 before:ml-20 before:-skew-y-3 before:bg-white before:h-5 before:w-5 before:rotate-45 absolute">
<div class="flex justify-center items-center p-4 border-b border-gray-200">
<h2 class="font-inter text-sm xl:text-md font-[600]">How many seats needed</h2>
</div>
<div class="flex justify-center items-center p-2">
<input type="text" class="border border-gray-300 px-6 py-2 rounded-md outline-none" placeholder="Search Location">
</div>
<div class="flex items-center justify-center lg:mt-4">
<button class="btn bg-primary border border-primary hover:bg-white hover:text-primary hover:border-primary btn-sm w-11/12 py-2 rounded-full text-sm">search ticket</button>
</div>
</div>
<div class="lg:hidden flex justify-center items-center mt-5">
<a href="#" class="btn bg-primary border border-primary hover:bg-white hover:text-primary hover:border-primary btn-sm lg:btn-md w-2/4 lg:w-1/4 rounded-full">
Search Ticket
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="flex items-center justify-center w-full ">
<a href="#" class="btn bg-primary border border-primary hover:bg-white hover:text-primary hover:border-primary btn-sm lg:btn-md w-2/4 lg:w-1/4 rounded-full">
Search Ticket
</a>
</div>
<div class="lg:grid lg:grid-cols-2 gap-4 -mt-28 lg:mt-40">
<div class="bg-secondary_clr p-4 rounded-xl">
<div class="w-12 h-12 lg:w-16 lg:h-16 rounded-full bg-green_icon bg-opacity-20 flex items-center justify-center">
<img src="./dist/assets/icon/Vector (6).png" class="w-8" alt="">
</div>
<div>
<h2 class="font-inter font-bold text-lg mt-5">Gaurenteed seats</h2>
<p class="text-paragraph_color text-sm">Book guranteed seats in real time from bus operators. Input your destination and date, search ticket browse through options and select one perfect for you.</p>
</div>
</div>
<div class="bg-secondary_clr p-4 rounded-xl mt-5 lg:mt-0">
<div class="w-12 h-12 lg:w-16 lg:h-16 rounded-full bg-blue_icon bg-opacity-20 flex items-center justify-center">
<img src="./dist/assets/icon/Vector (7).png" class="w-8" alt="">
</div>
<div>
<h2 class="font-inter font-bold text-lg mt-5">Book through agent</h2>
<p class="text-paragraph_color text-sm">Your ticket request will be forwarded to our ticketing agent first, if ticket is available the we will confirm your ticket according to your request. Plus any other info for user to make the process understand easier.</p>
</div>
</div>
</div>
</div>
</div>
</nav>
</body>
</html>