forked from M3-Academy/challenge-landing-page
Merge pull request 'feat(home): Adiciona Infocard do Topo desktop e mobile' (#3) from feature/main/top-infocard into development
Reviewed-on: #3
This commit is contained in:
commit
e257e747e7
@ -4,6 +4,11 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Inter", sans-serif;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
padding: 28px 0;
|
||||
@ -20,10 +25,70 @@
|
||||
display: block;
|
||||
}
|
||||
|
||||
.top-infocard {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 74px 0 180px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.top-inforcard-text {
|
||||
max-width: 100%;
|
||||
margin: 0 30% 0;
|
||||
}
|
||||
|
||||
.top-infocard-subtitle {
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 32px;
|
||||
line-height: 39px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.top-infocard-title {
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-size: 48px;
|
||||
line-height: 58px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.top-infocard-description {
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 150%;
|
||||
margin-bottom: 74px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1023px) {
|
||||
.main-banner-desktop {
|
||||
display: none;
|
||||
}
|
||||
.top-infocard {
|
||||
padding-bottom: 90px;
|
||||
}
|
||||
.top-inforcard-text {
|
||||
margin: 0 7% 0;
|
||||
}
|
||||
|
||||
.top-infocard-subtitle {
|
||||
font-size: 20px;
|
||||
line-height: 24px;
|
||||
}
|
||||
.top-infocard-title {
|
||||
font-size: 28px;
|
||||
line-height: 34px;
|
||||
margin-bottom: 66px;
|
||||
}
|
||||
.top-infocard-description {
|
||||
line-height: 24px;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1024px) {
|
||||
.main-banner-mobile {
|
||||
|
BIN
assets/imagens/top-infocard-image.png
Normal file
BIN
assets/imagens/top-infocard-image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
39
index.html
39
index.html
@ -4,8 +4,13 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Desafio 1 - M3 Academy</title>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Roboto:wght@100;300;500;700&display=swap"
|
||||
rel="stylesheet">
|
||||
<link rel="stylesheet" href="./assets/css/style.css">
|
||||
</head>
|
||||
|
||||
@ -16,12 +21,34 @@
|
||||
</a>
|
||||
</header>
|
||||
<main>
|
||||
<figure>
|
||||
<img class="main-banner main-banner-desktop" src="./assets/imagens/main-banner-desktop.png"
|
||||
alt="Banner principal desktop">
|
||||
<img class="main-banner main-banner-mobile" src="./assets/imagens/main-banner-mobile.png"
|
||||
alt="Banner principal mobile">
|
||||
</figure>
|
||||
<section>
|
||||
<figure>
|
||||
<img class="main-banner main-banner-desktop" src="./assets/imagens/main-banner-desktop.png"
|
||||
alt="Banner principal desktop">
|
||||
<img class="main-banner main-banner-mobile" src="./assets/imagens/main-banner-mobile.png"
|
||||
alt="Banner principal mobile">
|
||||
</figure>
|
||||
</section>
|
||||
<section class="top-infocard">
|
||||
<figcaption class="top-inforcard-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>
|
||||
</figcaption>
|
||||
|
||||
|
||||
<figure>
|
||||
<img class="top-infocard-image" src="./assets/imagens/top-infocard-image.png"
|
||||
alt="Banner do Infocard do Topo">
|
||||
</figure>
|
||||
</section>
|
||||
|
||||
|
||||
</main>
|
||||
</body>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user