feat(home): cria top section desktop e mobile

This commit is contained in:
Andrea Matsunaga 2022-10-12 16:25:30 -03:00
parent 0c14563441
commit 745b496f37
6 changed files with 121 additions and 4 deletions

View File

@ -1,13 +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>Desafio M3 Academy</title> <title>Desafio M3 Academy</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./src/styles/main.css"> <link rel="stylesheet" href="./src/styles/main.css">
</head> </head>
<body> <body>
<header class="page-header"> <header class="page-header">
<a href="/"> <a href="/">
@ -20,6 +26,46 @@
<img class="main-banner main-banner-desktop" src="./src/assets/img/main-banner-desktop.png" alt="Banner Principal Desktop"/> <img class="main-banner main-banner-desktop" src="./src/assets/img/main-banner-desktop.png" alt="Banner Principal Desktop"/>
<img class="main-banner main-banner-mobile" src="./src/assets/img/main-banner-mobile.png" alt="Banner Principal Mobile"/> <img class="main-banner main-banner-mobile" src="./src/assets/img/main-banner-mobile.png" alt="Banner Principal Mobile"/>
</div> </div>
<section class="top-section">
<div class="top-section-text">
<h2 class="top-section-subtitle">Lorem ipsum</h2>
<h1 class="top-section-title">dolor sit amet</h1>
<p class="top-section-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>
<div class="top-image">
<img src="./src/assets/img/top-section-image.png" alt="Imagem Central da Seção Principal" />
</div>
<div class="top-cards">
<div class="top-card">
<img class="top-card-image" src="./src/assets/img/top-card-image-01.png" alt="Imagem do Primeiro Card da Seção Principal"/>
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
<div class="top-card">
<img class="top-card-image" src="./src/assets/img/top-card-image-02.png" alt="Imagem do Segundo Card da Seção Principal"/>
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
<div class="top-card">
<img class="top-card-image" src="./src/assets/img/top-card-image-03.png" alt="Imagem do Terceiro Card da Seção Principal"/>
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
</div>
</section>
</main> </main>
</body> </body>
</html> </html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 943 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -5,6 +5,12 @@
box-sizing: border-box; box-sizing: border-box;
} }
/* ----- VARIÁVEIS PADRÃO ----- */
body {
font-family: 'Inter', sans-serif;
color: #000000;
}
/* ----- HEADER ----- */ /* ----- HEADER ----- */
.page-header { .page-header {
display: flex; display: flex;
@ -23,11 +29,45 @@
width: 100%; width: 100%;
} }
/* ----- TOP SECTION ----- */
.top-section {
display: flex;
flex-direction: column;
align-items: center;
padding: 74px 0 80px;
}
.top-section-text {
margin-bottom: 74px;
display: flex;
flex-direction: column;
align-items: center;
}
.top-section-subtitle {
text-transform: uppercase;
/* line-height: 38px; */
font-size: 32px;
font-weight: 400;
}
.top-section-title {
margin-bottom: 28px;
text-transform: uppercase;
/* line-height: 58px; */
font-size: 48px;
font-weight: 500;
}
.top-section-description {
max-width: 54%;
line-height: 24px;
font-size: 16px;
}
/* ----- RESPONSIVIDADE ----- */ /* ----- RESPONSIVIDADE ----- */
@media screen and (max-width: 768px) { @media screen and (min-width: 2500px) {
.main-banner-desktop {
display: none;
}
} }
@media screen and (min-width: 769px) { @media screen and (min-width: 769px) {
@ -35,3 +75,34 @@
display: none; display: none;
} }
} }
@media screen and (max-width: 768px) {
.main-banner-desktop {
display: none;
}
.top-section-text {
max-width: 86%;
margin: 0 28px 64px;
}
.top-section-subtitle {
line-height: 24px;
font-size: 20px;
}
.top-section-title {
line-height: 34px;
font-size: 28px;
}
.top-section-description {
text-align: center;
}
}
@media screen and (max-width: 320px) {
.top-section-text {
width: 100%;
}
}