- Hero: subtle ink grid texture (radial-masked) + gold glow blob - Hero kicker: small gold dot before the eyebrow - Header: desktop anchor nav (Método/Disciplinas/La estratega) with scroll-elevation shadow; mobile keeps wordmark + CTA only - Sections gain ids + scroll-mt-24 as anchor targets - CTA: subtle hover lift, gated with motion-reduce Concepts studied from ~/dev/BenditaRed (grid+glow hero background, kicker-with-dot, scrolled navbar state, pill hover lift). Animated stats were skipped — no real metrics from the owner to show. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
61 lines
2.8 KiB
TypeScript
61 lines
2.8 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-serif italic font-bold';
|
|
const headlineSize = 'text-4xl md:text-6xl leading-[1.1]';
|
|
|
|
return (
|
|
<section className="relative overflow-hidden bg-bg-pure">
|
|
{/* Fondo: retícula sutil + resplandor dorado (conceptos BenditaRed, en tokens creeer) */}
|
|
<div
|
|
aria-hidden
|
|
className="pointer-events-none absolute inset-0 -z-10"
|
|
style={{
|
|
backgroundImage:
|
|
'linear-gradient(to right, rgba(10,31,68,0.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(10,31,68,0.045) 1px, transparent 1px)',
|
|
backgroundSize: '56px 56px',
|
|
maskImage: 'radial-gradient(120% 80% at 50% 0%, #000 40%, transparent 100%)',
|
|
WebkitMaskImage: 'radial-gradient(120% 80% at 50% 0%, #000 40%, transparent 100%)',
|
|
}}
|
|
/>
|
|
<div
|
|
aria-hidden
|
|
className="pointer-events-none absolute -right-40 -top-40 -z-10 h-[32rem] w-[32rem] rounded-full bg-gold/10 blur-3xl"
|
|
/>
|
|
<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 inline-flex items-center gap-2 text-xs md:text-sm tracking-[0.3em] uppercase font-semibold text-gold-deep">
|
|
<span aria-hidden className="h-1.5 w-1.5 rounded-full bg-gold" />
|
|
{hero.eyebrow}
|
|
</motion.p>
|
|
<motion.h1 variants={fadeInUp} className={`mt-8 ${headlineBase} ${headlineSize} text-ink`}>
|
|
{hero.headline.line1}{' '}
|
|
<span className="text-gold">{hero.headline.effort}</span>{' '}
|
|
{hero.headline.line3}{' '}
|
|
<span style={{ borderBottom: isHormozi ? '5px solid #B8901f' : '3px solid #B8901f', 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>
|
|
);
|
|
}
|