Hero, zmiana wielu h2 na

This commit is contained in:
dm
2025-11-21 04:59:59 +01:00
parent c5c757f3de
commit 5b4d8f0654
2 changed files with 26 additions and 14 deletions

View File

@@ -29,18 +29,22 @@ const {
}
<!-- Podtytuły (lista) -->
{subtitle && (
Array.isArray(subtitle)
? (
<div class="fuz-hero-subtitles">
{subtitle.map((line, i) => (
<h2 class="fuz-hero-subtitle" style={`--delay:${i}`}>{line}</h2>
))}
</div>
)
: (
<h2 class="fuz-hero-subtitle">{subtitle}</h2>
)
{subtitle && Array.isArray(subtitle) && (
<div class="fuz-hero-subtitles">
<!-- Pierwszy: H2 -->
<h2 class="fuz-hero-subtitle" style={`--delay:0`}>
{subtitle[0]}
</h2>
<!-- Reszta: <p> (dla SEO najlepsze) -->
{subtitle.slice(1).map((line, i) => (
<p class="fuz-hero-subline" style={`--delay:${i + 1}`}>
{line}
</p>
))}
</div>
)}
<!-- Opis -->