Commit Graph

9 Commits

Author SHA1 Message Date
Kunthawat Greethong
07158311e2 fix: Remove .nixpacks and .docker folders
- Delete auto-generated .nixpacks folder
- Delete .docker folder
- Easypanel should use root Dockerfile only
- This prevents confusion with multiple Dockerfile locations
2026-03-03 10:11:20 +07:00
Kunthawat Greethong
f972f68875 fix: Simplify Dockerfile - let Astro handle public folder
- Remove manual public folder copy
- Astro build automatically includes public/ in dist/
- This ensures favicons and other static assets are served

Fixes favicon 404 error.
2026-03-03 10:10:47 +07:00
Kunthawat Greethong
4f39fa072a 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 08:59:30 +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