mirror of
https://github.com/escalante29/healthy-fit.git
synced 2026-03-21 12:28:46 +01:00
Initial project scaffolding for health tracker app
Set up backend and frontend structure for a health and fitness tracker using Python (FastAPI, SQLModel, DSPy) and React. Includes Docker and Compose configs, authentication, nutrition AI module, health/nutrition/user endpoints, database models, and basic frontend with routing and context. Enables tracking nutrition, health metrics, and user management, with architecture ready for future mobile and cloud deployment.
This commit is contained in:
20
frontend/src/pages/Dashboard.jsx
Normal file
20
frontend/src/pages/Dashboard.jsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
const Dashboard = () => {
|
||||
return (
|
||||
<div className="p-8 text-white">
|
||||
<h1 className="text-4xl font-bold mb-8">Dashboard</h1>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||
<Link to="/nutrition" className="p-6 bg-gray-800 rounded-lg shadow-lg hover:bg-gray-700 transition">
|
||||
<h2 className="text-2xl font-bold mb-2">Nutrition Tracker</h2>
|
||||
<p className="text-gray-400">Log meals and view macros.</p>
|
||||
</Link>
|
||||
<Link to="/health" className="p-6 bg-gray-800 rounded-lg shadow-lg hover:bg-gray-700 transition">
|
||||
<h2 className="text-2xl font-bold mb-2">Health Metrics</h2>
|
||||
<p className="text-gray-400">Track weight and blood indicators.</p>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
export default Dashboard;
|
||||
Reference in New Issue
Block a user