Modificações nas imagens mobile]

This commit is contained in:
Douglas Vinicius Nobrega 2022-10-09 13:58:46 -03:00
parent a89595f1af
commit d5d184f598
4 changed files with 47 additions and 15 deletions

View File

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -14,7 +14,7 @@ body {
display: flex;
align-items: center;
justify-content: center;
padding: 29px 0;
padding: 28px 0;
background-color: #000000;
}
@ -40,7 +40,6 @@ body {
.top-infocard-subtitle {
text-transform: uppercase;
font-weight: 400;
font-size: 32px;
line-height: 39px;
@ -71,8 +70,10 @@ body {
.top-cards {
display: flex;
margin-top: 179px;
gap: 23px;
align-items: center;
justify-content: center;
padding: 179px 0 80px;
gap: 21px;
}
.top-card {
@ -82,11 +83,13 @@ body {
justify-content: center;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
padding: 50px 25px 27px;
padding: 26px 26px 34px;
max-width: 350px;
}
.top-card-image {
width: 103px;;
display: block;
margin-bottom: 27px;
}
.top-card-description {
@ -97,15 +100,45 @@ body {
}
@media screen and (max-width: 414px) {
.main-banner-desktop {
.main-banner-desktop,
.top-card-image-desktop {
display: none;
}
}
@media screen and (min-width: 415px) {
.main-banner-mobile {
.main-banner-mobile,
.top-card-image-mobile {
display: none;
}
}
@media screen and (max-width: 992px) {
.top-infocard{
display: flex;
text-align: center;
justify-content: center;
flex-direction: column;
padding: 73px 29px 65px;
}
.top-infocard-text {
max-width: 357px;
}
.top-infocard-subtitle {
font-size: 20px;
}
.top-infocard-title {
font-size: 28px;
line-height: 1;
}
.top-infocard-image {
width: 100%;
max-width: 239px;
}
}

View File

@ -42,11 +42,12 @@
tortor sed lacus egestas vulputate vel sit amet velit. Nulla
suscipit magna dui.
</p>
<img class="top-infocard-image top-card-image-desktop" src="assets/images/top-card-image-desktop.png" alt="Card do top"/>
<img class="top-infocard-image top-card-image-mobile" src="assets/images/top-card-image-mobile.png" alt="Card do top"/>
</div>
</section>
<img class="top-infocard-image" src="assets/images/top-card-image.png" alt="Card do top"/>
</div>
<section class="top-cards">
<div class="top-cards">
<div class="top-card">
<img class="top-card-image" src="assets/images/top-card-image-01.png" alt="Primeiro card do topo"/>
<p class="top-card-description">
@ -67,9 +68,7 @@
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
</section>
</section>
</div>
</main>