89 Commits

Author SHA1 Message Date
Kunthawat Greethong
99f7d8f0bb Remove Rano Tech brand from pipe-coupling page 2026-06-22 17:33:08 +07:00
Kunthawat Greethong
85a0a54eb4 Use @astrojs/sitemap instead of manual sitemap.xml.ts
- astro.config.mjs: site=https://dealplustech.co.th, add sitemap integration
- Remove hardcoded sitemap.xml.ts (now auto-generated)
2026-06-16 09:48:38 +07:00
Kunthawat Greethong
5c1d3c7ef9 Fix domain: dealplustech.com -> dealplustech.co.th
- BaseLayout.astro: siteUrl
- sitemap.xml.ts: SITE
- [slug].astro: articleUrl, ogImage, JSON-LD URLs, share links
- terms-and-conditions.astro: hardcoded URLs
2026-06-16 09:46:31 +07:00
Kunthawat Greethong
da14d0d05d Add Umami analytics tracking scripts 2026-06-16 09:44:50 +07:00
Kunthawat Greethong
5b521661ec feat: เพิ่ม consent script (consent.moreminimore.com) 2026-06-15 17:50:59 +07:00
Kunthawat Greethong
3469a09a9f feat: เพิ่ม tracking codes — GA4, Google Ads, Microsoft Clarity, Meta Pixel 2026-06-15 13:07:27 +07:00
Kunthawat Greethong
5d5e12d7e7 fix: รูปหลักบทความ plastic-grilles-guide path ถูกต้อง (blog/grilles -> grilles)
- featured_image: /images/grilles/air-grille-content.jpg
- สินค้าใหม่ SCG page 2: UBB-G, FRK-G, FRKF-G, Cylence Zandera Scenera, SUPERCOOL-G (6 รายการ)
- สินค้าใหม่ Microfiber page 2: FSF, Pipe Cover, GWPF (3 รายการ)
- รูปสินค้าใหม่ทั้งหมดจาก 3t-insulation.com
- Solar -> NO-CLAD (thermobreak-series-guide)
- Facebook icon + ชื่อ Dealplustech ที่ footer
2026-06-15 12:36:26 +07:00
Kunthawat Greethong
f5af9e46e1 fix(mobile-menu): make menu scrollable when content overflows
After adding the products dropdown (7 categories + 27 subcategory
links), the mobile menu was taller than typical phone screens
(~640px on iPhone SE). Without overflow handling, users on
short screens could not reach the bottom items (ผลงาน, ติดต่อเรา).

Added to mobile menu container:
- max-h-[calc(100vh-4rem)]: cap height at viewport minus header
- overflow-y-auto: enable internal scrollbar when content overflows
- overscroll-contain: prevent scroll chain to background page
  (iOS Safari specific)

Menu is now fully scrollable within its own container — page
content underneath stays still while user scrolls through menu
items.
2026-06-11 11:17:43 +07:00
Kunthawat Greethong
bb7007aa88 feat(mobile-menu): add collapsible products dropdown matching desktop
The mobile menu previously had only flat links (หน้าแรก, เกี่ยวกับเรา,
สินค้าทั้งหมด, ผลงาน, ติดต่อเรา) while the desktop menu had a mega
dropdown with 7 product categories (ระบบท่อ, ฉนวนหุ้มท่อ, เครื่องเชื่อมท่อ,
ระบบน้ำ, อุปกรณ์ปรับอากาศ, อุปกรณ์ดับเพลิง, ระบบรั้ว) and 27
subcategory links.

Updated mobile menu in BaseLayout.astro to mirror the desktop
structure: "สินค้าทั้งหมด" is now a collapsible button that
expands to show all 7 categories and their 27 subcategory links,
plus a "ดูสินค้าทั้งหมด →" CTA at the bottom.

Toggle behavior:
- Click button: opens submenu, rotates chevron 180°, sets
  aria-expanded="true"
- Click again: closes submenu, returns chevron
- aria-controls="mobile-products-submenu" for accessibility

Reverted Header.astro changes — that file is not actually used
by the site (BaseLayout.astro has its own inline header with the
real desktop mega menu and mobile menu).

Mobile menu now has parity with desktop navigation structure.
2026-06-11 11:09:15 +07:00
Kunthawat Greethong
900ffe0f06 feat(seo): add FAQPage JSON-LD schema to pipe-coupling
pipe-coupling.astro has a FAQ UI section (4 Q&A) but was missing
the FAQPage structured data. Added faq prop to BaseLayout so the
schema renders automatically via the existing JsonLd.astro
component.

Now all 3 pages with FAQ UI (realflex, เทอร์โมเบรค-thermobreak,
pipe-coupling) have matching FAQPage JSON-LD schema, which helps
Google rich results + GEO (Google AI Overview, Perplexity, etc.)
surface the FAQ content.

FAQPage schema renders as:
{
  "@type": "FAQPage",
  "mainEntity": [
    {"@type": "Question", "name": "...", "acceptedAnswer": {"@type": "Answer", "text": "..."}},
    ...
  ]
}
2026-06-10 19:31:57 +07:00
Kunthawat Greethong
bef271c1a2 fix(insulation): remove 7 gallery images + restore Product Details
Two fixes:

1 Deleted 7 product photos user requested:
- rockwool/gallery-8.jpg
- microfiber/gallery-9.jpg
- maxflex/gallery-2.jpg
- aeroflex/gallery-7.jpg
- aeroflex/gallery-15.jpg
- armflex/gallery-6.jpg
- armflex/gallery-7.jpg

Also updated gallery HTML in 5 pages to skip the deleted image
numbers. After deletion: rockwool=10, microfiber=9, maxflex=8,
aeroflex=13, armflex=5.

2) Restored Product Details section for armflex, aeroflex, and
maxflex. These 3 pages had their content stripped earlier in
the session (only kept Hero + Gallery + CTA). Pulled the
original Product Details from commit 17f4eb7 (which had the
full data: features, specs, certifications, applications,
water-vapor resistance values, etc.).

armflex: 10.3KB restored
aeroflex: 9.6KB restored
maxflex: 10.1KB restored
EOF
)
2026-06-10 17:19:25 +07:00
Kunthawat Greethong
2996812209 feat(insulation): add product photo gallery to 6 insulation pages
User provided 61 additional product photos across 6 insulation
brands. Added a responsive image gallery section (before CTA)
to each of these product pages:

- armflex.astro: 7 photos
- aeroflex.astro: 15 photos
- maxflex.astro: 9 photos
- เทอร์โมเบรค-thermobreak.astro: 9 photos
- rockwool.astro: 11 photos
- microfiber.astro: 10 photos

Files renamed to gallery-1.jpg ... gallery-N.jpg format in
public/images/{brand}/. Each image is clickable (opens full
size in new tab), uses lazy loading, and has hover zoom.

Gallery section layout:
- 2 columns on mobile, 3 on tablet, 4 on desktop
- Title: "แกลอรี่ภาพสินค้า"
- Subtitle: "ภาพสินค้าจริงจากงานติดตั้ง — คลิกเพื่อดูภาพขนาดเต็ม"
2026-06-10 14:45:50 +07:00
Kunthawat Greethong
d5d4574683 fix(hero): replace product pill with category from all-products
Each product page's hero pill now shows the category from
all-products.astro instead of the product-specific sub-pill.

Updated 25 pages:
- ระบบท่อ (6): ppr-thai-ppr, ppr-scg, hdpe, upvc, syler, xy-lent
- เครื่องเชื่อมท่อ (2): pipe-coupling, เม็กกรู๊ฟ-คับปลิ้ง
- ระบบน้ำ (3): วาล์ว-valve, water-pump, water-treatment
- อุปกรณ์ปรับอากาศ (3): grilles, durgo-avvs, หัวจ่าย-ball-jet
- อุปกรณ์ดับเพลิง (2): ตู้ดับเพลิง, realflex
- ฉนวนหุ้มท่อ (7): armflex, aeroflex, maxflex, thermobreak, rockwool, microfiber, scg
- ระบบรั้ว (1): รั้วเทวดา
- เดิม: ระบบรั้วไวน์แมน, เครื่องเชื่อม-hdpe, เครื่องเชื่อม-ppr
2026-06-10 14:34:42 +07:00
Kunthawat Greethong
d93191f675 fix(all-products): sync card images with each product's hero image
Found 3 mismatches between all-products.astro card images and
the actual hero image of each product page:
- ROCKWOOL: prod_0.png → cool-n-comfort-rl.jpg (matches hero)
- MICROFIBER: prod_0.jpg → microfiber-enf.jpg (matches hero)
- SCG: prod_0.jpg → scg-crb-g.jpg (matches hero)

Other 22 products were already in sync. All 27 products now
show their canonical hero image on the all-products page.
2026-06-10 14:30:46 +07:00
Kunthawat Greethong
1e4fa53fb2 fix(pipe-coupling): use MJG80A screenshot as hero image
User provided screenshot of RNT Smart Clamp MJG80A (with SUS304
material, NBR seal, 89.1mm pipe OD, 67.8-91.9mm range) as the
canonical hero image for this product.

Changes:
- public/images/pipe-coupling/mjg80a-hero.png: new hero image
  (copied from user's Desktop screenshot)
- pipe-coupling.astro: hero <img src> updated to mjg80a-hero.png
- all-products.astro: card image updated to mjg80a-hero.png

Other 5 model images (mjg/mjh/mjd/mjer/mjcx/rnt-e009) unchanged
as those are individual model photos from ranotech.com.
2026-06-10 14:21:47 +07:00
Kunthawat Greethong
8346a731a6 feat(pipe-coupling): rewrite as RNT Smart Clamp from Rano Tech
Replaced SMC content with RNT Smart Clamp (Rano Tech) per
supplier data from https://www.ranotech.com/rnt-smart-clamp/

Changes:
1 Content rewrite — pipe-coupling.astro now shows:
   - Hero: RNT Smart Clamp (แคลมป์รัดท่อ Rano Tech)
   - 5 product models with descriptions:
     * MJG — same-size coupling (ต่อท่อขนาดเท่ากัน)
     * MJH — repair clamp with hinge (ซ่อมรั่วแบบบานพับ)
     * MJD — hybrid repair/coupling (ไฮบริด)
     * MJER — elbow repair (ซ่อมส่วนโค้ง)
     * MJCX — custom series
   - FAQ section (4 questions)
   - Installation details

2) Images — Downloaded 12 real RNT product photos from
   ranotech.com/wp-content/uploads/ to
   public/images/pipe-coupling/. Old SMC images removed.

3) all-products.astro — Pipe Coupling card now uses smc-02.jpg
   (new RNT main image) instead of old BG-SMC02.png

4) Sitemap — pipe-coupling URL unchanged (no change needed)
EOF
)
2026-06-10 14:18:58 +07:00
Kunthawat Greethong
72ace6ff50 fix(insulation): remove spec table from product cards
Removed the spec table that was at the bottom of each product
card. Now each card just shows: image, name, tagline, and
description paragraphs.

Size: 35 products still showing, 0 spec tables.
- rockwool: 62KB → 53KB
- microfiber: 60KB → 55KB
- scg: 57KB → 53KB
2026-06-10 14:10:04 +07:00
Kunthawat Greethong
535aefc0f3 feat(insulation): add detailed product descriptions + spec tables
Crawled full content from each of 35 product pages on supplier
site (3t-insulation.com). For each product card on the 3 brand
pages, now show:
- Full Thai product name (e.g. "ROCKDUCT (ProRox BL)" instead of
  just "ROCKDUCT")
- Short tag-line describing use case
- Real product description (2 paragraphs from supplier, in Thai)
- Spec table (density, thickness, dimensions, fire rating, etc.)
  filtered to remove product option noise

Each product card is now a real catalog entry instead of a name
+ image. Source data is /tmp/product_details.json (35 entries).

Stats per page:
- rockwool: 11 products, 41 spec entries, 62KB
- microfiber: 12 products, 24 spec entries, 60KB
- scg: 12 products, 17 spec entries, 57KB
2026-06-10 13:34:55 +07:00
Kunthawat Greethong
15b4b40681 fix(insulation,menu): real product images + accurate count + menu reorder
1 REAL product images (downloaded from supplier product pages)
   Replaced generic logos/QR codes with actual product photos
   from WooCommerce product galleries on 3t-insulation.com:
   - rockwool/: cool-n-comfort-rl/sl, prorox-bl/ps960/sl/wm,
     rocksafe-plus, safe-n-silent-pro, thermalrock-s, rockduct, conlit-h110
   - microfiber/: microfiber-enf/fl/fld/fls/fr/frd/frk/glc/gts/hi-temp/pfl/pln
   - scg/: scg-crb-g, scg-cylence-zoftone/zoundblock, scg-dln-g, scg-fpo-g,
     scg-fso-g, scg-gtb-g, scg-hti-g, scg-htif-g, scg-htifd-g, scg-stay-cool, scg-ub-g

2) Home page category count for ฉนวนหุ้มท่อ: 4 → 7
   (Armaflex, Aeroflex, Maxflex, Thermobreak, ROCKWOOL, MICROFIBER, SCG)

3) Menu order swap: ฉนวนหุ้มท่อ ↔ เครื่องเชื่อมท่อ
   Moved ฉนวนหุ้มท่อ BEFORE เครื่องเชื่อมท่อ in BaseLayout categories
EOF
)
2026-06-10 13:26:43 +07:00
Kunthawat Greethong
4692e89736 fix(menu,images): correct header menu + use real product images
Two fixes:
1) Header.astro menu items for ROCKWOOL/MICROFIBER/SCG were
   placed AFTER the closing array bracket - not visible in dropdown.
   Moved INSIDE the 'ฉนวนและรั้ว' items array.
2) Product images were generic logos/QR codes. Replaced hero
   images with actual product photos (1200x800) from supplier
   WooCommerce galleries.

Also added footer links.
2026-06-10 11:55:55 +07:00
Kunthawat Greethong
739e081296 feat(products): add 3 new insulation brand pages — ROCKWOOL, MICROFIBER, SCG
New product pages for insulation product lines, using supplier (3t-insulation.com)
product data and images (downloaded, no hotlinks):

1 ROCKWOOL (/rockwool) — Stone wool insulation, pipe/duct/roof/fire
2) MICROFIBER (/microfiber) — Glass wool insulation, roof/HVAC/industrial
3) SCG (/scg) — SCG insulation, roof/HVAC/acoustic/high-temp

Each page:
- Hero section (canonical template: pill + title + description + buttons)
- Brand description with key product info
- Product grid (6+ models per brand with images)
- Features section (quality, pricing, delivery)
- CTA section (canonical template)

Images: downloaded from supplier site to public/images/{brand}/
Menu: added to Header, BaseLayout nav (under ฉนวนหุ้มท่อ), Footer, all-products

Crawled from: 3t-insulation.com/brand/{rockwool,microfiber,scg}/
(13 products per brand, ~39 total product models referenced)

Pages created: 3 | Files changed: 37 (3 new .astro + 3 image dirs + 3 menu edits)
EOF
)
2026-06-10 11:10:24 +07:00
Kunthawat Greethong
5abe1edb71 fix(content): 4 content updates per user request
1 เทอร์โมเบรค → Thermobreak (display names only)
   - Header menu, BaseLayout nav/categories, all-products, index
   - URLs (/เทอร์โมเบรค-thermobreak) left unchanged
   - Product page (เทอร์โมเบรค-thermobreak.astro) unchanged

2) รูป category ระบบน้ำ → valve kitz image
   - ระบบน้ำ.astro + index.astro: water-pump_000C.jpg → valve_000C.jpg

3) ท่อพีพีอาร์ → ระบบท่อ (category + menu only)
   - Header, Footer, BaseLayout, all-products (6 category refs), index
   - Product names/sub-labels left unchanged

4) Add Supply Air image to grilles page
   - New image: /images/grilles/supply-air.jpg
   - Added to product details gallery alongside existing images
EOF
)
2026-06-10 10:49:59 +07:00
Kunthawat Greethong
31b0619c90 feat(images): replace thermobreak main product image
Replace thermobreak-solarblock.png with new thermobreak-main.jpg
across product page, all-products, and homepage (6 refs total).

New image copied to public/images/thermobreak/.
Blog images (thermobreak-hero.jpg, etc.) left unchanged.
2026-06-10 10:34:31 +07:00
Kunthawat Greethong
ea36f28c17 fix(hero): remove duplicate old CTAs from 19 product pages
Old CTAs (e.g. 'สนใจสินค้าของเรา?', 'สอบถามราคาและสั่งซื้อ',
'sนใจรั้วเทวดา?') were still present above the canonical CTA
section added in 17f4eb7. Each page now has exactly one CTA.

Deleted section types:
  - 12x section gradient (สนใจสินค้าของเรา?)
  -  5x section gradient (สนใจสินค้านี้? — different buttons)
  -  3x box bg-primary-50 (สอบถามราคาและสั่งซื้อ)
  -  2x accent gradient sections
  -  1x div-based (ตู้ดับเพลิง — special format)

Verified: new CTA intact, no duplicate headings, build 40/40 OK,
HTML render: 20/20 have correct single CTA with 2 buttons.
2026-06-10 10:30:00 +07:00
Kunthawat Greethong
17f4eb752b fix(content): drop @ prefix from JPPSELECTION in text + add CTA to 20 products
Two changes driven by content review:

1) @JPPSELECTION → JPPSELECTION in user-visible text only
   - 19 page files: drop @ from inline JPPSELECTION in <p> tags
   - BaseLayout.astro + Footer.astro: drop @ from companyInfo.line
     (rendered as "LINE: @JPPSELECTION" in mobile CTA + footer)
   - URL line.me/ti/p/~JPPSELECTION left unchanged (the @ belongs
     in the URL per line.me convention)

2) Add missing CTA section to all 20 product pages
   - 16 pages had no CTA at all
   - 4 pages (armflex, aeroflex, maxflex, xy-lent) had bespoke
     CTA variants; replaced with canonical template
   - Template copied from ppr-thai-ppr
   - CTA inserted before </main> in all 20 product pages

Verified rendered HTML:
- @JPPSELECTION in <p> text = 0 across all 20 pages
- "LINE: JPPSELECTION" rendered in footer / mobile CTA
- heading + contact + line buttons present in all 20

Files touched: 30
2026-06-10 09:44:28 +07:00
Kunthawat Greethong
eb6557eeb3 fix(hero): correct Line icon SVG path in all 20 product heroes
The SVG path used for the Line chat button in the canonical template
contained a malformed curve command — a stray '0' inserted into a
relative bezier segment that broke the path into an unintended
sub-path. Result: the icon rendered as a misaligned blob instead of
the LINE wordmark glyph.

Restored the canonical path from ท่อ-ppr-thai-ppr (the untouched
stash reference) for all 20 product hero pages:

  วาล์ว-valve, ท่อ-syler, ตู้ดับเพลิง, armflex, grilles, aeroflex,
  durgo-avvs, maxflex, pipe-coupling, realflex, water-pump,
  water-treatment, ท่อ-xy-lent, ระบบรั้วไวน์แมน, รั้วเทวดา,
  หัวจ่าย-ball-jet, เครื่องเชื่อม-hdpe, เครื่องเชื่อม-ppr,
  เทอร์โมเบรค, เม็กกรู๊ฟ-คับปลิ้ง

Path length 1079 chars, byte-for-byte identical to the working
template (stash) version. Verified against rendered HTML: all 20
pages now have the correct path; no other markup changed.
2026-06-10 09:30:29 +07:00
Kunthawat Greethong
74db1dad77 fix(hero): correct hero layout to TEXT-LEFT for 12 product pages
Two prior commits (d8ff358, 9653fcb) claimed to rewrite heroes with a
TEXT-LEFT template, but the source-order check in the prior apply step
was misread. The committed heroes were still IMAGE-LEFT, with the
sticky wrapper around the image and the data-price-button still
rendering where the page has no #pricelist section.

This commit rewrites the hero section of 12 pages against the actual
HEAD~1 (9653fcb) source and the HEAD (d8ff358) source for วาล์ว-valve
to apply the canonical TEXT-LEFT template correctly:
  - text container (pill, title, features, buttons) before image
  - sticky wrapper moved to the image column
  - data-price-button removed where id="pricelist" is missing
  - max-w-md mx-auto lg:max-w-none classes restored on image + card

Pages: วาล์ว-valve, realflex, water-pump, water-treatment, ท่อ-xy-lent,
ระบบรั้วไวน์แมน, รั้วเทวดา, หัวจ่าย-ball-jet, เครื่องเชื่อม-hdpe,
เครื่องเชื่อม-ppr, เทอร์โมเบรค, เม็กกรู๊ฟ-คับปลิ้ง

Verified rendered HTML: all 12 pages have TEXT-LEFT order in DOM,
data-price-button present only where id="pricelist" exists.
2026-06-10 09:10:14 +07:00
Kunthawat Greethong
9653fcbaf9 refactor(hero): rewrite 11 product hero sections to canonical template
Continue template migration for the remaining image-LEFT product pages.

- Extract data per page (pill, title, image, features, hasPricelist)
- Generate hero from canonical template (text-LEFT, image-RIGHT, animated bg)
- Remove dead <Header slot=Footer slot= StickyBottomCTA slots
- Remove dead data-price-button when id="pricelist" missing
- Drop legacy image-LEFT layout, mobile-only sections, justify-center workarounds
- Apply consistent TEXT-LEFT order across all product heroes
- Drop unused special components (auto-rendered by BaseLayout already)

Pages: realflex, water-pump, water-treatment, ท่อ-xy-lent (0 features),
ระบบรั้วไวน์แมน, รั้วเทวดา (0 features), หัวจ่าย-ball-jet (6 features),
เครื่องเชื่อม-hdpe, เครื่องเชื่อม-ppr (5 features),
เทอร์โมเบรค, เม็กกรู๊ฟ-คับปลิ้ง (mobile+desktop special).

Verified: 11 pages render with valid HTML, correct features per page.
2026-06-10 08:35:22 +07:00
Kunthawat Greethong
d8ff358dd7 refactor(hero): rewrite 9 product hero sections to canonical template
- Extract data from each page (pill, title, image, features, hasPricelist)
- Generate hero from canonical template (text-LEFT, image-RIGHT, animated bg)
- Remove dead <Header slot=Footer slot= StickyBottomCTA slots (BaseLayout renders defaults)
- Remove dead data-price-button when id="pricelist" missing (auto-detect hides it)
- Drop legacy justify-center/max-w-md workarounds; use canonical classes
- Apply consistent TEXT-LEFT order across all product heroes
- Drop unused mobile-only sections in ตู้ดับเพลิง (page now follows template)
- Add overflow-x-clip on header/footer (submenu overflow fix)
- Add .submenu-anchor class for submenu positioning

Verified: 9 pages render with valid HTML, TEXT-LEFT, correct features, no dead links.
2026-06-10 08:16:06 +07:00
hermes
d7aa7c2013 docs(ci): rewrite setup guide for Gitea Webhook deploy trigger
The previous doc assumed a Gitea Actions workflow (which requires a
self-hosted act_runner that we don't have, hence the 'No matching
online runner with label: ubuntu-latest' error).

The actual setup is much simpler: a Gitea Webhook pointing at the
deploy endpoint. No runner, no workflow file. Setup is one-time in
Settings -> Webhooks -> Add Webhook.

Documents:
- The push -> webhook -> deploy -> EasyPanel flow
- Exact payload URL, method, content type, events
- Test Delivery verification step
- Why Gitea Actions doesn't work without act_runner
- Troubleshooting: push not triggering, build failure modes
  (nixpacks 'No start command', node 20 vs 22), and a curl recipe
  for redeploying without a code change.
2026-06-09 14:54:14 +07:00
hermes
4820289252 ci: remove Gitea Actions workflows (rely on EasyPanel auto-deploy)
The workflows were never able to run — Gitea Actions has no managed
runners the way GitHub does, and 'ubuntu-latest' isn't a label this
self-hosted Gitea instance can match. Every push to main showed the
job as 'No matching online runner with label: ubuntu-latest' in
the Actions tab.

EasyPanel already watches the 'main' branch and rebuilds on push
(Dockerfile-based, git source). The CI step was duplicative and
produced noise in the Actions tab without running anything.

If a real CI step is needed later (lint, build artifact, test), a
Gitea act_runner has to be installed on a server, registered with
labels like 'self-hosted:host:linux', and the workflow has to use
those labels. Skipping that for now.

Files removed:
  .gitea/workflows/build-and-deploy.yml
  .gitea/workflows/lint.yml
  .gitea/  (empty after removal)
2026-06-09 14:36:47 +07:00
hermes
b7931731f9 fix(responsive): mobile footer restructure + categories 1-col + overflow fix
Some checks failed
Build & Deploy to EasyPanel / build-and-deploy (push) Has been cancelled
Lint & Test / build-check (push) Has been cancelled
Three mobile issues fixed:

1. Categories section: <640px (mobile) now 1 column. Previously it was
   already 2 columns at the smallest breakpoint which made the tiles feel
   cramped. Uses Tailwind's default sm: (640px) for the 1->2 transition,
   not a custom min-[500px].

2. Footer mobile layout (<1024px): three centered rows inside the same
   max-w-7xl container.
     - Row 1: Company Info (1 col, max-w-md, centered)
     - Row 2: Quick Links + สินค้ายอดนิยม (2 cols, max-w-2xl, centered)
     - Row 3: ติดต่อเรา (1 col, max-w-sm outer, max-w-xs button column)
   The narrow inner max-widths are deliberate: a full-width row of
   contact buttons looks stretched, especially the bottom one with the
   โทรเลย / แอดไลน์ buttons.

3. Horizontal overflow bug: data-animate='fade-left' and 'fade-right'
   children sit at translateX(30px) / translateX(-30px) in their
   initial state, before the IntersectionObserver fires. On small
   viewports this pushes the page 30px wider than the viewport and
   reveals a horizontal scrollbar as soon as the user loads the page.
   Adding overflow-x-clip on <footer> keeps the off-screen translation
   contained inside the footer.
2026-06-09 14:18:54 +07:00
Kunthawat Greethong
0bd480d103 merge: bring Dockerfile Node 22 fix from main 2026-06-09 13:33:30 +07:00
hermes
21a538cbb8 fix(deploy): bump Dockerfile Node from 20-alpine to 22-alpine
Some checks failed
Build & Deploy to EasyPanel / build-and-deploy (push) Has been cancelled
Lint & Test / build-check (push) Has been cancelled
Astro 6.x requires Node >=22.12.0. The previous Dockerfile used
node:20-alpine, which the Astro CLI rejected with:

  Node.js v20.20.2 is not supported by Astro!
  Please upgrade Node.js to a supported version: ">=22.12.0"

EasyPanel pulled the change, ran the build, and failed at
`RUN npm run build`. Bumping to node:22-alpine fixes it.

Also added two 'common failure' sections to docs/ci-setup.md
covering the nixpacks 'No start command' and Node version
mismatch errors we just hit.
2026-06-09 13:33:14 +07:00
hermes
d73e48351f fix(deploy): switch from nixpacks to Dockerfile + change branch to main
Some checks failed
Build & Deploy to EasyPanel / build-and-deploy (push) Has been cancelled
Lint & Test / build-check (push) Has been cancelled
Nixpacks auto-detect could not find a 'start' script in package.json
and bailed out. Astro builds to static files in dist/ — there is no
Node server to start. Switching to a Dockerfile + nginx fixes the
'No start command could be found' error from EasyPanel.

The workflow also pointed at the source-code branch, but the panel's
git source ref for the dealplustech-astro service is 'main', so the
trigger was firing for the wrong ref. Both workflows now run on push
to main.

- Dockerfile: multi-stage node:20-alpine build + nginx:1.27-alpine serve
- nginx.conf: gzip, security headers, 1-year cache for hashed assets,
  try_files fallback for UTF-8 slugs (Astro file-based routing)
- .dockerignore: keep build context small (skip CI, docs, .gitea, IDE)
- build-and-deploy.yml + lint.yml: branch source-code -> main
- docs/ci-setup.md: corrected project + service names (customerwebsite
  / dealplustech-astro), documented the Dockerfile rationale, added a
  note for the 'Failed to sync changes' server-side error
2026-06-09 10:28:46 +07:00
hermes
3efaf4d661 ci: switch deploy trigger from generic webhook to EasyPanel tRPC API
Some checks failed
Build & Deploy to EasyPanel / build-and-deploy (push) Has been cancelled
Lint & Test / build-check (push) Has been cancelled
Replaces the old EASYPANEL_WEBHOOK_URL flow with a direct tRPC call
to the panel, using three minimal secrets the operator fills in:

  EASYPANEL_TOKEN         - bearer token from EasyPanel profile
  EASYPANEL_PROJECT_NAME  - project name in the dashboard
  EASYPANEL_SERVICE_NAME  - service name inside that project

The endpoint (https://panelwebsite.moreminimore.com/api/trpc/services.
app.deployService) is hardcoded because the panel URL does not change.
Payload uses tRPC's wrapped-json shape: {"json":{"projectName":...,
"serviceName":...}}.

The build still runs and the dist/ artifact still uploads when any
secret is empty — only the trigger step is skipped with a warning.

Also adds docs/ci-setup.md explaining the three secrets, the service
type requirement (must be 'app' / Dockerfile-based), and a curl recipe
for testing the payload shape locally before pushing.
2026-06-09 09:47:24 +07:00
hermes
02c7b7b29b ci: add Gitea Actions workflows for build + EasyPanel deploy
Some checks failed
Build & Deploy to EasyPanel / build-and-notify (push) Has been cancelled
Lint & Test / build-check (push) Has been cancelled
Two workflows under .gitea/workflows/:

- build-and-deploy.yml: on push to source-code, install deps, run
  astro build, then POST the dist/ SHA + ref to EASYPANEL_WEBHOOK_URL
  (read from repo secret) so EasyPanel redeploys. Uploads dist/ as a
  7-day artifact as a fallback. Gracefully warns if the secret is empty
  so contributors can run the build job without breaking.

- lint.yml: lightweight build check on every push + PR so syntax /
  missing-image errors surface before the deploy workflow runs.

To enable auto-deploy:
  1. Set EASYPANEL_WEBHOOK_URL secret in Gitea repo settings
  2. Configure EasyPanel service to source from this repo + branch
     source-code, build command 'npm run build', output 'dist'
2026-06-08 23:17:43 +07:00
hermes
fe442790ab feat(homepage): rework homepage + align about-us + footer popular products
## homepage (index.astro)

- Drop '500+ รายการสินค้า' from stat badges and rebuild the trust-badges
  section to show only 15+ ปีประสบการณ์, 400+ ลูกค้าทั่วประเทศ, 98%
  ลูกค้าพึงพอใจ — bigger numbers (text-5xl/6xl), no icons, counter animation
- Add 'ทำไมเลือกเรา' section (4 cards: ส่งฟรี กทม./ปริมณฑล, Lead time 1-3
  วัน, ราคาโรงงาน, ทีมช่างแนะนำ) — no icons, primary/accent border hover
- Add 'หมวดสินค้า' section (8 tiles: 7 categories + 'สินค้าทั้งหมด')
  placed after 'สินค้าแนะนำ' — each tile is a real product photo with
  dark gradient overlay and a CTA link to /all-products?filter=<id>
- Reorder: Hero → ทำไมเลือกเรา → สินค้าแนะนำ → หมวดสินค้า → Stats →
  บทความล่าสุด → CTA

## all-products (filter from URL)

- Script now reads ?filter=<id> on load and applies it without rewriting
  the URL, then on click updates both the filter and the URL via
  history.replaceState so the back/forward buttons work

## footer (BaseLayout.astro)

- Replace productLinks with the curated 6 popular products: ไทยพีพีอาร์,
  เทอร์โมเบรค, กริลแอร์, หัวจ่ายแอร์ Ball Jet, ท่อ HDPE, ท่อ Syler

## about-us

- Stats: 10+/1000+/500+ replaced with 15+ / 400+ + counter animation,
  bigger numbers, rounded-3xl + shadow (matches home)
- Why Choose Us: rebuilt with the same 4 cards + same style as home's
  'ทำไมเลือกเรา' (no icons, pill header, larger h2 + subtitle)
2026-06-08 22:56:52 +07:00
hermes
bd67810a3f fix(products): align all-products images with product-page heroes + drop dates
## all-products.astro

Remove 2 broken product links (Poloplast, PVC + fittings) and align the
remaining 24 products with the header main menu (BaseLayout.astro):

- Reorganise categories to match the 7 header categories (ท่อพีพีอาร์,
  เครื่องเชื่อมท่อ, ระบบน้ำ, อุปกรณ์ปรับอากาศ, อุปกรณ์ดับเพลิง,
  ฉนวนหุ้มท่อ, ระบบรั้ว) instead of the old ad-hoc split
- Add Ball Jet to "อุปกรณ์ปรับอากาศ" so the page matches the menu
- Re-point 6 product images to each product page's actual hero/feature
  image so the cards show what the linked page shows:
  - HDPE, Syler, HDPE welding, PPR welding, Ball Jet, Vineman

## index.astro (homepage)

Drop the <time>...</time> block from the "บทความล่าสุด" article cards
to match the blog index (no dates, just tag chips).
2026-06-08 13:03:38 +07:00
hermes
b34f8fc2fb feat(blog): Phase 5 SEO/GEO content with 5 new blog posts
Add 5 long-form Thai blog posts (1,200-2,500 words each) with SEO + GEO
optimization for the dealplustech water-systems site. Each post targets
a specific audience (contractors, engineers, project managers) and
follows a content-quality workflow: source real product specs, verify
Thai text, dedupe images, link back to product pages.

## New blog posts (src/content/blog/)
- thermobreak-guide.md (Thermobreak closed-cell insulation overview)
- plastic-grilles-guide.md (ABS plastic grilles for HVAC)
- ppr-pipe-guide.md (PPR pipe properties + heat-fusion welding)
- ppr-vs-hdpe-vs-upvc.md (3-way pipe comparison with PE80/PE100)
- thermobreak-series-guide.md (Thermobreak LS vs Solar series)
- 10-things-checklist-pipe-ordering.md (10-point pre-order checklist)

## Removed legacy posts
- pipe-knowledge.md, valve-guide.md, welcome-post.md (orphans)

## Hero images (public/images/blog/)
~20 product photos sourced from manufacturers (Thermobreak, Thai PPR,
thaiconsupply) plus Nano Banana Pro infographics. All resized to
3:2 aspect ratio per user preference. Source folder preserved for
re-derivation.

## Astro layout/SEO work
- src/components/seo/SEO.astro, JsonLd.astro (new SEO components)
- src/layouts/BaseLayout.astro, Layout.astro (OG/Twitter/JSON-LD wiring)
- src/pages/404.astro
- Product pages (8): added #pricelist anchors + schema work
- src/styles/global.css: scroll-padding for sticky-header anchors

## Automation scripts (scripts/)
- build_og_image.py (OG image builder)
- inject_faq_schema.py, inject_product_schema.py (JSON-LD injection)

## Misc
- public/robots.txt, public/images/og/default-og.jpg
- .gitignore: exclude scripts/__pycache__/
2026-06-08 12:45:32 +07:00
Kunthawat Greethong
7c905bdb00 Merge branch 'refactor/emdash-pages' into source-code
Bring in latest changes:
- feat: add price list PDFs and pricelist sections for pipe products
- fix(seo): hardcoded dealplustech.co.th URLs in JSON-LD
- refactor(ball-jet): add product page + cleanup
- fix(grilles): remove redundant hero text
- refactor: migrate blog from EmDash CMS to Astro content collections (no longer using EmDash)
- chore: remove orphan images and PDFs
2026-06-06 17:23:07 +07:00
Kunthawat Greethong
e1e285363f chore: remove orphan images and PDFs (no longer referenced)
Deleted 10 orphan image directories (HDPE, backup_originals,
portfolio/.omc, products-raw/ball-jet, products-raw/pipe-insulation,
products-raw/tevada, dukelarrsen, mech, อุปกรณ์ดับเพลิง,
อุปกรณ์ปรับอากาศ) and 3 orphan PDFs (Maxflex tube, SANWA,
novat-old) — all confirmed to have 0 references in src/.
2026-06-05 19:47:29 +07:00
Kunthawat Greethong
9ed0abb5d4 fix(seo): fix hardcoded dealplustech.co.th URLs in JSON-LD
The JSON-LD Product schema in 6 product pages had hardcoded
URLs to dealplustech.co.th, but astro.config.mjs configures the
site as dealplustech.com. When this project replaces the old
site, those URLs would 404.

Changes:
- Replace `https://dealplustech.co.th/images/...` with relative
  `/images/...` paths (resolved by Astro at build time)
- Replace `https://dealplustech.co.th/<page>` with
  `https://dealplustech.com/<page>` (canonical domain)
- Special case: vineman schema `image` referenced an .svg that
  doesn't exist locally — switch to the .jpg version that does
  (also used by the page body) at
  /images/products-raw/vineman/ระบบรั้วไวน์แมน-Vineman-e1613286324569-1024x880.jpg

Files changed:
- realflex.astro
- วาล์ว-valve.astro
- water-treatment.astro
- เครื่องเชื่อม-hdpe.astro
- ระบบรั้วไวน์แมน.astro
- เทอร์โมเบรค-thermobreak.astro
2026-06-04 19:07:20 +07:00
Kunthawat Greethong
ff4e5ae346 refactor(ball-jet): remove performance section and image
The ตารางสมรรถนะการจ่ายลม section and its image are no longer
needed. The dimensions/specs section alone is sufficient for the
product page.
2026-06-04 12:17:37 +07:00
Kunthawat Greethong
52761c3946 refactor(ball-jet): drop redundant HTML tables
The HTML tables for dimensions and airflow performance are less
complete than the user-supplied spec images (which include more
data: bigger size range, more flow rates, unit annotations).
Remove the tables — the spec images alone are clearer and more
informative for the customer.
2026-06-04 12:11:24 +07:00
Kunthawat Greethong
4abb361897 fix(ball-jet): replace copyright images with user-supplied photos
The 7 product photos in commit 47f28cd were scraped from
sapaengineer.com without copyright clearance. Replace them
with 4 user-supplied photos from the LINE album:

- ball-jet-main.jpg (478x542) — original main product photo
- ball-jet-main-hd.jpg (1764x2000) — 4x upscale for hero
- ball-jet-front.jpg — front view of the diffuser
- ball-jet-specs.jpg — dimensions + parameters table
- ball-jet-performance.jpg — airflow performance table

Page now uses:
- Hero: ball-jet-main-hd (upscaled from user's photo)
- Gallery: ball-jet-main-hd + ball-jet-front
- New section: ขนาดและพารามิเตอร์ (Dimensions & Parameters)
  - Spec image + readable HTML table (sizes 4"-10")
  - D / A / B / C / E dimensions in mm
- New section: ตารางสมรรถนะการจ่ายลม (Airflow Performance)
  - Performance image + HTML table (sizes 4"-10", 5 flow rates each)
  - Columns: Air Volume (CMH), Outlet Velocity (m/s), Pressure
    Loss (Pa), Throw Distance (m), Noise (dB(A))
2026-06-04 12:06:27 +07:00
Kunthawat Greethong
47f28cdf65 feat: add หัวจ่ายแอร์ Ball Jet product page
New product page at /หัวจ่าย-ball-jet covering Ball Spout Jet
Diffuser (JD Series) — long-throw ceiling air diffuser for
high-ceiling commercial/industrial buildings.

Content sourced from sapamaket.com, sapaengineer.com (official),
superaircool.com technical specs, and the user's brief. The page
covers:
- Hero with full feature badges (360° rotation, 45° nozzle, sizes,
  materials)
- Product description, features, technical specs, applications,
  advantages
- Image gallery (7 photos scraped from the official SAPA source at
  sapaengineer.com — public product marketing images, used to
  illustrate the product)
- 5-question FAQ
- Contact CTA

Nav updated: added หัวจ่ายแอร์ Ball Jet as the 3rd subcategory under
'อุปกรณ์ปรับอากาศ' in BaseLayout.astro.

No PDF pricelist (none provided by source). No price data displayed
(per user request — pricing to be confirmed separately).
2026-06-04 10:12:24 +07:00
Kunthawat Greethong
5f4e667c65 fix: remove text label from grilles floating card in homepage hero
The กริลแอร์ floating card image remains in the homepage hero,
but the 'กริลแอร์คุณภาพสูง' text label that previously overlaid the
card has been removed.
2026-06-04 09:46:29 +07:00
Kunthawat Greethong
238e6500a6 Revert "fix: remove 'คุณภาพสูง' from grilles hero description"
This reverts commit be565e416c.
2026-06-04 09:30:30 +07:00
Kunthawat Greethong
be565e416c fix: remove 'คุณภาพสูง' from grilles hero description 2026-06-04 09:29:06 +07:00