Migra todo el sitio a la marca oficial aprobada por la dueña: - Logotipo cre≡er (el símbolo ≡ reemplaza la 'e' central, en dorado) - Paleta: Azul Profundo #0A1D5D + Dorado Estratégico #C4942E + Blanco + neutros - Tipografía: Aptos (Inter como fallback web), fin del sistema híbrido Georgia/Inter - Tagline 'CLARIDAD · DIRECCIÓN · CRECIMIENTO' + eslogan 'Estrategia que transforma.' Componentes, tokens de Tailwind, lib/content.ts, docs (dueña-directrices + spec) y tests actualizados. Typecheck, lint, 27/27 tests y build estática verdes. Basado en docs/branding.jpeg (Manual v1.0, mayo 2026).
44 lines
1.9 KiB
TypeScript
44 lines
1.9 KiB
TypeScript
'use client';
|
|
|
|
import { motion } from 'framer-motion';
|
|
import { Wordmark } from '@/components/primitives/Wordmark';
|
|
import { CTA } from '@/components/primitives/CTA';
|
|
import { Container } from '@/components/primitives/Container';
|
|
import { hero } from '@/lib/content';
|
|
import { fadeInUp, staggerContainer, usePrefersReducedMotion, motionProps } from '@/lib/motion';
|
|
|
|
type Variant = 'hormozi' | 'editorial';
|
|
|
|
export function Hero({ variant = 'editorial' }: { variant?: Variant }) {
|
|
const reduced = usePrefersReducedMotion();
|
|
const isHormozi = variant === 'hormozi';
|
|
const headlineBase = isHormozi
|
|
? 'font-sans font-black uppercase tracking-tight'
|
|
: 'font-sans font-bold';
|
|
const headlineSize = 'text-4xl md:text-6xl leading-[1.1]';
|
|
|
|
return (
|
|
<section className="bg-white">
|
|
<Container className="min-h-[88vh] flex flex-col items-center justify-center text-center py-24">
|
|
<motion.div variants={staggerContainer} initial="hidden" animate="visible" {...motionProps(reduced)} className="flex flex-col items-center">
|
|
<motion.div variants={fadeInUp}><Wordmark size="xl" /></motion.div>
|
|
<motion.p variants={fadeInUp} className="mt-6 text-xs md:text-sm tracking-[0.3em] uppercase font-semibold text-dorado">
|
|
{hero.eyebrow}
|
|
</motion.p>
|
|
<motion.h1 variants={fadeInUp} className={`mt-8 ${headlineBase} ${headlineSize} text-azul-profundo`}>
|
|
{hero.headline.line1}{' '}
|
|
<span className="text-dorado">{hero.headline.effort}</span>{' '}
|
|
{hero.headline.line3}{' '}
|
|
<span style={{ borderBottom: isHormozi ? '5px solid #C4942E' : '3px solid #C4942E', paddingBottom: 2 }}>
|
|
{hero.headline.clarity}
|
|
</span>
|
|
</motion.h1>
|
|
<motion.div variants={fadeInUp} className="mt-10">
|
|
<CTA href="#contacto" label={hero.cta} variant="light" />
|
|
</motion.div>
|
|
</motion.div>
|
|
</Container>
|
|
</section>
|
|
);
|
|
}
|