Adiciona o bottom inforcard desktop e mobile

This commit is contained in:
Nicolas Oliveira 2022-10-07 22:28:44 -03:00
parent 8acee12ba0
commit 18043e35af
3 changed files with 71 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 KiB

View File

@ -122,6 +122,36 @@ body {
text-align: center;
}
.bottom-infocard {
display: flex;
align-items: center;
justify-content: center;
padding: 142px 0 180px;
}
.bottom-infocard-image {
margin-right: 40px;
}
.bottom-infocard-text{
max-width: 550px;
}
.bottom-infocard-title {
margin-bottom: 18px;
line-height: 1;
font-weight: 600;
font-size: 32px;
}
.bottom-infocard-description {
font-size: 16px;
line-height: 24px;
}
/* MEDIAS QUERIES */
@media screen and (max-width: 414px) {
.main-banner-desktop,
@ -182,8 +212,30 @@ body {
width: 100%;
max-width: 240px;
}
.bottom-infocard {
flex-direction: column;
padding: 80px 0 136px;
}
.bottom-infocard-image {
width: 100%;
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) {
.top-cards {
grid-template-columns: repeat(2, max-content);
@ -203,6 +255,14 @@ body {
max-width: 520px;
margin-right: 70px;
}
.bottom-infocard-image {
max-width: 480px;
}
.bottom-infocard-text {
max-width: 400px;
}
}

View File

@ -10,7 +10,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<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>
<header class="page-header">
@ -78,6 +78,16 @@
</div>
</div>
</section>
<section class="bottom-infocard">
<img class="bottom-infocard-image" src="./assets/images/bottom-infocard-image.png" alt="Banner do 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>