fix(ui): change secondary CTA in Hero to anchor link targeting Process block

This commit is contained in:
MichalC
2026-09-03 22:37:24 +02:00
parent 7da1b283ce
commit 881580cd73
3 changed files with 59 additions and 7 deletions
+15 -6
View File
@@ -144,12 +144,21 @@ export const HeroBlock: React.FC<Props> = ({
{primaryCta}
</a>
{secondaryCta?.text && secondaryCta?.url && (
<Link
href={secondaryCta.url}
className="text-foreground font-semibold text-lg hover:text-accent hover:underline underline-offset-4 transition-colors"
>
{secondaryCta.text}
</Link>
secondaryCta.url.startsWith('#') ? (
<a
href={secondaryCta.url}
className="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"
>
{secondaryCta.text}
</Link>
)
)}
</motion.div>
</div>
+1 -1
View File
@@ -12,7 +12,7 @@ export const ProcessBlock: React.FC<Props> = ({ subtitle, title, steps, ctaText,
const imageAlt = processMedia?.alt || 'Proces współpracy';
return (
<section className="py-20 md:py-32 bg-background text-foreground overflow-hidden">
<section id="jak-to-dziala" className="py-20 md:py-32 bg-background text-foreground overflow-hidden">
<div className="container-premium">
<div className="max-w-3xl mb-16 md:mb-24">
<h2 className="font-heading text-3xl sm:text-4xl md:text-5xl font-extrabold tracking-tight text-foreground mb-6 text-balance">