Commit Graph

6 Commits

Author SHA1 Message Date
Kunthawat
64dbc5da6f feat: Convert to pure Astro CSS (no Tailwind)
- Removed Tailwind CSS dependency (19KB → 8.7KB CSS)
- Created native Astro CSS with CSS custom properties
- All utility classes using vanilla CSS
- Scoped component styles with Astro's built-in scoping
- Same green theme and design preserved
- Zero build dependencies for CSS
- Faster builds, smaller bundle
- True 'Astro way' of styling
2026-03-12 19:31:12 +07:00
Kunthawat
3fb9f89bc3 fix: Switch to Tailwind v3 - v4 incompatible with Astro 2026-03-12 18:06:44 +07:00
Kunthawat
fb89ca7d2b fix: Import globals.css in BaseLayout
- Added @import for globals.css in BaseLayout <style is:global>
- Removed @import "tailwindcss" from globals.css (not needed with @tailwindcss/vite plugin)
- Tailwind v4 now properly processes all CSS
- Custom theme colors now working (primary green, secondary grays)
- All Tailwind utility classes now functional

CSS now fully working across all pages!
2026-03-12 16:49:10 +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
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