Adiciona o top infocard desktop e mobile

This commit is contained in:
Affonso Kopmann 2022-10-07 14:58:20 -03:00
parent ce0989f087
commit 6d1a352851
18 changed files with 98 additions and 4 deletions

View File

@ -5,6 +5,12 @@
}
body {
font-family: 'Inter', sans-serif;
color: #000000;
}
.page-header {
display: flex;
justify-content: center;
@ -21,14 +27,75 @@
width: 100%;
}
.top-infocard {
display: flex;
align-items: center;
justify-content: center;
padding: 80px 0 96px;
}
.top-infocard-text {
max-width: 766px;
margin-right: 124px;
}
.top-infocard-subtitle {
text-transform: uppercase;
font-size: 32px;
font-weight: 400;
}
.top-infocard-title {
text-transform: uppercase;
font-size: 48px;
font-weight: 500;
margin-bottom: 24px;
}
.top-infocard-description {
line-height: 24px;
font-size: 16px;
}
@media screen and (max-width: 414px) {
.main-banner-desktop {
display: none;
}
}
@media screen and (max-width: 992px) {
.top-infocard {
flex-direction: column;
padding: 84px 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;
}
}
@media screen and (min-width: 993px) and (max-width:1280px) {
.top-infocard-text {
max-width: 520px;
margin-right: 70px;
}
}
@media screen and (min-width: 415px) {
.main-banner-mobile {
display: none;
}
}
}

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 790 B

After

Width:  |  Height:  |  Size: 790 B

View File

Before

Width:  |  Height:  |  Size: 565 B

After

Width:  |  Height:  |  Size: 565 B

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

Before

Width:  |  Height:  |  Size: 570 KiB

After

Width:  |  Height:  |  Size: 570 KiB

View File

Before

Width:  |  Height:  |  Size: 230 KiB

After

Width:  |  Height:  |  Size: 230 KiB

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 606 KiB

After

Width:  |  Height:  |  Size: 606 KiB

View File

Before

Width:  |  Height:  |  Size: 280 KiB

After

Width:  |  Height:  |  Size: 280 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

Before

Width:  |  Height:  |  Size: 743 B

After

Width:  |  Height:  |  Size: 743 B

View File

@ -2,26 +2,53 @@
<html lang="pt-BR">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<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 href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./_assets/css/main.css">
</head>
<body>
<!-- Header | Image and background -->
<header class="page-header">
<a href="/">
<img class="header-logo" src="./_assets/img/logo_m3.svg" alt="Logo M3" />
<img class="header-logo" src="./_assets/images/logo_m3.svg" alt="Logo M3" />
</a>
</header>
<main>
<!-- Main Banner | desktop and Mobile -->
<section>
<img class="main-banner main-banner-desktop" src="./_assets/img/main-banner-desktop.jpg" alt="Banner principal Desktop" />
<img class="main-banner main-banner-mobile" src="./_assets/img/main-banner-mobile.jpg" alt="Banner principal Mobile" />
<img class="main-banner main-banner-desktop" src="./_assets/images/main-banner-desktop.jpg" alt="Banner principal Desktop" />
<img class="main-banner main-banner-mobile" src="./_assets/images/main-banner-mobile.jpg" alt="Banner principal Mobile" />
</section>
<!-- First Infocard -->
<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 do Topo" />
</section>
</main>
</body>
</html>