feat(home): cria top-cards desktop e mobile

This commit is contained in:
Andrea Matsunaga 2022-10-11 19:07:04 -03:00
parent 2438d2c810
commit bf78657674
5 changed files with 63 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -56,6 +56,35 @@ body {
font-size: 16px;
}
.top-cards {
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
padding: 74px 0;
background: #F0F0F0;
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 34px 26px 26px;
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;
text-align: center;
line-height: 24px;
font-size: 16px;
}
@media screen and (max-width: 414px) {
.main-banner-desktop {
@ -63,6 +92,13 @@ body {
}
}
@media screen and (max-width: 768px) {
.top-cards {
grid-template-columns: 1fr;
padding: 36px 26px;
}
}
@media screen and (max-width: 992px) {
.top-infocard {
flex-direction: column;
@ -95,6 +131,12 @@ body {
}
}
@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

@ -38,6 +38,27 @@
<img class="top-infocard-image" src="./assets/img/png_jpg/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/img/png_jpg/top-card-image-01.png" 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/img/png_jpg/top-card-image-02.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/img/png_jpg/top-card-image-03.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>