- Update to @tabler/icons-svelte-runes for a more 'Svente 5' experience. - Adjust error handling in load functions, plain error thrown for handling in the error handler. - Fix the warning regarding a click handler attached to an <img> on the About page - Re-organise component directory - Remove unused font declarations from global.css Features: - Add service-worker caching of FilterData API response to allow for filtering to work fully offline -
26 lines
533 B
Svelte
26 lines
533 B
Svelte
<script lang="ts">
|
|
import BaseCard from '$lib/components/ui/cards/BaseCard.svelte';
|
|
import LocationSearchBox from '$lib/components/ui/form-elements/LocationSearchBox.svelte';
|
|
|
|
let locationValue = $state('');
|
|
|
|
function resetSearchBox() {
|
|
value = '';
|
|
}
|
|
</script>
|
|
|
|
<BaseCard header={'Live Arrivals & Departures'}>
|
|
<div class="card-content">
|
|
<LocationSearchBox bind:value={locationValue} />
|
|
</div>
|
|
</BaseCard>
|
|
|
|
<style>
|
|
.card-content {
|
|
text-align: center;
|
|
width: 90%;
|
|
margin: auto;
|
|
padding: 10px 0 10px 0;
|
|
}
|
|
</style>
|