Rename hidden image folder .resource/ to .image/
.resource/ clashed with resource/ (the tracked data folder), so rename the hidden image folder to .image/ for clarity. Re-zip resource/images.zip to contain .image/ and update setup.sh, .gitignore, README.md, AGENTS.md and all image references in ui/.
This commit is contained in:
1 parent
670afcb773
commit
82aafdc61f
15 files changed
+81
-81
No files matched your search
@@ -37,7 +37,7 @@ web-at-transit-mock/
|
||||
│ ├── data/ ข้อมูล mock: routes.json, schedules.json, stations.json,
|
||||
│ │ provinces.json, route_groups.json
|
||||
│ └── images.zip ← รูปทั้งหมดบีบรวม (แตกด้วย setup.sh)
|
||||
└── .resource/ ← รูปทั้งหมด (hidden — เกิดหลังรัน setup.sh, ไม่ commit)
|
||||
└── .image/ ← รูปทั้งหมด (hidden — เกิดหลังรัน setup.sh, ไม่ commit)
|
||||
```
|
||||
|
||||
**ทุกหน้าเป็น hash URL** (`#/stops`, `#/routes/101`, `#/stops/at_main_terminal`) —
|
||||
@@ -65,17 +65,17 @@ python -m http.server 8090 # เปิด http://localhost:8090/ui/index.
|
||||
(ยกเว้นสไตล์เฉพาะหน้าที่จำเป็นจริง ๆ ให้อยู่ใน `<style>` ใน partial)
|
||||
6. **class ที่ขึ้นต้น `mu-`** = component ร่วม (เช่น `.mu-card`, `.mu-cover`, `.mu-hero`)
|
||||
— ถ้าจะเพิ่ม component ใหม่ ใช้ prefix `mu-` ด้วย
|
||||
7. **รูปอ้างอิงผ่าน `../resource/images/...`** — อย่า copy รูปเข้า ui/
|
||||
7. **รูปอ้างอิงผ่าน `../.image/...`** — อย่า copy รูปเข้า ui/
|
||||
8. **ข้อมูลตัวอย่างมาจาก `resource/data/*.json`** — ถ้าจะเพิ่มเส้นทาง/ป้าย ต้องเพิ่มข้อมูล
|
||||
ใน JSON ให้ตรงกัน (ไม่ hardcode เฉพาะหน้า)
|
||||
9. **ข้อความ UI เป็นภาษาไทย** — ภาษาอังกฤษใช้เป็น label รองเท่านั้น
|
||||
10. **อ่าน `DESIGN.md` ก่อนแก้ UI ทุกครั้ง** — มีกฎ "ห้ามทำ" ที่กันสไตล์ AI genric
|
||||
และโทเคนสี/ฟอนต์ตายตัว
|
||||
11. **ไอคอนใช้ระบบ Lucide sprite เท่านั้น** — ห้ามใช้ emoji แทนไอคอน (DESIGN.md ข้อ 4):
|
||||
- ไอคอนต้นฉบับ (MIT): `.resource/icons/lucide/`
|
||||
- ไอคอนต้นฉบับ (MIT): `.image/icons/lucide/`
|
||||
- sprite: `ui/partials/icons-sprite.svg` (symbol ชื่อ `ic-<ชื่อ>`)
|
||||
- ใช้งาน: `<svg class="ic" aria-hidden="true"><use href="#ic-ชื่อ"/></svg>` (CSS `.ic` ใน `_shared.css`)
|
||||
- **เพิ่มไอคอนใหม่**: ดาวน์โหลดจาก https://lucide.dev → เก็บ SVG ใน `resource/images/icons/lucide/`
|
||||
- **เพิ่มไอคอนใหม่**: ดาวน์โหลดจาก https://lucide.dev → เก็บ SVG ใน `.image/icons/lucide/`
|
||||
→ เพิ่ม `<symbol>` ใน sprite → อัปเดตรายการใน `ui/credits.html`
|
||||
12. `main-theme.css` (อ้างอิงจาก HTML) **ไม่อยู่ใน repo นี้** — ถ้าแก้สไตล์ให้แก้ที่
|
||||
`_shared.css` แทน อย่าไปสร้าง main-theme.css ใหม่
|
||||
|
||||
Reference in new issue
Block a user