Commit Graph

6 Commits

Author SHA1 Message Date
Kunthawat
7fcfea648e feat: Restore full product content with rich data
 RESTORED FROM COMMIT 668f69048f:

1. **Full Site Config (2100 lines)**
   - Complete product data with specifications
   - Features, applications, FAQs
   - SEO content and keywords

2. **Proper Product Pages**
   - Renders specifications tables
   - Shows features list
   - Displays FAQs
   - All 6 products with rich content

3. **Complete Components**
   - Header with navigation
   - Footer with contact info
   - FloatingContact widget

4. **All PDPA Features Preserved**
   - Cookie consent
   - Consent logging API
   - Admin dashboard
   - Privacy policy
   - Terms & conditions

🎯 **Product Data Now Includes:**
- ท่อ HDPE - 10 specifications
- ท่อ PPR - Full specs + features
- ท่อ Poloplast - Complete data
- All products with proper content

Build: 15 pages in 769ms
2026-03-12 15:04:14 +07:00
Kunthawat
2894e836a6 feat: Restore full product data from commit 668f69048f
- Restored site-config.ts (2100 lines with all product tables)
- Restored proper product page template with table rendering
- Restored Header, Footer, FloatingContact components
- All 6 products now show detailed specification tables
- Preserved all PDPA compliance features
2026-03-12 14:58:57 +07:00
Kunthawat
7e8c7d1314 fix: Download and fix all product images
- Downloaded real logo from live site
- Downloaded all product images
- Fixed image paths to match actual files
- All 6 products now show correct images
2026-03-12 14:32:53 +07:00
Kunthawat
eefa990ffc feat: Add all product images and logo
- Created public/images/2021/03/ with 77 product images
- Added logo at /images/2021/02/13523630950840.png
- All product pages now display images correctly
- Homepage hero image works
- Blog post featured images work
2026-03-12 14:23:39 +07:00
Kunthawat
af32f9a962 feat: Switch to Astro SSR with API routes support
- Changed output: 'static' → 'server' in astro.config.mjs
- Added @astrojs/node adapter for dynamic serving
- Updated Dockerfile to use astro preview (not serve package)
- Fixed package.json dependency conflicts
- All API routes will work (privacy consent logging)
- Static pages still work

Now includes BOTH:
-  Static pages (product pages, blog)
-  Dynamic API routes (cookie consent logging)
-  Admin dashboard with database access
-  Fixed host restrictions
2026-03-12 13:43:58 +07:00
Kunthawat
77ac4d2d05 feat: Upgrade to Astro with full PDPA compliance
PDPA Features:
 Cookie consent banner
 Consent logging API
 Admin dashboard
 Privacy Policy
 Terms & Conditions

Technical:
 Astro 5.x + Tailwind v4
 Docker on port 80
 SQLite database
 15 pages built

Ready for Easypanel deployment.
2026-03-12 10:01:04 +07:00