Adiciona top Cards, desktop e mobile

This commit is contained in:
José Gregorio Mata Rodríguez 2022-10-12 10:56:11 -03:00
parent 0f9d13301b
commit 49a538aeb3
2 changed files with 58 additions and 3 deletions

View File

@ -64,20 +64,48 @@ body {
align-content: center;
}
.top-cards {
background: #FFFFFF;
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 21px;
justify-content: center;
padding: 27px 32px;
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
padding: 36px 26px 34px;
justify-items: center;
}
.top-card-image {
display: block;
margin-bottom: 26px;
}
.top-card-desc {
max-width: 300px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/*-----------Breakpoints-----------*/
@media screen and (max-width: 525px) {
@media screen and (max-width: 600px) {
.main-banner-desktop {
display: none;
}
}
@media screen and (min-width: 526px) {
@media screen and (min-width: 601px) {
.main-banner-mobile {
display: none;
}
@ -100,4 +128,15 @@ body {
padding-right: 29px;
padding-bottom: 65px;
}
}
@media screen and (max-width: 1024px) {
.top-cards {
grid-template-columns: 1fr;
}
.top-card {
max-width: 350px;
margin: 0 auto;
}
}

View File

@ -45,8 +45,24 @@
<img class="top-infocard-image" src="./assets/images/banner-top.png" alt="Banner Top" />
</section>
<section class="top-cards">
<div class="top-card">
<img class="top-card-image" src="./assets/images/top-card-image01.png" alt="Image do primeiro card do topo" />
<p class="top-card-desc">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </p>
</div>
<div class="top-card">
<img class="top-card-image" src="./assets/images/top-card-image02.png" alt="Image do segundo card do topo" />
<p class="top-card-desc">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </p>
</div>
<div class="top-card">
<img class="top-card-image" src="./assets/images/top-card-image03.png" alt="Image do terceiro card do topo" />
<p class="top-card-desc">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </p>
</div>
</section>
</main> <!-----------------Fim do main------------->