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;
}
@media screen and (min-width: 415px) {
.main-banner-mobile {
display: none;
}
.top-cards {
display: grid;
grid-template-columns: repeat(3,max-content);
gap: 22px;
justify-content: center;
width: 100%;
}
@media screen and (max-width: 414px) {
.main-banner-desktop {
display: none;
}
.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%;
}
.top-card-image {
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) {
.top-infocard {
@ -97,11 +117,33 @@ body {
padding: 0 28px 0 28px;
text-align: center;
}
.top-infocard-image {
width: 100%;
max-width: 240px;
padding-top: 64px;
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;
}
}