Commit Graph

44 Commits

Author SHA1 Message Date
Kunthawat Greethong
92072a4ebf 🖼️ Restore public folder (images, assets) + fix Dockerfile
- Restored public/images from Next.js backup
- Fixed Dockerfile to bind to 0.0.0.0
- Images now served correctly

Fixes:
 404 errors for images
 Missing CSS/Tailwind styles
 Docker container accessibility
2026-03-09 22:13:23 +07:00
Kunthawat Greethong
cb0b4b8d52 🐳 Fix: Use env vars for serve binding 2026-03-09 22:07:57 +07:00
Kunthawat Greethong
2465feec7e 🐳 Fix: Bind server to 0.0.0.0 for Docker accessibility 2026-03-09 22:04:55 +07:00
Kunthawat Greethong
7a67f68d9f ♻️ Restructure: Move Astro to repository root
BREAKING CHANGE: Astro project is now at repository root
- Removed dealplustech-astro subdirectory
- Moved all Astro files to root
- Updated PostCSS config to .cjs
- Removed old Next.js files

 11 pages built successfully
 Cookie consent banner included
 Privacy/Terms links in footer
 Ready for Easypanel deployment (no root dir needed)

Migration path:
- Old structure: /dealplustech-astro/
- New structure: / (root)
2026-03-09 22:00:05 +07:00
Kunthawat Greethong
5b041a6a44 🍪 Deploy build with cookie consent 2026-03-09 21:32:20 +07:00
Kunthawat Greethong
5a823ef539 🔧 Remove .dockerignore (conflicts with Nixpacks) 2026-03-09 20:58:00 +07:00
Kunthawat Greethong
ccf42eb0a6 🐳 Add .dockerignore to exclude Next.js from Astro build 2026-03-09 20:54:30 +07:00
Kunthawat Greethong
c917a69dae 🔧 Remove unused DB files (static site only) 2026-03-09 20:53:23 +07:00
Kunthawat Greethong
c8a9a38430 📦 Add deployment instructions 2026-03-09 20:36:42 +07:00
Kunthawat Greethong
6402d885f9 Complete Astro migration - PDPA compliant website
- Migrated all pages from Next.js to Astro
- Added PDPA-compliant Privacy Policy (Thai)
- Added PDPA-compliant Terms & Conditions (Thai)
- Added Cookie Policy with disclosure (Thai)
- Implemented cookie consent banner (client-side)
- Integrated Umami Analytics placeholder
- Blog system with 3 posts
- Optimized Docker configuration for production
- Static site build (184KB, 11 pages)
- Ready for Easypanel deployment

Backup: /Users/kunthawatgreethong/Gitea/dealplustech-backup-nextjs-20260309.tar.gz
2026-03-09 18:28:01 +07:00
Kunthawat Greethong
668f69048f fix: Add sharp for production image optimization
- Sharp required for Next.js image optimization in production
- Fixes: sharp is required to be installed in standalone mode
- Added as production dependency (--save)
2026-03-06 15:23:36 +07:00
Kunthawat Greethong
f2c8b0f822 fix: Use original favicons + add typography guidance
- Added favicon.ico and favicon.svg from dealplustech.co.th
- Added typography guidance comment in globals.css
- NO automatic font size changes
- Use .text-base (16px) minimum for readable text
2026-03-04 14:19:54 +07:00
Kunthawat Greethong
788ade61be fix: Use original favicons from dealplustech.co.th
- Added favicon.ico and favicon.svg from original website
- Added typography guidance comment
- No font size changes, guidance only
2026-03-04 14:18:26 +07:00
Kunthawat Greethong
de116d27ac fix: Set text-xs and text-sm to 1rem minimum (16px)
- .text-xs: 1rem (16px) instead of 0.75rem (12px)
- .text-sm: 1rem (16px) instead of 0.875rem (14px)
- Large screens (1280px+): 1.125rem (18px)
- Extra large (1536px+): 1.25rem (20px)

Ensures minimum readable text size on all screens.
2026-03-04 13:21:20 +07:00
Kunthawat Greethong
ba2c5be6e0 fix: Increase only smallest text on big screens
- Base font: unchanged (16px default)
- Large screens (1280px+): 17px base (+1px only)
- Extra large (1536px+): 18px base (+2px only)
- .text-small: text-sm md:text-base (increased on medium+ screens)

Only smallest text increased, not all text sizes.
2026-03-04 12:00:25 +07:00
Kunthawat Greethong
e8dbde069c fix: Increase base font size for better readability on big screens
- Base font: 18px (was 16px)
- Large screens (1280px+): 20px
- Extra large (1536px+): 22px
- Ultra large (1920px+): 24px

- Buttons: text-lg md:text-xl (was smaller)
- Navigation: text-base md:text-lg
- Body text: text-base md:text-lg lg:text-xl
- Section titles: text-4xl md:text-5xl lg:text-6xl

- NEVER use text-xs or text-sm (too small on big screens)
- All text now scales properly for 4K displays
2026-03-04 10:57:39 +07:00
Kunthawat Greethong
ca9787d4dd fix: Use original favicons from dealplustech.co.th
- Real favicon.ico from original website (1.4KB)
- Real favicon.svg from original website (140KB)
- Real apple-touch-icon.png from original website
- Match exact original branding
2026-03-03 18:08:40 +07:00
Kunthawat Greethong
1342026b4f fix: Update Dockerfile for Next.js project
- Next.js builds to .next/standalone, not dist/
- Use next.config.mjs output: 'standalone'
- Copy .next/static for static assets
- Copy public folder for static files
2026-03-03 17:50:14 +07:00
Kunthawat Greethong
a5e557d20b fix: Add favicon.ico and favicon.svg files
- Add favicon.ico (downloaded)
- Create favicon.svg with logo
- Required for favicon to work on Easypanel
2026-03-03 17:46:56 +07:00
Kunthawat Greethong
c802279cf9 fix: Remove redundant public folder copy
- Astro build already copies public/ to dist/
- Separate public copy was unnecessary
- Only copy dist folder (contains everything including favicon)
- Fixes favicon 404 error
2026-03-03 14:22:58 +07:00
Kunthawat Greethong
a588155c7d fix: Add favicon.ico link to prevent 404
- Add alternate icon link for favicon.ico
- Add apple-touch-icon link
- Browser automatically requests favicon.ico as fallback
- This prevents 404 errors in console
2026-03-03 13:20:15 +07:00
Kunthawat Greethong
28d20b39c7 fix: Make product tables responsive for mobile
- Add horizontal scroll wrapper for narrow screens
- Reduce font sizes on mobile (text-xs md:text-sm)
- Add padding adjustments for mobile (px-3 py-2)
- Add overflow-x-auto with negative margins for full-width scroll
- Enable word break on cell content
- Set min-width 600px for table readability
- Add border-collapse for cleaner borders

Tables now scroll horizontally on mobile with better readability.
2026-03-02 13:41:24 +07:00
Kunthawat Greethong
6db276d237 fix: Add type definitions inline, remove circular import
- Add SiteConfig, NavItem, ProductCategory, WorkHours interfaces
- Remove: import { ... } from './site-config' (circular import)
- Types now defined at top of file

Fixes TypeScript build error on Easypanel.
2026-03-02 13:17:05 +07:00
Kunthawat Greethong
7a0b593f04 fix: Add .docker/Dockerfile as explicit override for Easypanel
- Create .docker/Dockerfile
- This is a standard location that Easypanel recognizes
- Overrides nixpacks auto-generation
- Simple Astro build without Next.js caching
2026-03-02 12:56:23 +07:00
Kunthawat Greethong
482e0efa70 fix: Remove content.config.ts - use Astro's default content behavior
- Delete src/content.config.ts file
- Astro uses built-in content collection defaults
- Fixes build errors from explicit schema configuration
- First deploy worked without this file
- Subsequent deploys failed because of this file
2026-03-02 12:52:08 +07:00
Kunthawat Greethong
5a2fb71c40 fix: Add nixpacks configuration for Astro deployment 2026-03-02 12:35:14 +07:00
Kunthawat Greethong
ede8e32591 feat: Fix product tables and responsive fonts
- Add product detail page ([slug].astro) with table rendering
- Display productTables from site-config.ts on product pages
- Add responsive font scaling for large screens (1280px+)
- Base font scales from 16px to 24px on 4K displays
- All text elements use responsive sizing (md/lg/xl breakpoints)
- Tables styled with green headers and alternating rows
- Add comprehensive documentation (FIXES_SUMMARY.md)

Fixes:
- Product specification tables now visible on product pages
- Font too small on large screens - now responsive
2026-03-02 12:22:13 +07:00
Kunthawat Greethong
6b453a8b86 feat: Add product specification tables for Syler, XYLENT, Realflex, and POLOPLAST
- Add 12 new specification tables to product-tables.ts
- Syler: 2 tables (pipe specs + sizes)
- XYLENT: 3 tables (specs + sizes + accessories)
- Realflex: 3 tables (specs + sizes + installation)
- POLOPLAST: 4 tables (PP-R SDR 11, SDR 6, FIBER ML5, comparison)
- Link tables to product categories in site-config.ts
- Tables extracted from dealplustech.co.th product pages
- Build verified: 69 pages generated successfully
2026-03-01 12:13:04 +07:00
Kunthawat Greethong
13436b42e5 Add SEO improvements: sitemap, robots.txt, LocalBusiness schema, GA4, llm.txt
- Add dynamic sitemap.xml generation for all pages
- Add robots.txt for search engine crawl directives
- Add LocalBusiness JSON-LD schema for local SEO
- Add BreadcrumbList schema for navigation breadcrumbs
- Add canonical URLs to all product pages
- Add Twitter Cards metadata
- Add Google Analytics 4 integration component
- Create llm.txt with all product data for AI optimization
- Create reusable UI components (Button, Card, Badge)
- Update company address to full Thai address
- Update .env.example with GA4 placeholder
2026-02-28 18:10:09 +07:00
Kunthawat Greethong
3908ddc765 Add complete SEO content for all 36 product pages
- Add keywords, seoContent, specifications, features, FAQ, and Schema.org data
- Extend types for ProductSpecification and FAQItem
- Update product page to render SEO sections with structured data
- All content in Thai for Thai market SEO optimization
2026-02-28 14:49:18 +07:00
Kunthawat Greethong
1d43a583cd Fix thermobreak image in highlight products section 2026-02-27 21:49:35 +07:00
Kunthawat Greethong
861afce086 Redesign Services page and fix featured products images on homepage 2026-02-27 21:30:29 +07:00
Kunthawat Greethong
5a31fd9723 Restore Features and Featured Products sections on homepage 2026-02-27 17:45:44 +07:00
Kunthawat Greethong
0c22cac03c Fix dev server 500 error - conditionally apply standalone output for production only 2026-02-27 13:45:22 +07:00
Kunthawat Greethong
a9e3c81fce Update hero section and add highlight products (PPR, Grilles, Thermobreak) 2026-02-27 09:20:37 +07:00
Kunthawat Greethong
dccfce8186 Fix blog tables (remark-gfm), update portfolio images, fix dropdown hover issues, remove contact form 2026-02-26 21:44:02 +07:00
Kunthawat Greethong
f54c020097 Fix Header.tsx syntax error, add all products to navigation menu
- Fixed truncated Header.tsx with missing closing tags
- Updated navigation to include all 38 products in 7 categories
- Added 2-column dropdown grid layout for desktop
- Added nested sub-categories for mobile menu
2026-02-26 10:31:41 +07:00
Kunthawat Greethong
e7adbd8e98 Change Header and Footer to white background
- Header: white background with dark text for navigation
- Footer: light gray background with dark text
- All text colors updated for readability
- No white text on white background issues
2026-02-26 09:29:26 +07:00
Kunthawat Greethong
88d06a4edd Add additional pages for complete site migration
- Added /pipe/ category page listing all pipe products
- Added /join-us/ job listings page with benefits
- Added /sales-engineer/ job detail page
- Added /all-projects/ page listing all portfolio projects
- Total 68 static pages generated
2026-02-26 07:48:36 +07:00
Kunthawat Greethong
1ecd405eca Fix Thai URL decoding in catch-all route
- Added decodeURIComponent to handle URL-encoded Thai characters
- All product and portfolio pages now work correctly
- 64 static pages generated successfully
2026-02-26 07:37:12 +07:00
Kunthawat Greethong
90917b85d0 Add portfolio projects to catch-all route
- Updated [...slug] to handle both product categories and portfolio projects
- Added 15 portfolio project pages
- Added PortfolioProject type to types/index.ts
- Build now generates 64 static pages (38 products + 15 portfolio + 3 blog + 8 main)
2026-02-26 07:18:18 +07:00
Kunthawat Greethong
b4b344e6ae Update site-config.ts with original URL structure from dealplustech.co.th
- Changed product URLs to match original site (e.g., /ท่อพีพีอาร์ตราช้าง/)
- Added 15 portfolio projects with original URLs
- Updated mainNavigation to match original menu structure
- Build passes with 38 product paths generated
2026-02-26 06:57:14 +07:00
Kunthawat Greethong
8983aebe95 Add product pages, real logo, and update phone number 2026-02-25 22:27:55 +07:00
Kunthawat Greethong
ed1150ceaf Initial commit: New industrial design with green theme 2026-02-25 22:04:30 +07:00