Nueva sección FormaTrabajar con 5 tarjetas: Metodología, Quién participa, De dónde partimos, Qué te llevas y Duración. Inspirada en la estructura de en-ti.com, adaptada a la identidad creeer. - Nuevo componente FormaTrabajar.tsx (grid de tarjetas con TarjetaSpotlight) - Nuevo ícono 'reloj' en Icono.tsx - Contenido en lib/content.ts (copy derivado de fuentes aprobadas) - Insertada entre Mecanismo y Disciplinas en page.tsx
21 lines
1.0 KiB
TypeScript
21 lines
1.0 KiB
TypeScript
type Variant = 'light' | 'dark' | 'ghost';
|
|
// Every variant carries border-2 so filled and outlined CTAs line up when
|
|
// they sit side by side.
|
|
const styles: Record<Variant, string> = {
|
|
light: 'border-2 border-transparent bg-azul-profundo text-white hover:bg-azul-profundo/90',
|
|
dark: 'border-2 border-transparent bg-dorado text-white hover:bg-dorado/90',
|
|
ghost: 'border-2 border-azul-profundo text-azul-profundo hover:bg-azul-profundo hover:text-white',
|
|
};
|
|
|
|
export function CTA({ href, label, variant = 'light', className = '' }: { href: string; label: string; variant?: Variant; className?: string }) {
|
|
return (
|
|
<a
|
|
href={href}
|
|
className={`group inline-block font-sans font-bold uppercase tracking-wider px-7 py-3.5 text-sm transition-colors ${styles[variant]} ${className}`}
|
|
>
|
|
{label}{' '}
|
|
<span aria-hidden="true" className="inline-block transition-transform duration-300 ease-out group-hover:translate-x-1 motion-reduce:transform-none motion-reduce:transition-none">→</span>
|
|
</a>
|
|
);
|
|
}
|