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
Showing only changes of commit c3ab8ca420 - Show all commits

View File

@ -1,303 +1,343 @@
* { * {
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;
} }
.page-header{ .page-header {
background:black; background: black;
display:flex; display: flex;
justify-content:center; justify-content: center;
padding: 28px 0; padding: 29px 0;
} }
.header-logo { .header-logo {
display:block; display: block;
} }
.banner { .banner {
width: 100%; width: 100%;
display:block; display: block;
} }
.top-infocard { .top-infocard {
align-items: center; align-items: center;
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 {
font-weight:400; font-weight: 400;
font-size: 32px; font-size: 32px;
text-transform:uppercase; text-transform: uppercase;
} }
.top-infocard-title { .top-infocard-title {
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 {
line-height: 24px; line-height: 24px;
font-size:16px; font-size: 16px;
} }
.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 {
background:#f0f0f0; background: #f0f0f0;
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; justify-content: center;
justify-content:center; align-items: center;
align-items:center;
} }
.middle-banner-first-row { .middle-banner-first-row {
padding: -98px 14px 24px; padding: -98px 14px 24px;
/*130 - 32 = 98 de diferença*/ /*130 - 32 = 98 de diferença*/
} }
.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;
gap:16px; gap: 16px;
background:#fff; background: #fff;
} }
.bottom-card { .bottom-card {
display:flex; display: flex;
flex-direction:column; flex-direction: column;
align-items:center; align-items: center;
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 {
font-weight:600; font-weight: 600;
font-size:32px; font-size: 32px;
line-height: 20px; line-height: 20px;
margin-bottom: 18px; margin-bottom: 18px;
} }
.bottom-infocard-description { .bottom-infocard-description {
font-size:16px; font-size: 16px;
line-height:24px; line-height: 24px;
margin-bottom:32px; margin-bottom: 32px;
} }
.page-footer { .page-footer {
background:black; background: black;
display:flex; display: flex;
flex-direction:column; flex-direction: column;
align-items:center; align-items: center;
padding: 38px 0; padding: 38px 0;
} }
.footer-icons { .footer-icons {
display:flex; display: flex;
list-style:none; list-style: none;
margin-bottom: 16px; margin-bottom: 16px;
} }
.footer-icon { .footer-icon {
margin:0 8px; margin: 0 8px;
} }
.footer-text { .footer-text {
color: #bdbdbd; color: #bdbdbd;
font-size:10px; font-size: 10px;
line-height:12px; line-height: 12px;
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 {
display:none; font-size: 64px;
} }
.top-infocard {
gap:80px;
}
.top-infocard-text { .top-infocard-title {
max-width: 250px; font-size: 96px;
} }
.top-infocard-subtitle { .top-infocard-description,
font-size: 20px; .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;
}
} }
.top-infocard-title { @media screen and (min-width: 1025px) {
font-size: 28px; .banner-mobile,
margin-bottom:18px; .middle-banner-mobile,
} .bottom-infocard-image-mobile {
display: none;
.top-infocard-description { }
max-width: 330px;
}
.top-infocard-image {
max-width:240px;
width:100%;
margin-top: 66px;
}
.top-cards {
grid-template-columns: 1fr;
}
.bottom-cards {
grid-template-columns: 300px;
margin-right:0;
}
.bottom-infocard {
gap:80px;
}
.bottom-infocard {
gap:104px;
}
.bottom-infocard-text {
max-width:250px;
}
.bottom-infocard-title {
font-size:24px;
}
.bottom-infocard-description {
max-width: 250px;
}
.page-footer {
padding: 42px 0 26px;
}
.footer-text {
max-width:280px;
text-align:center;
}
} }
@media screen and (min-width:415px) { @media (max-width: 1024px) {
.banner-mobile, .middle-banner-mobile, .bottom-infocard-image-mobile { .banner-desktop,
display:none; .middle-banner-desktop,
} .bottom-infocard-image-desktop {
display: none;
}
.top-infocard {
gap: 80px;
}
.top-infocard-text {
max-width: 250px;
}
.top-infocard-subtitle {
font-size: 20px;
}
.top-infocard-title {
font-size: 28px;
margin-bottom: 18px;
}
.top-infocard-description {
max-width: 330px;
}
.top-infocard-image {
max-width: 240px;
width: 100%;
margin-top: 66px;
}
.top-cards {
grid-template-columns: 1fr;
}
.bottom-cards {
grid-template-columns: 300px;
margin-right: 0;
}
.bottom-infocard {
gap: 80px;
}
.bottom-infocard {
gap: 104px;
}
.bottom-infocard-text {
max-width: 250px;
}
.bottom-infocard-title {
font-size: 24px;
}
.bottom-infocard-description {
max-width: 250px;
}
.page-footer {
padding: 42px 0 26px;
}
.footer-text {
max-width: 280px;
text-align: center;
}
}
@media screen and (max-width: 820px) {
}
@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"
/> />