add blog feature

This commit is contained in:
Bkk1234 committed 2026-09-22 04:48:50 +07:00
1 parent e4fb0eeefb
commit bea0fff388
9 files changed
+109

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
# 📁 about-data — เนื้อหาหน้า "เกี่ยวกับเรา"
โฟลเดอร์นี้คือแหล่งเนื้อหาของหน้า `#/about` — แก้ไฟล์ตรงนี้ได้เลย
**เนื้อหาจะสลับกับรูปไปเรื่อย ๆ ตามเลข:** ข้อความ 1 + รูป 1, ข้อความ 2 + รูป 2, ...
```
text1.json ← เนื้อหาบล็อกที่ 1
pic1.jpg ← รูปของบล็อกที่ 1 (ลอง .jpg → .jpeg → .png → .webp ตามลำดับ)
text2.json ← เนื้อหาบล็อกที่ 2
pic2.jpg ← รูปของบล็อกที่ 2
text3.json ...
pic3.jpg ...
```
## รูปแบบ textN.json
```json
{
"th": { "title": "หัวข้อภาษาไทย", "body": ["ย่อหน้าที่ 1", "ย่อหน้าที่ 2"] },
"en": { "title": "English title", "body": ["Paragraph 1", "Paragraph 2"] }
}
```
- **บังคับ:** `th` (title + body) — ระบบแสดงภาษาไทย
- **optional:** `en` — ถ้าอยากให้โหมด EN แปลด้วย (ไม่เขียน = โหมด EN จะแสดง th แทน)
- อยากได้ย่อหน้ากี่อันก็ใส่ใน `body` ได้เรื่อย ๆ
## วิธีเพิ่ม/ลบบล็อก
- **เพิ่มบล็อกใหม่:** สร้าง `textN.json` + `picN.*` ถัดไป (เช่น text4.json + pic4.jpg)
ระบบโหลดไล่เลขไปเรื่อย ๆ จนกว่าจะหา textN ถัดไปไม่เจอ แล้วหยุดเอง
- **ลบบล็อกท้ายสุด:** ลบไฟล์คู่ของเลขนั้นทิ้ง
- **รูปที่แนะนำ:** 1200×800px ขึ้นไป (crop อัตโนมัติ สูงสุด 420px)
> ระบบโหลดแบบ network-first — แก้ JSON/รูปแล้วกด F5 เห็นผลทันที (ไม่ต้องล้างแคช)
> (กรณีรูปภาพเดิมถูก cache ไว้ ให้เปลี่ยนชื่อไฟล์ หรือเปิด DevTools → Network → Disable cache)
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

+15
View File
@@ -0,0 +1,15 @@
{
"th": {
"title": "เราคือใคร? คิดอย่างไรถึงเริ่มทำเว็บนี้",
"body": [
"สวัสดีผู้อ่านทุกคน ขอบคุณที่เข้ามาดูเว็ปตั้งแต่แรกเริ่ม เปลี่ยนชื่อหลายรอบ สำหรับข้อมูลส่วนตัวว่าเราคือใครเราไม่อยากเปิดเผยตัวตน เก็บความเป็นส่วนตัว",
"ส่วนที่ว่าคิดยังไงถึงเริ่มทำเว็บนี้ เรามีประสบการณ์รอ รถมินิบัส อ่างทอง-กรุงเทพ(สายใน) หน้าสำนักงานที่ดินจังหวัดอ่างทอง ตอน 4โมงเช้า-5โมงเช้า ถ้าคนทั่วไปอาจจะไม่รู้ แต่ถ้าคนที่ขึ้นสายนี้ประจำจะรู้ แต่เราไม่รู้ไง! และตอนนั้นเป็นวันเสาร์ก็ไม่มีสองแถวด้วย รู้สึกว่าอยากขึ้นทำอะไรซักอย่าง"
]
},
"en": {
"title": "Who are we? And what inspired us to start this website?",
"body": [
"Hello to all readers, and thank you for visiting this website from the very beginning, despite the many name changes. As for personal information about who we are, we prefer not to reveal our identity to keep our privacy.As for what inspired us to start this website, we had an experience waiting for the Ang Thong - Bangkok (Local Route) minibus in front of the Ang Thong Provincial Land Office between 4:00 AM and 5:00 AM. Regular passengers on this route might know the schedule, but we didn't! And since it was a Saturday, there were no local songthaews available either. That was the moment we felt compelled to do something about it."
]
}
}
+23
View File
@@ -0,0 +1,23 @@
{
"th": {
"title": "ไม่มีจิตรกรคนไหนนั่งวาดภาพจากอากาศ",
"body": [
"บางคนอาจจะสงสัยว่าวลีนี้เกี่ยวกับเว็ปเราอย่างไร อย่างที่สำนวนบอกไม่มีจิตรกรวาดรูปจากอากาศ เว็ปเราก็ไม่ได้มโนจากอากาศเหมือนกันจะสร้างอะไรได้มันต้องมีต้นแบบให้ดู ขอให้เครดิตและขอบคุณต้นแบบของเราทุกๆคน",
"- Mayday กลุ่มคนรณรงค์เรื่องรถเมล์ในกรุงเทพ ปริมณฑล",
"- AyuthayaBusMap เป็นธุรกิจในอยุธยาทำแผนที่รถประจำทางบริการนักท่องเที่ยว",
"- กลุ่มไลน์รถตู้ กรุงเทพ-อ่างทอง (สายใน) เป็นต้นแบบว่าถึงเราไม่ใช่ผู้ประกอบการเราก็ลุกขึ้นมาทำอะไรซักอย่างได้"
]
},
"en": {
"title": "No artist paints out of thin air",
"body": [
"Some might wonder how this phrase relates to our website. Just as the saying goes, 'no artist paints out of thin air,' our website wasn't built out of thin air either. To create something, there must always be a model or blueprint to learn from. We would like to give full credit and extend our heartfelt thanks to all of our inspirations",
"- Mayday: An advocacy group working on improving the bus system in Bangkok and the surrounding metropolitan area.",
"- AyuthayaBusMap: A local enterprise in Ayutthaya creating public transit maps for tourists.",
"- The Bangkok–Ang Thong (local Route) Passenger Van Line Group: Our proof that even if we aren't operators ourselves, we can still step up and take action to make a difference."
]
}
}
+21
View File
@@ -0,0 +1,21 @@
{
"th": {
"title": "ความตั้งใจในปัจจุบัน",
"body": [
"ความตั้งใจของเราคือ พยายามรวบรวมช่องทางการติดต่อถามเวลาเดินรถหรือติดตามข่าวสาร เช่น เบอร์โทร เพจFB กลุ่มFBหรือline หรือwww ที่รถประจำทางแต่ละสายประกาศไว้",
"ส่วนเรื่อตารางเวลาเดินรถที่เวปเราบอกตรงๆว่า เราอยากทำเป็นไอเดีย ว่าถ้าอ่างทองมีตารางเดินรถออนไลน์คงจะดีแต่ไม่ต้องไปเชื่อมาก เราคาดสีสถานะใว้",
"สีแดง คือตารางเวลาที่ไม่ได้อัปเดพเกิน 1 อาทิตย์น่าจะเป็นสีที่เห็นได้บ่อยที่สุด",
"สีเขียว คือตารางเวลาที่ได้อัพเดตไม่เกิน 1 วัน",
"สีส้ม คือตารางเวลาที่ไม่ได้อัพเดตเกิน 1 วันแต่น้อยกว่า 1 อาทิตย์"
]
},
"en": {
"title": "Current intentions",
"body": [
"Our intention is to gather as many contact channels as possible—such as phone numbers, Facebook pages, Facebook groups, LINE accounts, or official websites—where each bus line posts their schedule announcements and updates. As for the timetables on our site, to be transparent, our goal is simply to demonstrate how beneficial an online bus timetable for Ang Thong could be. However, please do not rely on them completely. We have color-coded each schedule's status to reflect its accuracy",
" Red: Schedules that have not been updated for over a week (this will likely be the most common status).",
" Green: Schedules updated within the last 24 hours.",
" Orange: Schedules updated more than a day ago, but less than a week ago."
]
}
}
+14
View File
@@ -0,0 +1,14 @@
{
"th": {
"title": "แผนพัฒนาในอนาคต",
"body": [
"ถ้ามีคนถามถึงแผนพัฒนาในอนาคตมั้ยก็ต้องบอกตรงๆว่าไม่มีการที่ใครเข้าเวปมาแล้วได้โทรถามเวลาเดินรถ หรือเข้ากลุ่มไลน์รถสองแถว รถมินิบัสถือว่าเว็ปนี้ทำหน้าที่ครบแล้ว จริงๆเว็ปนี้ตอนแรกตั้งใจเป็นเว็บชั่วคราวเราอยากให้หน่วยงานราชการและเอกชนใช้กฎหมาย PPP ร่วมทุนระหว่างราชการและเอกขนเพื่อสร้างระบบขนส่งมวลชนของอ่างทอง มีเว็ปแบบเรา มีสถานีขนส่งผดสประจำอำเภอ มีรถประจำทางเส้นเลือดฝอยที่ให้บริการได้ทั้งวัน มีเรือโดยสารแม่น้ำน้อย มีเรือข้ามฟากไชโย หรือใครมีไอเดียก็เมลล์มาบอกได้เผื่อจะนำไปปรับปรุงอนาคต"
]
},
"en": {
"title": "plan future",
"body": [
"If anyone asks about future development plans, to be honest, there are none. If someone visits our website and is able to call to ask about departure times, or join a LINE group for songthaews or minibuses, we consider this site to have fully served its purpose.Originally, this site was intended only as a temporary solution. What we truly hope for is to see the government and private sector collaborate through Public-Private Partnerships (PPP) to develop a proper public transit system for Ang Thong. This includes having an official platform like ours, district-level passenger bus terminals, feeder routes operating throughout the day, Noi River passenger boats, and Chaiyo ferry services. If anyone has additional ideas, feel free to email us—we might use them to make future improvements."
]
}
}