mirror of
https://github.com/escalante29/healthy-fit.git
synced 2026-03-21 09:08:46 +01:00
Introduces DSPy-based nutrition and plan generation modules, including image analysis for nutritional info and personalized diet/exercise plans. Adds new API endpoints for health metrics/goals, nutrition image analysis, and plan management. Updates models, schemas, and backend structure to support these features, and includes initial training data and configuration for prompt optimization.
25 lines
1.2 KiB
JavaScript
25 lines
1.2 KiB
JavaScript
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>
|
|
<Link to="/plans" className="p-6 bg-gray-800 rounded-lg shadow-lg hover:bg-gray-700 transition">
|
|
<h2 className="text-2xl font-bold mb-2">AI Coach</h2>
|
|
<p className="text-gray-400">Get personalized diet & workout plans.</p>
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
export default Dashboard;
|