|
|
|
@ -12,7 +12,7 @@ export default function Header(props: any) { |
|
|
|
|
<div |
|
|
|
|
className={i === 0 ? "item active" : "item"} |
|
|
|
|
style={{ |
|
|
|
|
background: `url(${"https://dnvn.ir/api/v1/file/"+ item.fileId})`, |
|
|
|
|
background: `url(${"https://dnvn.ir/api/v1/file/" + item.fileId})`, |
|
|
|
|
}} |
|
|
|
|
// dataBackgroundImage={`https://dnvn.ir/api/v1/file/${item.fileId}`}
|
|
|
|
|
key={i} |
|
|
|
@ -20,13 +20,13 @@ export default function Header(props: any) { |
|
|
|
|
<div className="home-header__cover"></div> |
|
|
|
|
<div className="home-header__info d-flex flex-column"> |
|
|
|
|
<div className="home-header__info--author d-flex"> |
|
|
|
|
<Avatar src={item.authorImage} /> |
|
|
|
|
{item.authorImage && <Avatar src={item.authorImage} />} |
|
|
|
|
<div className="d-flex flex-column"> |
|
|
|
|
<h3>{item.extraText}</h3> |
|
|
|
|
<i>نویسنده</i> |
|
|
|
|
{/* <i>نویسنده</i> */} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<h1>{"0" + (Number(i) + 1)}</h1> |
|
|
|
|
{/* <h1>{(Number(i) + 1)}</h1> */} |
|
|
|
|
<h1>{item.title}</h1> |
|
|
|
|
<h2>{item.subTitle}</h2> |
|
|
|
|
</div> |
|
|
|
@ -43,7 +43,7 @@ export default function Header(props: any) { |
|
|
|
|
> |
|
|
|
|
<span className={i === 0 ? "active" : ""}></span> |
|
|
|
|
<div className="d-flex flex-column"> |
|
|
|
|
<b>{"0" + (Number(i) + 1)}</b> |
|
|
|
|
<b>{"."}</b> |
|
|
|
|
<strong>{item1.title}</strong> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|