Adiciona os cards de baixo e mobile

This commit is contained in:
Lorena Camila Coelho Máximo 2022-10-12 20:22:02 -04:00
parent 75d602a9ea
commit c9ed81769a
8 changed files with 150 additions and 32 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 947 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

View File

@ -20,7 +20,9 @@ body {
display: block;
}
.main-banner {
.main-banner,
.middle-banner {
display: block;
width: 100%;
}
@ -85,19 +87,81 @@ body {
text-align: center;
}
.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);
justify-content: center;
gap: 20px;
position: relative;
top: -60px;
}
.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-size: 16px;
line-height: 24px;
text-align: center;
}
@media screen and (max-width: 414px) {
.main-banner-desktop {
.main-banner-desktop,
.middle-banner-desktop {
display: none;
}
}
@media screen and (min-width: 415px) {
.main-banner-mobile {
.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 {
margin-top: 114px;
padding: 0 26px;
}
.bottom-cards-wrapper {
grid-template-columns: 1fr;
gap: 16px;
}
.bottom-card-description {
font-size: 14px;
}
}
@media screen and (max-width: 992px) {
.top-infocard {
flex-direction: column;
@ -124,23 +188,21 @@ 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;
margin-right: 70px;
}
}
@media screen and (max-width: 768px) {
.top-cards{
grid-template-columns: 1fr;
padding: 36px 26px;
}
}
@media screen and (min-width: 769px) and (max-width: 1200px) {
.top-cards{
grid-template-columns: repeat(2, max-content);
}
}

View File

@ -44,33 +44,89 @@
</p>
</div>
<img class="top-infocard-image" src="./assets/images/top-infocard-image.png" alt="Banner de Infocard do Topo" />
<img class="top-infocard-image" src="./assets/images/top-infocard-image.png"
alt="Banner de Infocard do Topo" />
</section>
<section class="top-cards">
<div class="top-card">
<img class="top-card-image" src="/assets/images/top-cards-image-01.png" alt="Imagem do Primeiro Card do Topo" />
<img class="top-card-image" src="/assets/images/top-cards-image-01.png"
alt="Imagem do Primeiro Card do Topo" />
<p class="top-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="top-card">
<img class="top-card-image" src="/assets/images/top-cards-image-02.png" alt="Imagem do Segundo Card do Topo" />
<img class="top-card-image" src="/assets/images/top-cards-image-02.png"
alt="Imagem do Segundo Card do Topo" />
<p class="top-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="top-card">
<img class="top-card-image" src="/assets/images/top-cards-image-03.png" alt="Imagem do Terceiro Card do Topo" />
<img class="top-card-image" src="/assets/images/top-cards-image-03.png"
alt="Imagem do Terceiro Card do Topo" />
<p class="top-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>
</section>
<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 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 do 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 do 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 do 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 do 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>