Skip to content

Commit

Permalink
feat: improve LargeThumb image visual contrast with lighter overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-mesnil committed Dec 15, 2024
1 parent f011727 commit b9cd915
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/LargeThumb/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ export const LargeThumb = React.memo(
aspectRatio={16 / 12}
/>
<View style={[globalStyles.absoluteFill, styles.content]}>
<Gradient colors={['transparent', theme.colors.behind]} />
<Gradient
style={styles.gradient}
colors={['transparent', theme.colors.behind]}
/>
{!isLoadingLogo && logo && (
<Image
style={[styles.logo, { aspectRatio: logo.aspectRatio }]}
Expand Down Expand Up @@ -86,5 +89,12 @@ const styles = StyleSheet.create({
width: 250,
maxHeight: 100,
marginBottom: theme.space.lg
},
gradient: {
position: 'absolute',
height: '50%',
left: 0,
bottom: 0,
right: 0
}
});

0 comments on commit b9cd915

Please sign in to comment.