Disciplinas cards and Mecanismo/ComoEmpezar steps get a subtle lift + border intensify on hover; the CTA arrow slides right. All gated with motion-reduce so prefers-reduced-motion users see no movement. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
18 lines
756 B
TypeScript
18 lines
756 B
TypeScript
type Variant = 'light' | 'dark';
|
|
const styles: Record<Variant, string> = {
|
|
light: 'bg-ink text-cream hover:bg-ink/90',
|
|
dark: 'bg-gold-bright text-ink hover:bg-gold-bright/90',
|
|
};
|
|
|
|
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>
|
|
);
|
|
}
|