fix hero section on mobile
This commit is contained in:
@@ -61,12 +61,16 @@ export const HeroBtnWrapper = styled.div`
|
|||||||
|
|
||||||
export const HeroRow = styled.div`
|
export const HeroRow = styled.div`
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-auto-columns: minmax(auto, 1fr);
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: 20px;
|
||||||
align-items: top;
|
align-items: top;
|
||||||
grid-template-areas: 'col1 col2' };
|
grid-template-areas: "col1 col2";
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
grid-template-areas: 'col2' 'col1';
|
grid-template-columns: 1fr;
|
||||||
|
grid-template-areas:
|
||||||
|
"col1"
|
||||||
|
"col2";
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@@ -74,7 +78,6 @@ export const HeroNewsItem = styled.div`
|
|||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
/* line-height: 16px; */
|
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: start;
|
justify-content: start;
|
||||||
@@ -111,12 +114,16 @@ export const HeroColumn1 = styled.div`
|
|||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
margin-top: 60px;
|
margin-top: 60px;
|
||||||
padding: 10px 15px;
|
padding: 10px 15px;
|
||||||
padding: 0 15px;
|
|
||||||
grid-area: col1;
|
grid-area: col1;
|
||||||
align-items: left;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-top: 20px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const HeroColumn2 = styled.div`
|
export const HeroColumn2 = styled.div`
|
||||||
@@ -126,6 +133,10 @@ export const HeroColumn2 = styled.div`
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const TextWrapper = styled.div`
|
export const TextWrapper = styled.div`
|
||||||
|
|||||||
Reference in New Issue
Block a user