Merge pull request 'feature/top-card' (#4) from feature/top-card into development

Reviewed-on: #4
This commit is contained in:
Edna Barboza de Lima 2022-10-11 20:05:09 +00:00
commit fca4ee2b31
5 changed files with 95 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -72,6 +72,37 @@ body{
margin: 73px 0 178px; margin: 73px 0 178px;
} }
.top-cards{
display: grid;
grid-template-columns: repeat(3,max-content);
gap: 21px;
justify-content: center;
margin-bottom: 80px;
}
.top-card{
display: flex;
flex-direction: column;
align-items: center;
padding: 26px 26px 34px;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-image{
display: block;
margin-bottom: 26px;
}
.top-card-description{
max-width: 300px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/*MEDIAS*/ /*MEDIAS*/
@media screen and (max-width:414px) { @media screen and (max-width:414px) {
@ -105,10 +136,13 @@ body{
height: 239px; height: 239px;
} }
.top-cards{
grid-template-columns: 1fr;
padding: 36px 26px;
}
} }
@media screen and (min-width: 415px) and (max-width: 899px) { @media screen and (min-width: 415px) and (max-width: 1199px) {
.top-infocard-subtitle{ .top-infocard-subtitle{
font-size: 20px; font-size: 20px;
line-height: 24px; line-height: 24px;
@ -131,8 +165,15 @@ body{
margin: 73px 0 90px; margin: 73px 0 90px;
} }
.top-cards{
grid-template-columns: 1fr;
padding: 36px 26px;
}
} }
@media screen and (min-width: 3000px) and (max-width: 4000px) { @media screen and (min-width: 3000px) and (max-width: 4000px) {
.header-logo{ .header-logo{
width: 470px; width: 470px;
@ -168,13 +209,44 @@ body{
} }
.top-infocard-image{ .top-infocard-image{
margin: 73px 0 90px; margin: 73px 0 178px;
} }
.top-infocard-img{ .top-infocard-img{
width: 656px; width: 656px;
height: 656px; height: 656px;
margin-top: 152px; }
.top-card{
width: 730px;
height: 598px;
}
.top-cards{
gap: 44px;
}
.img1{
display: block;
margin-bottom: 27px;
width: 214.58px;
height: 214.58px;
margin: 47px 0 38px 0;
}
.img2{
display: block;
margin-bottom: 27px;
width: 212.5px;
height: 214.58.8px;
margin: 35px 0 27px 0;
}
.top-card-description{
max-width: 625px;
font-size: 34px;
line-height: 50px;
text-align: center;
} }
} }

View File

@ -49,8 +49,27 @@
<figure class="top-infocard-image"> <figure class="top-infocard-image">
<img class="top-infocard-img" src="./assets/images/top-infocard-image.png" alt="Imagem de um esquema de três computadores"/> <img class="top-infocard-img" src="./assets/images/top-infocard-image.png" alt="Imagem de um esquema de três computadores"/>
</figure> </figure>
<section class="top-cards">
<figure class="top-card">
<img class="top-card-image img1" src="./assets/images/top-card-image-01.png" alt="Card com desenho de uma loja física"/>
<figcaption class="top-card-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </figcaption>
</figure>
<figure class="top-card">
<img class="top-card-image img2" src="./assets/images/top-card-image-02.png" alt="Card com desenho de uma bolsa de compras"/>
<figcaption class="top-card-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </figcaption>
</figure>
<figure class="top-card">
<img class="top-card-image img2" src="./assets/images/top-card-image-03.png" alt="Card com desenho de uma mão segurando uma moeda"/>
<figcaption class="top-card-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </figcaption>
</figure>
</section>
</main> </main>
</body> </body>
</html> </html>