adiciona os cards do topo desktop e mobile

This commit is contained in:
Emilly Schuenck de Lima 2022-10-07 19:01:56 -03:00
parent 2b392c9272
commit a5de746bd5
5 changed files with 72 additions and 1 deletions

View File

@ -57,12 +57,51 @@ font-size: 16px;
line-height: 24px; line-height: 24px;
} }
.top-cards{
display: grid;
grid-template-columns:repeat(3, max-content) ;
background: #FFFFFF;
justify-content: center;
padding: 74px 0;
gap: 20px
;
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
background: #FFFFFF;
padding: 26px 26px 34px;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-img {
display: block;
margin-bottom: 26px;
}
.top-card-descricao{
max-width: 300px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
@media screen and (max-width:414px){ @media screen and (max-width:414px){
.main-banner-desktop{ .main-banner-desktop{
display: none; display: none;
} }
} }
@media screen and (max-width:768px) {
.top-cards{
grid-template-columns: 1fr;
padding:36px 26px ;
}
}
@media screen and (max-width:992px) { @media screen and (max-width:992px) {
.top-infocard{ .top-infocard{
flex-direction: column; flex-direction: column;
@ -98,9 +137,19 @@ line-height: 24px;
} }
} }
@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){ @media screen and (min-width:415px){
.main-banner-mobile{ .main-banner-mobile{
display: none; display: none;
} }
} }

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

@ -44,6 +44,28 @@
<img class="top-infocard-img" src="./assets/imagens/top-infocard-img.png" alt="Banner do infocard do top" /> <img class="top-infocard-img" src="./assets/imagens/top-infocard-img.png" alt="Banner do infocard do top" />
</section> </section>
<section class="top-cards">
<div class="top-card">
<img class="top-card-img" src="./assets/imagens/top-card-img-01.png" alt="imagem do primeiro card do topo" />
<p class="top-card-descricao">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-img" src="./assets/imagens/top-card-img-02.png" alt="imagem do segundo card do topo" />
<p class="top-card-descricao">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-img" src="./assets/imagens/top-card-img-03.png" alt="imagem do terceiro card do topo" />
<p class="top-card-descricao">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </p>
</div>
</section>
</main> </main>
</body> </body>