Commit Graph

11 Commits

Author SHA1 Message Date
Kunthawat Greethong
5b041a6a44 🍪 Deploy build with cookie consent 2026-03-09 21:32:20 +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
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