banner first slider h1 tag others change to h3 tag
This commit is contained in:
parent
845d366bf0
commit
57fd988d77
@ -142,15 +142,28 @@ export default function Banner() {
|
||||
}}
|
||||
>
|
||||
<span className="upper-text mb-2" style={{ fontSize: "22px" }}>{s.upper}</span>
|
||||
<h1
|
||||
style={{
|
||||
color: "#bc0000",
|
||||
fontWeight: "bold",
|
||||
fontSize: "64px",
|
||||
}}
|
||||
>
|
||||
{s.title}
|
||||
</h1>
|
||||
{/* ✅ Use <h1> for first slide only */}
|
||||
{s.id === 0 ? (
|
||||
<h1
|
||||
style={{
|
||||
color: "#bc0000",
|
||||
fontWeight: "bold",
|
||||
fontSize: "64px",
|
||||
}}
|
||||
>
|
||||
{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">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user