feat(home): infocard desktop e mobile

This commit is contained in:
Gabriel Ferraz Nogueira 2022-10-07 19:41:48 -03:00
parent 90ac375a66
commit 359decd520
3 changed files with 89 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -3,12 +3,15 @@
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
} }
body{
font-family: 'Inter', sans-serif;
color: #000;
}
.page-header{ .page-header{
display: flex; display: flex;
justify-content: center; justify-content: center;
padding: 28px 0; padding: 28px 0;
background-color: #000000 background-color: #000
; ;
} }
@ -19,15 +22,77 @@
.main-banner{ .main-banner{
max-width: 100%; max-width: 100%;
} }
.top-infocard{
display: flex;
align-items: center;
justify-content: center;
padding: 80px 0 96px;
}
.top-infocard-text{
margin-right: 124px;
max-width: 766px;
}
.top-inforcard-subtitle{
text-transform: uppercase;
font-size: 32px;
font-weight: 400;
}
.top-infocard-title{
margin-bottom: 24px;
text-transform: uppercase;
font-weight: 500;
font-size: 48px;
}
.top-infocard-description{
font-weight: 400;
font-size: 16px;
}
@media screen and (max-width: 414px) { @media screen and (max-width: 414px) {
.main-banner-desktop{ .main-banner-desktop{
display: none; 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-inforcard-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) { @media screen and (min-width: 415px) {
.main-banner-mobile{ .main-banner-mobile{
display: none; display: none;
} }
} }
@media screen and (min-width: 1920px) {
.main-banner-desktop {
width: 100%;
object-fit: contain;
}
}

View File

@ -1,12 +1,19 @@
<!DOCTYPE html> <!DOCTYPE html>
<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"/>
<title>M3 Landing Page</title> <title>M3 Landing Page</title>
<link href="https://fonts.googleapis.com/css2?family=Inter&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./assets/styles/main.css"/> <link rel="stylesheet" href="./assets/styles/main.css"/>
</head> </head>
@ -22,6 +29,21 @@
<img class="main-banner main-banner-desktop" src="./assets/images/Main-banner-desktop.png" alt="Main-banner-desktop"/> <img class="main-banner main-banner-desktop" src="./assets/images/Main-banner-desktop.png" alt="Main-banner-desktop"/>
<img class="main-banner main-banner-mobile" src="./assets/images/Main-banner-mobile.png" alt="Main-banner-mobile"/> <img class="main-banner main-banner-mobile" src="./assets/images/Main-banner-mobile.png" alt="Main-banner-mobile"/>
</section> </section>
<section class="top-infocard">
<div class="top-infocard-text">
<h2 class="top-inforcard-subtitle"> Lorem ipsum</h2>
<h1 class="top-infocard-title"> Dolor sit amet</h1>
<p class="top-infocard-description">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Eum autem explicabo alias illo quod enim sit eveniet laborum consequuntur ipsam,
animi ratione repellendus nulla nam ullam fuga quam. Quae, impedit.
</p>
</div>
<img class="top-infocard-image" src="./assets/images/Top-infocard-image.png" alt="Banner do Infocard do Topo"/>
</section>
</main> </main>
</body> </body>
</html> </html>