b2383ca7d00f0ea2f5c5dbb4f46314cc320bbf12
- Rebuild checkSchedule.html to reuse index.html shell classes (gradient hero + blobs + gradient-text, summary stats, gradient stop-card headers) - Remove View Route Details / Find Bus Stops / Preview a Route buttons and their i18n keys from the homepage hero - Add check.* i18n keys (th/en) for the redesigned schedule page - Add README.md with run instructions
web-at-transit-mock
Static HTML mockup / ดีไซน์ต้นแบบเว็บข้อมูลการเดินรถ — สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง (AT Transit)
repo นี้เป็น static HTML + vanilla JS (ไม่มี backend / framework / build step) ส่วน implementation จริง (Next.js) อยู่ที่
web-at-transit
โครงสร้าง
web-at-transit-mock/
├── maintheme.png ← ภาพธีม/ดีไซน์ต้นแบบ
├── ui/ ← Single-page app (hash router)
│ ├── index.html shell หน้าเดียว
│ ├── router.js / i18n.js / pwa.js / sw.js
│ ├── _shared.css / responsive.css
│ └── partials/ view ละ 1 ไฟล์ (router fetch + inject)
└── resource/
├── data/ ← ข้อมูล mock: routes.json, schedules.json, stations.json, ...
└── images/ ← รูปทั้งหมด
วิธี run
cd web-at-transit-mock
python3 -m http.server 8090
แล้วเปิดเบราว์เซอร์ที่:
http://localhost:8090/ui/index.html
เงื่อนไขสำคัญ
- ต้อง serve จาก root ของ repo (ไม่ใช่จาก
ui/) — รูปและข้อมูลอ้างอิงด้วย relative path../resource/...ถ้า serve ผิดตำแหน่ง path จะพัง - ห้ามเปิด
file://— fetch JSON + relative path จะใช้ไม่ได้ ต้องผ่าน static server เสมอ - เปลี่ยน port ได้โดยแก้เลข
8090(เช่นpython3 -m http.server 8080)
หมายเหตุ (ไม่ต้องแก้)
ui/index.htmlอ้าง../../frontend-web-transit/web-transit/css/main-theme.css— ไฟล์นี้ไม่อยู่ใน repo (ดู AGENTS.md ข้อ 12) จะขึ้น 404 ใน DevTools แต่ไม่กระทบ การแสดงผล เพราะสไตล์จริงอยู่ที่_shared.css- Google Fonts (
fonts.googleapis.com) ต้องต่อเน็ต — ถ้า offline ฟอนต์จะ fallback เป็น system font แต่หน้าไม่พัง - รายละเอียดกฎการแก้โค้ดฉบับเต็ม ดูใน
AGENTS.mdและDESIGN.md
Languages
JavaScript
43.8%
HTML
37.5%
Python
11.2%
CSS
7.2%
Shell
0.2%
Other
0.1%