challenge-landing-page/assets/styles/main.css

208 lines
3.7 KiB
CSS
Raw Normal View History

*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Inter', sans-serif;
color: #000;
}
.page-header{
display: flex;
justify-content: center;
padding: 29px 0;
background-color: #000;
}
.header-logo{
width: 12vw;
min-width: 226px;
}
/* main-banner */
.main-banner-desktop{
width: 100%;
display: block;
}
.main-banner-mobile{
display: none;
}
/* top-infocard */
.top-infocard{
display: flex;
flex-direction: column;
align-items: center;
padding: 73px 0 0;
}
.top-inforcard-subtitle{
text-align: center;
font-weight: 400;
font-size: 32px;
text-transform: uppercase;
}
.top-infocard-title{
text-align: center;
font-weight: 500;
font-size: 48px;
text-transform: uppercase;
padding: 0 0 28px;
}
.top-infocard-description{
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
.top-infocard-text{
max-width: 40%;
padding: 0 0 73px;
}
.top-infocard-image{
width: 16%;
min-width: 239px;
}
/* top-cards */
.top-cards{
display: flex;
justify-content: center;
gap: 21px;
padding: 178px 31px 50px;
}
.top-card{
display: flex;
flex-direction: column;
align-items: center;
padding: 36px 26px 26px;
gap: 27px;
background: #FFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
width: 18%;
min-height: 287px;
}
.top-card-image{
width: 34%;
}
.top-card-description{
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/* middle-banner */
.middle-banner-wrapper{
background: #E0E0E0
}
.banners-middle{
display: flex;
justify-content: center;
gap: 39px;
position: relative;
bottom: -62px;
}
.middle-banner{
justify-content: center;
width: 29%;
}
.middle-banner-image{
width: 100%;
}
/* bottom-cards */
.bottom-cards{
display: flex;
justify-content: center;
padding: 191px 0 54px;
gap: 16px;
}
.bottom-figures-card{
display: flex;
flex-direction: column;
align-items: center;
width: 23%;
padding: 35px 32px 65px;
gap: 15px;
min-height: 332px;
background: #FFF;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}
.bottom-figures-image{
width: 34%;
}
.bottom-figcapiton{
text-align: center;
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
/* layout 4K */
@media screen and (min-width: 2500px) {
.page-header{
padding: 58px
}
}
/* layaut mobile */
@media screen and (max-width: 1024px) {
.main-banner-desktop{
display: none;
}
.main-banner-mobile{
width: 100%;
display: block;
}
/* top infocard */
.top-inforcard-subtitle{
font-size: 20px;
}
.top-infocard-title{
font-size: 28px;
}
.top-infocard-text{
text-align: center;
max-width: 86%;
padding: 0 0 73px;
}
.top-infocard-image {
width: 58%
}
/* top-cards */
.top-cards{
flex-direction: column;
align-items: center;
padding: 90px 0;
}
.top-card{
width: 84%;
gap: 37px;
}
.top-card-image{
width: 25%;
}
.banners-middle{
display: grid;
grid-template-areas:
"b1 b2"
"b3 b3";
justify-items: center;
padding: 0px 23px 0px;
gap: 14px;
top: 32px;
}
.middle-banner{
width: 100%;
}
.Banner1{
grid-area: b1;
}
.Banner2{
grid-area: b2;
} .Banner3{
grid-area: b3;
}
/* bottom-cards */
.bottom-cards{
flex-direction: column;
align-items: center;
padding: 96px 23px;
}
.bottom-figures-card{
width: 94%;
}
}