Skip to content

Commit a30c9c0

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

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/sections/Home/Banner-4/banner4.style.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ const Banner1SectionWrapper = styled.section`
66
position: relative; /* Add position for better layout control */
77
width: 100%; /* Add explicit width */
88
padding: 7rem 0; /* Add explicit padding to maintain consistent spacing */
9+
@media only screen and (max-width: 767px) {
10+
min-height: 320px;
11+
padding: 1.2rem 0 1.5rem 0;
12+
.video-wrapper {
13+
width: 100%;
14+
padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
15+
}
16+
}
17+
@media only screen and (max-width: 480px) {
18+
min-height: 180px;
19+
padding: 0.7rem 0 1rem 0;
20+
.video-wrapper {
21+
width: 100%;
22+
padding-bottom: 60%;
23+
}
24+
}
925
1026
p {
1127
font-size: 21px;

0 commit comments

Comments
 (0)