fix(hero): make secondary CTA text white when image is present for visibility

This commit is contained in:
MichalC
2026-09-17 23:50:33 +02:00
parent 3004247ceb
commit f21de6dd5e
+2 -2
View File
@@ -131,14 +131,14 @@ export const HeroBlock: React.FC<Props> = ({
secondaryCta.url.startsWith('#') ? (
<a
href={secondaryCta.url}
className="text-foreground font-semibold text-lg hover:text-accent hover:underline underline-offset-4 transition-colors drop-shadow-sm"
className={`${imageUrl ? 'text-white drop-shadow-md' : 'text-foreground'} font-semibold text-lg hover:text-accent hover:underline underline-offset-4 transition-colors`}
>
{secondaryCta.text}
</a>
) : (
<Link
href={secondaryCta.url}
className="text-foreground font-semibold text-lg hover:text-accent hover:underline underline-offset-4 transition-colors drop-shadow-sm"
className={`${imageUrl ? 'text-white drop-shadow-md' : 'text-foreground'} font-semibold text-lg hover:text-accent hover:underline underline-offset-4 transition-colors`}
>
{secondaryCta.text}
</Link>