+
+
+
+
+
+
+
+ + to {connection.headsign} +
+ +
+
+
+
+
+
+ {connection.line}
+
+ diff --git a/src/routes/journey.tsx b/src/routes/journey.tsx index 74bed42..e0bf2d5 100644 --- a/src/routes/journey.tsx +++ b/src/routes/journey.tsx @@ -27,20 +27,79 @@ function Connection({ ); } -function Connection3() { +/** Change between two connections */ +type Change = { + /** Time to change */ + time: string; + connection: Connection2; +}; + +type Connection2 = { + line: string; + headsign: string; + destination: string; + time: { + change?: string; + arrive: string; + depart: string; + duration: string; + }; + + changes?: Change[]; +}; +function Connection3(connection: Connection2): JSX.Element { return ( -
+ to {connection.headsign} +
+ +{connection.destination}