A high-fidelity, interactive React SPA for a modern corporate welfare platform. Built with Vite, React, React Router, and Tailwind CSS. Design system derived from the Studio HR reference.
npm install
npm run devOpen http://localhost:5173.
npm run build
npm run preview- Design system — Tokens (colors, typography, radii, shadows, spacing) in
src/index.cssvia@theme. - Mock data —
src/data/mock.json(user, family, budget, feed, recommendations, marketplace, daycare, charity). - Layout —
Shell,Sidebar,PageHeaderinsrc/components/layout/. - UI —
Button,Card,Input,Badge,StatCard,ModuleCardinsrc/components/ui/. - Views — Dashboard (
/), Profile (/profile), Wallet (/wallet), Marketplace (/marketplace). - AI — Collapsible
AiPanel(bottom-right) on all views.
| Path | View |
|---|---|
/ |
Dashboard |
/profile |
Life stage & recommendations |
/wallet |
Credits & family allocation |
/marketplace |
Categories, daycare, charity |
No backend; all data from mock.json and local state.
If the project isn’t a Git repo yet:
cd /path/to/welfare-platform
git init
git add .
git commit -m "Initial commit"Create a new repo on GitHub (e.g. welfare-platform), then:
git remote add origin https://github.com/YOUR_USERNAME/welfare-platform.git
git branch -M main
git push -u origin mainOn your friend’s PC:
git clone https://github.com/YOUR_USERNAME/welfare-platform.git
cd welfare-platform
npm install
npm run devThen open http://localhost:5173.
When you change code and push:
git add .
git commit -m "Describe your changes"
git pushYour friend pulls and restarts the dev server:
git pull
npm install
npm run dev(npm install only needed if you changed package.json. Restart npm run dev so new files and big changes are picked up.)
Vercel (recommended, free):
- Push the project to GitHub (see above).
- Go to vercel.com, sign in with GitHub.
- “Add New Project” → import
welfare-platform. - Leave defaults (Build:
npm run build, Output: from Vite). - Deploy. You get a URL like
welfare-platform.vercel.appand every push tomaincan auto-deploy.
Netlify: Same idea — connect the GitHub repo, build command npm run build, publish directory dist.
GitHub Pages: Use the vite-plugin-gh-pages approach or deploy the dist folder to the gh-pages branch; repo must be public for free hosting.