Cria Header desktop e mobile & infocard desktop

This commit is contained in:
Wellington Duarte Santos 2022-10-07 10:29:59 -03:00
parent 08edfea66b
commit fffb51eda0
6 changed files with 146 additions and 0 deletions

BIN
assets/images/m3-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

45
index.html Normal file
View File

@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<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">
<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>M3 Landing Page</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="stylesheet" href="./styles/style.css">
</head>
<body>
<header class="page-header">
<a href="/index.html">
<img class="header-logo" src="./assets/images/m3-logo.png" alt="Logo M3" />
</a>
</header>
<main>
<section>
<img class="main-banner-desktop" src="./assets/images/main-banner-desktop.png" alt="Banner Principal Desktop" />
<img class="main-banner-mobile" src="./assets/images/main-banner-mobile.png" alt="Banner Principal Desktop" />
</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/images/top-infocard-image.png" alt="Banner do Infocard topo">
</section>
</main>
</body>
</html>

101
styles/style.css Normal file
View File

@ -0,0 +1,101 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Inter', sans-serif;
color: #000000;
}
.page-header{
display: flex;
justify-content: center;
align-items: center;
background-color: #000000;
padding: 28px 0;
}
.header-logo{
display: block;
}
.main-banner-desktop{
width: 100%;
}
.top-infocard{
display: flex;
align-itens: center;
justify-content: center;
padding: 80px 0 96px;
}
.top-infocard-text{
max-width: 766px;
margin-right: 124px;
}
.top-infocard-subtitle{
font-weight: 400;
font-size: 32px;
text-transform: uppercase;
}
.top-infocard-title{
margin-bottom: 24px;
font-weight: 500;
font-size: 48px;
text-transform: uppercase;
}
.top-infocard-description{
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
@media screen and (max-width: 414px){
.main-banner-desktop{
display: none;
}
}
@media screen and (max-width: 992px){
.top-infocard{
flex-direction: column;
padding: 54px 26px 158px;
}
.top-infocard-text{
margin: 0 0 68px;
}
.top-infocard-subtitle{
font-size: 20px;
}
.top-infocard-title{
margin-bottom: 20px;
font-size: 28px;
}
.top-infocard-image{
width: 100%;
max-width: 240px;
margin: auto;
}
}
@media screen and (min-width: 993px) and (max-width: 1200px) {
}
@media screen and (min-width: 415px){
.main-banner-mobile{
display: none;
}
}