# src/pages/

**Generated:** 2026-03-27
**Parent:** dealplustech-astro/AGENTS.md

## OVERVIEW

45 Thai-named static page routes + index.astro homepage. File-based Astro routing with Thai URLs for SEO preservation.

## STRUCTURE

```
src/pages/
├── index.astro                    # Homepage (13KB)
├── about-us/                      # Corporate
├── contact-us/                    # Corporate
├── all-products/                  # Product listing
├── all-projects/                  # Project listing
├── services/                      # Corporate
├── portfolio/                     # Corporate
├── join-us/                       # Corporate
├── privacy-policy/                # Legal
├── terms-and-conditions/          # Legal
├── product/                       # Product detail template
├── api/                           # API routes (EMPTY)
│
├── [Thai-named product routes]
├── ท่อ-ppr-thai-ppr/             # PPR pipes
├── ท่อ-upvc/                      # UPVC pipes
├── ท่อhdpe/                       # HDPE pipes
├── ท่อพีพีอาร์/                   # PPR pipes (alt)
├── ท่อพีพีอาร์ตราช้าง/            # Certified PPR
├── ท่อระบายน้ำ-3-ชั้น-ไซเลนท/    # Drainage pipes
├── ท่อและข้อต่อpvc/               # PVC pipes & fittings
├── ท่อไซเลอร์/                    # Cylinder pipes
├── pipe/                          # English fallback
├── pipe-coupling/                 # Pipe couplings
├── water-pump/                    # Water pumps
├── water-treatment/               # Water treatment
├── ฉนวนหุ้มท่อ-pipe-insulation/  # Pipe insulation
├── เครื่องเชื่อม-hdpe/            # HDPE welding machines
├── เครื่องเชื่อมท่อ-pipe-coupling-machine/
├── เครื่องเชื่อมท่อพีพีอา/
├── เม็กกรู๊ฟ-คับปลิ้ง/           # Mechanical couplings
├── groove-coupling/               # Groove couplings
├── วาล์ว-valve/                   # Valves
├── หัวจ่ายแอร์-ball-jet/          # Air nozzles
├── อุปกรณ์ดับเพลิง/               # Fire fighting equipment
├── เทอร์โมเบรค-thermobreak/      # Thermobreak
├── ระบบรั้ว/                      # Fence systems
├── ระบบรั้วไวน์แมน-vineman-2/    # Vineman fence
├── รั้วเทวดา/                     # Angel fence
├── dukelarrsen/                   # Brand pages
├── durgo-avvs/
├── grilles/
├── realflex/
├── pp-r-pp-rct-poloplast/
└── ...                            # 45 total Thai-named routes
```

## WHERE TO LOOK

| Route | Type | Notes |
|-------|------|-------|
| `index.astro` | Homepage | Main entry, large file (13KB) |
| `src/pages/[thai-url]/index.astro` | Static pages | 45 product/category pages |
| `src/pages/admin/` | Admin routes | Consent log viewer |

## CONVENTIONS

- **Thai URLs = file path** — Route `dealplustech.co.th/ท่อ-ppr-thai-ppr` = `pages/ท่อ-ppr-thai-ppr/index.astro`
- **Static generation** — All pages pre-rendered at build time
- **No dynamic routes** — No `[slug].astro` patterns (static Thai-named dirs)
- **SEO-critical** — Thai URL preservation is primary migration goal

## ANTI-PATTERNS

- Do NOT create English-named page directories
- Do NOT use `getStaticPaths()` — pages are pre-defined
- Do NOT add API routes in `api/` subdir — currently empty

## NOTES

- **Product pages** include Line/phone contact buttons
- **Corporate pages** include about-us, contact-us, services, portfolio
- **Legal pages** include privacy-policy, terms-and-conditions (PDPA required)
- **PDF downloads** — 7 product pages have "ราคาสินค้า" section with downloadable PDF price lists from `public/documents/`
