Commit 281e4f2 1 parent c178b61 commit 281e4f2 Copy full SHA for 281e4f2
File tree 3 files changed +21
-19
lines changed
3 files changed +21
-19
lines changed Original file line number Diff line number Diff line change 105
105
106
106
<div class =" relative w-full" >
107
107
<div
108
- class =" flex flex-row items-center gap-x-2 rounded-2xl bg-primary px-2 focus-within:ring-2 focus-within:ring-accent hover:ring-2 hover:ring-accent"
108
+ class =" flex flex-row items-center gap-x-2 rounded-2xl bg-primary px-2 focus-within:ring-2 focus-within:ring-accent hover:ring-2 hover:ring-accent md:text-2xl "
109
109
>
110
110
<Search height =" 50px" width =" 50px" />
111
111
<input
Original file line number Diff line number Diff line change 74
74
type =" button"
75
75
class:ring- 2={isOpen }
76
76
class:ring-accent ={isOpen }
77
- class =" flex flex-row items-center gap-x-4 rounded-md p-0.5 md:p-2 text-center text-base md:text-2xl hover:ring-2 hover:ring-accent"
77
+ class =" flex flex-row items-center gap-x-2 rounded-md p-0.5 md:p-2 text-center md:text-2xl hover:ring-2 hover:ring-accent"
78
78
onclick ={() => isOpen = true }
79
79
>
80
80
<Calendar />
Original file line number Diff line number Diff line change 18
18
};
19
19
</script >
20
20
21
- <div class =" flex flex-col md:w-[40%]" >
21
+ <div class =" flex flex-col md:w-[40%] gap-y-2 " >
22
22
<div class =" flex flex-row items-center justify-end gap-x-2" >
23
23
<button
24
24
type =" button"
49
49
50
50
<StationSearch onStationSelect ={(station ) => (stationSelected = station )} />
51
51
52
- <div class =" flex flex-row justify-between " >
52
+ <div class =" flex flex-row" >
53
53
<TimePicker bind:selectedDate ={dateSelected } />
54
54
55
- <div class =" flex flex-row" >
56
- <button class =" flex flex-row items-center bg-primary rounded-3xl px-2"
57
- onclick ={() => (dateSelected = DateTime .now ().set ({ second: 0 , millisecond: 0 }))}>
58
- <Clock height =" 25px" width =" 25px" />
59
- <span class =" hidden md:block text-xl" >Now</span >
60
- </button >
55
+ <div class =" ml-auto flex gap-1 md:gap-3" >
56
+ <!-- Reset time -->
57
+ <button class =" flex flex-row items-center bg-primary rounded-3xl px-2 md:px-4"
58
+ onclick ={() => (dateSelected = DateTime .now ().set ({ second: 0 , millisecond: 0 }))}>
59
+ <Clock height =" 25px" width =" 25px" />
60
+ <span class =" hidden md:block text-xl" >Now</span >
61
+ </button >
61
62
62
- <button
63
- class =" {stationSelected && dateSelected
63
+ <!-- Query departures/ arrivals of a station -->
64
+ <button
65
+ class =" {stationSelected && dateSelected
64
66
? ' bg-accent text-black'
65
- : ' bg-primary text-text' } flex items-center justify-center rounded-3xl px-4 text-base font-bold text- background md:text-2xl"
66
- onclick ={gotoRequest }
67
- >
68
- Search
69
- </button >
70
- </div >
71
- </div >
67
+ : ' bg-primary text-text' } flex items-center justify-center rounded-3xl px-4 text-background md:text-2xl font-bold "
68
+ onclick ={gotoRequest }
69
+ >
70
+ Search
71
+ </button >
72
+ </div >
73
+ </div >
72
74
73
75
</div >
You can’t perform that action at this time.
0 commit comments