-
get bus, but cheap.
-
-
made with
-
-
+ {#if editSearch}
+
+
bus fares.
+
+
get bus, but cheap.
+
+
made with
+
+
+
+
by nathan :)
+
+
+
okay, first, where to?
+
+
+ from
+
+
-
-
by nathan :)
-
-
- okay, first, where to?
-
-
+
+
-
great! now, when?
-
-
-
- {#if arriveBy}
-
-
-
-
- {:else}
+
great! now, when?
+
+
+
+ {#if arriveBy}
+
+
+
+
+ {:else}
+
+
+
+
+ {/if}
+
+
+ leave at
+ arrive by
+
+
+
+
datePicker.showPicker()} class="absolute inset-y-0 left-0 flex items-center pl-2 text-gray-500">
+
+
+
+
+
+
+
+
+
timePicker.showPicker()} class="absolute inset-y-0 left-0 flex items-center pl-2 text-gray-500">
+
+
+
+
+
+
+
+
+
and, finally...
+
-
- leave at
- arrive by
-
-
-
-
datePicker.showPicker()} class="absolute inset-y-0 left-0 flex items-center pl-2 text-gray-500">
-
-
-
-
-
-
+
-
-
timePicker.showPicker()} class="absolute inset-y-0 left-0 flex items-center pl-2 text-gray-500">
-
-
-
-
-
-
-
-
-
and, finally...
-
-
-
-
-
+ {:else}
+
+
journey from {from} to {to} , {arriveBy ? 'arriving by' : 'leaving at'} {date} {time}
+
+
-
find journey
+ {/if}
-
-
- {#if tripPlan}
- {#each tripPlan.plan.itineraries as itinerary, i}
-
itinerary {i+1}
- {#each itinerary.legs as leg, l}
-
{new Date(leg.startTime).toLocaleString()}: {leg.mode} {leg.mode=='BUS'? '('+leg.routeShortName+' towards '+leg.headsign+')' : ''} from {leg.from.name} to {leg.to.name}
- {#if leg.fares}
-
- {#each leg.fares as fare}
- {fare.preassignedFareProduct.name}: {fare.amount.currency} {fare.amount.number}
+ {#key editSearch}
+
+ {#if tripPlan}
+
+ {#if tripPlan.plan.itineraries.length > 0}
+ {#each tripPlan.plan.itineraries as itinerary, i}
+
itinerary {i+1}
+ {#each itinerary.legs as leg, l}
+
{new Date(leg.startTime).toLocaleString()}: {leg.mode} {leg.mode=='BUS'? '('+leg.routeShortName+' towards '+leg.headsign+')' : ''} from {leg.from.name} to {leg.to.name}
+ {#if leg.fares}
+
+ {#each leg.fares as fare}
+ {fare.preassignedFareProduct.name}: {fare.amount.currency} {fare.amount.number}
+ {/each}
+
+ {/if}
+ {/each}
{/each}
-
+ {:else}
+
no itineraries found
+ {/if}
+
+ {:else}
+ {#if gettingPlan}
+
+
+
+
{/if}
- {/each}
- {/each}
- {:else}
-
{tripPlanPlaceholder}
- {/if}
+
+ {/if}
+
+ {/key}
-
+
{#each mapLines as line}
{#if mapClickPopupEvent}
-
{mapClickPopupEvent ? latLngString(mapClickPopupEvent.latlng) : ""}
-
setLocation('from', mapClickPopupEvent.latlng)}>from here
-
setLocation('to', mapClickPopupEvent.latlng)}>to here
+
+
{mapClickPopupEvent ? latLngString(mapClickPopupEvent.latlng) : ""}
+
+ setLocation('from', mapClickPopupEvent.latlng)} class="form-input px-2 py-1 block text-sm rounded-md border-gray-300 shadow-sm
+ focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 hover:bg-indigo-50">from here
+ setLocation('to', mapClickPopupEvent.latlng)} class="form-input px-2 py-1 block text-sm rounded-md border-gray-300 shadow-sm
+ focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 hover:bg-indigo-50">to here
+
+
{/if}
\ No newline at end of file
diff --git a/frontend/tailwind.config.cjs b/frontend/tailwind.config.cjs
index 164fb18..f0a33eb 100644
--- a/frontend/tailwind.config.cjs
+++ b/frontend/tailwind.config.cjs
@@ -9,6 +9,9 @@ module.exports = {
fontFamily: {
'sans': ['Manrope', defaultTheme.fontFamily.sans],
},
+ animation: {
+ 'spin-fast': 'spin .75s linear infinite',
+ }
},
},
plugins: [