Adiciona o top infocard desktop e mobile

This commit is contained in:
Cainã Milech 2022-10-08 11:24:07 -03:00
parent bca2331e16
commit 549d4a1a6a
3 changed files with 89 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -4,6 +4,11 @@
box-sizing: border-box; /*mantem a largura do elemento determinada no widht e nao adiciona o tamanho do padding no calculo, porem ele vai estar la*/ box-sizing: border-box; /*mantem a largura do elemento determinada no widht e nao adiciona o tamanho do padding no calculo, porem ele vai estar la*/
} }
body {
font-family: 'Inter', sans-serif;
color: #000;
}
.page-header { .page-header {
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -19,6 +24,39 @@
width: 100%; width: 100%;
} }
.top-infocard {
display: flex;
align-items: center;
justify-content: center;
padding: 80px 0 96px;
}
.top-infocard-text {
max-width: 766px; /*tamanho maximo da parte de textos no figma*/
margin-right: 124px;
}
.top-infocard-subtitle {
font-size: 32px;
font-weight: 400;
text-transform: uppercase;
}
.top-infocard-title {
font-size: 40px;
font-weight: 500;
text-transform: uppercase;
margin-bottom: 24px;
}
.top-infocard-description {
font-size: 16px;
line-height: 24px;
}
@media screen and (max-width: 414px) { /*esse pixel pq é o tamanho maximo da imagem banner mobile*/ @media screen and (max-width: 414px) { /*esse pixel pq é o tamanho maximo da imagem banner mobile*/
.main-banner-desktop{ .main-banner-desktop{
@ -26,6 +64,38 @@
} }
} }
@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{
font-size: 28px;
margin-bottom: 20px;
}
.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) { /*esse pixel pq é o tamanho maximo da imagem banner mobile*/ @media screen and (min-width: 415px) { /*esse pixel pq é o tamanho maximo da imagem banner mobile*/
.main-banner-mobile{ .main-banner-mobile{

View File

@ -2,6 +2,10 @@
<html lang="pt-BR"> <html lang="pt-BR">
<head> <head>
<!--pre fontes google-->
<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" />
@ -9,6 +13,9 @@
<title>M3 Landing Page</title> <title>M3 Landing Page</title>
<link rel="stylesheet" href="assets/styles/main.css" /> <link rel="stylesheet" href="assets/styles/main.css" />
<!--fonte google-->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap" rel="stylesheet">
</head> </head>
<body> <body>
@ -19,9 +26,20 @@
</header> </header>
<main> <main>
<section> <div>
<img class="main-banner main-banner-desktop" src="/assets/images/main-banner-desktop.png" alt="Banner principal desktop" /> <img class="main-banner main-banner-desktop" src="/assets/images/main-banner-desktop.png" alt="Banner principal desktop" />
<img class="main-banner main-banner-mobile" src="/assets/images/main-banner-mobile.png" alt="Banner principal mobile" /> <img class="main-banner main-banner-mobile" src="/assets/images/main-banner-mobile.png" alt="Banner principal mobile" />
</div>
<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 infocard" />
</section> </section>
</main> </main>
</body> </body>