feat(redesign): update UniqueValue, FAQTeaser, Hero two-tone title, and Affiliation trust cards

This commit is contained in:
MichalC
2026-09-03 08:21:32 +02:00
parent 465a8cb0f1
commit 5d3b528cf2
8 changed files with 75 additions and 35 deletions
+4 -3
View File
@@ -6,7 +6,7 @@ import Image from 'next/image'
type Props = Extract<NonNullable<Page['layout']>[0], { blockType: 'hero' }>
export const HeroBlock: React.FC<Props> = ({ title, subtitle, primaryCta, secondaryCta, image }) => {
export const HeroBlock: React.FC<Props> = ({ title, titleAccent, subtitle, primaryCta, secondaryCta, image }) => {
// Sprawdzamy czy obrazek jest obiektem Media czy tylko ID
const heroMedia = typeof image === 'object' && image !== null ? (image as Media) : null;
// PLACEHOLDER - do podmiany na zdjęcie klienta jeśli brak w CMS
@@ -19,8 +19,9 @@ export const HeroBlock: React.FC<Props> = ({ title, subtitle, primaryCta, second
<div className="flex flex-col-reverse md:flex-row items-center justify-between gap-12 lg:gap-24">
<div className="w-full md:w-1/2 max-w-xl flex flex-col">
<h1 className="font-heading text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-bold leading-[1.05] text-foreground mb-8 text-balance">
{title}
<h1 className="font-heading text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-bold leading-[1.05] mb-8 text-balance">
<span className="block text-foreground">{title}</span>
{titleAccent && <span className="block text-accent">{titleAccent}</span>}
</h1>
<p className="text-xl sm:text-2xl text-foreground/80 mb-12 leading-relaxed font-light">