78
78
}
79
79
.top {
80
80
width : 100% ;
81
- height : 32 vh ;
81
+ height : 27.2 vh ;
82
82
background : #18181b ;
83
83
border-radius : 14px ;
84
84
display : flex ;
88
88
}
89
89
.bottom {
90
90
width : 100% ;
91
- height : 23 vh ;
91
+ height : 29 vh ;
92
92
/* background: #18181b; */
93
93
border-radius : 14px ;
94
- gap : 1 vw ;
94
+ gap : 1 vh ;
95
95
display : flex ;
96
96
flex-direction : column ;
97
97
align-items : center ;
102
102
height : 80% ;
103
103
background : #18181b ;
104
104
border-radius : 14px ;
105
- padding : 0.7 vw ;
105
+ padding : 0.9 vw ;
106
106
107
107
display : flex ;
108
108
flex-direction : column ;
109
109
/* align-items: s; */
110
110
justify-content : space-evenly ;
111
+ height : 24vh ;
111
112
112
113
}
114
+ .maindiv > div {
115
+ background-color : #466eff ;
116
+ width : 100% ;
117
+ color : black ;
118
+ padding : 1vh ;
119
+ display : flex ;
120
+ justify-content : space-between ;
121
+ align-items : center ;
122
+ border-radius : 100vh ;
123
+ margin-top : 0.5vh ;
124
+ font-size : 0.9vw ;
125
+ }
126
+ .whiteRight {
127
+ background-color : white ;
128
+ font-size : 1vw ;
129
+ height : 1.2vw ;
130
+ width : 1.2vw ;
131
+ text-align : center ;
132
+ color : black ;
133
+ border-radius : 50vw ;
134
+ }
113
135
.cancel {
114
136
width : 20vw ;
115
137
background : #53FAAA ;
122
144
display : flex ;
123
145
flex-direction : row ;
124
146
align-items : flex-start ;
125
- justify-content : space-around ;
147
+ justify-content : left ;
148
+ margin-left : 2.5vw ;
126
149
}
127
150
.names {
128
151
gap : 0.5vh ;
129
- margin-left : -1.5 vw ;
152
+ margin-left : 1 vw ;
130
153
display : flex ;
131
154
flex-direction : column ;
132
155
/* width: ; */
175
198
.location {
176
199
display : flex ;
177
200
flex-direction : row ;
178
- align-items : center ;
179
201
justify-content : center ;
180
202
width : 100% ;
181
203
gap : 1vw ;
189
211
width : 64% ;
190
212
}
191
213
.image {
192
- height : 13.6 vh ;
214
+ height : 3 vh ;
193
215
/* width: 1.4vw; */
194
216
}
195
217
.unspecial {
196
218
color : rgba (255 , 255 , 255 , 0.26 );
197
219
font-family : Outfit;
198
- font-size : 1.9 vh ;
220
+ font-size : 1.05 vw ;
199
221
font-style : normal ;
200
222
font-weight : 400 ;
201
223
line-height : normal ;
224
+ margin-bottom : 0.5vh ;
202
225
}
203
226
p {
204
227
color : #FFF ;
265
288
width : 10vw ;
266
289
}
267
290
.pfp {
268
- width : 4 vw !important ;
269
- height : 4 vw !important ;
291
+ width : 3 vw !important ;
292
+ height : 3 vw !important ;
270
293
border-radius : 2.5vw ;
271
294
object-fit : cover ;
272
295
}
292
315
max-width : 90vw ;
293
316
transform : scale (1.6 , 1.6 ) !important ;
294
317
}
318
+ textarea {
319
+ background-color : rgba (43 , 43 , 43 , 0.49 );
320
+ width : 100% ;
321
+ height : 8vh ;
322
+ border : none ;
323
+ outline : none ;
324
+ border-radius : 1vh ;
325
+ resize : none ;
326
+ padding : 1vh ;
327
+ color : white ;
328
+ font-family : ' Outfit' ;
329
+ }
295
330
</style >
296
331
</head >
297
332
<body >
301
336
<h1 ><span style =" color : #466EFF ;" >Ride</span > Status</h1 >
302
337
<p >Track your journey in a few clicks!</p >
303
338
</div >
304
- <div class =" fullBodyOverlay" id =" fullBodyOverlay" onclick =" toggleOverlay(event)" >
305
- <svg id =" barcode" ></svg >
306
- </div >
307
339
<main class =" main" >
308
340
<div class =" container" >
309
- <div id =" map" style =" position : relative " >
310
- <div class =" otpContainer" >
311
- <p >Code for this ride</p >
312
- <svg id =" barcode2" ></svg >
313
- </div >
314
- </div >
341
+ <div id =" map" style =" position : relative " ></div >
315
342
<div class =" right" >
316
343
<div class =" top" >
317
344
<div class =" creds" >
322
349
</div >
323
350
<div class =" times" >
324
351
<p class =" special" ><%= ride .time %> Mins</p >
325
- <svg xmlns =" http://www.w3.org/2000/svg" width =" 3" height =" 3" viewBox =" 0 0 3 3" fill =" none" >
326
- <circle cx =" 1.5" cy =" 1.5" r =" 1.5" fill =" white" fill-opacity =" 0.3" />
327
- </svg >
328
- <p class =" special" ><%= ride .distance %> Km</p >
329
352
</div >
330
353
<div class =" buttons" >
331
354
<form action =" /status/vehicle" method =" POST" >
332
355
<input type =" hidden" name =" vehicle" value =" auto" >
333
356
<% if (ride .vehicle == ' auto' ) { % >
334
- < button style= " color: #000; background-color: #53FAAA;" type= " submit" data- cursor= " pointer" > Auto< / button>
357
+ < button style= " color: #000; background-color: #53FAAA; font-size: 0.75vw; padding: 1vh 1.2vh; " type= " submit" data- cursor= " pointer" > Auto< / button>
335
358
< % } else { % >
336
- < button style= " color: #fff; background-color: #212122;" type= " submit" data- cursor= " pointer" > Auto< / button>
359
+ < button style= " color: #fff; background-color: #212122; font-size: 0.75vw; padding: 1vh 1.2vh; " type= " submit" data- cursor= " pointer" > Auto< / button>
337
360
< % } %>
338
361
</form >
339
362
<form action =" /status/vehicle" method =" POST" >
340
363
<input type =" hidden" name =" vehicle" value =" bus" >
341
364
<% if (ride .vehicle == ' auto' ) { % >
342
- < button style= " color: #fff; background-color: #212122;" type= " submit" data- cursor= " pointer" > Bus< / button>
365
+ < button style= " color: #fff; background-color: #212122; font-size: 0.75vw; padding: 1vh 1.2vh; " type= " submit" data- cursor= " pointer" > Bus< / button>
343
366
< % } else { % >
344
- < button style= " color: #000; background-color: #53FAAA;" type= " submit" data- cursor= " pointer" > Bus< / button>
367
+ < button style= " color: #000; background-color: #53FAAA; font-size: 0.75vw; padding: 1vh 1.2vh; " type= " submit" data- cursor= " pointer" > Bus< / button>
345
368
< % } %>
346
369
</form >
347
370
</div >
348
371
</div >
349
- <p >₹<%= ride .price %> </p >
350
372
</div >
351
373
<div class =" location" >
352
- <img class =" image" src =" /pickup .png" class =" waypoint" alt =" " >
374
+ <img class =" image" src =" /onlyLocation .png" class =" waypoint" alt =" " >
353
375
<div class =" points" >
354
376
<div class =" pickup" >
355
- <p class =" unspecial" >Pickup</p >
356
- <p style =" width : 10vw ; word-wrap : break-word ;" ><%= ride .myLocation %> </p >
357
- </div >
358
- <div class =" dropoff" >
359
- <p class =" unspecial" >Dropoff</p >
360
- <p style =" width : 10vw ; word-wrap : break-word ;" ><%= ride .dropOff %> </p >
377
+ <p class =" unspecial" >Pickup At</p >
378
+ <p style =" width : 10vw ; word-wrap : break-word ;" ><%= ride .dropoff %> </p >
361
379
</div >
362
380
</div >
363
381
</div >
364
382
</div >
365
383
<div class =" bottom" >
366
384
<div class =" maindiv" style =" overflow : auto ;" >
367
- <h1 >Grouped <span style =" color : #466EFF ;" >Riders</span > <span style =" color : rgba (244 , 244 , 244 , 0.25 );" >(<%= ride .riders .length %> )</span ></h1 >
368
- <div class =" riders" >
369
- <% for (let i = 0 ; i < ride .riders .length ; i++ ) { % >
370
- < div class = " rider" >
371
- < img class = " pfp-2" src= " <%= ride.riders[i].pfp %>" class = " person-2" alt= " " >
372
- < p>< %= ride .riders [i].fname + ' ' + ride .riders [i].lname % >< / p>
373
- < / div>
374
- < % } %>
385
+ <textarea placeholder =" Send Message to User..." ></textarea >
386
+ <div >
387
+ Send Message
388
+ <div class =" whiteRight" ><i class =" fas fa-angle-right" ></i ></div >
375
389
</div >
376
390
</div >
377
- <form action =" /status/cancel" method =" post" >
391
+ <div >
392
+ <a href =" /verify" style =" text-decoration : none " >
393
+ <button class =" cancel" data-cursor =" pointer" style =" margin-bottom : 1vh ; background-color : #18181b ; border : 1px solid rgba (255 , 255 , 255 , 0.2 ); color : white ;" >
394
+ Verify Ride
395
+ </button >
396
+ </a >
397
+ <a href =" /driverStatus/cancel" style =" text-decoration : none " >
378
398
<button class =" cancel" data-cursor =" pointer" >
379
399
Cancel Ride
380
400
</button >
401
+ </a >
381
402
</form >
382
403
</div >
383
404
</div >
384
405
</div >
385
406
</main >
386
407
<script >
387
- JsBarcode (" #barcode" , " <%= ride.otp %>" , {
388
- format: ' code128' ,
389
- displayValue: false ,
390
- lineColor: " black" ,
391
- background: " #fff"
392
- });
393
- JsBarcode (" #barcode2" , " <%= ride.otp %>" , {
394
- format: ' code128' ,
395
- displayValue: false ,
396
- lineColor: " #466eff" ,
397
- background: " transparent" ,
398
- height: 55
399
- });
400
408
(function showPosition () {
401
409
var redMarker = L .icon ({
402
410
iconUrl: ' /marker.png' ,
412
420
maxZoom: 19
413
421
}).addTo (map);
414
422
const mapContainer = document .querySelector (' .leaflet-container' )
415
- const customOverlay = document .createElement (' div' )
416
423
var marker = L .marker ([< %= ride .latitude % > , < %= ride .longitude % > ], {icon: redMarker}).addTo (map);
417
424
})()
418
- const otpContainer = document .getElementsByClassName (' otpContainer' )[0 ]
419
- otpContainer .addEventListener (' click' , (e ) => {
420
- document .getElementById (' fullBodyOverlay' ).style .display = ' flex'
421
- document .getElementById (' fullBodyOverlay' ).style .opacity = ' 1'
422
- })
423
- function toggleOverlay (e ) {
424
- if (e .target == document .getElementById (' fullBodyOverlay' )) {
425
- e .target .style .display = ' none'
426
- e .target .style .opacity = ' 0'
427
- }
428
- }
429
425
</script >
430
426
</body >
431
427
</html >
0 commit comments