Skip to content

Commit 4fbeef7

Browse files
committed
fix issue:#6888 eliminated home page dead space in mobile view
Signed-off-by: B_Kishore <85435355+kishore08-07@users.noreply.github.com>
1 parent 6094e61 commit 4fbeef7

3 files changed

Lines changed: 1 addition & 52 deletions

File tree

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

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,7 @@ const Banner1SectionWrapper = styled.section`
1616
top: -10%;
1717
width: 25%;
1818
min-height: 150%;
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-
}
19+
height: auto; /* Ensure proper scaling */
4320
}
4421
p {
4522
font-size: 21px;

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,6 @@ 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-
}
2715
position: relative; /* Add position for better layout control */
2816
width: 100%; /* Add explicit width */
2917

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,6 @@ 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-
}
259
2610
p {
2711
font-size: 21px;

0 commit comments

Comments
 (0)