Skip to content

Commit

Permalink
removes blur on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
dylancoots-mwi committed Aug 2, 2024
1 parent d7b17d2 commit eb42eb4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
3 changes: 2 additions & 1 deletion src/components/Carousel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const Carousel = ({companies}) => {
maxScrollWidth.current = carousel.current
? carousel.current.scrollWidth - movement
: 0;
console.log(window.outerWidth)
}, []);

return (
Expand Down Expand Up @@ -90,7 +91,7 @@ const Carousel = ({companies}) => {
</a>
</div>
</div>
<div className="relative container-spill xl:pl-[3rem] carousel-wrapper carousel-wrapper-right">
<div className="relative container-spill xl:pl-[3rem] carousel-wrapper lg:carousel-wrapper-right">
<div
ref={carousel}
className="carousel-container no-scrollbar overflow-auto touch-pan-x relative flex gap-[1rem] scroll-smooth snap-x snap-mandatory z-0"
Expand Down
32 changes: 17 additions & 15 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,23 @@ const canonicalURL = `https://fair.io/${seoSlug}`;
.text-balance {
white-space: balance;
}
@responsive {
.carousel-wrapper-right::after {
z-index: 1;
content: '';
position: absolute;
top: 0;
right: 0;
width: 8rem;
bottom: 0;
flex-shrink: 0;
background: linear-gradient(
270deg,
#F2F0ED 7.69%,
rgba(31, 22, 51, 0) 92.31%
);
}
}
.carousel-wrapper-left::before {
z-index: 1;
content: '';
Expand All @@ -281,19 +298,4 @@ const canonicalURL = `https://fair.io/${seoSlug}`;
rgba(31, 22, 51, 0) 92.31%
);
}
.carousel-wrapper-right::after {
z-index: 1;
content: '';
position: absolute;
top: 0;
right: 0;
width: 8rem;
bottom: 0;
flex-shrink: 0;
background: linear-gradient(
270deg,
#F2F0ED 7.69%,
rgba(31, 22, 51, 0) 92.31%
);
}
</style>

0 comments on commit eb42eb4

Please sign in to comment.