blur placeholder on article images

This commit is contained in:
tmshv committed 2021-09-22 00:21:19 +03:00
1 parent df229b5e8c
commit 8260e3cf34
9 files changed
+1108 -81

No files matched your search

+4 -1
View File
@@ -36,11 +36,14 @@ export const Picture: React.FC<PictureProps> = memo(({ wide = false, ...props })
return (
<figure className={`${s.pic} ${layout} ${w ? s.wide : ''}`}>
<Image
className={s.img}
src={props.src}
alt={props.alt}
// alt={props.alt}
width={props.width}
height={props.height}
layout={'responsive'}
blurDataURL={props.blur}
placeholder={'blur'}
/>
{!props.caption ? null : (
<figcaption>{props.caption}</figcaption>