mirror of
https://github.com/tiennm99/mathmax.git
synced 2026-06-17 14:48:38 +00:00
8804c192dbc176ca7983e515310fe7ce4bdb8ab8
With prerender=true on +layout.js, adapter-static emits index.html per route. Setting fallback: 'index.html' overwrites the prerendered home with the SPA bootstrap shell, leaving the live page empty before hydration. Drop the fallback option.
MathMax
Toán tương tác cho học sinh THCS Việt Nam (lớp 6-9). Số học, Đại số, Hình học qua kéo-thả và minh hoạ trực quan.
Status
Scaffold only (v0.0.1.0). Landing page liệt kê 3 chủ đề với "Sắp ra mắt". Modules tương tác sẽ ra mắt từng phần.
Develop
Yêu cầu: Node 24+, npm 11+.
npm install
npm run dev # http://localhost:5173/mathmax/
npm run build # Static output → build/
npm run preview # Serve build/
Deploy
Auto-deploy lên GitHub Pages từ main qua actions/deploy-pages@v4. Xem RUNBOOK.md để rollback / chuyển domain.
Live URL: https://tiennm99.github.io/mathmax/
Architecture
- Static: SvelteKit +
@sveltejs/adapter-static,paths.base = '/mathmax', outputbuild/. - Styling: Tailwind 3 (PostCSS), system font stack (Be Vietnam Pro sẽ thêm khi có module đầu tiên).
- Language: JavaScript only (Svelte 5, JSDoc qua
jsconfig.json). - i18n: Hiện chỉ có tiếng Việt. English thêm khi cần.
License
Apache-2.0. Xem LICENSE.
Description
MathMax — Toán tương tác cho học sinh THCS Việt Nam (lớp 6-9). Static site.
Languages
Svelte
56.7%
JavaScript
42.6%
CSS
0.4%
HTML
0.3%