From 5e8476f4690c663b1d13890f91a708c6212fc18d Mon Sep 17 00:00:00 2001 From: Ahmedhossamdev Date: Tue, 19 Nov 2024 13:55:56 -0800 Subject: [PATCH] feat: Initial page for visualizing schedules --- .../stops/[stopID]/schedule/+page.svelte | 141 ++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 src/routes/stops/[stopID]/schedule/+page.svelte diff --git a/src/routes/stops/[stopID]/schedule/+page.svelte b/src/routes/stops/[stopID]/schedule/+page.svelte new file mode 100644 index 0000000..b28c401 --- /dev/null +++ b/src/routes/stops/[stopID]/schedule/+page.svelte @@ -0,0 +1,141 @@ + + +
+
+

Stop Details

+

+ Stop Name: + {stopName} | Stop ID: + {stopId} +

+
+ +
+
+

Select Date

+
+ +

+ Selected date: {selectedDate ? selectedDate.toLocaleDateString() : 'None'} +

+
+
+ +
+

Route Schedules

+ +
+ + +
+ +
+ + {#each schedules as schedule, index (schedule.tripHeadsign)} + + + {schedule.tripHeadsign} + + {#each Object.entries(schedule.stopTimes) as [hour, times]} +

{hour}:00

+ + + + + + + + + {#each times as stopTime} + + + + {/each} + +
Arrival TimeDeparture Time
{stopTime.arrivalTime}
+ {/each} +
+ {/each} +
+
+
+
+