Skip to content

Commit 45a406a

Browse files
authored
Merge pull request supabase#7299 from supabase/fix/blog-next-image
chore: add gradient bg to blog images
2 parents 7be2edf + 916e0aa commit 45a406a

File tree

1 file changed

+19
-2
lines changed
  • apps/www/pages/blog/[year]/[month]/[day]

1 file changed

+19
-2
lines changed

apps/www/pages/blog/[year]/[month]/[day]/[slug].tsx

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,26 @@ const components = {
3030
},
3131
ImageGrid,
3232
img: (props: any) => {
33+
const classes = [
34+
'next-image--dynamic-fill',
35+
'from-brand-500 to-brand-500',
36+
'rounded border bg-gradient-to-r via-blue-500',
37+
]
38+
3339
return (
34-
<div className="next-image--dynamic-fill">
35-
<Image {...props} layout="fill" className="custom-img" />
40+
<div
41+
className="
42+
next-image--dynamic-fill
43+
to-scale-400
44+
from-scale-500 rounded-md
45+
border bg-gradient-to-r
46+
"
47+
>
48+
<Image
49+
{...props}
50+
className="next-image--dynamic-fill to-brand-1000 from-brand-900 rounded-md border bg-gradient-to-r"
51+
layout="fill"
52+
/>
3653
</div>
3754
)
3855
},

0 commit comments

Comments
 (0)