Adiciona os cards de baixo desktop e mobile

This commit is contained in:
Wellington Duarte Santos 2022-10-07 14:57:49 -03:00
parent 3b8c7e09e6
commit 6585ba90f4
6 changed files with 122 additions and 20 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

@ -54,7 +54,7 @@
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-image03.png" alt="Imagem do Primeiro Card do Topo">
<p class="top-card-description">Lorem ipsum dolor sit amet,
@ -67,7 +67,50 @@
<img class="middle-banner-desktop" src="./assets/images/middle-banner-desktop.png" alt="Banner do Meio Desktop" />
<img class="middle-banner-mobile" src="./assets/images/middle-banner-mobile.png" alt="Banner do Meio Desktop" />
</section>
</main>
<section class="bottom-cards">
<div class="bottom-cards-wrapper">
<div class="bottom-card">
<img class="bottom-card-image" src="./assets/images/bottom-card-image01.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-image02.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-image03.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-image04.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>
</html>

View File

@ -89,18 +89,81 @@ body{
text-align: center;
}
.bottom-cards-wrapper{
display: grid;
grid-template-columns: repeat(2, max-content);
gap: 20px;
justify-content: center;
position: relative;
top: -60px
}
.bottom-cards{
margin-top: 140px;
background: linear-gradient(180deg, #00C8FF 0%, #15ACD6 100%);
}
.bottom-card{
display: flex;
flex-direction: column;
align-items: center;
padding: 36px 32px 66px;
background: #FFFFFF;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}
.bottom-card-image{
display: block;
margin-bottom: 14px;
}
.bottom-card-description{
max-width: 368px;
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
}
@media screen and (max-width: 414px){
.main-banner-desktop, .middle-banner-desktop{
display: none;
}
}
@media screen and (min-width: 415px){
.main-banner-mobile, .middle-banner-mobile{
display: none;
}
}
@media screen and (max-width: 415px){
.main-banner-mobile, .middle-banner-mobile{
max-width: 415px;
width: 100%;
}
}
@media screen and (max-width: 768px){
.top-cards{
grid-template-columns: 1fr;
padding: 36px 26px;
gap: 16px;
}
.bottom-cards-wrapper{
grid-template-columns: 1fr;
gap: 16px;
}
.bottom-cards{
margin-top: 114px;
padding: 0 16px;
}
.bottom-card-description{
font-size: 14px;
}
}
@media screen and (max-width: 992px){
@ -129,6 +192,20 @@ 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: 769px) and (max-width: 992px) {
.bottom-card-description{
max-width: 280px;
}
}
@media screen and (min-width: 993px) and (max-width: 1280px) {
.top-infocard-text{
max-width: 520px;
@ -136,21 +213,3 @@ 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, .middle-banner-mobile{
display: none;
}
}
@media screen and (max-width: 415px){
.main-banner-mobile{
max-width: 415px;
width: 100%;
}
}