Adiciona o top infocard desktop e mobile

This commit is contained in:
Eleonora Otz de Mendonça Soares 2022-10-09 23:38:05 -03:00
parent 6c1e8984db
commit fda16ebfe5
2 changed files with 87 additions and 17 deletions

View File

@ -4,9 +4,9 @@
box-sizing: border-box; box-sizing: border-box;
} }
.body{ body {
font-family: 'Inter' , sans-serif; font-family: 'Inter', sans-serif;
color: #000000; color: #000000;
} }
.page-header { .page-header {
@ -22,22 +22,80 @@
} }
.main-banner { .main-banner {
width: 100%; width: 100%;
} }
.top-infocard {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-bottom: 178px;
}
.top-infocard-text {
width: 40%;
text-align: center;
align-items: center;
margin-top: 74px;
}
.top-infocard-subtitle {
text-transform: uppercase;
font-weight: 400;
font-size: 20px;
line-height: 24px;
}
.top-infocard-title {
text-transform: uppercase;
font-weight: 500;
font-size: 28px;
line-height: 34px;
padding: 0 0 28px;
}
.top-infocard-description {
line-height: 24px;
font-size: 16px;
margin-bottom: 74px;
}
.top-infocard-image {
max-width: 16%;
}
@media screen and (max-width: 392px) { @media screen and (max-width: 392px) {
.header-logo { .header-logo {
width: 180px width: 180px
} }
} }
@media screen and (max-width: 414px) { @media screen and (max-width: 768px) {
.main-banner-desktop { .main-banner-desktop {
display: none; display: none;
} }
.top-infocard-text {
width: 86%;
}
.top-infocard-subtitle {
line-height: 20px;
}
.top-infocard-description {
margin-bottom: 65px;
}
.top-infocard-image {
max-width: 58%;
margin-bottom: 90px;
}
} }
@media screen and (min-width: 415px) { @media screen and (min-width: 769px) {
.main-banner-mobile { .main-banner-mobile {
display: none; display: none;
} }

View File

@ -1,9 +1,8 @@
<!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.googleapis.com" /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<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" />
@ -11,7 +10,7 @@
<title>Challenge Landing Page</title> <title>Challenge Landing Page</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./assets/styles/main.css" /> <link rel="stylesheet" href="./assets/styles/main.css" />
</head> </head>
@ -24,12 +23,25 @@
</a> </a>
</header> </header>
<!-- Banner principal --> <main>
<div> <!-- Banner principal -->
<figure class="main-banner"> <div>
<img class="main-banner main-banner-desktop" src="./assets/images/main-banner-desktop.png" alt="Banner principal" /> <figure class="main-banner">
<img class="main-banner main-banner-mobile" src="./assets/images/main-banner-mobile.png" alt="Banner principal" /> <img class="main-banner main-banner-desktop" src="./assets/images/main-banner-desktop.png" alt="Banner principal" />
</figure> <img class="main-banner main-banner-mobile" src="./assets/images/main-banner-mobile.png" alt="Banner principal" />
</div> </figure>
</div>
<!-- Infocard do topo -->
<section class="top-infocard">
<div class="top-infocard-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>
</div>
<img class="top-infocard-image" src="./assets/images/top-infocard-image.png" alt="Imagem do infocard do topo: 3 computadores" />
</section>
</main>
</body> </body>
</html> </html>