--- // "Cómo trabajamos" — Timeline with GSAP ScrollTrigger progress bar // Phase 4 — Organic Fluidity Premium import SectionEyebrow from './SectionEyebrow.astro'; import type { TranslationKey } from '@/i18n/ui'; import gsap from 'gsap'; import { ScrollTrigger } from 'gsap/ScrollTrigger'; gsap.registerPlugin(ScrollTrigger); interface Props { t: (key: TranslationKey) => string; } const { t } = Astro.props; const steps = [ { num: '01', titleKey: 'process.step1.title' as TranslationKey, bodyKey: 'process.step1.body' as TranslationKey }, { num: '02', titleKey: 'process.step2.title' as TranslationKey, bodyKey: 'process.step2.body' as TranslationKey }, { num: '03', titleKey: 'process.step3.title' as TranslationKey, bodyKey: 'process.step3.body' as TranslationKey }, { num: '04', titleKey: 'process.step4.title' as TranslationKey, bodyKey: 'process.step4.body' as TranslationKey }, ]; --- {t('process.title')} {steps.map((step, i) => ( {step.num} {t(step.titleKey)} {t(step.bodyKey)} ))}
{t(step.bodyKey)}