diff --git a/app/page.tsx b/app/page.tsx index c2b01f5..bc6722f 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -3,6 +3,7 @@ import { FraseAncla } from '@/components/sections/FraseAncla'; import { ParaQuien } from '@/components/sections/ParaQuien'; import { Mecanismo } from '@/components/sections/Mecanismo'; import { Disciplinas } from '@/components/sections/Disciplinas'; +import { Estratega } from '@/components/sections/Estratega'; export default function Home() { return ( @@ -12,6 +13,7 @@ export default function Home() { + ); } diff --git a/components/sections/Estratega.tsx b/components/sections/Estratega.tsx new file mode 100644 index 0000000..667339b --- /dev/null +++ b/components/sections/Estratega.tsx @@ -0,0 +1,32 @@ +'use client'; +import { motion } from 'framer-motion'; +import { Container } from '@/components/primitives/Container'; +import { estratega } from '@/lib/content'; +import { fadeInUp, staggerContainer, viewportOnce } from '@/lib/motion'; + +export function Estratega() { + return ( + + + + {/* Portrait — placeholder gradient until dueña provides a photo */} + + + {estratega.eyebrow} + {estratega.title} + {estratega.bio} + + {estratega.quote} + + + + + + ); +} diff --git a/components/sections/__tests__/Estratega.test.tsx b/components/sections/__tests__/Estratega.test.tsx new file mode 100644 index 0000000..88d142f --- /dev/null +++ b/components/sections/__tests__/Estratega.test.tsx @@ -0,0 +1,14 @@ +import { render, screen } from '@testing-library/react'; +import { describe, it, expect } from 'vitest'; +import { Estratega } from '../Estratega'; + +describe('', () => { + it('renders the bio', () => { + render(); + expect(screen.getByText(/30 años/i)).toBeInTheDocument(); + }); + it('renders the institutional quote', () => { + render(); + expect(screen.getByText(/El tiempo no se compra/i)).toBeInTheDocument(); + }); +});