Skip to content

Commit 212f42f

Browse files
committed
Made pickleballs responsive to their respective devices
1 parent 6bd1a17 commit 212f42f

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/components/board/pickleballs.tsx

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,12 @@ import Pickleball2 from "@/public/bg-ball-2.svg";
55
export default function Pickleballs() {
66
return (
77
<>
8-
<div className="absolute top-[-10%] right-[-10%] w-[40vw] sm:w-[30vw] md:w-[25vw] lg:w-[20vw] z-[-1]">
9-
<Image
10-
src={Pickleball1}
11-
alt="pickleball 1"
12-
className="w-full h-auto"
13-
/>
8+
<div className="absolute top-[-10%] right-[-10%] z-[-1] w-[40vw] sm:w-[30vw] md:w-[25vw] lg:w-[20vw]">
9+
<Image src={Pickleball1} alt="pickleball 1" className="h-auto w-full" />
1410
</div>
1511

16-
<div className="absolute bottom-[-10%] left-[-10%] w-[40vw] sm:w-[30vw] md:w-[25vw] lg:w-[20vw] z-[-1]">
17-
<Image
18-
src={Pickleball2}
19-
alt="pickleball 2"
20-
className="w-full h-auto"
21-
/>
12+
<div className="absolute bottom-[-10%] left-[-10%] z-[-1] w-[40vw] sm:w-[30vw] md:w-[25vw] lg:w-[20vw]">
13+
<Image src={Pickleball2} alt="pickleball 2" className="h-auto w-full" />
2214
</div>
2315
</>
2416
);

0 commit comments

Comments
 (0)