遊戲化記帳 PWA — 每日 HP 預算制,超支自動平攤未來,結餘存入撲滿,讓存錢變成闖關遊戲。
- 今日 HP:大字顯示今日剩餘預算,顏色隨壓力變化(綠 / 橘 / 紅)
- 快速記帳:懸浮按鈕 → Bottom Sheet,3 秒完成輸入
- 撲滿系統:每日結餘自動存入,圓環進度條追蹤存款目標
- 奢侈稅:特定分類自動加徵 20% 虛擬稅,稅金存入撲滿
- 突發避險:緊急消費不扣當日額度,直接重算月預算
- 5 分頁:主頁 / 撲滿 / 詳細 / 帳單 / 報表(圓餅圖)
- React + TypeScript + Vite
- Tailwind CSS v4 + Framer Motion
- sql.js(瀏覽器端 SQLite,Local-First)
- PWA(Standalone 模式,iOS Safe Area 適配)
cd 02-web
npm install
npm run devA gamified budgeting PWA. Each day starts with an "HP" budget; overspending is auto-spread into future days; leftover savings drop into a piggy bank. The point is to make saving feel like a level-up.
- Today's HP: big-number display of your remaining budget, colored by stress (green / orange / red)
- Quick entry: floating button → bottom sheet, log a transaction in 3 seconds
- Piggy bank: daily surplus auto-deposits; a ring progress bar tracks your savings goal
- Luxury tax: certain categories incur a 20% virtual tax that goes straight into the piggy bank
- Emergency hedge: emergency spending doesn't touch today's HP — it recalculates the monthly budget instead
- 5 tabs: Home / Piggy Bank / Detail / Bills / Reports (pie charts)
- React + TypeScript + Vite
- Tailwind CSS v4 + Framer Motion
- sql.js (in-browser SQLite, local-first)
- PWA (standalone mode, iOS safe-area handling)
cd 02-web
npm install
npm run dev