feat: Adiciona estilização do top-infocard e responsividade

This commit is contained in:
Gabriel Gomes Fernandes 2022-10-13 19:50:18 -03:00
parent 9f781e207e
commit e7147475a0

View File

@ -67,16 +67,36 @@ body {
margin: 0 auto; margin: 0 auto;
} }
@media screen and (min-width: 415px) { .top-cards {
.main-banner-mobile { display: grid;
display: none; grid-template-columns: repeat(3,max-content);
gap: 22px;
justify-content: center;
width: 100%;
} }
.top-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 26px 26px 34px;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
width: 100%;
} }
@media screen and (max-width: 414px) {
.main-banner-desktop { .top-card-image {
display: none; display: block;
margin-bottom: 26px;
} }
.top-card-description {
display: flex;
margin: 0 auto;
max-width: 300px;
font-weight: 400;
font-size: 16px;
text-align: center;
} }
@media screen and (max-width:768px) { @media screen and (max-width:768px) {
.top-infocard { .top-infocard {
@ -104,4 +124,26 @@ body {
padding-top: 64px; padding-top: 64px;
padding-bottom: 90px; padding-bottom: 90px;
} }
.top-cards {
grid-template-columns: 1fr;
padding: 0 32px ;
}
}
@media screen and (min-width: 769px) and (max-width: 1200px) {
.top-cards {
grid-template-columns: repeat(2, max-content);
}
}
@media screen and (min-width: 415px) {
.main-banner-mobile {
display: none;
}
}
@media screen and (max-width: 414px) {
.main-banner-desktop {
display: none;
}
} }