mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
Merge pull request #7299 from supabase/fix/blog-next-image
chore: add gradient bg to blog images
This commit is contained in:
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>
|
||||
)
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user