Skip to content

Commit

Permalink
style: have the blobs overlapping the video to smooth the edges
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoSoaress committed Jul 8, 2024
1 parent 5b6c3f1 commit 164cb1e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/GasStation/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const Hero = ({ title, text, link }: BaseBlock) => {
</Button>
)}
</div>
<div className={css.gradient} />
</div>
)
}
Expand Down
13 changes: 12 additions & 1 deletion src/components/GasStation/Hero/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}

.sliderWrapper {
margin-top: -6px;
margin-top: -8px;
}

.textContainer {
Expand All @@ -16,6 +16,17 @@
}

@media (min-width: 900px) {
.gradient {
position: absolute;
width: 138px;
top: 0;
right: 0;
bottom: 39px;
background: linear-gradient(270deg, rgba(18, 19, 18, 0) 0%, var(--mui-palette-background-default) 100%);
transform: scaleX(-1.005); /* prevent 1px gap glitch */
z-index: 1;
}

.videoWrapper {
margin-top: calc(-1 * var(--header-height));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
position: absolute;
left: -300px;
top: -200px;
z-index: -1;
width: 1000px;
height: 1000px;
background-image: radial-gradient(at top left, rgba(18, 255, 128, 0.3) 0%, rgba(246, 247, 248, 0) 50%);
Expand All @@ -83,7 +82,6 @@
position: absolute;
right: -50px;
top: -250px;
z-index: -1;
width: 1000px;
height: 1000px;
background-image: radial-gradient(at top right, rgba(41, 182, 246, 0.3) 0%, rgba(246, 247, 248, 0) 50%);
Expand Down

0 comments on commit 164cb1e

Please sign in to comment.