forked from M3-Academy/challenge-landing-page
197 lines
3.1 KiB
CSS
197 lines
3.1 KiB
CSS
* {
|
|
margin: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body{
|
|
font-family: 'Inter', sans-serif;
|
|
color: #000000;
|
|
}
|
|
|
|
/*** HEADER ***/
|
|
|
|
.page-header{
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: #000000;
|
|
padding: 28px 0;
|
|
}
|
|
|
|
.header-logo{
|
|
display: block;
|
|
}
|
|
|
|
/*** MAIN BANNER ***/
|
|
|
|
.main-banner-desktop{
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
.main-banner-mobile{
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
/*** TOP INFOCARD ***/
|
|
|
|
.top-infocard {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-top: 74px;
|
|
}
|
|
|
|
.top-infocard-subtitle{
|
|
font-weight: 400;
|
|
font-size: 32px;
|
|
line-height: 39px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.top-infocard-title{
|
|
font-weight: 500;
|
|
font-size: 48px;
|
|
line-height: 58px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.top-infocard-description{
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
margin-top: 28px;
|
|
max-width: 40%;
|
|
}
|
|
|
|
.top-infocard-image{
|
|
display: block;
|
|
margin-top: 74px;
|
|
}
|
|
|
|
/*** TOP CARDS ***/
|
|
.top-cards{
|
|
margin-top: 180px;
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 18%);
|
|
gap: 20px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.card{
|
|
width: 100%;
|
|
justify-content: center;
|
|
align-items: center;
|
|
text-align: center;
|
|
background: #FFFFFF;
|
|
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
|
|
}
|
|
|
|
.card-image{
|
|
margin-top: 36px;
|
|
}
|
|
|
|
.card-description{
|
|
margin: 28px 26px;
|
|
}
|
|
|
|
/*** MID BANNER ***/
|
|
|
|
.mid-banners{
|
|
background: #E0E0E0;
|
|
margin-top: 80px;
|
|
padding: 0 72px;
|
|
}
|
|
|
|
.mid-banner-wrapper{
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 30%);
|
|
gap: 40px;
|
|
justify-content: center;
|
|
position: relative;
|
|
bottom: -62px;
|
|
|
|
}
|
|
|
|
.mid-banner-image{
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
@media screen and (max-width: 1024px){
|
|
/*** MAIN BANNER ***/
|
|
.main-banner-desktop{
|
|
display: none;
|
|
}
|
|
|
|
/*** TOP INFOCARD ***/
|
|
.top-infocard{
|
|
padding: 0 28px 0;
|
|
}
|
|
|
|
.top-infocard-subtitle{
|
|
font-size: 20px;
|
|
line-height: 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.top-infocard-title{
|
|
text-align: center;
|
|
font-size: 28px;
|
|
line-height: 34px;
|
|
}
|
|
|
|
.top-infocard-description{
|
|
max-width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.top-infocard-image{
|
|
margin-top: 65px;
|
|
width: 100%;
|
|
}
|
|
|
|
/*** TOP CARDS ***/
|
|
.top-cards{
|
|
grid-template-columns: repeat(1, 100%);
|
|
padding: 0 28px 0;
|
|
margin-top: 90px;
|
|
gap: 24px;
|
|
}
|
|
|
|
.card{
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
/*** MID BANNER ***/
|
|
.mid-banners{
|
|
padding: 0 24px 0;
|
|
}
|
|
.mid-banner-wrapper{
|
|
width: 100%;
|
|
grid-template-columns: repeat(2, 45%);
|
|
gap: 0;
|
|
column-gap: 14px;
|
|
row-gap: 24px;
|
|
bottom: -32px;
|
|
}
|
|
|
|
.mid-banner-3{
|
|
grid-area: 2 / 1 /span 2/ span 2;
|
|
}
|
|
|
|
}
|
|
|
|
@media screen and (min-width: 1025px){
|
|
/*** MAIN BANNER ***/
|
|
.main-banner-mobile{
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/*** 2500 px ***/
|
|
@media (min-width: 2500px){
|
|
|
|
} |