feat: FraseAncla section (02) — anchor quote

This commit is contained in:
erikgh committed 2026-07-21 10:24:52 -06:00
1 parent ccfcf71491
commit d2fe1fcf64
5 files changed
+63 -1

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
'use client';
import { motion } from 'framer-motion';
import { Container } from '@/components/primitives/Container';
import { fraseAncla } from '@/lib/content';
import { fadeInUp, viewportOnce } from '@/lib/motion';
export function FraseAncla() {
return (
<section className="bg-base">
<Container className="py-24 md:py-32 text-center max-w-4xl">
<motion.blockquote
variants={fadeInUp}
initial="hidden"
whileInView="visible"
viewport={viewportOnce}
className="font-serif italic text-2xl md:text-4xl font-bold leading-snug text-ink"
>
<span className="text-gold">“</span>
{fraseAncla.quote.before}{' '}
<span className="text-gold">{fraseAncla.quote.accent}</span>
<span className="text-gold">”</span>
</motion.blockquote>
</Container>
</section>
);
}
@@ -0,0 +1,11 @@
import { render, screen } from '@testing-library/react';
import { describe, it, expect } from 'vitest';
import { FraseAncla } from '../FraseAncla';
describe('<FraseAncla />', () => {
it('renders the anchor quote', () => {
render(<FraseAncla />);
expect(screen.getByText(/Las empresas no dejan de crecer/i)).toBeInTheDocument();
expect(screen.getByText(/falta de claridad/i)).toBeInTheDocument();
});
});