Skip to content

Commit a6de71a

Browse files
committed
fix: improve homepage banner-1 responsiveness for mobile by resizing/repositioning SVG and reducing dead space
Signed-off-by: B_Kishore <85435355+kishore08-07@users.noreply.github.com>
1 parent ddf04dd commit a6de71a

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

src/sections/Home/Banner-1/banner1.style.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,30 @@ const Banner1SectionWrapper = styled.section`
1616
top: -10%;
1717
width: 25%;
1818
min-height: 150%;
19-
height: auto; /* Ensure proper scaling */
19+
height: auto;
20+
z-index: 1;
21+
}
22+
@media only screen and (max-width: 760px) {
23+
min-height: 320px;
24+
padding: 1.2rem 0 1.5rem 0;
25+
.background-svg {
26+
width: 45vw;
27+
min-height: 60vw;
28+
top: 10px;
29+
right: -10vw;
30+
opacity: 0.7;
31+
}
32+
}
33+
@media only screen and (max-width: 480px) {
34+
min-height: 220px;
35+
padding: 0.7rem 0 1rem 0;
36+
.background-svg {
37+
width: 60vw;
38+
min-height: 40vw;
39+
top: 30px;
40+
right: -18vw;
41+
opacity: 0.5;
42+
}
2043
}
2144
p {
2245
font-size: 21px;

0 commit comments

Comments
 (0)