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>
|
<span className="upper-text mb-2" style={{ fontSize: "22px" }}>{s.upper}</span>
|
||||||
<h1
|
{/* ✅ Use <h1> for first slide only */}
|
||||||
style={{
|
{s.id === 0 ? (
|
||||||
color: "#bc0000",
|
<h1
|
||||||
fontWeight: "bold",
|
style={{
|
||||||
fontSize: "64px",
|
color: "#bc0000",
|
||||||
}}
|
fontWeight: "bold",
|
||||||
>
|
fontSize: "64px",
|
||||||
{s.title}
|
}}
|
||||||
</h1>
|
>
|
||||||
|
{s.title}
|
||||||
|
</h1>
|
||||||
|
) : (
|
||||||
|
<h3
|
||||||
|
style={{
|
||||||
|
color: "#bc0000",
|
||||||
|
fontWeight: "bold",
|
||||||
|
fontSize: "64px",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{s.title}
|
||||||
|
</h3>
|
||||||
|
)}
|
||||||
<p style={{ color: "#fff" }}>{s.desc}</p>
|
<p style={{ color: "#fff" }}>{s.desc}</p>
|
||||||
<div className="btn-box mt-3">
|
<div className="btn-box mt-3">
|
||||||
<Link href={s.btn.link} className="theme-btn btn-one">
|
<Link href={s.btn.link} className="theme-btn btn-one">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user