From 8bd1a6dff11a7293799d4a8d3d5cb1409fb282b7 Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Tue, 3 Nov 2026 15:38:23 +0700 Subject: [PATCH] docs: add IMAGE_MAP (220 refs), plan.md, project.md for hero-image workstream --- IMAGE_MAP.md | 359 +++++++++++++++++++++++++++++++++++++++++++++++++++ plan.md | 61 +++++++++ project.md | 46 +++++++ 3 files changed, 466 insertions(+) create mode 100644 IMAGE_MAP.md create mode 100644 plan.md create mode 100644 project.md diff --git a/IMAGE_MAP.md b/IMAGE_MAP.md new file mode 100644 index 0000000..5f8ae85 --- /dev/null +++ b/IMAGE_MAP.md @@ -0,0 +1,359 @@ +# IMAGE MAP — หน้าสินค้า dealplustech + +สร้างจากโค้ดจริงใน `src/pages/` — 29 หน้าสินค้า, 220 รูปที่ถูกอ้าง, 2 รูปใช้ร่วมหลายหน้า + +**slot:** `JSON-LD` = prop product.image (บรรทัด ~8, เข้า Product schema) · `hero` = รูปขวา hero (loading=eager) · `gallery` = บล็อกแกลอรี่ (link+thumb นับเป็น 1) · `content` = รูปในรายละเอียด + + +### aeroflex.astro +pricelist +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/aeroflex/aerocel-d-al-real.jpg` | 1000×1000 | 62KB | +| gallery-thumb | 238 | `/images/aeroflex/aerocel-d-al-duct.jpg` | 700×700 | 34KB | +| gallery | 271 | `/images/aeroflex/gallery-1.jpg` | 480×360 | 56KB | +| gallery | 274 | `/images/aeroflex/gallery-2.jpg` | 400×400 | 58KB | +| gallery | 277 | `/images/aeroflex/gallery-3.jpg` | 400×400 | 51KB | +| gallery | 280 | `/images/aeroflex/gallery-4.jpg` | 400×400 | 33KB | +| gallery | 283 | `/images/aeroflex/gallery-5.jpg` | 400×400 | 74KB | +| gallery | 286 | `/images/aeroflex/gallery-6.jpg` | 400×400 | 35KB | +| gallery | 289 | `/images/aeroflex/gallery-8.jpg` | 600×600 | 60KB | +| gallery | 292 | `/images/aeroflex/gallery-9.jpg` | 1280×720 | 240KB | +| gallery | 295 | `/images/aeroflex/gallery-10.jpg` | 953×600 | 113KB | +| gallery | 298 | `/images/aeroflex/gallery-11.jpg` | 400×400 | 49KB | +| gallery | 301 | `/images/aeroflex/gallery-12.jpg` | 400×400 | 44KB | +| gallery | 304 | `/images/aeroflex/gallery-13.jpg` | 400×400 | 59KB | +| gallery | 307 | `/images/aeroflex/gallery-14.jpg` | 400×400 | 50KB | + +### armaflex.astro +pricelist +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/armaflex/armaflex-sheet-roll.jpg` | 1200×1200 | 29KB | +| gallery | 299 | `/images/armaflex/gallery-1.jpg` | 1667×1667 | 475KB | +| gallery | 302 | `/images/armaflex/gallery-2.jpg` | 400×310 | 52KB | +| gallery | 305 | `/images/armaflex/gallery-3.jpg` | 1200×1200 | 187KB | +| gallery | 308 | `/images/armaflex/gallery-4.jpg` | 1200×1200 | 194KB | +| gallery | 311 | `/images/armaflex/gallery-5.jpg` | 400×400 | 67KB | + +### durgo-avvs.astro +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/products-cropped/durgo_000C.jpg` | 1127×1127 | 123KB | +| gallery-thumb | 98 | `/images/durgo-avvs/durgo-002.jpg` | 741×726 | 90KB | +| gallery-thumb | 99 | `/images/durgo-avvs/durgo-003.jpg` | 731×532 | 120KB | +| gallery-thumb | 109 | `/images/durgo-avvs/durgo-004.jpg` | 61×61 | 2KB | +| gallery-thumb | 114 | `/images/durgo-avvs/durgo-008.jpg` | 61×61 | 2KB | +| gallery-thumb | 119 | `/images/durgo-avvs/durgo-005.jpg` | 61×61 | 2KB | +| gallery-thumb | 124 | `/images/durgo-avvs/durgo-009.jpg` | 61×61 | 2KB | +| gallery-thumb | 129 | `/images/durgo-avvs/durgo-006.jpg` | 61×61 | 2KB | +| gallery-thumb | 134 | `/images/durgo-avvs/durgo-010.jpg` | 61×61 | 2KB | +| gallery-thumb | 139 | `/images/durgo-avvs/durgo-007.jpg` | 61×61 | 2KB | +| gallery-thumb | 144 | `/images/durgo-avvs/durgo-011.jpg` | 61×61 | 2KB | +| gallery-thumb | 151 | `/images/durgo-avvs/durgo-012.jpg` | 750×257 | 55KB | +| gallery-thumb | 168 | `/images/durgo-avvs/durgo-013.jpg` | 750×298 | 44KB | +| gallery-thumb | 173 | `/images/durgo-avvs/durgo-014.jpg` | 350×512 | 40KB | +| gallery-thumb | 174 | `/images/durgo-avvs/durgo-015.jpg` | 390×520 | 39KB | +| gallery-thumb | 175 | `/images/durgo-avvs/durgo-016.jpg` | 750×290 | 40KB | +| gallery-thumb | 180 | `/images/durgo-avvs/durgo-023.jpg` | 750×346 | 41KB | +| gallery-thumb | 185 | `/images/durgo-avvs/durgo-024.jpg` | 750×480 | 72KB | + +### grilles.astro +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/products-cropped/grilles_000C.jpg` | 1127×1127 | 282KB | +| gallery-thumb | 152 | `/images/grilles/fresh-air1-content-1.jpg` | 944×1024 | 100KB | +| gallery-thumb | 155 | `/images/grilles/round-grille-front.jpg` | 445×445 | 36KB | +| gallery-thumb | 156 | `/images/grilles/round-grille-angle.jpg` | 702×564 | 21KB | +| gallery-thumb | 171 | `/images/grilles/supply-air.jpg` | 905×1024 | 107KB | +| gallery-thumb | 172 | `/images/grilles/linear-slot-content.jpg` | 1024×364 | 44KB | +| gallery-thumb | 173 | `/images/grilles/air-grille-content.jpg` | 1024×682 | 140KB | + +### maxflex.astro +pricelist +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/maxflex/maxflex-fsk-foil.jpg` | 1200×1200 | 45KB | +| gallery | 270 | `/images/maxflex/gallery-1.jpg` | 400×400 | 41KB | +| gallery | 273 | `/images/maxflex/gallery-3.jpg` | 400×400 | 31KB | +| gallery | 276 | `/images/maxflex/gallery-4.jpg` | 400×400 | 29KB | +| gallery | 279 | `/images/maxflex/gallery-5.jpg` | 400×400 | 36KB | +| gallery | 282 | `/images/maxflex/gallery-6.jpg` | 400×400 | 48KB | +| gallery | 285 | `/images/maxflex/gallery-7.jpg` | 400×400 | 46KB | +| gallery | 288 | `/images/maxflex/gallery-8.jpg` | 400×400 | 31KB | +| gallery | 291 | `/images/maxflex/gallery-9.jpg` | 400×400 | 46KB | + +### microfiber.astro ⚠️ ไม่มี Product JSON-LD +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| hero | 53 | `/images/microfiber/microfiber-enf.jpg` | 700×700 | 53KB | +| gallery-thumb | 99 | `/images/microfiber/microfiber-fl.jpg` | 700×700 | 27KB | +| gallery-thumb | 109 | `/images/microfiber/microfiber-fld.jpg` | 700×700 | 29KB | +| gallery-thumb | 119 | `/images/microfiber/microfiber-fls.jpg` | 700×700 | 27KB | +| gallery-thumb | 129 | `/images/microfiber/microfiber-fr.jpg` | 700×700 | 27KB | +| gallery-thumb | 139 | `/images/microfiber/microfiber-frd.jpg` | 700×700 | 27KB | +| gallery-thumb | 149 | `/images/microfiber/microfiber-frk.jpg` | 700×700 | 27KB | +| gallery-thumb | 159 | `/images/microfiber/microfiber-glc.jpg` | 700×700 | 33KB | +| gallery-thumb | 169 | `/images/microfiber/microfiber-gts.jpg` | 700×700 | 15KB | +| gallery-thumb | 179 | `/images/microfiber/microfiber-hi-temp.jpg` | 700×700 | 27KB | +| gallery-thumb | 189 | `/images/microfiber/microfiber-pfl.jpg` | 700×700 | 68KB | +| gallery-thumb | 199 | `/images/microfiber/microfiber-pln.jpg` | 700×700 | 35KB | +| gallery-thumb | 209 | `/images/microfiber/microfiber-fsf.jpg` | 1200×1200 | 26KB | +| gallery-thumb | 219 | `/images/microfiber/microfiber-pipe-cover.jpg` | 1200×1200 | 35KB | +| gallery-thumb | 229 | `/images/microfiber/microfiber-gwpf.jpg` | 1200×1200 | 45KB | +| gallery | 279 | `/images/microfiber/gallery-1.jpg` | 400×400 | 73KB | +| gallery | 282 | `/images/microfiber/gallery-2.jpg` | 400×400 | 24KB | +| gallery | 285 | `/images/microfiber/gallery-3.jpg` | 400×400 | 14KB | +| gallery | 288 | `/images/microfiber/gallery-4.jpg` | 400×400 | 42KB | +| gallery | 291 | `/images/microfiber/gallery-5.jpg` | 400×400 | 35KB | +| gallery | 294 | `/images/microfiber/gallery-6.jpg` | 400×400 | 35KB | +| gallery | 297 | `/images/microfiber/gallery-7.jpg` | 400×400 | 46KB | +| gallery | 300 | `/images/microfiber/gallery-8.jpg` | 400×400 | 38KB | +| gallery | 303 | `/images/microfiber/gallery-10.jpg` | 400×400 | 24KB | + +### pipe-coupling.astro ⚠️ ไม่มี Product JSON-LD +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| hero | 58 | `/images/pipe-coupling/mjg80a-hero.png` | 884×804 | 656KB | +| gallery-thumb | 92 | `/images/pipe-coupling/mjg.jpg` | 1024×1024 | 136KB | +| gallery-thumb | 103 | `/images/pipe-coupling/mjh.jpg` | 1024×1024 | 167KB | +| gallery-thumb | 114 | `/images/pipe-coupling/mjd.jpg` | 1024×1024 | 180KB | +| gallery-thumb | 125 | `/images/pipe-coupling/mjer.jpg` | 1024×1024 | 164KB | +| gallery-thumb | 136 | `/images/pipe-coupling/mjcx.jpg` | 1024×1024 | 195KB | +| gallery-thumb | 147 | `/images/pipe-coupling/rnt-e009.jpg` | 1200×1200 | 160KB | + +### realflex.astro +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/products-cropped/realflex_000C.jpg` | 1127×1127 | 216KB | +| gallery-thumb | 100 | `/images/realflex/realflex-001.png` | 915×1024 | 800KB | + +### rockwool.astro ⚠️ ไม่มี Product JSON-LD +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| hero | 53 | `/images/rockwool/cool-n-comfort-rl.jpg` | 500×500 | 24KB | +| gallery-thumb | 91 | `/images/rockwool/rockduct.jpg` | 700×700 | 40KB | +| gallery-thumb | 101 | `/images/rockwool/conlit-h110.jpg` | 700×700 | 47KB | +| gallery-thumb | 121 | `/images/rockwool/cool-n-comfort-sl.jpg` | 500×500 | 34KB | +| gallery-thumb | 131 | `/images/rockwool/prorox-bl.jpg` | 500×500 | 37KB | +| gallery-thumb | 141 | `/images/rockwool/prorox-ps960.jpg` | 500×500 | 25KB | +| gallery-thumb | 151 | `/images/rockwool/prorox-sl.jpg` | 500×500 | 28KB | +| gallery-thumb | 162 | `/images/rockwool/prorox-wm.jpg` | 500×500 | 33KB | +| gallery-thumb | 172 | `/images/rockwool/rocksafe-plus.jpg` | 700×700 | 45KB | +| gallery-thumb | 183 | `/images/rockwool/safe-n-silent-pro.jpg` | 700×700 | 60KB | +| gallery-thumb | 194 | `/images/rockwool/thermalrock-s.jpg` | 500×500 | 58KB | +| gallery | 244 | `/images/rockwool/gallery-1.jpg` | 400×400 | 58KB | +| gallery | 247 | `/images/rockwool/gallery-2.jpg` | 400×400 | 35KB | +| gallery | 250 | `/images/rockwool/gallery-3.jpg` | 400×400 | 51KB | +| gallery | 253 | `/images/rockwool/gallery-4.jpg` | 400×400 | 47KB | +| gallery | 256 | `/images/rockwool/gallery-5.jpg` | 400×400 | 67KB | +| gallery | 259 | `/images/rockwool/gallery-6.jpg` | 400×400 | 35KB | +| gallery | 262 | `/images/rockwool/gallery-7.jpg` | 400×400 | 57KB | +| gallery | 265 | `/images/rockwool/gallery-9.jpg` | 400×400 | 33KB | +| gallery | 268 | `/images/rockwool/gallery-10.jpg` | 400×400 | 49KB | +| gallery | 271 | `/images/rockwool/gallery-11.jpg` | 400×400 | 50KB | + +### scg.astro ⚠️ ไม่มี Product JSON-LD +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| hero | 53 | `/images/scg/scg-crb-g.jpg` | 400×400 | 14KB | +| gallery-thumb | 100 | `/images/scg/scg-cylence-zoftone.jpg` | 400×400 | 6KB | +| gallery-thumb | 110 | `/images/scg/scg-cylence-zoundblock.jpg` | 700×700 | 21KB | +| gallery-thumb | 120 | `/images/scg/scg-dln-g.jpg` | 400×400 | 10KB | +| gallery-thumb | 130 | `/images/scg/scg-fpo-g.jpg` | 400×400 | 12KB | +| gallery-thumb | 140 | `/images/scg/scg-fso-g.jpg` | 400×400 | 13KB | +| gallery-thumb | 150 | `/images/scg/scg-gtb-g.jpg` | 400×400 | 10KB | +| gallery-thumb | 160 | `/images/scg/scg-hti-g.jpg` | 400×400 | 11KB | +| gallery-thumb | 170 | `/images/scg/scg-htif-g.jpg` | 700×700 | 25KB | +| gallery-thumb | 180 | `/images/scg/scg-htifd-g.jpg` | 700×700 | 25KB | +| gallery-thumb | 190 | `/images/scg/scg-stay-cool.jpg` | 400×400 | 31KB | +| gallery-thumb | 201 | `/images/scg/scg-ub-g.jpg` | 400×400 | 8KB | +| gallery-thumb | 211 | `/images/scg/scg-ubb-g.jpg` | 400×400 | 10KB | +| gallery-thumb | 221 | `/images/scg/scg-frk-g.jpg` | 1200×1200 | 21KB | +| gallery-thumb | 231 | `/images/scg/scg-frkf-g.jpg` | 400×400 | 13KB | +| gallery-thumb | 241 | `/images/scg/scg-cylence-zandera-scenera.jpg` | 800×444 | 40KB | +| gallery-thumb | 251 | `/images/scg/scg-supercool-g.jpg` | 400×400 | 11KB | + +### water-pump.astro +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/products-cropped/water-pump_000C.jpg` | 1127×1127 | 178KB | +| gallery-thumb | 99 | `/images/water-pump-banner.jpg` | 1024×382 | 68KB | + +### water-treatment.astro +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/products-cropped/water-treatment_000C.jpg` | 1127×1127 | 192KB | + +### ฉนวนหุ้มท่อ-ccool.astro +pricelist +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 10 | `/images/ccool/ccool-application-hvac.jpg` | 1024×768 | 190KB | +| hero | 93 | `/images/ccool/ccool-roll-product.jpg` | 1024×768 | 83KB | +| content | 504 | `/images/ccool/ccool-brand-infographic.jpg` | 1024×768 | 142KB | +| content | 510 | `/images/ccool/ccool-features-vertical.jpg` | 1024×768 | 203KB | +| content | 513 | `/images/ccool/ccool-banner-horizontal.jpg` | 1024×768 | 198KB | + +### ตู้ดับเพลิง.astro +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/products-cropped/extinguishers_000C.jpg` | 1127×1127 | 181KB | +| gallery-thumb | 114 | `/images/fire-extinguisher-p1.jpg` | 600×450 | 67KB | +| gallery-thumb | 147 | `/images/fire-cabinet-1-crop.jpg` | 307×351 | 12KB | +| gallery-thumb | 163 | `/images/fire-cabinet-2-crop.jpg` | 307×418 | 13KB | +| gallery-thumb | 175 | `/images/fire-extinguisher-p3.jpg` | 901×1024 | 156KB | + +### ท่อ-hdpe.astro +pricelist +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/products-cropped/hdpe001.png` | 531×531 | 291KB | + +### ท่อ-ppr-scg.astro +pricelist +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/products-cropped/ppr-scg.jpg` | 450×450 | 38KB | + +### ท่อ-ppr-thai-ppr.astro +pricelist +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/products-cropped/ppr-pipe_000C.jpg` | 959×959 | 168KB | + +### ท่อ-syler.astro +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/products-cropped/syler-pipe-cold-water.jpg` | 973×973 | 109KB | +| gallery-thumb | 150 | `/images/products-misc/SYLER-b01.jpg` | 1051×503 | 116KB | +| gallery-thumb | 151 | `/images/products-misc/SYLER-b02.jpg` | 946×1270 | 260KB | +| gallery-thumb | 153 | `/images/products-misc/syler001.jpg` | 1329×1572 | 237KB | +| gallery-thumb | 154 | `/images/products-misc/syler002.jpg` | 1277×850 | 136KB | +| gallery-thumb | 155 | `/images/products-misc/syler003.jpg` | 1287×430 | 184KB | +| gallery-thumb | 177 | `/images/groove-coupling/G1.png` | 265×340 | 145KB | +| gallery-thumb | 189 | `/images/groove-coupling/G2.png` | 270×210 | 96KB | +| gallery-thumb | 198 | `/images/groove-coupling/G6.png` | 235×200 | 67KB | +| gallery-thumb | 199 | `/images/groove-coupling/G7.png` | 310×190 | 35KB | +| gallery-thumb | 223 | `/images/groove-coupling/G8.png` | 240×200 | 70KB | +| gallery-thumb | 229 | `/images/groove-coupling/G9.png` | 235×190 | 69KB | +| gallery-thumb | 235 | `/images/groove-coupling/G10.png` | 145×205 | 67KB | +| gallery-thumb | 242 | `/images/groove-coupling/G11.png` | 250×200 | 62KB | +| gallery-thumb | 243 | `/images/groove-coupling/G12.png` | 265×200 | 82KB | +| gallery-thumb | 250 | `/images/groove-coupling/G13.png` | 270×200 | 102KB | + +### ท่อ-upvc.astro +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 10 | `/images/products-cropped/upvc-pipe_000C.jpg` | 1127×1127 | 203KB | + +### ท่อ-xy-lent.astro +pricelist +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/products-cropped/XYLENT_001.png` | 974×974 | 759KB | +| gallery-thumb | 147 | `/images/products-raw/xylent/XYLENT_004-805x1024.png` | 805×1024 | 1360KB | +| gallery-thumb | 148 | `/images/products-raw/xylent/XYLENT_031-771x1024.png` | 771×1024 | 464KB | +| gallery-thumb | 149 | `/images/products-raw/xylent/XYLENT_016-1024x617.png` | 1024×617 | 493KB | +| gallery-thumb | 150 | `/images/products-raw/xylent/XYLENT_008-1024x357.png` | 1024×357 | 205KB | + +### ระบบน้ำ.astro ⚠️ ไม่มี Product JSON-LD +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| hero | 63 | `/images/products-cropped/valve_000C.jpg` | 1127×1127 | 198KB | +| gallery-thumb | 94 | `/images/products-cropped/water-treatment_000C.jpg` | 1127×1127 | 192KB | + +### ระบบรั้วไวน์แมน.astro +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/products-raw/vineman/ระบบรั้วไวน์แมน-Vineman-e1613286324569-1024x880.jpg` | 1024×880 | 320KB | +| gallery-thumb | 101 | `/images/products-raw/vineman/ระบบรั้วไวน์แมน.jpg` | 396×415 | 161KB | +| gallery-thumb | 105 | `/images/products-raw/vineman/ลวดหนาม.jpg` | 98×99 | 9KB | +| gallery-thumb | 109 | `/images/products-raw/vineman/ตาข่ายถักปม.jpg` | 93×97 | 8KB | +| gallery-thumb | 113 | `/images/products-raw/vineman/ฟิคซ์ล็อค.jpg` | 97×98 | 10KB | +| gallery-thumb | 128 | `/images/products-raw/vineman/เทคนิคน่ารู้-ก่อนเลือกใช้-ระบบรั้วตาข่าย-488x1024.jpg` | 488×1024 | 193KB | +| gallery-thumb | 170 | `/images/products-raw/vineman/จุดเชื่อมของเสาค้ำยันไม่คงทน.jpg` | 204×229 | 64KB | +| gallery-thumb | 174 | `/images/products-raw/vineman/เปราะ-แตกหักง่าย.jpg` | 204×229 | 74KB | +| gallery-thumb | 178 | `/images/products-raw/vineman/ตัวยึดลวดหนาม-หลุดง่าย.jpg` | 204×229 | 74KB | +| gallery-thumb | 182 | `/images/products-raw/vineman/เสาค้ำยันไม่แข็งแรง.jpg` | 204×229 | 76KB | +| gallery-thumb | 186 | `/images/products-raw/vineman/เกิดรอยร้าวง่าย.jpg` | 204×229 | 75KB | +| gallery-thumb | 190 | `/images/products-raw/vineman/ต้องหล่อปูนทำฐานรากทุกต้น.jpg` | 204×229 | 83KB | +| gallery-thumb | 198 | `/images/products-raw/vineman/รั้วโปร่งโล่งสบายตา-1024x1013.jpg` | 1024×1013 | 358KB | +| gallery-thumb | 201 | `/images/products-raw/vineman/แข็งแรง-ติดตั้งง่าย-ได้ทุกภูมิทัศน์.jpg` | 801×544 | 437KB | +| gallery-thumb | 217 | `/images/products-raw/vineman/ระบบรั้วไวน์แมน-ระยะห่างของเสา-5-8-เมตร-1024x302.jpg` | 1024×302 | 108KB | +| gallery-thumb | 221 | `/images/products-raw/vineman/เสาปูน-ระยะห่างของเสา-4-6-เมตร-1024x299.jpg` | 1024×299 | 59KB | +| gallery-thumb | 225 | `/images/products-raw/vineman/เสาไม้เนื้อแข็ง-ระยะห่างของเสา-4-6-เมตร-1024x295.jpg` | 1024×295 | 87KB | +| gallery-thumb | 240 | `/images/products-raw/vineman/ไวน์แมน-รั้วตาข่ายกึ่งสปริง.jpg` | 537×214 | 23KB | +| gallery-thumb | 277 | `/images/products-raw/vineman/VINEMAN-Buying-Guide.jpg` | 649×650 | 30KB | +| gallery-thumb | 297 | `/images/products-raw/vineman/ตารางการคำนวณปริมาณเบื้องต้น-1024x322.jpg` | 1024×322 | 29KB | + +### รั้วเทวดา.astro +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/tevada/LINE_ALBUM_รั้วเทวดา_260522_1.jpg` | 1040×1040 | 509KB | +| gallery-thumb | 126 | `/images/tevada/LINE_ALBUM_รั้วเทวดา_260522_2.jpg` | 1040×1040 | 697KB | +| gallery-thumb | 129 | `/images/tevada/LINE_ALBUM_รั้วเทวดา_260522_3.jpg` | 1040×1040 | 562KB | + +### วาล์ว-valve.astro +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/products-cropped/valve_000C.jpg` | 1127×1127 | 198KB | +| gallery-thumb | 107 | `/images/products-misc/valve_logo.jpg` | 500×300 | 53KB | +| gallery-thumb | 160 | `/images/valve-In01.jpg` | 510×317 | 47KB | +| gallery-thumb | 161 | `/images/valve-In02.jpg` | 510×317 | 36KB | +| gallery-thumb | 162 | `/images/valve-In03.jpg` | 510×317 | 32KB | +| gallery-thumb | 163 | `/images/valve-In05.jpg` | 510×317 | 28KB | +| gallery-thumb | 164 | `/images/valve-In08.jpg` | 510×317 | 30KB | +| gallery-thumb | 165 | `/images/valve-In10.jpg` | 510×317 | 34KB | +| gallery-thumb | 166 | `/images/valve-In15.jpg` | 510×317 | 38KB | +| gallery-thumb | 167 | `/images/valve-In17.jpg` | 510×317 | 36KB | + +### หัวจ่าย-ball-jet.astro +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/ball-jet/ball-jet-main-hd.jpg` | 1764×2000 | 184KB | +| gallery-thumb | 187 | `/images/ball-jet/ball-jet-front.jpg` | 450×416 | 5KB | +| gallery-thumb | 200 | `/images/ball-jet/ball-jet-specs.jpg` | 712×1096 | 67KB | + +### เครื่องเชื่อม-hdpe.astro +pricelist +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/HDPE-welding-crop.jpg` | 382×382 | 50KB | +| gallery-thumb | 145 | `/images/products-misc/HDPE2.jpg` | 300×168 | 8KB | + +### เครื่องเชื่อม-ppr.astro +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/products-misc/ppr-welding-machine-main.jpg` | 1182×1182 | 28KB | +| gallery-thumb | 159 | `/images/products-misc/D20-32small.jpg` | 188×149 | 5KB | +| gallery-thumb | 166 | `/images/products-misc/D25-32-40.jpg` | 163×116 | 2KB | +| gallery-thumb | 171 | `/images/products-misc/D50-25.jpg` | 183×138 | 3KB | +| gallery-thumb | 190 | `/images/products-misc/D7.jpg` | 92×97 | 2KB | +| gallery-thumb | 194 | `/images/products-misc/D20.jpg` | 192×114 | 3KB | + +### เทอร์โมเบรค-thermobreak.astro +pricelist +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/thermobreak/thermobreak-main.jpg` | 2048×1365 | 1229KB | +| gallery-thumb | 106 | `/images/thermobreak/thermobreak-ls.png` | 890×498 | 866KB | +| gallery | 406 | `/images/thermobreak/gallery-1.jpg` | 730×435 | 239KB | +| gallery | 409 | `/images/thermobreak/gallery-2.jpg` | 654×445 | 137KB | +| gallery | 412 | `/images/thermobreak/gallery-3.jpg` | 1109×1479 | 416KB | +| gallery | 415 | `/images/thermobreak/gallery-4.jpg` | 800×534 | 318KB | +| gallery | 418 | `/images/thermobreak/gallery-5.jpg` | 720×960 | 237KB | +| gallery | 421 | `/images/thermobreak/gallery-6.jpg` | 2048×1365 | 1229KB | +| gallery | 424 | `/images/thermobreak/gallery-7.jpg` | 1200×801 | 529KB | +| gallery | 427 | `/images/thermobreak/gallery-8.jpg` | 738×1041 | 355KB | +| gallery | 430 | `/images/thermobreak/gallery-9.jpg` | 273×182 | 29KB | + +### เม็กกรู๊ฟ-คับปลิ้ง.astro +pricelist +| slot | บรรทัด | ไฟล์ | ขนาดจริง | หนัก | +|---|---|---|---|---| +| JSON-LD | 8 | `/images/products-misc/MECH_001.jpg` | 360×311 | 29KB | + +## รูปใช้ร่วมหลายหน้า +| ไฟล์ | หน้าที่ใช้ | +|---|---| +| `/images/products-cropped/valve_000C.jpg` | ระบบน้ำ.astro, วาล์ว-valve.astro | +| `/images/products-cropped/water-treatment_000C.jpg` | water-treatment.astro, ระบบน้ำ.astro | + +## จุดที่ต้องระวังตอนเปลี่ยนรูป +- **60 จุด hard-code `width/height`** ใน durgo-avvs, grille, ท่อ-syler, groove-coupling, วาล์ว-valve, เครื่องเชื่อม-ppr, ตู้ดับเพลิง, หัวจ่าย-ball-jet, water-pump — รูปใหม่ ratio ต่าง → ต้องแก้ตัวเลขกัน CLS +- **hero = ไฟล์เดียวกับ JSON-LD** ใน 24 หน้า → เปลี่ยนไฟล์เดียวได้ทั้ง hero + schema +- **ไม่มี Astro `` / srcset** ทุกหน้าใช้ plain `` → รูปใหญ่แค่ไหนก็โหลดเต็ม (บาง gallery 240–475KB) +- **index.astro + all-products.astro** ใช้รูปต่างหาก (การ์ดหมวด + การ์ดสินค้า) — ไม่ได้อ้างไฟล์เดียวกับหน้าสินค้าเสมอไป เช่น การ์ดหมวด `ฉนวนหุ้มท่อ` ใช้ thermobreak-main +- **4 หน้าไม่มี Product JSON-LD**: microfiber, pipe-coupling, rockwool, scg (เป็นหน้ารวมหลายสินค้า) +- ไฟล์ `.svg` ข้าง `.jpg` (durgo-avvs, grille, products-cropped) เป็น placeholder เก่า หน้าปัจจุบันไม่ใช้ +- รูป blog (`src/content/blog/*.md`, `images/blog/`) คนละ scope ไม่อยู่ใน map นี้ \ No newline at end of file diff --git a/plan.md b/plan.md new file mode 100644 index 0000000..d653af0 --- /dev/null +++ b/plan.md @@ -0,0 +1,61 @@ +# plan.md — เปลี่ยนรูป hero ทุกหน้าสินค้า (ชุดรูปใหม่ 21 ไฟล์) + +## Status +PHASE 2 — แผนรออนุมัติ (ยังไม่แก้โค้ด) | รูปใหม่อยู่ที่ `~/Downloads/New dealplustech pics/web/` +(ประวัติ PHASE 1: สแกน 29 หน้า, สร้าง IMAGE_MAP.md 220 refs, missing=0 — เสร็จ 2026-10-17) + +## Scope (คำสั่งเจ้าของ 2026-10-17) +- เปลี่ยน **เฉพาะ hero section** ของ 21 หน้าสินค้าที่มีรูปในโฟลเดอร์ใหม่ +- **ไม่ลบ** รูปเก่า / **ไม่เปลี่ยน** รูป slot อื่น (gallery, content, JSON-LD, cards) +- แก้บั๊ก sticky filter bar ของ all-products บนมือถือ + +## Task breakdown +- [ ] TASK-101: copy รูปใหม่ 21 ไฟล์ → `public/images/heros/.jpg` (ชื่อไฟล์ = slug หน้า ตรงตามที่เจ้าของตั้งแล้ว) +- [ ] TASK-102: (D-A rออนุมัติ) แปลง `public/images/heros/.webp` ขนาด 800×800 q75 ด้วย sharp (มีใน node_modules แล้ว, test loads OK) — hero เรียก webp, jpg เก็บเป็นต้นฉบับ +- [ ] TASK-103: แก้ `` hero (จุด `loading="eager"` จุดเดียว/หน้า) 21 หน้า → src ไฟล์ใหม่ + เพิ่ม `width/height` ตามขนาดจริง +- [ ] TASK-104: all-products.astro:87 — `sticky top-16 z-30` → `md:sticky md:top-16 md:z-30` (mobile = static, desktop คง sticky) +- [ ] TASK-105: `npm run build` ผ่าน + scan missing refs = 0 +- [ ] TASK-106: visual QA — hero 21 หน้า desktop + mobile (320×568, 500×768); filter bar all-products ไม่บังหน้าจอ mobile +- [ ] TASK-107: commit — แยก 2 commit: (1) hero images (2) sticky-fix + +## Mapping 21 หน้า (บรรทัด hero จากสแกนจริง) +| ไฟล์ใหม่ (1254×1254, 400KB–1.4MB) | หน้า | บรรทัด hero | hero เดิม (slot อื่นคง) | +|---|---|---|---| +| aeroflex.jpg | aeroflex.astro | 86 | aerocel-d-al-real.jpg | +| armaflex.jpg | armaflex.astro | 99 | armaflex-sheet-roll.jpg | +| maxflex.jpg | maxflex.astro | 86 | maxflex-fsk-foil.jpg | +| microfiber.jpg | microfiber.astro | 53 | microfiber-enf.jpg | +| rockwool.jpg | rockwool.astro | 53 | cool-n-comfort-rl.jpg | +| ฉนวนหุ้มท่อ-ccool.jpg | ฉนวนหุ้มท่อ-ccool.astro | 93 | ccool-roll-product.jpg | +| เทอร์โมเบรค-thermobreak.jpg | เทอร์โมเบรค-thermobreak.astro | 92 | thermobreak-main.jpg | +| realflex.jpg | realflex.astro | 86 | realflex_000C.jpg | +| ตู้ดับเพลิง.jpg | ตู้ดับเพลิง.astro | 100 | extinguishers_000C.jpg | +| ท่อ-hdpe.jpg | ท่อ-hdpe.astro | 96 | hdpe001.png | +| ท่อ-syler.jpg | ท่อ-syler.astro | 99 | syler-pipe-cold-water.jpg | +| ท่อ-upvc.jpg | ท่อ-upvc.astro | 111 | upvc-pipe_000C.jpg | +| ท่อ-xy-lent.jpg | ท่อ-xy-lent.astro | 67 | XYLENT_001.png | +| ระบบรั้วไวน์แมน.jpg | ระบบรั้วไวน์แมน.astro | 87 | vineman hero jpg | +| รั้วเทวดา.jpg | รั้วเทวดา.astro | 79 | LINE_ALBUM_รั้วเทวดา_260522_1.jpg | +| durgo-avvs.jpg | durgo-avvs.astro | 80 | durgo_000C.jpg | +| grilles.jpg | grilles.astro | 112 | grilles_000C.jpg | +| หัวจ่าย-ball-jet.jpg | หัวจ่าย-ball-jet.astro | 106 | ball-jet-main-hd.jpg | +| pipe-coupling.jpg | pipe-coupling.astro | 58 | mjg80a-hero.png | +| เครื่องเชื่อม-hdpe.jpg | เครื่องเชื่อม-hdpe.astro | 97 | HDPE-welding-crop.jpg | +| เม็กกรู๊ฟ-คับปลิ้ง.jpg | เม็กกรู๊ฟ-คับปลิ้ง.astro | 98 | MECH_001.jpg | + +## หน้านอก scope (8) — คงรูปเดิมทั้งหน้า +scg, วาล์ว-valve, water-pump, water-treatment, ระบบน้ำ, เครื่องเชื่อม-ppr, ท่อ-ppr-scg, ท่อ-ppr-thai-ppr + +## Decisions รออนุมัติ +- **D-A (แนะนำ):** hero ใช้ webp 800×800 q75 (~60–150KB) แปลงจาก jpg ต้นฉบับ 1254×1254 — hero แสดงจริงไม่เกิน ~500px; jpg ต้นฉบับเก็บไว้ใน repo +- **D-B:** JSON-LD `product.image` คงรูปเดิมตามคำสั่ง ("เปลี่ยนเฉพาะ hero") — og default ไม่แตะ +- **D-C:** โฟลเดอร์ใหม่ `public/images/heros/` — ชื่อไฟล์ = slug ตามชื่อที่เจ้าของตั้ง + +## ความเสี่ยง/หมายเหตุ +- รูปใหม่เป็น **square 1:1** — hero เดิมบางหน้า portrait (ball-jet 1764×2000, durgo ฯลฯ) → ความสูงบล็อก hero เปลี่ยน → QA visual ทุกหน้า +- รูปใหม่ = infographic poster (โลโก้+ข้อความ+สินค้า) ไม่ใช่ภาพเปล่า — เหมาะเป็น hero แบบโปสเตอร์; QA ยืนยันบนจอเล็ก +- `` hero เดิมส่วนใหญ่ไม่มี width/height → เพิ่มตามขนาดจริง ช่วย CLS +- all-products: BaseLayout header `sticky top-0 z-50` ไม่กระทบ filter bar (z-30) + +## Next action +เจ้าของอนุมัติแผน + เลือก D-A → เริ่ม TASK-101 diff --git a/project.md b/project.md new file mode 100644 index 0000000..b6dafcb --- /dev/null +++ b/project.md @@ -0,0 +1,46 @@ +# project.md — เปลี่ยนรูปหน้าสินค้าทั้งเว็บ (Deal Plus Tech) + +## Purpose +เจ้าของเว็บจะส่งรูปใหม่มาสำหรับ **ทุกหน้าสินค้า** (29 หน้า) — ต้องเปลี่ยนรูปทั้ง hero, gallery, content, JSON-LD ให้ตรงกันทั้งเว็บ + +## Outcomes +- ทุกหน้าสินค้าใช้รูปใหม่ตามที่เจ้าของกำหนด +- ไม่มี broken image, ไม่มี layout shift (width/height attribute ตรงกับไฟล์จริง) +- Product JSON-LD / og อ้างรูปถูกต้อง +- build ผ่าน (`npm run build`) และ visual QA ผ่าน + +## Requirements +- REQ-001: รูปใหม่ครบทุก slot ที่ระบุใน IMAGE_MAP.md (220 refs / 29 หน้า) +- REQ-002: อัปเดต `width/height` attribute 60 จุดให้ตรงกับ ratio ไฟล์จริง +- REQ-003: รูปที่ใช้ใน all-products.astro + index.astro (การ์ดสินค้า/หมวด) ต้องอัปเดตตาม +- REQ-004: ไฟล์เก่าที่ไม่ใช้แล้วจะถูกลบหรือเก็บไว้ — เจ้าของตัดสินใจ (open question OQ-002) + +## Constraints +- CON-001: ห้ามแก้ layout/โครงสร้างหน้า — เปลี่ยนเฉพาะรูป (จนกว่าเจ้าของสั่ง) +- CON-002: ชื่อไฟล์/โฟลเดอร์ต้องเป็น convention เดิม (`/images//...`) +- CON-003: รูป hero ไม่ควรหนักเกิน ~200KB (เว็บ static, ไม่มี srcset) + +## MUST-NOT +- MUST-NOT-001: ห้ามแตะรูป blog (`src/content/blog/`, `images/blog/`) ในงานนี้ +- MUST-NOT-002: ห้าม deploy โดยยังไม่ visual QA + +## Acceptance Criteria +- AC-001: `npm run build` ผ่าน +- AC-002: ไม่มี `/images/...` ที่ชี้ไฟล์หาย (scan ยืนยัน 0 missing) +- AC-003: visual QA desktop + mobile (320×568, 500×768) ทุกหน้าที่เปลี่ยนรูป +- AC-004: width/height ทุกจุดตรงกับ pixel จริงของไฟล์ใหม่ + +## Governing documents +- `IMAGE_MAP.md` — map ทุก slot ต่อหน้า (สร้างจากโค้ดจริง 2026-10-17) +- `CLAUDE.md` — architecture + +## Decisions +- (D-001) ใช้วิธีทับไฟล์ชื่อเดิมเมื่อเป็นไปได้ เพื่อลดจุดแก้ในโค้ด + +## Open Questions +- OQ-001: รูปใหม่จะตั้งชื่อตาม convention เดิม หรือชื่อใหม่? (ถ้าชื่อใหม่ → ต้องแก้โค้ดทุก ref) +- OQ-002: ไฟล์เก่า (~470 ไฟล์ที่ไม่ถูกอ้าง) ลบทิ้งหรือเก็บ? +- OQ-003: รูปใหม่มี ratio เดิมหรือใหม่? (กระทบ 60 จุด hard-code w/h) + +## Change log +- 2026-10-17: สร้าง project, สแกนทุกหน้าสินค้า → IMAGE_MAP.md