Adicionando o bottom infocard desktop e mobile

This commit is contained in:
Douglas Vinicius Nobrega 2022-10-08 14:30:02 -03:00
parent 70aceca4dd
commit dd1211978e
3 changed files with 165 additions and 96 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 KiB

View File

@ -119,6 +119,33 @@ body {
font-size: 16px; font-size: 16px;
} }
.bottom-infocard {
display: flex;
align-items: center;
justify-content: center;
padding: 142px 0 180px;
}
.bottom-infocard-image {
display: block;
margin-right: 40px;
}
.bottom-infocard-text {
max-width: 550px;
}
.bottom-infocard-title {
margin-bottom: 18px;
font-weight: 600;
line-height: 1;
font-size: 32px;
}
.bottom-infocard-description {
line-height: 24px;
font-size: 16px;
}
@media screen and (max-width: 414px) { @media screen and (max-width: 414px) {
@ -158,6 +185,25 @@ body {
width: 100%; width: 100%;
max-width: 240px; 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-text {
padding: 0 26px;
}
.bottom-infocard-title {
font-size: 24px;
}
} }
@media screen and (max-width: 768px){ @media screen and (max-width: 768px){
@ -202,5 +248,13 @@ body {
max-width: 520px; max-width: 520px;
margin-right: 70px; margin-right: 70px;
} }
.bottom-infocard-image {
max-width: 480px;
}
.bottom-infocard-text {
max-width: 200px;
}
} }

View File

@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="pt-BR"> <html lang="pt-BR">
<head> <head>
<link rel="preconnect" href="https://fonts.googleapis.com"/> <link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
@ -10,12 +10,11 @@
<title>M3 Academy Atividade</title> <title>M3 Academy Atividade</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Inter&display=swap" rel="stylesheet"/> <link rel="stylesheet" href="assets/styles/style.css"/>
</head>
<link rel="stylesheet" href="assets/styles/style.css"/> <body>
</head>
<body>
<header class="page-header"> <header class="page-header">
<a href="/"> <a href="/">
<img class="header-logo" src="assets/images/m3-logo.png" alt="Logo M3"> <img class="header-logo" src="assets/images/m3-logo.png" alt="Logo M3">
@ -116,6 +115,22 @@
</div> </div>
</section> </section>
<section class="bottom-infocard">
<img class="bottom-infocard-image" src="assets/images/bottom-inforcard-image.png" alt="Banner do Infocards 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> </main>
</body> </body>
</html> </html>