Adiciona imagem e texto bottom em desktop e mobile

This commit is contained in:
Cainã Milech 2022-10-09 21:12:07 -03:00
parent e88a4fc549
commit ce7e025b98
3 changed files with 69 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 KiB

View File

@ -121,6 +121,33 @@ body {
margin-bottom: 14px;
}
.bottom-infocard{
display: flex;
align-items: center;
justify-content: center;
}
.bottom-infocard-image{
margin-right: 40px;
padding: 142px 0 180px;
}
.bottom-infocard-text{
max-width: 550px;
}
.bottom-infocard-title{
font-weight: 600; /*IMPORTAR DO GOOGLE TB*/
font-size: 32px;
line-height: 1; /*mantem o mesmo do fontesize*/
margin-bottom: 18px;
}
.bottom-infocard-description{
font-size: 16px;
line-height: 24px;
}
@media screen and (max-width: 414px) { /*esse pixel pq é o tamanho maximo da imagem banner mobile*/
.main-banner-desktop,
@ -181,6 +208,25 @@ body {
width: 100%;
max-width: 240px;
}
.bottom-infocard{
flex-direction: column;
padding: 80px 0 136px;
}
.bottom-infocard-image{
width: 100%; /*POREM DEIXAR O MAX WIDTH DO TAMANHO DA IMAGEM PRA NAO ESTICAR*/
max-width: 596px;
margin: 0 0 50px;
}
.bottom-infocard-title{
font-size: 24px;
}
.bottom-infocard-text{
padding: 0 26px;
}
}
@media screen and (min-width: 769px) and (max-width: 1200px) {
@ -200,6 +246,15 @@ body {
max-width: 520px;
margin-right: 70px;
}
.bottom-infocard-image{
max-width: 480px;
}
.bottom-infocard-text{
max-width: 400px;
}
}

View File

@ -15,7 +15,7 @@
<link rel="stylesheet" href="assets/styles/main.css" />
<!--fonte google-->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
</head>
<body>
@ -97,6 +97,19 @@
</div>
<section class="bottom-infocard">
<img class="bottom-infocard-image" src="/assets/images/bottom-infocard-image.png" alt="Banner infocard de baixo" />
<div class="bottom-infocard-text">
<h2 class="bottom-infocard-title">Lorem ipsum dolor sit amet</h2>
<p class="bottom-infocard-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vulputate sapien non libero faucibus interdum. In eget tincidunt ipsum.
Quisque a tellus at lectus blandit tempor. Ut tristique auctor mi eget hendrerit. Curabitur venenatis felis vitae sagittis venenatis.
Donec finibus turpis vitae lectus interdum rutrum vitae sed augue.</p>
</div>
</section>
</main>
</body>
</html>