Replace lookup card on homepage with FindByHeadcodeCard.

This commit is contained in:
Fred Boniface 2025-05-02 20:45:05 +01:00
parent 46c15f9601
commit 182136fc6b

View File

@ -8,6 +8,7 @@
import LookupCard from "$lib/cards/LookupCard.svelte";
import NearToMeCard from "$lib/cards/NearToMeCard.svelte";
import QuickLinkCard from "$lib/cards/QuickLinkCard.svelte";
import FindByHeadcodeCard from "$lib/cards/FindByHeadcodeCard.svelte";
const title = "OwlBoard";
const lookupCards: LookupCardConfig[] = [
{
@ -17,15 +18,7 @@
placeholder: "enter crs/tiploc",
maxLen: 7,
fieldName: "station",
},
{
title: "Timetable & PIS",
helpText: "",
formAction: "/train",
placeholder: "enter headcode",
maxLen: 4,
fieldName: "headcode",
},
}
];
onMount(async () => {
@ -42,6 +35,7 @@
{#each lookupCards as config}
<LookupCard {config} />
{/each}
<FindByHeadcodeCard />
<NearToMeCard />
<QuickLinkCard />