Adiciona os cards do topo no mobile e desktop

This commit is contained in:
Saulo Klein Nery 2022-10-07 14:48:54 -03:00
parent 80b518f59f
commit cc8c441d9a
5 changed files with 79 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -56,6 +56,37 @@ body{
line-height: 24px;
}
.top-cards{
padding: 74px 0;
display: grid;
grid-template-columns: repeat(3, max-content);
background-color: #F0F0F0;
justify-content: center;
gap: 20px;
}
.top-card{
display: flex;
flex-direction: column;
gap: 26px;
padding: 0 26px;
align-items: center;
background-color: #FFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-image{
display: block;
margin-top: 35px;
}
.top-card-description{
max-width: 300px;
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
}
@media screen and (max-width: 414px){
.main-banner-desktop{
@ -63,11 +94,32 @@ body{
}
}
@media screen and (max-width: 768px){
.top-cards{
grid-template-columns: 1fr;
padding: 36px 26px;
gap: 16px;
}
.top-infocard{
padding: 84px 26px 158px;
}
}
@media screen and (min-width: 769px) and (max-width:1200px){
.top-cards{
grid-template-columns: repeat(2, max-content);
}
.top-infocard{
padding-bottom: 96px;
}
}
@media screen and (max-width: 992px){
.top-infocard{
flex-direction: column;
gap: 68px;
padding: 84px 26px 158px;
}
.top-infocard-subtitle{

View File

@ -48,6 +48,32 @@
<img class="top-infocard-image" src="./assets/images/top-infocard-image.png" alt="Banner do Infocard do Topo">
</section>
<section class="top-cards">
<div class="top-card">
<img class="top-card-image" src="./assets/images/top-card-image01.png" alt="Imagem do Primero Card do Topo">
<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 class="top-card-image" src="./assets/images/top-card-image02.png" alt="Imagem do Segundo Card do Topo">
<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 class="top-card-image" src="./assets/images/top-card-image03.png" alt="Imagem do Terceiro Card do Topo">
<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>
</html>