4 Commits

Author SHA1 Message Date
Kunthawat Greethong
002966b739 fix: Consent API auto-creates database table on startup
- better-sqlite3 creates ConsentLog table if not exists
- Auto-creates data/ directory if missing
- Fixes Astro DB not creating custom tables issue
2026-03-31 11:44:31 +07:00
Kunthawat Greethong
36112e4137 feat: Upgrade to Astro 6
- Astro 5.x → Astro 6.1.2
- @astrojs/node 9.x → 10.x
- Content config: src/content/config.ts → src/content.config.ts
- Update to glob loader pattern for content collections
- Replace post.slug with post.id for content loader
- Replace post.render() with render(post)
2026-03-31 11:25:34 +07:00
Kunthawat Greethong
cfd8bd196a fix: Admin consent logs - implement Export CSV, fix delete, switch to better-sqlite3
- Replace Astro DB with better-sqlite3 for reliable SQLite access
- Implement Export CSV feature in admin panel
- Fix delete consent function (make it global)
- Add better-sqlite3 dependency
2026-03-31 11:00:20 +07:00
Kunthawat Greethong
ae4a897d11 feat: Update images with Unsplash (hero + illustrations), fix UX/UI, add animations
- Replace MiniMax images with Unsplash (free commercial use)
- Hero images: marketing, AI automation, tech consult, web dev, about-us
- Illustrations: different from heroes for all 4 service pages
- Fix ตัวอย่างการใช้งาน section on marketing-automation
- Update about-us with hero image
- All images stored locally (not hotlinks)
2026-03-30 11:38:48 +07:00