display schedules like a table, not a table, first only display the destination…
- User
display schedules like a table, not a table, first only display the destination departure departure station departure time and destination station arrival time and vehicle number. when clicked on expand show routes
.station { position: relative; margin: 10px 0px; display: flex; flex-direction: row; align-items: center; }
.timeline { content: “”; position: absolute; top: 50%; bottom: -60%; border-left: 4px solid #4c51bf; z-index: 1; }
.station:last-child .timeline { border-left: none; }
.hoi { content: “”; position: relative; width: 16px; height: 16px; left: 2px; background-color: #fff; border: 4px solid #4c51bf; border-radius: 50%; transform: translateX(-50%); z-index: 2; }
.time-wrapper { display: flex; flex-direction: row; align-items: center; justify-content: space-between; z-index: 3; width: 20px; }
.station-time { padding: 5px 10px; background-color: #4c51bf; color: #fff; border-radius: 12px; white-space: nowrap; z-index: 3; margin-right: 20px; }
.station-name { flex-grow: 1; margin-left: 20px; margin-right: 20px; z-index: 3; }
.header-row { display: flex; justify-content: space-between; padding: 10px; font-weight: bold; } .green-bg { background-color: #10b981; }
.green-border { border-color: #10b981; }
.green-line { border-left-color: #10b981; }
this is the sample API response [{“vehicle_number”:“KL 39 P 5666”,“trip”:10,“stations”:[{“station”:“HIGH COURT JUNCTION”,“arrivalTime”:“08:18 pm”,“departureTime”:“08:18 pm”},{“station”:“ERNAKULAM SOUTH”,“arrivalTime”:“08:25 pm”,“departureTime”:“08:25 pm”},{“station”:“POOTHOTTA”,“arrivalTime”:“09:25 pm”,“departureTime”:“09:25 pm”}]},{“vehicle_number”:“KL 17 B 5276”,“trip”:10,“stations”:[{“station”:“HIGH COURT JUNCTION”,“arrivalTime”:“08:19 pm”,“departureTime”:“08:19 pm”},{“station”:“ERNAKULAM SOUTH”,“arrivalTime”:“08:26 pm”,“departureTime”:“08:26 pm”},{“station”:“POOTHOTTA”,“arrivalTime”:“09:26 pm”,“departureTime”:“09:26 pm”}]},{“vehicle_number”:“KL 13 N 1929”,“trip”:10,“stations”:[{“station”:“HIGH COURT JUNCTION”,“arrivalTime”:“08:21 pm”,“departureTime”:“08:21 pm”},{“station”:“ERNAKULAM SOUTH”,“arrivalTime”:“08:31 pm”,“departureTime”:“08:31 pm”},{“station”:“POOTHOTTA”,“arrivalTime”:“09:31 pm”,“departureTime”:“09:31 pm”}]},{“vehicle_number”:“KL 08 AP 4141”,“trip”:15,“stations”:[{“station”:“KAKKANAD”,“arrivalTime”:“08:08 pm”,“departureTime”:“08:08 pm”},{“station”:“HIGH COURT JUNCTION”,“arrivalTime”:“08:36 pm”,“departureTime”:“08:43 pm”},{“station”:“ERNAKULAM SOUTH”,“arrivalTime”:“08:51 pm”,“departureTime”:“08:51 pm”}]},{“vehicle_number”:“KL 41 A 1251”,“trip”:12,“stations”:[{“station”:“HIGH COURT JUNCTION”,“arrivalTime”:“09:03 pm”,“departureTime”:“09:03 pm”},{“station”:“ERNAKULAM SOUTH”,“arrivalTime”:“09:10 pm”,“departureTime”:“09:10 pm”},{“station”:“CHOTTANIKKARA JN”,“arrivalTime”:“10:00 pm”,“departureTime”:“10:00 pm”}]}]
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.