Skip to content

Commit f5b7390

Browse files
author
Vivek Vishal
authored
Merge branch 'master' into add-faheem-profile
2 parents 0b2b676 + c123e8b commit f5b7390

8 files changed

Lines changed: 33 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ const Banner1SectionWrapper = styled.section`
55
padding: 7rem 0;
66
background-color: ${props => props.theme.body};
77
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
8+
min-height: 600px; /* Add explicit min-height */
9+
position: relative; /* Add position for better layout control */
10+
width: 100%; /* Add explicit width */
811
912
.background-svg {
1013
overflow: visible;
@@ -13,6 +16,7 @@ const Banner1SectionWrapper = styled.section`
1316
top: -10%;
1417
width: 25%;
1518
min-height: 150%;
19+
height: auto; /* Ensure proper scaling */
1620
}
1721
p {
1822
font-size: 21px;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ const Banner2SectionWrapper = styled.section`
1111
background-size: 25%, 23%;
1212
background-color: ${props => props.theme.body};
1313
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
14+
min-height: 600px; /* Add explicit min-height */
15+
position: relative; /* Add position for better layout control */
16+
width: 100%; /* Add explicit width */
1417
1518
background-position: center right 160px, bottom right;
1619
p {

src/sections/Home/Banner-3/banner3.style.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ const Banner3SectionWrapper = styled.section`
1010
background-color: ${props => props.theme.secondaryLightColorTwo};
1111
background-position: bottom -85px right;
1212
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
13+
min-height: 600px; /* Add explicit min-height */
14+
position: relative; /* Add position for better layout control */
15+
width: 100%; /* Add explicit width */
1316
1417
p {
1518
font-size: 21px;

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import styled from "styled-components";
22

33
const Banner1SectionWrapper = styled.section`
44
display: none;
5+
min-height: 600px; /* Add explicit min-height */
6+
position: relative; /* Add position for better layout control */
7+
width: 100%; /* Add explicit width */
8+
padding: 7rem 0; /* Add explicit padding to maintain consistent spacing */
9+
510
p {
611
font-size: 21px;
712
font-weight: 300;

src/sections/Home/CloudNativeManagement/statement.style.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import styled from "styled-components";
22

33

44
const BannerSectionWrapper = styled.section`
5+
position: relative; /* Add position for better layout control */
6+
min-height: 600px; /* Add explicit min-height */
7+
width: 100%; /* Add explicit width */
8+
59
.row {
610
margin: 0px;
711
}
@@ -10,6 +14,7 @@ const BannerSectionWrapper = styled.section`
1014
padding-right: 0px;
1115
flex: 0 0 51%;
1216
max-width: 51%;
17+
min-height: 500px; /* Add min-height to prevent shift */
1318
}
1419
.left {
1520
display: flex;

src/sections/Home/FeaturesContainer/style.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ export const Container = styled.div`
44
max-width: 1170px;
55
padding: 0 1rem;
66
margin: 5rem auto 0;
7+
min-height: 400px; /* Add explicit min-height */
8+
width: 100%; /* Add explicit width */
9+
position: relative; /* Add position for better layout control */
10+
711
.title {
812
opacity: 0;
913
transform: translateY(20px) scale(0.95);
@@ -12,6 +16,7 @@ export const Container = styled.div`
1216
text-align: center;
1317
font-weight: 400;
1418
color: ${props => props.theme.greyDEE3DEToGreen3C494F};
19+
min-height: 1.2em; /* Reserve space for title */
1520
span {
1621
color: ${(props) => props.theme.text};
1722
font-weight: 700;
@@ -26,6 +31,7 @@ export const Container = styled.div`
2631
margin-top: 1rem;
2732
margin-bottom: 3rem;
2833
font-size: 1.5rem;
34+
min-height: 1.5em; /* Reserve space for subtitle */
2935
}
3036
3137
.fade-out {

src/sections/Meshery/Meshery-integrations/Integration.style.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import styled from "styled-components";
32
import Slider from "react-slick";
43

@@ -172,6 +171,10 @@ export const IntegrationsWrapper = styled.div`
172171
max-width: 75rem;
173172
margin: 5.1875rem auto;
174173
text-align: center;
174+
min-height: 300px; /* Add explicit min-height */
175+
position: relative; /* Add position for better layout control */
176+
width: 100%; /* Add explicit width */
177+
175178
.seeAllBtn {
176179
&:hover {
177180
color: white;

src/sections/subscribe/subscribe.style.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ const SubscribeWrapper = styled.div`
55
padding: 3.125rem 0.625rem;
66
overflow: hidden;
77
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
8+
min-height: 200px; /* Add explicit min-height */
9+
position: relative; /* Add position for better layout control */
10+
width: 100%; /* Add explicit width */
811
912
h2{
1013
font-weight: 600;

0 commit comments

Comments
 (0)