corrige erros de responsividade

This commit is contained in:
Vinicius 2022-10-13 17:59:56 -03:00
parent 51f3dd03ae
commit ca8224f906
2 changed files with 60 additions and 43 deletions

View File

@ -31,7 +31,6 @@ body {
display: grid; display: grid;
column-gap: 65px; column-gap: 65px;
margin-top: 73px; margin-top: 73px;
width: 100%;
} }
.top-infocard-text { .top-infocard-text {
@ -73,7 +72,7 @@ body {
grid-template-columns: repeat(3, max-content); grid-template-columns: repeat(3, max-content);
gap: 21px; gap: 21px;
margin-bottom: 80px; margin-bottom: 80px;
width: 100%;
height: auto; height: auto;
justify-content: center; justify-content: center;
} }
@ -88,7 +87,7 @@ body {
} }
.top-card-image { .top-card-image {
width: 35%; width: 30%;
margin-bottom: 27px; margin-bottom: 27px;
} }
@ -105,23 +104,25 @@ body {
display: grid; display: grid;
grid-template-columns: repeat(3, max-content); grid-template-columns: repeat(3, max-content);
justify-content: center; justify-content: center;
width: 100%; gap: 39px;
} }
.middle-banner { .middle-banner {
width: 60%; width: 60%;
display: flex; display: flex;
justify-content: space-evenly;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
position: relative; position: relative;
bottom: -64px; bottom: -64px;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
height: auto;
} }
.middle-banner-wrapper { .middle-banner-wrapper {
position: relative; position: relative;
display: flex; display: grid;
bottom: -130px; bottom: -130px;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -168,12 +169,11 @@ body {
justify-content: center; justify-content: center;
display: grid; display: grid;
gap: 30px; gap: 30px;
width: 100%;
} }
.bottom-infocard-image-desktop { .bottom-infocard-image-desktop {
margin-bottom: 116px; margin-bottom: 116px;
width: 95%; width: 70%;
height: auto; height: auto;
position: relative; position: relative;
margin-left: auto; margin-left: auto;
@ -266,16 +266,17 @@ body {
@media (max-width: 1024px) { @media (max-width: 1024px) {
.banner-desktop, .banner-desktop,
.middle-banner,
.middle-banner-desktop, .middle-banner-desktop,
.bottom-infocard-image-desktop { .bottom-infocard-image-desktop {
display: none; display: none;
} }
.top-infocard { .top-infocard {
gap: 80px; gap: 90px;
} }
.top-infocard-text { .top-infocard-text {
max-width: 250px; width: 90%;
} }
.top-infocard-subtitle { .top-infocard-subtitle {
@ -288,34 +289,53 @@ body {
} }
.top-infocard-description { .top-infocard-description {
max-width: 330px; width: 90%;
} }
.top-infocard-image { .top-infocard-image {
max-width: 240px; width: 65%;
width: 100%; margin-top: 65px;
margin-top: 66px;
} }
.top-cards { .top-cards {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
.middle-banner-wrapper {
grid-template-columns: auto auto auto auto;
grid-gap: 14px;
}
.image-1 {
grid-area: 1 / 1 / span 1 / span 1;
}
.image-2 {
grid-area: 2 / 1 / span 1 / span 1;
}
.image-3 {
grid-area: 1/ 2 / span 1 / span 2;
display: block;
}
.bottom-cards { .bottom-cards {
grid-template-columns: 300px; grid-template-columns: 1fr;
margin-right: 0; margin-bottom: 98px;
} }
.bottom-infocard { .bottom-infocard {
gap: 80px; gap: 50px;
} margin-bottom: 87px;
.bottom-infocard {
gap: 104px;
} }
.bottom-infocard-text { .bottom-infocard-text {
max-width: 250px; width: 90%;
order: 2;
}
.bottom-infocard-image-desktop {
order: 1;
} }
.bottom-infocard-title { .bottom-infocard-title {
@ -323,7 +343,7 @@ body {
} }
.bottom-infocard-description { .bottom-infocard-description {
max-width: 250px; width: 90%;
} }
.page-footer { .page-footer {
@ -331,7 +351,7 @@ body {
} }
.footer-text { .footer-text {
max-width: 280px; width: 70%;
text-align: center; text-align: center;
} }
} }

View File

@ -121,27 +121,24 @@
src="./assets/images/middle-banner-desktop-3.png" src="./assets/images/middle-banner-desktop-3.png"
alt="Banner do Meio Desktop 3" alt="Banner do Meio Desktop 3"
/> />
<div class="middle-banner-wrapper">
<div class="middle-banner-first-row">
<img
class="middle-banner-mobile"
src="./assets/images/middle-banner-mobile-1.png"
alt="Banner do Meio Mobile 1"
/>
<img
class="middle-banner-mobile"
src="./assets/images/middle-banner-mobile-2.png"
alt="Banner do Meio Mobile 2"
/>
</div>
<div> <div class="middle-banner-wrapper">
<img <img
class="middle-banner-mobile" class="middle-banner-mobile"
src="./assets/images/middle-banner-mobile-3.png" src="./assets/images/middle-banner-mobile-1.png"
alt="Banner do Meio Mobile 3" alt="Banner do Meio Mobile 1"
/> />
</div> <img
class="middle-banner-mobile"
src="./assets/images/middle-banner-mobile-2.png"
alt="Banner do Meio Mobile 2"
/>
<img
class="middle-banner-mobile"
src="./assets/images/middle-banner-mobile-3.png"
alt="Banner do Meio Mobile 3"
/>
</div> </div>
</section> </section>