forked from M3-Academy/challenge-landing-page
feat(home): cria top section desktop e mobile
This commit is contained in:
parent
0c14563441
commit
745b496f37
46
index.html
46
index.html
@ -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 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">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="page-header">
|
||||
<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-mobile" src="./src/assets/img/main-banner-mobile.png" alt="Banner Principal Mobile"/>
|
||||
</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>
|
||||
</body>
|
||||
</html>
|
BIN
src/assets/img/top-card-image-01.png
Normal file
BIN
src/assets/img/top-card-image-01.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 943 B |
BIN
src/assets/img/top-card-image-02.png
Normal file
BIN
src/assets/img/top-card-image-02.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
BIN
src/assets/img/top-card-image-03.png
Normal file
BIN
src/assets/img/top-card-image-03.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
BIN
src/assets/img/top-section-image.png
Normal file
BIN
src/assets/img/top-section-image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.7 KiB |
@ -5,6 +5,12 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* ----- VARIÁVEIS PADRÃO ----- */
|
||||
body {
|
||||
font-family: 'Inter', sans-serif;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
/* ----- HEADER ----- */
|
||||
.page-header {
|
||||
display: flex;
|
||||
@ -23,11 +29,45 @@
|
||||
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 ----- */
|
||||
@media screen and (max-width: 768px) {
|
||||
.main-banner-desktop {
|
||||
display: none;
|
||||
}
|
||||
@media screen and (min-width: 2500px) {
|
||||
|
||||
}
|
||||
|
||||
@media screen and (min-width: 769px) {
|
||||
@ -35,3 +75,34 @@
|
||||
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%;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user