--- import MobileNavigation from '@/components/MobileNavigation.tsx' import { useTranslations } from '@/i18n/utils' import BaseLayout from '../layouts/BaseLayout.astro' import Section from '@/components/Section.astro' import { Swiper } from '@/components/swiper' import type { CollectionEntry } from 'astro:content' import { getEntry } from 'astro:content' import CoachCard from '@/components/CoachCard.astro' import ServiceCard from '@/components/ServiceCard.astro' import { Image } from 'astro:assets' import Marquee from '@/components/Marquee.astro' import { Reviews } from '@/components/Reviews.tsx' type Props = CollectionEntry<'pages'>['data'] const navItems = [ { key: 'nav.coaches', href: '#coaches' }, { key: 'nav.slider', href: '#image-slider' }, { key: 'nav.services', href: '#services' }, { key: 'nav.reviews', href: '#reviews' }, { key: 'nav.contact', href: '#contacts' }, ] as const const { lang } = Astro.params const page = await getEntry('pages', 'main') const { slider, coaches, services, hero, marquee, reviews } = page?.data || {} const t = useTranslations(lang) ---
{ hero && (

{hero.description}

{hero.cta && ( )}

) } { marquee && (
) } { coaches && (
{coaches.map((coach) => ( ))}
) } { slider && (
({ ...image, alt: imageAlt }))} />
) } { services && (
{services.map((service) => ( ))}
) } { reviews && (
) }