post cards overlay enhancements

This commit is contained in:
gosangam
2026-06-02 15:02:17 +05:30
parent e72679d1b6
commit 4d45e20cb1
2 changed files with 8 additions and 3 deletions
+4 -2
View File
@@ -73,8 +73,10 @@ export function PostGridCard({
unoptimized
/>
{/* Bottom-up gradient for caption legibility — keeps the image
visible up top while text sits over solid darkness below. */}
<div className="absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent" />
visible up top while text sits over solid darkness below.
Stronger base + via stop pushed to 65% so roughly two-thirds
of the card is in the dark zone. */}
<div className="absolute inset-0 bg-gradient-to-t from-black/95 via-black/65 via-65% to-transparent" />
</>
) : (
<div className="absolute inset-0" style={quoteCardBgStyle()} />