@@ -163,7 +163,7 @@ function RoutePage() {
163
163
< div className = "flex flex-col place-items-start pb-36" >
164
164
< BackButton > Afslut</ BackButton >
165
165
< h1 className = "text-xl font-bold my-3" > { selectedRoute . name } </ h1 >
166
- < div className = "relative w-full rounded-lg flex flex-col-reverse gap-1" >
166
+ < div className = "relative w-full rounded-lg flex flex-col-reverse gap-1 pl-3 " >
167
167
{ pointsOfInterest &&
168
168
pointsOfInterest . map ( ( pointOfInterest , index ) => (
169
169
< PointOfInterest
@@ -176,12 +176,13 @@ function RoutePage() {
176
176
/>
177
177
) ) }
178
178
</ div >
179
- < div className = "fixed flex flex-col left-3 bottom-3 right-3 bg-zinc-200 dark:bg-zinc-700 gap-3 rounded-lg p-3 pb-15 divide-x dark:divide-zinc-200/5" >
179
+ < div className = "fixed flex flex-col left-3 bottom-0 right-3 bg-zinc-200 dark:bg-zinc-900 gap-3 rounded-t- lg p-3 pb-15 divide-y dark:divide-zinc-200/5" >
180
180
{ routeComplete && < h3 > You completed the route. Congratulations!</ h3 > }
181
181
{ ! routeComplete && (
182
182
< div className = "flex flex-row justify-between" >
183
183
< div >
184
- < div className = "text-sm text-bold" >
184
+ < p className = "text-xs text-zinc-500" > Find vej til næste del</ p >
185
+ < div className = "text-sm font-bold" >
185
186
Afstand til del
186
187
< span className = "ml-1 px-2 font-bold rounded-full bg-emerald-700 text-zinc-100 text-sm" >
187
188
{ destinationIndex + 1 }
@@ -194,7 +195,7 @@ function RoutePage() {
194
195
< div className = "pl-3" >
195
196
{ ( ! orientation || ! angle ) && (
196
197
< button
197
- className = "bg-zinc-700 dark:bg-zinc-200 dark:text-zinc-800 rounded text-sm py-1 px-3"
198
+ className = "bg-zinc-700 dark:bg-zinc-200 text-zinc-200 dark:text-zinc-800 rounded text-sm py-1 px-3"
198
199
type = "button"
199
200
onClick = { ( ) => startWaypointer ( ) }
200
201
>
@@ -207,7 +208,7 @@ function RoutePage() {
207
208
< span className = "text-sm text-bold mr-5" > Retning</ span >
208
209
< span className = "w-1/2" >
209
210
< LocationArrow
210
- className = "inline w-5 "
211
+ className = "inline w-10 "
211
212
style = { {
212
213
transform : `rotate(${ - rotation } deg)` ,
213
214
} }
@@ -220,14 +221,18 @@ function RoutePage() {
220
221
</ div >
221
222
) }
222
223
223
- < div >
224
- < audio
225
- className = "w-full"
226
- ref = { audioRef }
227
- controls
228
- src = { `${ fileUrl } ${ source } ` }
229
- />
230
- </ div >
224
+ { source && audioRef &&
225
+ < div className = "pt-2" >
226
+ < p className = "text-xs text-zinc-500" > Igangværende afspilning</ p >
227
+ < p className = "text-sm font-bold " > Pizza 1</ p >
228
+ < audio
229
+ className = "w-full"
230
+ ref = { audioRef }
231
+ controls
232
+ src = { `${ fileUrl } ${ source } ` }
233
+ />
234
+ </ div >
235
+ }
231
236
</ div >
232
237
< div ref = { bottomRef } />
233
238
</ div >
0 commit comments