Adiciona o top infocard desktop e mobile

This commit is contained in:
Emerson Lins Costa Pinto 2022-10-08 16:00:28 -03:00
parent 6d0bba0b63
commit d87038f5fe
3 changed files with 96 additions and 0 deletions

View File

@ -1,12 +1,18 @@
<!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.gstatic.com" crossorigin>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Atividade 1 m3</title> <title>Atividade 1 m3</title>
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./materiais/styles/main.css"> <link rel="stylesheet" href="./materiais/styles/main.css">
</head> </head>
@ -24,6 +30,18 @@
<img class="baner-principal principal-baner-mobile" src="materiais/imagens/banner-principal-mobile.png" alt="baner principal mobile"> <img class="baner-principal principal-baner-mobile" src="materiais/imagens/banner-principal-mobile.png" alt="baner principal mobile">
</section> </section>
<section class="top-infocard">
<div class="top-infocard-text">
<h2 class="top-infocard-subtitle">Lorem ipsum</h2>
<h1 class="top-infocard-title">Dolor sit amet</h1>
<p class="top-infocard-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Curabitur ut tortor sed lacus egestas vulputate vel sit amet velit. Nulla suscipit magna dui.. </p>
</div>
<img class="top-infocard-image" src="materiais/imagens/top-infocard-image.png" alt="Banner do infocard do Topo">
</section>
</main> </main>
</body> </body>
</html> </html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -1,6 +1,12 @@
*{ *{
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Inter', sans-serif;
color: #000000;
} }
@ -19,14 +25,86 @@
width: 100%; width: 100%;
} }
.top-infocard{
display: flex;
align-items: center;
justify-content: center;
padding: 80px 0px 96px;
}
.top-infocard-text{
max-width: 766px;
}
.top-infocard-subtitle{
font-weight: normal;
font-size: 32px;
text-transform: uppercase;
color: #000000;
}
.top-infocard-title{
margin-bottom: 24px;
text-transform: uppercase;
font-size: 48px;
font-weight: 500;
}
.top-infocard-description{
line-height: 24px;
font-size: 16px;
margin-right: 124px;
}
@media screen and (max-width: 414px) { @media screen and (max-width: 414px) {
.principal-baner-desktop{ .principal-baner-desktop{
display: none; display: none;
} }
} }
@media screen and (max-width: 992px) {
.top-infocard{
flex-direction: column;
padding: 84px 26px 158px;
}
.top-infocard-text{
margin-right: 0px 0px 68px;
}
.top-infocard-subtitle{
font-size: 20px;
}
.top-infocard-title{
font-size: 28px;
margin-bottom: 20px;
}
.top-infocard-image{
width: 100%;
max-width: 240px;
padding: 67px 0px 0px 0px;
}
}
@media screen and (min-width: 415px){ @media screen and (min-width: 415px){
.principal-baner-mobile{ .principal-baner-mobile{
display: none; display: none;
} }
} }
@media screen and (min-width: 993px ) and ( max-width: 1280px) {
.top-infocard-text{
max-width: 520px;
margin-right: 70px;
}