Adiciona Bottom info cards responsive

This commit is contained in:
DanielMoliari 2022-10-08 18:44:00 -03:00
parent 4c6a25fe3e
commit ffdaa2d970
8 changed files with 92 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 947 KiB

After

Width:  |  Height:  |  Size: 947 KiB

View File

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 142 KiB

View File

@ -86,25 +86,57 @@ body{
text-align: center;
}
.infocard-banner{
.middle-banner{
width: 100%;
display: block;
}
.bottom-cards{
margin-top: 140px;
background: linear-gradient(180deg, #00C8FF 0%, #15ACD6 100%);
}
.bottom-cards-wrapper{
display: grid;
grid-template-columns: repeat(2, max-content);
gap: 20px;
justify-content: center;
position: relative;
top: -60px;
}
.bottom-card{
display: flex;
flex-direction: column;
align-items: center;
padding: 36px 32px 66px;
max-width: 432px;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.bottom-card-image{
display: block;
margin-bottom: 14px;
}
.bottom-card-description{
max-width: 367px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
@media screen and (max-width: 414px){
.main-banner-desktop{
display: none;
}
.infocard-banner-desktop{
.main-banner-desktop,
.middle-banner-desktop{
display: none;
}
}
@media screen and (min-width: 415px){
.main-banner-mobile{
display: none;
}
.infocard-banner-mobile{
.main-banner-mobile,
.middle-banner-mobile{
display: none;
}
}
@ -114,6 +146,19 @@ body{
grid-template-columns: 1fr;
padding: 36px 26px;
}
.bottom-cards{
margin-top: 114px;
padding: 0 26px;
}
.bottom-cards-wrapper{
grid-template-columns: 1fr;
gap: 16px;
}
.bottom-card-description{
font-size: 14px;
}
}
@media screen and (min-width: 769px) and (max-width: 1200px){
@ -122,6 +167,12 @@ body{
}
}
@media screen and (min-width: 769px) and (max-width: 992px){
.bottom-card-description{
max-width: 280px;
}
}
@media screen and (max-width: 992px){
.top-infocard{
flex-direction: column;
@ -138,6 +189,7 @@ body{
margin-bottom: 20px;
}
.top-infocard-image{
width: 100%;
max-width: 240px;
}
}

View File

@ -61,8 +61,37 @@
</section>
<section>
<img class="infocard-banner infocard-banner-desktop" src="/assets/images/infocard-banner-desktop.png" alt="Banner Infocard Desktop">
<img class="infocard-banner infocard-banner-mobile" src="/assets/images/infocard-banner-mobile.png" alt="Banner Infocard Mobile">
<img class="middle-banner middle-banner-desktop" src="/assets/images/middle-banner-desktop.png" alt="Banner do Meio Desktop">
<img class="middle-banner middle-banner-mobile" src="/assets/images/middle-banner-mobile.png" alt="Banner do Meio Mobile">
</section>
<section class="bottom-cards">
<div class="bottom-cards-wrapper">
<div class="bottom-card">
<img class="bottom-card-image" src="/assets/images/bottom-card-image-01.png" alt="Imagem do Primeiro Card de Baixo">
<p class="bottom-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
<div class="bottom-card">
<img class="bottom-card-image" src="/assets/images/bottom-card-image-02.png" alt="Imagem do Segundo Card de Baixo">
<p class="bottom-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
<div class="bottom-card">
<img class="bottom-card-image" src="/assets/images/bottom-card-image-03.png" alt="Imagem do Terceiro Card de Baixo">
<p class="bottom-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
<div class="bottom-card">
<img class="bottom-card-image" src="/assets/images/bottom-card-image-04.png" alt="Imagem do Quarto Card de Baixo">
<p class="bottom-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
</div>
</section>
</main>
</body>