Merge pull request 'feat(home): Adiciona Cards do topo desktop e mobile' (#4) from feature/main/top-cards into development

Reviewed-on: #4
This commit is contained in:
Savio Carvalho Moraes 2022-10-10 23:57:34 +00:00
commit 8f7e04c185
5 changed files with 69 additions and 3 deletions

View File

@ -66,6 +66,36 @@ body {
text-align: center;
}
.top-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
justify-content: center;
margin: 0 22% 4%;
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
background: #ffffff;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-image {
display: block;
margin-top: 10%;
}
.top-card-description {
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 150%;
/* or 150% */
margin: 8%;
text-align: center;
}
@media screen and (max-width: 1023px) {
.main-banner-desktop {
display: none;
@ -89,6 +119,13 @@ body {
.top-infocard-description {
line-height: 24px;
}
.top-cards {
display: flex;
flex-direction: column;
gap: 24px;
margin: 0 32px 80px;
}
}
@media screen and (min-width: 1024px) {
.main-banner-mobile {

Binary file not shown.

After

Width:  |  Height:  |  Size: 962 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -40,14 +40,43 @@
dui.
</p>
</figcaption>
<figure>
<img class="top-infocard-image" src="./assets/imagens/top-infocard-image.png"
alt="Banner do Infocard do Topo">
</figure>
</section>
<section class="top-cards">
<figure class="top-card">
<img class="top-card-image" src="./assets/imagens/top-card-image-01.png"
alt="Imagem do Primeiro Card do Topo" />
<figcaption>
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla
interdum.
</p>
</figcaption>
</figure>
<figure class="top-card">
<img class="top-card-image" src="./assets/imagens/top-card-image-02.png"
alt="Imagem do Segundo Card do Topo" />
<figcaption>
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla
interdum.
</p>
</figcaption>
</figure>
<figure class="top-card">
<img class="top-card-image" src="./assets/imagens/top-card-image-03.png"
alt="Imagem do Terceiro Card do Topo" />
<figcaption>
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla
interdum.
</p>
</figcaption>
</figure>
</section>
</main>
</body>