feat: Adiciona os cards de baixo desktop e mobile

This commit is contained in:
Yan Pecanha Garriga 2022-10-08 09:29:21 -03:00
parent a4457f978f
commit 490b814279
6 changed files with 103 additions and 12 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

@ -86,6 +86,41 @@ body {
text-align: center;
}
.bottom-cards {
margin-top: 140px;
background: linear-gradient(180deg, #00C8FF 0%, #15ACD6 100%);
}
.bottom-cards-wrapper {
gap: 20px;
justify-content: center;
display: grid;
grid-template-columns: repeat(2, max-content);
position: relative;
top: -60px;
}
.bottom-card {
padding: 36px 32px 66px;
align-items: center;
flex-direction: column;
display: flex;
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-size: 16px;
text-align: center;
line-height: 24px;
}
@media screen and (max-width: 414px) {
.main-banner-desktop,
.middle-banner-desktop {
@ -93,11 +128,32 @@ body {
}
}
@media screen and (min-width: 415px) {
.main-banner-mobile,
.middle-banner-mobile {
display: none;
}
}
@media screen and (max-width: 768px) {
.top-cards {
grid-template-columns: 1fr;
padding: 36px 26px;
}
.bottom-cards {
padding: 0 26px;
margin-top: 114px;
}
.bottom-cards-wrapper {
grid-template-columns: 1fr;
gap: 16px;
}
.bottom-card-description {
font-size: 14px;
}
}
@media screen and (max-width: 992px){
@ -125,22 +181,21 @@ body {
}
}
@media screen and (min-width: 993px) and (max-width: 1280px) {
.top-infocard-text {
max-width: 520px;
margin-right: 70px;
}
}
@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 (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;
margin-right: 70px;
}
}

View File

@ -72,6 +72,42 @@
<img class="middle-banner middle-banner-desktop" src="./assets/images/middle-banner-desktop.png" alt="Banner Meio do 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-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-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-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-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>
</html>