feat(home): Adiciona top infocard desktop e mobile

This commit is contained in:
Manuela Luana Schumacker Tavares 2022-10-10 16:20:41 -03:00
parent b9f1bfcc59
commit f362d92d1d
3 changed files with 96 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -3,8 +3,11 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
font-family: 'Inter', sans-serif;
color: #000000;
} }
/*Definindo escopos*/ /*Definindo escopos*/
.top-infocard,
.page-banner-principal-mobile, .page-banner-principal-mobile,
.page-logo, .page-logo,
.page-banner-principal-desktop{ .page-banner-principal-desktop{
@ -29,6 +32,45 @@
display: none; display: none;
} }
/*Estilo do top infocard*/
.top-infocard{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 73px 0;
}
.top-infocard-text{
max-width: 766px;
}
.top-infocard-text > h2,h1{
text-align: center;
text-transform: uppercase;
}
.top-infocard-text h2{
font-weight: 400;
font-size: 32px;
line-height: 39px;
}
.top-infocard-text h1{
font-weight: 500;
font-size: 48px;
line-height: 58px;
}
.top-infocard-text p{
font-size: 16px;
line-height: 24px;
}
.top-infocard-image{
padding: 65px 0 0 0;
}
@media screen and (max-width: 1024px){ @media screen and (max-width: 1024px){
.page-banner-principal-mobile{ .page-banner-principal-mobile{
@ -38,4 +80,34 @@
.page-banner-principal-desktop{ .page-banner-principal-desktop{
display: none; display: none;
} }
.top-infocard{
padding: 73px 28px;
}
.top-infocard-text{
max-width: 357px;
text-align: center;
}
.top-infocard-text h2{
font-size: 20px;
line-height: 24px;
}
.top-infocard-text h1{
font-size: 28px;
line-height: 34px;
}
.top-infocard-image{
width: 60%;
}
}
@media screen and (min-width: 2500px){
.top-infocard-text p{
font-size: 24px;
line-height: 32px;
}
} }

View File

@ -1,29 +1,45 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="pt-BR"> <html lang="pt-BR">
<head> <head>
<meta charset="UTF-8"> <link rel="preconnect" href="https://fonts.googleapis.com"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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 Academy</title> <title>M3 Academy</title>
<link rel="stylesheet" href="./assets/styles/styles.css"> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet"/>
<link rel="stylesheet" href="./assets/styles/styles.css"/>
</head> </head>
<body> <body>
<!--Inicio/menu de navegação--> <!--Inicio/menu de navegação-->
<header class="page-logo"> <header class="page-logo">
<nav> <nav>
<a href="/"><img class="logo-m3academy" src="./assets/svgs/logo-m3academy.svg" alt="Logo M3 Academy"></a> <a href="/"><img class="logo-m3academy" src="./assets/svgs/logo-m3academy.svg" alt="Logo M3 Academy"/></a>
</nav> </nav>
</header> </header>
<!--Banner Principal desktop e mobile--> <!--Banner Principal desktop e mobile-->
<div> <div>
<figure> <figure>
<img class="page-banner-principal-desktop" src="./assets/images/banner-principal-desktop.png" alt="Banner Principal Desktop"> <img class="page-banner-principal-desktop" src="./assets/images/banner-principal-desktop.png" alt="Banner Principal Desktop"/>
<img class="page-banner-principal-mobile" src="./assets/images/banner-principal-mobile.png" alt="Banner Principal Mobile"> <img class="page-banner-principal-mobile" src="./assets/images/banner-principal-mobile.png" alt="Banner Principal Mobile"/>
</figure> </figure>
</div> </div>
<!--Conteúdo principal-->
<main>
<article class="top-infocard">
<section class="top-infocard-text">
<h2>Lorem ipsum</h2>
<h1>dolor sit amet</h1>
<p>
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>
</section>
<img class="top-infocard-image" src="./assets/images/top-infocard-computers.png" alt="Computadores do card de cima"/>
</article>
</main>
</body> </body>
</html> </html>