Files
web-at-transit/frontend
phattaranun.a 0c3936df69 feat(ui): port route/stop/check pages to match mock + tidy layout
Route detail:
- breadcrumb + route-select dropdown (เปลี่ยนสายในหน้าเดียว)
- vehicle card (รถ + caption + QR + ติดต่อโทร/LINE รวมการ์ดเดียว)
- summary เพิ่ม 'รอบถัดไป' (คำนวณจาก schedules)
- km list (จุดจอดตามเส้นทาง กม.)

Stop detail:
- stop-hero (title/meta pills/metric grid 4 + live clock เที่ยวถัดไป)
- route expander (สายที่ผ่าน + เวลาต่อสาย) + map aside + chips
- breadcrumb

Stop list:
- search form จริง (server-side ?q=) + breadcrumb
- fix TYPE_LABEL/TONE/ICON ให้ตรง station_type จริง (main_terminal/local_stop/market/private_stop)

Check page (ใหม่ /check): เช็กเวลาเดินรถ + selector + 4 สถิติ + ตารางทุกจุดจอด
Header CTA -> /check

Assets: caption<id>.json + qrcode/* จาก mock (lib/captions.ts)
2026-10-10 20:08:42 +07:00
..
2026-05-24 22:55:17 +07:00
2026-05-24 22:55:17 +07:00
2026-05-24 22:55:17 +07:00
2026-05-24 22:55:17 +07:00
2026-05-24 22:55:17 +07:00
2026-05-24 22:55:17 +07:00
2026-05-24 22:55:17 +07:00

Frontend — Next.js App Router

npm install
npm run dev

Talks to backend purely via REST through nginx (/api/*, /files/*).