Bob AI: Add nutrition page

This commit is contained in:
kudinDmitriyUp
2026-06-25 08:02:29 +00:00
parent e920dfcb2b
commit a489f50a40
4 changed files with 83 additions and 1 deletions

View File

@@ -2,11 +2,13 @@ import { Routes, Route } from 'react-router-dom';
import Layout from './components/Layout';
import HomePage from './pages/HomePage';
import NutritionPage from "@/pages/NutritionPage";
export default function App() {
return (
<Routes>
<Route element={<Layout />}>
<Route path="/" element={<HomePage />} />
<Route path="/nutrition" element={<NutritionPage />} />
</Route>
</Routes>
);

View File

@@ -34,7 +34,9 @@ export default function Layout() {
{
"name": "Training Schedules",
"href": "#training-schedules"
}
},
{ name: "Nutrition", href: "/nutrition" },
];
return (

View File

@@ -0,0 +1,77 @@
import React from 'react';
import { routes } from "@/routes";
import NavbarCentered from "@/components/ui/NavbarCentered";
import HeroSplit from "@/components/sections/hero/HeroSplit";
import FeaturesBentoGrid from "@/components/sections/features/FeaturesBentoGrid";
import FooterSimple from "@/components/sections/footer/FooterSimple";
export default function NutritionPage() {
return (
<div className="min-h-screen bg-background text-foreground flex flex-col">
<NavbarCentered
logo="FitLife"
navItems={routes.map((r) => ({ name: r.label, href: r.path }))}
ctaButton={{ text: "Get Started", href: "/contact" }}
/>
<main className="flex-grow">
<HeroSplit
tag="Nutrition"
title="Fuel Your Body Right"
description="Discover personalized nutrition plans designed to optimize your performance, enhance recovery, and help you achieve your ultimate fitness goals."
primaryButton={{ text: "Get Your Plan", href: "/pricing" }}
secondaryButton={{ text: "Learn More", href: "#features" }}
imageSrc="https://images.unsplash.com/photo-1490645935967-10de6ba17061?auto=format&fit=crop&q=80"
/>
<FeaturesBentoGrid
tag="Features"
title="Everything you need to eat smart"
description="Our comprehensive nutrition tools take the guesswork out of your diet, providing you with actionable insights and delicious recipes."
features={[
{
title: "Macro Tracking",
description: "Easily log your daily intake and monitor your macronutrient balance.",
imageSrc: "https://images.unsplash.com/photo-1546069901-ba9599a7e63c?auto=format&fit=crop&q=80"
},
{
title: "Custom Meal Plans",
description: "Get weekly recipes tailored specifically to your dietary preferences and goals.",
imageSrc: "https://images.unsplash.com/photo-1498837167169-46f4f1628dd9?auto=format&fit=crop&q=80"
},
{
title: "Expert Guidance",
description: "Direct access to certified nutritionists to answer your questions and adjust your plan.",
imageSrc: "https://images.unsplash.com/photo-1556910103-1c02745a872f?auto=format&fit=crop&q=80"
}
]}
/>
</main>
<FooterSimple
brand="FitLife"
columns={[
{
title: "Company",
items: [
{ label: "About Us", href: "/about" },
{ label: "Contact", href: "/contact" }
]
},
{
title: "Services",
items: [
{ label: "Nutrition", href: "/nutrition" },
{ label: "Training", href: "/training" }
]
}
]}
copyright="© 2024 FitLife. All rights reserved."
links={[
{ label: "Privacy Policy", href: "/privacy" },
{ label: "Terms of Service", href: "/terms" }
]}
/>
</div>
);
}

View File

@@ -6,4 +6,5 @@ export interface Route {
export const routes: Route[] = [
{ path: '/', label: 'Home', pageFile: 'HomePage' },
{ path: '/nutrition', label: 'Nutrition', pageFile: 'NutritionPage' },
];