corrige erros de max-width para tornar imagens responsivas #9

Merged
ViniciusDeniz merged 1 commits from bugfix/css into develop 2022-10-13 03:36:04 +00:00
2 changed files with 244 additions and 204 deletions

View File

@ -2,11 +2,10 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
} }
body { body {
font-family: 'Inter', sans-serif; font-family: "Inter", sans-serif;
color: black; color: black;
} }
@ -14,8 +13,7 @@ body{
background: black; background: black;
display: flex; display: flex;
justify-content: center; justify-content: center;
padding: 28px 0; padding: 29px 0;
} }
.header-logo { .header-logo {
@ -32,13 +30,17 @@ body{
justify-content: center; justify-content: center;
display: grid; display: grid;
column-gap: 65px; column-gap: 65px;
margin-top: 73px;
width: 100%;
} }
.top-infocard-text { .top-infocard-text {
max-width: 766px; width: 62%;
text-align: center; text-align: center;
justify-content: center; justify-content: center;
padding: 66px 0 0; position: relative;
margin-left: auto;
margin-right: auto;
} }
.top-infocard-subtitle { .top-infocard-subtitle {
@ -51,7 +53,8 @@ body{
font-weight: 500; font-weight: 500;
font-size: 48px; font-size: 48px;
text-transform: uppercase; text-transform: uppercase;
margin-bottom:24px; font-weight: bold;
margin-bottom: 28px;
} }
.top-infocard-description { .top-infocard-description {
@ -60,40 +63,41 @@ body{
} }
.top-infocard-image { .top-infocard-image {
max-width:315px; width: 38%;
width:100%; margin-top: 73px;
margin-top: 65px; margin-bottom: 179px;
margin-bottom:220px;
} }
.top-cards { .top-cards {
display: grid; display: grid;
grid-template-columns: repeat(3, max-content); grid-template-columns: repeat(3, max-content);
gap:20px; gap: 21px;
margin-bottom: 80px; margin-bottom: 80px;
width: 100%;
height: auto;
justify-content: center;
} }
.top-card { .top-card {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
max-width:250px; min-height: 287px;
box-shadow: 0px 4px 20px 0px #0000003B; box-shadow: 0px 4px 20px 0px #0000003b;
padding: 36px 0px 26px; padding: 35px 0px 27px;
} }
.top-card-image { .top-card-image {
display:block; width: 35%;
margin-bottom: 26px; margin-bottom: 27px;
} }
.top-card-description { .top-card-description {
max-width:300px;
font-size: 16px; font-size: 16px;
align-items: center; align-items: center;
line-height: 24px; line-height: 24px;
text-align: center; text-align: center;
max-width: 350px;
} }
.middle-banners { .middle-banners {
@ -101,20 +105,21 @@ 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;
gap:32px; width: 100%;
} }
.middle-banner { .middle-banner {
max-width:350px; width: 60%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
position: relative; position: relative;
bottom: -64px; bottom: -64px;
margin-left: auto;
margin-right: auto;
} }
.middle-banner-wrapper { .middle-banner-wrapper {
max-width: 370px;
position: relative; position: relative;
display: flex; display: flex;
bottom: -130px; bottom: -130px;
@ -128,8 +133,8 @@ body{
} }
.bottom-cards { .bottom-cards {
margin: 202px 0 136px; margin: 193px 0 136px;
/*a minha sacada foi somar 64 do bottom negativo + 138 que e de fato a margem entre o middle-banners e bottom-cards*/ /*64 do bottom negativo + 129 que e de fato a margem entre o middle-banners e bottom-cards*/
display: grid; display: grid;
grid-template-columns: repeat(4, max-content); grid-template-columns: repeat(4, max-content);
justify-content: center; justify-content: center;
@ -144,41 +149,45 @@ body{
max-width: 300px; max-width: 300px;
padding: 36px 0px 14px; padding: 36px 0px 14px;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15); box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
} }
.bottom-card-description { .bottom-card-description {
padding: 14px 32px 66px; padding: 14px 32px 66px;
max-width:368px;
font-size: 16px; font-size: 16px;
line-height: 24px; line-height: 24px;
text-align: center; text-align: center;
} }
.bottom-card-image { .bottom-card-image {
display:block; width: 35%;
margin-bottom: 14px; margin-bottom: 14px;
} }
.bottom-infocard { .bottom-infocard {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
display: grid; display: grid;
gap:32px; gap: 30px;
width: 100%;
} }
.bottom-infocard-image-desktop { .bottom-infocard-image-desktop {
margin-bottom: 104px; margin-bottom: 116px;
max-width:1360px; width: 95%;
height: auto;
position: relative;
margin-left: auto;
margin-right: auto;
} }
.bottom-infocard-text { .bottom-infocard-text {
text-align: center; text-align: center;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
max-width:550px; width: 50%;
position: relative;
margin-left: auto;
margin-right: auto;
} }
.bottom-infocard-title { .bottom-infocard-title {
@ -192,7 +201,6 @@ body{
font-size: 16px; font-size: 16px;
line-height: 24px; line-height: 24px;
margin-bottom: 32px; margin-bottom: 32px;
} }
.page-footer { .page-footer {
@ -220,8 +228,46 @@ body{
text-transform: uppercase; text-transform: uppercase;
} }
@media screen and (max-width: 414px) { @media screen and (min-width: 2500px) {
.banner-desktop, .middle-banner-desktop, .bottom-infocard-image-desktop { .top-infocard-subtitle {
font-size: 64px;
}
.top-infocard-title {
font-size: 96px;
}
.top-infocard-description,
.top-infocard-description,
.top-card-description,
.bottom-card-description,
.bottom-infocard-description {
line-height: 48px;
font-size: 32px;
}
.bottom-infocard-title {
font-size: 64px;
line-height: 40px;
}
.footer-text {
font-size: 20px;
line-height: 24px;
}
}
@media screen and (min-width: 1025px) {
.banner-mobile,
.middle-banner-mobile,
.bottom-infocard-image-mobile {
display: none;
}
}
@media (max-width: 1024px) {
.banner-desktop,
.middle-banner-desktop,
.bottom-infocard-image-desktop {
display: none; display: none;
} }
.top-infocard { .top-infocard {
@ -243,25 +289,21 @@ body{
.top-infocard-description { .top-infocard-description {
max-width: 330px; max-width: 330px;
} }
.top-infocard-image { .top-infocard-image {
max-width: 240px; max-width: 240px;
width: 100%; width: 100%;
margin-top: 66px; margin-top: 66px;
} }
.top-cards { .top-cards {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
.bottom-cards { .bottom-cards {
grid-template-columns: 300px; grid-template-columns: 300px;
margin-right: 0; margin-right: 0;
} }
.bottom-infocard { .bottom-infocard {
@ -274,7 +316,6 @@ body{
.bottom-infocard-text { .bottom-infocard-text {
max-width: 250px; max-width: 250px;
} }
.bottom-infocard-title { .bottom-infocard-title {
@ -293,11 +334,10 @@ body{
max-width: 280px; max-width: 280px;
text-align: center; text-align: center;
} }
} }
@media screen and (min-width:415px) { @media screen and (max-width: 820px) {
.banner-mobile, .middle-banner-mobile, .bottom-infocard-image-mobile {
display:none;
} }
@media screem amd (max-width: 320px) {
} }

View File

@ -164,7 +164,7 @@
<div class="bottom-card"> <div class="bottom-card">
<img <img
class="bottom-card-image" class="bottom-card-image"
src="./assets/images/bottom-card-image-2.png" src="./assets/images/bottom-card-image-3.png"
alt="Segundo Card" alt="Segundo Card"
/> />
@ -179,7 +179,7 @@
<div class="bottom-card"> <div class="bottom-card">
<img <img
class="bottom-card-image" class="bottom-card-image"
src="./assets/images/bottom-card-image-3.png" src="./assets/images/bottom-card-image-2.png"
alt="Terceiro Card" alt="Terceiro Card"
/> />