Commit Graph

11 Commits

Author SHA1 Message Date
Kunthawat Greethong
e463a038c9 fix: Add nixpacks.toml to explicitly set Node.js 20
Ensures Easypanel uses Node.js 20 for building, preventing version
mismatch with Astro 5.x requirements
2026-03-10 13:09:36 +07:00
Kunthawat Greethong
226494193d fix: Add engines field to require Node.js 20+ for Astro 5.x compatibility
Astro 5.x requires Node.js >=18.20.8, added engines field to ensure
Nixpacks/Easypanel uses Node.js 20 instead of defaulting to 18.20.5
2026-03-10 13:09:27 +07:00
Kunthawat Greethong
7552b875e9 feat: Add full PDPA compliance with cookie consent and admin dashboard
Features implemented:
- Cookie consent banner (Accept/Reject) with localStorage storage
- Conditional Umami Analytics loading (only with consent)
- Admin dashboard at /admin/consent-logs with password protection
- API endpoints for consent logging (POST/GET/DELETE)
- Updated Privacy Policy with all 14 PDPA Section 36 requirements
- Updated Terms & Conditions with 17 comprehensive sections
- Astro DB integration with consent logging schema
- Production-ready Dockerfile with SQLite support
- Start command for Easypanel deployment

Files added:
- src/components/consent/CookieBanner.astro
- src/pages/api/consent/index.ts
- src/pages/api/consent/[sessionId]/index.ts
- src/pages/admin/consent-logs.astro
- db/schema.ts
- .env.example
- PDPA-COMPLIANCE.md

Files modified:
- src/layouts/Layout.astro (CookieBanner + conditional Umami)
- src/pages/privacy-policy.astro (full PDPA compliance)
- src/pages/terms-and-conditions.astro (comprehensive update)
- astro.config.mjs (Node adapter + DB)
- Dockerfile (production build with DB)
- package.json (dependencies + start script)

Deployment notes:
- CHANGE ADMIN_PASSWORD from default 'changeme'
- Run with: npm run start
- Docker: docker build -t moreminimore:latest .
2026-03-10 12:59:17 +07:00
Kunthawat Greethong
474b39e314 docs: Update AGENTS.md with revert history
- Document current state (reverted to c6b56b9)
- Record PDPA implementation work (on backup branch)
- Add Docker configuration reference
- Include lessons learned
- Update project structure and deployment guide
2026-03-10 12:10:41 +07:00
Kunthawat Greethong
c6b56b9e26 Fix: Change text-xs and text-sm to text-base 2026-03-04 13:37:40 +07:00
Kunthawat Greethong
34e5625a17 Redesign: Complete AI transformation with new branding
Features:
- New 5-color palette (Yellow, Black, Blue, Purple, Teal)
- White footer with updated navigation
- Homepage redesigned with Hero, Tech Stack, Process, FAQ, Blog sections
- 4 new AI service pages (Strategy, Automation, Training, Analytics)
- Modern effects: glass morphism, hover animations, gradients
- Removed all 'รับปรึกษา ฟรี' CTAs, replaced with Phone/Line
- Updated content to AI Transformation theme
- Port changed to 80 for Easypanel deployment

Breaking Changes:
- Old service pages removed (replaced with AI-focused services)
- Layout structure updated with new color variables
- CSS completely rewritten with new design system
2026-03-04 00:15:08 +07:00
Kunthawat Greethong
80e0c0406f Update: use port 80 with serve package 2026-03-03 23:36:45 +07:00
Kunthawat Greethong
7a64054475 Add Easypanel deployment guide with manual steps 2026-03-03 22:58:25 +07:00
Kunthawat Greethong
4aadcbad34 Add deployment scripts and Easypanel guide 2026-03-03 22:17:09 +07:00
Kunthawat Greethong
06b81dc99c Update: correct Gitea repository URL 2026-03-03 21:26:49 +07:00
Kunthawat Greethong
a578dd5a30 Initial commit: MoreminiMore redesign with Astro 2026-03-03 21:18:55 +07:00