Skip to content

Commit

Permalink
improving gradient overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
thedev132 committed Feb 1, 2025
1 parent 52d8469 commit f204543
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,22 +122,27 @@ function Event({
style={{
borderRadius: 10,
overflow: event.background_image && !pinned ? "hidden" : "visible",
marginBottom: event.background_image && !pinned
? 16
: undefined,
}}
>

{event.background_image && !pinned && (
<LinearGradient
colors={
scheme === "dark"
? ["transparent", themeColors.background]
: ["#transparent", "#f0f4f8"]
? ["transparent", "rgba(0,0,0,0.65)"]
: ["transparent", "rgba(240,244,248,0.35)"]
}
locations={[0.5, 1]}
locations={[0.3, 1]}
style={{
...StyleSheet.absoluteFillObject,
zIndex: 1,
}}
/>
)}

<View
style={StyleSheet.compose(
{
Expand Down

0 comments on commit f204543

Please sign in to comment.