forked from M3-Academy/challenge-landing-page
233 lines
3.7 KiB
CSS
233 lines
3.7 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
border: none;
|
|
}
|
|
|
|
body{
|
|
font-family: 'Inter', sans-serif;
|
|
color: #000000;
|
|
}
|
|
|
|
.page-header{
|
|
display: flex;
|
|
justify-content: center;
|
|
background: #000000;
|
|
padding: 28px 0;
|
|
}
|
|
|
|
.header-logo {
|
|
display: block;
|
|
}
|
|
|
|
.main-banner {
|
|
width: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.top-infocard {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
|
|
padding: 72px 0 180px;
|
|
}
|
|
|
|
.top-infocard-text {
|
|
width: 40%;
|
|
text-align: center;
|
|
}
|
|
|
|
.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;
|
|
padding-bottom: 28px;
|
|
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.top-infocard-description{
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
padding-bottom: 72px;
|
|
}
|
|
|
|
.top-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, max-content);
|
|
gap: 20px;
|
|
justify-content: center;
|
|
|
|
padding-bottom: 80px;
|
|
}
|
|
|
|
.top-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
background: #FFFFFF;
|
|
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
|
|
|
|
padding: 26px 26px 34px;
|
|
}
|
|
|
|
.top-card-image {
|
|
display: block;
|
|
margin-bottom: 26px;
|
|
}
|
|
|
|
.top-card-description {
|
|
max-width: 300px;
|
|
text-align: center;
|
|
line-height: 24px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.middle-banner {
|
|
background: #E0E0E0;
|
|
|
|
display: grid;
|
|
grid-template-columns: repeat(3, max-content);
|
|
justify-content: center;
|
|
gap: 40px;
|
|
|
|
|
|
max-height: 530px;
|
|
|
|
padding: 0 72px;
|
|
}
|
|
|
|
.middle-banner-image {
|
|
width: 100%;
|
|
margin-top: 62px;
|
|
}
|
|
|
|
/* .middle-banner-image img {
|
|
width: 100%;
|
|
} */
|
|
|
|
|
|
/* RESPONSIVIDADE */
|
|
|
|
|
|
@media screen and (max-width: 414px) {
|
|
.main-banner-desktop {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 415px) {
|
|
.main-banner-mobile, .middle-banner-mobile {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 768px){
|
|
.top-infocard {
|
|
padding-bottom: 90px;
|
|
}
|
|
|
|
.top-cards {
|
|
grid-template-columns: 1fr;
|
|
padding: 36px 32px 80px;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 1024px) {
|
|
.top-infocard-text {
|
|
width: 100%;
|
|
padding: 0 28px;
|
|
}
|
|
|
|
.top-infocard-subtitle {
|
|
font-size: 20px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.top-infocard-title {
|
|
font-size: 28px;
|
|
line-height: 34px;
|
|
padding-bottom: 16px;
|
|
}
|
|
|
|
.top-infocard-image {
|
|
width: 100%;
|
|
max-width: 240px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 2040px) {
|
|
.middle-banner {
|
|
max-height: 398px;
|
|
}
|
|
|
|
.middle-banner-image {
|
|
width: 420px;
|
|
margin-top: 46px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 1530px) {
|
|
.middle-banner {
|
|
max-height: 318px;
|
|
}
|
|
|
|
.middle-banner-image {
|
|
width: 332px;
|
|
margin-top: 36px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 1200px) {
|
|
.middle-banner {
|
|
grid-template-columns: 45% 45%;
|
|
grid-template-areas: "banner-grid-1 banner-grid-2"
|
|
"banner-grid-3 banner-grid-3";
|
|
gap: 14px;
|
|
|
|
padding: 0;
|
|
|
|
max-height: max-content;
|
|
}
|
|
|
|
.banner-grid-1 {
|
|
grid-area: banner-grid-1;
|
|
margin-top: 32px;
|
|
}
|
|
|
|
.banner-grid-2 {
|
|
grid-area: banner-grid-2;
|
|
margin-top: 32px;
|
|
}
|
|
|
|
.banner-grid-3 {
|
|
grid-area: banner-grid-3;
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.middle-banner-image {
|
|
width: 100%;
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 769px) and (max-width: 1200px) {
|
|
.top-cards {
|
|
grid-template-columns: repeat(2, max-content);
|
|
padding: 36px 26px 80px;
|
|
}
|
|
} |