feat: top infocard desktop e mobile

This commit is contained in:
Thiago Oliveira de Medeiros 2022-10-13 17:37:11 -03:00
parent bf23661533
commit bf6e3aef15
3 changed files with 134 additions and 17 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -1,26 +1,89 @@
*{
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.page-header{
body
{
font-family: 'Inter', sans-serif;
color: #000000;
}
.page-header
{
display: flex;
justify-content: center;
padding: 28px 0;
background: #000000;
}
.header-logo{
.header-logo
{
display: block;
}
.main-banner,
.middle-banner{
.middle-banner
{
width: 100%;
display: block;
}
.top-infocard
{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 72px 0 180px;
}
.top-infocard-text
{
max-width: 766px;
}
.top-infocard-subtitle
{
display: flex;
align-items: center;
justify-content: center;
text-transform: uppercase;
font-size: 32px;
line-height: 39px;
font-weight: 400;
}
.top-infocard-title
{
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 28px;
text-transform: uppercase;
line-height: 58px;
font-size: 48px;
font-weight: 500;
}
.top-infocard-description
{
font-size: 16px;
line-height: 24px;
margin-bottom: 72px;
}
.top-infocard-image
{
display: flex;
align-items: center;
justify-content: center;
padding: 0;
width: 315px;
max-width: 100%;
}
@ -32,23 +95,57 @@
@media screen and (max-width: 414px) {
@media screen and (max-width: 414px)
{
.main-banner-desktop,
.middle-banner-desktop{
.middle-banner-desktop
{
display: none;
}
}
@media screen and (min-width: 415px) {
@media screen and (min-width: 415px)
{
.main-banner-mobile,
.middle-banner-mobile{
.middle-banner-mobile
{
display: none;
}
}
}
@media screen and (max-width: 768px)
{
.top-infocard
{
padding: 0;
}
.top-infocard-text
{
width: 357px;
padding: 72px 28px 65px;
}
.top-infocard-subtitle
{
font-size: 20px;
line-height: 24px;
}
.top-infocard-title
{
font-size: 28px;
line-height: 34px;
}
.top-infocard-description
{
margin: 0 0px 0px;
}
.top-infocard-image
{
width: 100%;
max-width: 240px;
}
}

View File

@ -1,12 +1,18 @@
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://fonts.googleapis.com">
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Landing Page M3</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./assets/styles/main.css">
@ -27,7 +33,21 @@
<img class="main-banner main-banner-desktop" src="./assets/imagens/main-banner-desktop.png" alt="Baner Principal dk" />
<img class="main-banner main-banner-mobile" src="./assets/imagens/main-banner-mobile.png" alt="Baner Principal mb">
</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="./assets/imagens/top-infocard-image.png" alt="Infocard Baner Topo">
</section>
</main>
</body>