fix(hero): make secondary CTA text white when image is present for visibility
This commit is contained in:
@@ -131,14 +131,14 @@ export const HeroBlock: React.FC<Props> = ({
|
|||||||
secondaryCta.url.startsWith('#') ? (
|
secondaryCta.url.startsWith('#') ? (
|
||||||
<a
|
<a
|
||||||
href={secondaryCta.url}
|
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}
|
{secondaryCta.text}
|
||||||
</a>
|
</a>
|
||||||
) : (
|
) : (
|
||||||
<Link
|
<Link
|
||||||
href={secondaryCta.url}
|
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}
|
{secondaryCta.text}
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
Reference in New Issue
Block a user