@@ -158,12 +158,11 @@ function RoutePage() {
158
158
159
159
if ( selectedRoute === null ) return null ;
160
160
161
-
162
161
return (
163
162
< div className = "flex flex-col place-items-start pb-36" >
164
163
< BackButton > Afslut</ BackButton >
165
164
< 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" >
165
+ < div className = "relative w-full rounded-lg flex flex-col-reverse gap-1 pl-3 " >
167
166
{ pointsOfInterest &&
168
167
pointsOfInterest . map ( ( pointOfInterest , index ) => (
169
168
< PointOfInterest
@@ -176,12 +175,13 @@ function RoutePage() {
176
175
/>
177
176
) ) }
178
177
</ 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" >
178
+ < 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
179
{ routeComplete && < h3 > You completed the route. Congratulations!</ h3 > }
181
180
{ ! routeComplete && (
182
181
< div className = "flex flex-row justify-between" >
183
182
< div >
184
- < div className = "text-sm text-bold" >
183
+ < p className = "text-xs text-zinc-500" > Find vej til næste del</ p >
184
+ < div className = "text-sm font-bold" >
185
185
Afstand til del
186
186
< span className = "ml-1 px-2 font-bold rounded-full bg-emerald-700 text-zinc-100 text-sm" >
187
187
{ destinationIndex + 1 }
@@ -194,7 +194,7 @@ function RoutePage() {
194
194
< div className = "pl-3" >
195
195
{ ( ! orientation || ! angle ) && (
196
196
< button
197
- className = "bg-zinc-700 dark:bg-zinc-200 dark:text-zinc-800 rounded text-sm py-1 px-3"
197
+ className = "bg-zinc-700 dark:bg-zinc-200 text-zinc-200 dark:text-zinc-800 rounded text-sm py-1 px-3"
198
198
type = "button"
199
199
onClick = { ( ) => startWaypointer ( ) }
200
200
>
@@ -207,7 +207,7 @@ function RoutePage() {
207
207
< span className = "text-sm text-bold mr-5" > Retning</ span >
208
208
< span className = "w-1/2" >
209
209
< LocationArrow
210
- className = "inline w-5 "
210
+ className = "inline w-10 "
211
211
style = { {
212
212
transform : `rotate(${ - rotation } deg)` ,
213
213
} }
@@ -220,14 +220,17 @@ function RoutePage() {
220
220
</ div >
221
221
) }
222
222
223
- < div >
224
- < audio
225
- className = "w-full"
226
- ref = { audioRef }
227
- controls
228
- src = { `${ fileUrl } ${ source } ` }
229
- />
230
- </ div >
223
+ { source && audioRef && (
224
+ < div className = "pt-2" >
225
+ < p className = "text-xs text-zinc-500" > Igangværende afspilning</ p >
226
+ { /* TODO: Get the real name instead of Pizza 1 */ }
227
+ < p className = "text-sm font-bold " > Pizza 1</ p >
228
+ < audio className = "w-full" ref = { audioRef } controls >
229
+ < source src = { `${ fileUrl } ${ source } ` } type = "audio/mpeg" />
230
+ Your browser does not support the audio element.
231
+ </ audio >
232
+ </ div >
233
+ ) }
231
234
</ div >
232
235
< div ref = { bottomRef } />
233
236
</ div >
0 commit comments