Adicona os cards do topo desktop e mobile

This commit is contained in:
Affonso Kopmann 2022-10-07 17:14:00 -03:00
parent 6d1a352851
commit 1ee5ff1bc8
5 changed files with 78 additions and 10 deletions

View File

@ -57,6 +57,51 @@ body {
}
.top-cards {
background: #f0f0f0;
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
padding: 74px 0;
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 26px 26px 34px;
background: #FFFFFF;
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-weight: 400;
font-size: 16px;
text-align: center;
}
@media screen and (min-width: 993px) and (max-width:1280px) {
.top-infocard-text {
max-width: 520px;
margin-right: 70px;
}
}
@media screen and (min-width: 415px) {
.main-banner-mobile {
display: none;
}
}
@media screen and (max-width: 414px) {
.main-banner-desktop {
display: none;
@ -85,17 +130,17 @@ body {
}
}
@media screen and (min-width: 993px) and (max-width:1280px) {
.top-infocard-text {
max-width: 520px;
margin-right: 70px;
@media screen and (max-width: 768px) {
.top-cards {
grid-template-columns: 1fr;
padding: 36px 26px;
}
}
@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;
}
}

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -48,6 +48,29 @@
</section>
<section class="top-cards">
<div class="top-card">
<img class="top-card-image" src="./_assets/images/top-card-image-01.svg" alt="Imagem do Primeiro 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-image-02.svg" 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-image-03.svg" 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>