banner first slider h1 tag others change to h3 tag

This commit is contained in:
Alaguraj0361 2025-10-28 10:44:31 +05:30
parent 845d366bf0
commit 57fd988d77

View File

@ -142,6 +142,8 @@ export default function Banner() {
}}
>
<span className="upper-text mb-2" style={{ fontSize: "22px" }}>{s.upper}</span>
{/* ✅ Use <h1> for first slide only */}
{s.id === 0 ? (
<h1
style={{
color: "#bc0000",
@ -151,6 +153,17 @@ export default function Banner() {
>
{s.title}
</h1>
) : (
<h3
style={{
color: "#bc0000",
fontWeight: "bold",
fontSize: "64px",
}}
>
{s.title}
</h3>
)}
<p style={{ color: "#fff" }}>{s.desc}</p>
<div className="btn-box mt-3">
<Link href={s.btn.link} className="theme-btn btn-one">