Skip to content

Commit

Permalink
Added overlay to sides of Banner
Browse files Browse the repository at this point in the history
  • Loading branch information
ElMaxito committed Nov 16, 2024
1 parent f09461f commit 736084f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/layout/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ export default function Banner() {
priority
className="w-full h-auto"
/>
{/* Bottom gradient */}
<div className="absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-black to-transparent" />

{/* Left gradient */}
<div className="absolute top-0 left-0 bottom-0 w-16 bg-gradient-to-r from-black to-transparent" />

{/* Right gradient */}
<div className="absolute top-0 right-0 bottom-0 w-16 bg-gradient-to-l from-black to-transparent" />
</div>
</div>
</div>
Expand Down

0 comments on commit 736084f

Please sign in to comment.