Adicionei o top infocard desktop e mobile

This commit is contained in:
Patrick Reis Santos 2022-10-09 19:33:20 -03:00
parent 0cff9bd537
commit 65878a0e6c
3 changed files with 82 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -4,6 +4,10 @@
box-sizing: border-box; box-sizing: border-box;
} }
body {
font-family: 'Inter', sans-serif;
color: black;
}
.page-header { .page-header {
display: flex; display: flex;
@ -23,6 +27,43 @@
.main-banner-desktop { .main-banner-desktop {
width: 100%; width: 100%;
} }
.top-infocard {
display: flex;
align-items: center;
justify-content: center;
padding: 80px 0 96px
}
.top-infocard-text {
max-width: 766px;
margin-right: 124px;
}
.top-infocard-subtitulo {
font-weight: 400;
font-size: 32px;
line-height: 0px;
text-transform: uppercase;
color: black;
}
.top-infocard-titulo {
margin-bottom: 24px;
text-transform: uppercase;
font-weight: 500;
font-size: 48px;
line-height: 80px;
color: black;
}
.top-infocard-paragrafo {
font-weight: 400;
font-size: 16px;
line-height: 24px;
color: black;
}
@media screen and (max-width: 414px) { @media screen and (max-width: 414px) {
.main-banner-desktop { .main-banner-desktop {
display: none display: none
@ -33,4 +74,32 @@
.main-banner-mobile { .main-banner-mobile {
display:none display:none
} }
}
@media screen and (max-width: 992px) {
.top-infocard {
padding: 80px 12px 158px;
flex-direction: column;
}
.top-infocard-text {
margin: 0 0 68px;
}
.top-infocard-subtitulo {
font-size: 20px;
}
.top-infocard-titulo {
font-size: 28px;
line-height: 60px;
}
.top-infocard-img {
width: 100%;
max-width: 240px;
}
}
@media screen and (min-width: 993px) and (max-width: 1280px) {
.top-infocard-text {
max-width: 520px;
margin-right: 70px;
}
} }

View File

@ -1,11 +1,14 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="pt-BR"> <html lang="pt-BR">
<head> <head>
<link rel="stylesheet" href="./Assets/Styles/main.css" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<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="./Assets/Styles/main.css" /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter&display=swap" rel="stylesheet">
<title>M3 Landing Page</title> <title>M3 Landing Page</title>
</head> </head>
@ -22,6 +25,15 @@
<img class="main-banner-desktop" src="./Assets/Images/main banner desktop.jpg" alt="Imagem de um computador de mesa (desktop)" /> <img class="main-banner-desktop" src="./Assets/Images/main banner desktop.jpg" alt="Imagem de um computador de mesa (desktop)" />
<img class="main-banner-mobile" src="./Assets/Images/main banner mobile.jpg" alt="Imagem de um computador de mesa (mobile)" /> <img class="main-banner-mobile" src="./Assets/Images/main banner mobile.jpg" alt="Imagem de um computador de mesa (mobile)" />
</section> </section>
<section class="top-infocard">
<div class="top-infocard-text">
<h2 class="top-infocard-subtitulo">Lorem ipsum</h2>
<h1 class="top-infocard-titulo">dolor sit amet</h1>
<p class="top-infocard-paragrafo">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-img" src="./Assets/Images/top infocard img.png" alt="top infocard">
</section>
</main> </main>
</body> </body>
</html> </html>