img alt seo

This commit is contained in:
VividTruthKeeper 2023-02-24 18:27:28 +05:00
parent aaf77f3847
commit f5ecf91b9c
4 changed files with 9 additions and 4 deletions

View File

@ -22,7 +22,7 @@ const AsideNews = ({ title, date, img, category, link }: Props) => {
<div className="aside-news-image">
<LazyLoadImage
src={img}
alt="image"
alt={img}
useIntersectionObserver
effect="blur"
/>

View File

@ -14,7 +14,7 @@ const ContentItem = ({ type = "small", img, title, id }: IProps) => {
<div className={`main-content-item main-content-item__${type}`}>
<LazyLoadImage
src={img}
alt=""
alt={img}
effect="blur"
useIntersectionObserver
style={{ background: `url(${img})` }}

View File

@ -24,7 +24,7 @@ const News = ({ id, title, text, categories, date, img }: Props) => {
<div className="news-image">
<LazyLoadImage
src={img}
alt="image"
alt={img}
useIntersectionObserver
effect="blur"
/>

View File

@ -8,7 +8,12 @@ interface IProps {
const NewsArticleImg = ({ img }: IProps) => {
return (
<div className={"news-article-image"}>
<LazyLoadImage src={img} alt="" effect="blur" useIntersectionObserver />
<LazyLoadImage
src={img}
alt={img}
effect="blur"
useIntersectionObserver
/>
</div>
);
};