feat(index): adiciona o top infocard desktop e mobile

This commit is contained in:
Nicolly Vieira Santos Costa 2022-10-10 11:15:03 -03:00
parent 7fde46b770
commit 6a945ff84c
3 changed files with 99 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -2,11 +2,15 @@
<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" />
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="styles/main.css" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Roboto+Mono:wght@700&display=swap" rel="stylesheet" />
<title>Landing Page</title> <title>Landing Page</title>
</head> </head>
@ -23,11 +27,26 @@
<div> <div>
<figure> <figure>
<!-- banner desktop --> <!-- banner desktop -->
<img class="main-banner main-banner-desktop" src="/assets/images/main-banner-desktop.png" alt="imagem de um computador"> <img class="main-banner main-banner-desktop" src="/assets/images/main-banner-desktop.png"
alt="imagem de um computador" />
<!-- banner mobile --> <!-- banner mobile -->
<img class="main-banner main-banner-mobile" src="/assets/images/main-banner-mobile.png" alt="imagem de um computador"> <img class="main-banner main-banner-mobile" src="/assets/images/main-banner-mobile.png"
alt="imagem de um computador" />
</figure> </figure>
</div> </div>
<!--Top infocard-->
<section class="top-infocard">
<div class="top-infocard-content">
<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>
<figure class="top-infocard-image-container">
<img class="top-infocard-image" src="/assets/images/top-infocard-image.png" alt="Banner do infoCard do topo" />
</figure>
</section>
</main> </main>
</body> </body>

View File

@ -4,6 +4,11 @@
box-sizing: border-box; box-sizing: border-box;
} }
body {
font-family: 'Inter', sans-serif;
color: #000;
}
/*Header*/ /*Header*/
.page-header { .page-header {
display: flex; display: flex;
@ -29,7 +34,78 @@
display: none; display: none;
} }
/*Top infocard*/
.top-infocard {
display: flex;
align-items: center;
justify-content: center;
gap: 124px;
padding: 80px 0 96px 0;
}
.top-infocard-content {
width: 40%;
}
.top-infocard-subtitle {
font-weight: 400;
font-size: 32px;
text-transform: uppercase;
}
.top-infocard-title {
font-weight: 500;
font-size: 48px;
text-transform: uppercase;
margin-bottom: 24px;
}
.top-infocard-description {
font-weight: 400;
font-size: 16px;
line-height: 24px;
}
@media screen and (max-width: 1024px) {
/*top infocard*/
.top-infocard {
padding: 84px 26px 158px;
flex-wrap: wrap;
gap: 0;
}
.top-infocard-content {
width: 100%;
}
.top-infocard-image-container {
margin-top: 68px;
width: 58%;
display: flex;
justify-content: center;
}
.top-infocard-image {
width: 100%;
max-width: 239px;
}
.top-infocard-subtitle {
font-size: 20px;
}
.top-infocard-title {
font-size: 28px;
}
}
@media screen and (max-width: 414px) { @media screen and (max-width: 414px) {
/*banner*/
.main-banner-desktop { .main-banner-desktop {
display: none; display: none;
} }
@ -37,4 +113,5 @@
.main-banner-mobile { .main-banner-mobile {
display: block; display: block;
} }
} }