Skip to content

Commit 6094e61

Browse files
committed
fix:improve homepage banner-2 responsiveness for mobile by repositioning svg and reducing dead space
Signed-off-by: B_Kishore <85435355+kishore08-07@users.noreply.github.com>
1 parent a30c9c0 commit 6094e61

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/sections/Home/Banner-2/banner2.style.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ const Banner2SectionWrapper = styled.section`
1212
background-color: ${props => props.theme.body};
1313
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
1414
min-height: 600px; /* Add explicit min-height */
15+
@media only screen and (max-width: 760px) {
16+
min-height: 320px;
17+
padding: 1.2rem 0 1.5rem 0;
18+
background-position: bottom 60px right 5px, bottom right;
19+
background-size: 18%, 15%;
20+
}
21+
@media only screen and (max-width: 480px) {
22+
min-height: 180px;
23+
padding: 0.7rem 0 1rem 0;
24+
background-position: bottom 30px right 2px, bottom 10px right;
25+
background-size: 13%, 10%;
26+
}
1527
position: relative; /* Add position for better layout control */
1628
width: 100%; /* Add explicit width */
1729

0 commit comments

Comments
 (0)