feat: adiciona cards do topo

This commit is contained in:
Vitor Soares 2022-10-10 21:53:20 -03:00
parent 6da261ecab
commit eb3195dfee
2 changed files with 70 additions and 3 deletions

View File

@ -43,7 +43,6 @@ body {
}
.top-infocard-subtitle {
font-weight: 400;
font-size: 32px;
line-height: 39px;
text-align: center;
@ -60,7 +59,35 @@ body {
}
.top-infocard-description {
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/*Adiciona top cards*/
.top-cards {
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
padding: 0 0 80px;
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 36px 26px 26px;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-image {
display: block;
margin-bottom: 26px;
}
.top-card-description {
max-width: 300px;
font-size: 16px;
line-height: 24px;
text-align: center;
@ -73,6 +100,13 @@ body {
}
}
@media screen and (max-width: 768px) {
.top-cards {
grid-template-columns: 1fr;
padding: 0 26px 80px;
}
}
@media screen and (max-width: 992px) {
.top-infocard {
padding: 70px 30px 90px;
@ -97,3 +131,9 @@ body {
max-width: 240px;
}
}
@media screen and (min-width: 768px) and (max-width: 1200px) {
.top-cards {
grid-template-columns: repeat(2, max-content);
}
}

View File

@ -36,7 +36,34 @@
</p>
</div>
<img class="top-infocard-image" src="assets/imagens/top-infocard-image.png" alt="Banner Infocard Superior">
<img class="top-infocard-image" src="assets/imagens/top-infocard-image.png" alt="Banner Infocard Superior" />
</section>
<!--Adiciona top cards-->
<section class="top-cards">
<div class="top-card">
<img src="assets/imagens/top-card-image1.png" alt="Imagem do Primeiro Card do topo" class="top-card-image" />
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
<div class="top-card">
<img src="assets/imagens/top-card-image2.png" alt="Imagem do Segundo Card do topo" class="top-card-image" />
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
<div class="top-card">
<img src="assets/imagens/top-card-image3.png" alt="Imagem do Terceiro Card do topo" class="top-card-image" />
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
</section>
</main>
</body>