fix(home): add adaptive to sections
This commit is contained in:
148
src/views/home/about/styles.module.scss
Normal file
148
src/views/home/about/styles.module.scss
Normal file
@@ -0,0 +1,148 @@
|
||||
.About{
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
.Inner{
|
||||
margin: 0 auto;
|
||||
max-width: rem(1540px);
|
||||
padding: rem(80px) rem(10px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.Title {
|
||||
font-family: $font-roboto;
|
||||
font-weight: 500;
|
||||
font-size: rem(32px);
|
||||
line-height: 100%;
|
||||
color: $color-title;
|
||||
text-align: center;
|
||||
margin-bottom: rem(80px);
|
||||
}
|
||||
|
||||
.Block{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: rem(40px);
|
||||
|
||||
@include iflaptop{
|
||||
flex-direction: row;
|
||||
}
|
||||
}
|
||||
|
||||
.Card {
|
||||
flex: 1;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-rows: 1fr 1fr;
|
||||
gap: rem(40px) rem(20px);
|
||||
grid-template-areas:
|
||||
"left right"
|
||||
"bottom bottom";
|
||||
margin: 0;
|
||||
padding: rem(20px);
|
||||
border-radius: rem(28px);
|
||||
|
||||
background-color: #FFFFFF;
|
||||
background-image: linear-gradient(185deg, #58c644 55%, #ffffff 0%);
|
||||
box-shadow: rem(15px) 0 rem(40px) 0 rgba(0, 0, 0, 0.5);
|
||||
transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
|
||||
|
||||
@include iftablet{
|
||||
gap: rem(80px) rem(20px);
|
||||
margin: 0 rem(40px);
|
||||
padding: rem(40px);
|
||||
max-width: rem(760px);
|
||||
}
|
||||
@include iflaptop{
|
||||
max-width: unset;
|
||||
}
|
||||
|
||||
.Left{
|
||||
grid-area: left;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
font-family: $font-roboto;
|
||||
font-weight: 300;
|
||||
font-size: rem(16px);
|
||||
line-height: 130%;
|
||||
color: $color-white;
|
||||
text-align: center;
|
||||
|
||||
@include iftablet{
|
||||
font-size: rem(20px);
|
||||
}
|
||||
|
||||
|
||||
& p:first-child{
|
||||
font-weight: 500;
|
||||
font-size: rem(20px);
|
||||
margin-bottom: rem(16px);
|
||||
|
||||
@include iftablet{
|
||||
font-size: rem(28px);
|
||||
margin-bottom: rem(16px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.Right{
|
||||
grid-area: right;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
font-family: $font-roboto;
|
||||
font-weight: 300;
|
||||
font-size: rem(16px);
|
||||
line-height: 130%;
|
||||
color: $color-white;
|
||||
text-align: center;
|
||||
|
||||
@include iftablet{
|
||||
font-size: rem(20px);
|
||||
}
|
||||
|
||||
|
||||
& p:first-child{
|
||||
font-weight: 500;
|
||||
font-size: rem(20px);
|
||||
margin-bottom: rem(16px);
|
||||
|
||||
@include iftablet{
|
||||
font-size: rem(28px);
|
||||
margin-bottom: rem(16px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.Bottom{
|
||||
grid-area: bottom;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.Slider {
|
||||
display: block;
|
||||
padding: rem(20px) rem(20px);
|
||||
width: 100%;
|
||||
|
||||
@include iftablet{
|
||||
flex: 1;
|
||||
display: block;
|
||||
padding: 0 rem(20px);
|
||||
}
|
||||
}
|
||||
|
||||
.Slide {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
Reference in New Issue
Block a user