Merge pull request #7299 from supabase/fix/blog-next-image

chore: add gradient bg to blog images
This commit is contained in:
Jonathan Summers-Muir authored and GitHub committed 2022-06-16 16:38:28 +08:00
commit 45a406ac18
1 file changed
+19 -2
@@ -30,9 +30,26 @@ const components = {
},
ImageGrid,
img: (props: any) => {
const classes = [
'next-image--dynamic-fill',
'from-brand-500 to-brand-500',
'rounded border bg-gradient-to-r via-blue-500',
]
return (
<div className="next-image--dynamic-fill">
<Image {...props} layout="fill" className="custom-img" />
<div
className="
next-image--dynamic-fill
to-scale-400
from-scale-500 rounded-md
border bg-gradient-to-r
"
>
<Image
{...props}
className="next-image--dynamic-fill to-brand-1000 from-brand-900 rounded-md border bg-gradient-to-r"
layout="fill"
/>
</div>
)
},