Files
BANK e26cc685d0 feat(landing): modern pass + ownership section
- hero: rotating use-case line, count-up stats, GPU spec marquee
- new #why section: why dorm residents should own a PC (cloud/account risk,
  perpetual license collapse, subscription rental) with cited sources
  (NYT/The Verge 2022, Microsoft Q&A/Lifecycle) and a rent-vs-own calculator
- motion: 380ms reveals, hover lift, reading progress bar, reduced-motion paths
- nav drawer breakpoint 960px, JS-off fallback, section renumbering
2026-11-20 02:57:45 +07:00

50 lines
3.6 KiB
Markdown

# AGENTS.md — กติกาสำหรับ AI ที่แก้โปรเจกต์นี้
## ก่อนแก้
1. อ่าน `DESIGN.md` — เป็นข้อกำหนดการออกแบบ ถ้าจะเปลี่ยนค่าสี/ฟอนต์/สเปก ให้แก้ DESIGN.md ก่อน
2. ตรวจว่าตัวเลขที่กำลังจะแก้ปรากฏที่ไหนอีก (`index.html`: hero chips, stat band, `#specs`, `#faq`, `#order`)
ตัวเลขชุดเดียวกันต้องตรงกันทุกจุด
3. งานนี้เป็น static site — ห้ามเพิ่ม bundler, framework หรือ dependency
## คำสั่งที่ใช้
```bash
# เปิดดู
cd D:/Git/workspace/SSF-PC-software
python -m http.server 8090 # ตรวจที่ http://localhost:8090
# ตรวจ syntax
node --check assets/js/main.js
# push (Gitea)
git -c http.version=HTTP/1.1 push origin main
```
## ข้อห้าม
- ห้ามใส่ emoji ในหน้าเว็บ
- ห้ามใช้ gradient, เงาฟุ้ง (`box-shadow`), หรือมุมโค้งเกิน 4px
- ห้ามเรียกฟอนต์จาก CDN — K2D อยู่ใน `assets/fonts` เท่านั้น
- ห้ามเดาสเปกการ์ดจอที่ผู้ผลิตยังไม่ประกาศ ให้เขียน "รอประกาศ" แทน
- ห้ามแก้ `ORDER_EMAIL` เป็นค่าปลอมแล้วบอกผู้ใช้ว่าส่งออเดอร์ได้จริง — ฟอร์มเป็นแค่ตัวสร้างข้อความ
- ห้ามลบไฟล์ใน `LICENSE` หรือแก้เครดิตใน `README.md` / footer
## จุดที่แก้บ่อย
| งาน | ไฟล์ / ตำแหน่ง |
|---|---|
| เปลี่ยนราคา | `index.html` `.price` + `data-price` ของ `<option>` ใน `#f-kit` + `main.js` ค่า fallback 3590 |
| เปลี่ยนอีเมลร้าน | `main.js` `ORDER_EMAIL` + `index.html` `.order-contact` |
| เพิ่มการ์ดจอในตาราง | `index.html` `#gpu` `<tbody>` — ต้องมี `data-label` ครบ 5 ช่อง (`รุ่นการ์ดจอ/ความยาว/ความหนา/ไฟเลี้ยง/ในเคสนี้`) ไม่งั้นมือถือจะไม่มีป้าย |
| เพิ่มโปรแกรมฟรี | `index.html` `#software` `.soft-group` + ป้าย `OSS` หรือ `ฟรี` ให้ตรงสัญญาอนุญาต |
| แก้ไดอะแกรม | `index.html` `#specs` inline SVG — รักษา `role="img"` และ `aria-label` |
## ตรวจก่อนส่งงาน
- [ ] เปิดที่ 1440px และ 390px ไม่มีสกอลล์แนวนอน (ตรวจ `document.documentElement.scrollWidth === innerWidth`)
- [ ] ฟอนต์ K2D โหลดจริง (`document.fonts.check('16px K2D')`)
- [ ] ฟอร์ม: กรอกครบ → ได้ข้อความสรุป + ปุ่มคัดลอกทำงาน + `mailto:` ถูกสร้าง
- [ ] ตารางการ์ดจอบนมือถือแสดงเป็นการ์ดพร้อมป้ายครบ 5 ช่อง
- [ ] ตัวเลขสเปกตรงกันทุก section