feat(index): Cria o estilo do top infocard para desktop, mobile e 4K

This commit is contained in:
Nicolly Vieira Santos Costa 2022-10-11 11:31:33 -03:00
parent 47c8e7efd0
commit 4ce3df6153
2 changed files with 135 additions and 5 deletions

View File

@ -1,13 +1,19 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<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>Desafio 1 - Landing Page</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles/main.css">
</head>
<body>
<!-- Header Page -->
<header class="header-page">
@ -21,9 +27,11 @@
<div>
<figure>
<!-- Versão Desktop -->
<img class="main-banner main-banner-desktop" src="assets/images/main-banner-image-desktop.png" alt="iamgem do banner principal">
<img class="main-banner main-banner-desktop" src="assets/images/main-banner-image-desktop.png"
alt="iamgem do banner principal">
<!-- Versão Mobile -->
<img class="main-banner main-banner-mobile" src="assets/images/main-banner-image-mobile.png" alt="imagem do banner principal">
<img class="main-banner main-banner-mobile" src="assets/images/main-banner-image-mobile.png"
alt="imagem do banner principal">
</figure>
</div>
@ -32,13 +40,17 @@
<div class="top-infocard-content">
<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>
<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>
<figure class="top-infocard-image-container">
<img class="top-infocard-image" src="assets/images/top-infocard-image.png" alt="imagem do infocard do topo">
<img class="top-infocard-image" src="assets/images/top-infocard-image.png"
alt="imagem do infocard do topo">
</figure>
</section>
</main>
</body>
</html>

View File

@ -1,9 +1,13 @@
/*Header*/
* {
margin: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
}
/*Header*/
.header-page {
display: flex;
justify-content: center;
@ -30,7 +34,60 @@
display: none;
}
/* Top Infocard */
.top-infocard {
display: flex;
flex-direction: column;
align-items: center;
padding: 74px 0;
}
.top-infocard-content {
width: 40%;
}
.top-infocard-subtitle,
.top-infocard-title {
text-align: center;
}
.top-infocard-subtitle {
text-transform: uppercase;
font-weight: 400;
font-size: 32px;
line-height: 39px;
}
.top-infocard-title {
text-transform: uppercase;
font-weight: 500;
font-size: 48px;
line-height: 58px;
padding-bottom: 28px;
}
.top-infocard-description {
font-weight: 400;
font-size: 16px;
line-height: 24px;
padding-bottom: 73px;
}
.top-infocard-image-container {
width: 16%;
min-width: 300px;
}
.top-infocard-image {
width: 100%;
}
/*mobile*/
@media screen and (max-width: 1024px) {
/*Banner*/
.main-banner-desktop {
display: none;
@ -41,4 +98,65 @@
max-height: 598px;
object-fit: cover;
}
/*Top infocard*/
.top-infocard {
padding: 74px 30px 90px 30px;
}
.top-infocard-content {
width: 100%;
}
.top-infocard-subtitle {
font-size: 20px;
line-height: 24px;
}
.top-infocard-title {
font-size: 28px;
line-height: 34px;
}
.top-infocard-description {
text-align: center;
}
.top-infocard-image-container {
width: 58%;
min-width: initial;
max-width: 239px;
}
}
/*4K*/
@media screen and (min-width: 2500px) {
.top-infocard-subtitle {
font-size: 40px;
line-height: 70px;
}
.top-infocard-title {
font-size: 75px;
}
.top-infocard-description {
font-size: 32px;
line-height: 40px;
}
}
@media screen and (min-width: 3000px) {
/*Top InfoCard*/
.top-infocard-subtitle {
font-size: 48px;
}
.top-infocard-title {
font-size: 100px;
line-height: 125px;
}
}