Merge pull request 'feat(home): Adiciona Infocard do Topo desktop e mobile' (#3) from feature/main/top-infocard into development

Reviewed-on: #3
This commit is contained in:
Savio Carvalho Moraes 2022-10-10 22:16:19 +00:00
commit e257e747e7
3 changed files with 98 additions and 6 deletions

View File

@ -4,6 +4,11 @@
box-sizing: border-box; box-sizing: border-box;
} }
body {
font-family: "Inter", sans-serif;
color: #000000;
}
.page-header { .page-header {
display: flex; display: flex;
padding: 28px 0; padding: 28px 0;
@ -20,10 +25,70 @@
display: block; display: block;
} }
.top-infocard {
display: flex;
flex-direction: column;
align-items: center;
padding: 74px 0 180px;
width: 100%;
}
.top-inforcard-text {
max-width: 100%;
margin: 0 30% 0;
}
.top-infocard-subtitle {
font-style: normal;
font-weight: 400;
font-size: 32px;
line-height: 39px;
text-align: center;
text-transform: uppercase;
}
.top-infocard-title {
font-style: normal;
font-weight: 500;
font-size: 48px;
line-height: 58px;
text-align: center;
text-transform: uppercase;
margin-bottom: 28px;
}
.top-infocard-description {
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 150%;
margin-bottom: 74px;
text-align: center;
}
@media screen and (max-width: 1023px) { @media screen and (max-width: 1023px) {
.main-banner-desktop { .main-banner-desktop {
display: none; display: none;
} }
.top-infocard {
padding-bottom: 90px;
}
.top-inforcard-text {
margin: 0 7% 0;
}
.top-infocard-subtitle {
font-size: 20px;
line-height: 24px;
}
.top-infocard-title {
font-size: 28px;
line-height: 34px;
margin-bottom: 66px;
}
.top-infocard-description {
line-height: 24px;
}
} }
@media screen and (min-width: 1024px) { @media screen and (min-width: 1024px) {
.main-banner-mobile { .main-banner-mobile {

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -4,8 +4,13 @@
<head> <head>
<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">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Desafio 1 - M3 Academy</title> <title>Desafio 1 - M3 Academy</title>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Roboto:wght@100;300;500;700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="./assets/css/style.css"> <link rel="stylesheet" href="./assets/css/style.css">
</head> </head>
@ -16,12 +21,34 @@
</a> </a>
</header> </header>
<main> <main>
<section>
<figure> <figure>
<img class="main-banner main-banner-desktop" src="./assets/imagens/main-banner-desktop.png" <img class="main-banner main-banner-desktop" src="./assets/imagens/main-banner-desktop.png"
alt="Banner principal desktop"> alt="Banner principal desktop">
<img class="main-banner main-banner-mobile" src="./assets/imagens/main-banner-mobile.png" <img class="main-banner main-banner-mobile" src="./assets/imagens/main-banner-mobile.png"
alt="Banner principal mobile"> alt="Banner principal mobile">
</figure> </figure>
</section>
<section class="top-infocard">
<figcaption class="top-inforcard-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>
</figcaption>
<figure>
<img class="top-infocard-image" src="./assets/imagens/top-infocard-image.png"
alt="Banner do Infocard do Topo">
</figure>
</section>
</main> </main>
</body> </body>