Adiciona text e imagem do infocard topo #3

Merged
nicolasrosadeoliveira merged 1 commits from feature/top-text into develop 2022-10-10 15:45:10 +00:00
3 changed files with 92 additions and 1 deletions
Showing only changes of commit 8acc81e5a7 - Show all commits

BIN
assets/images/top-image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -27,6 +27,52 @@ body {
.top__text {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 84px 30px;
gap: 72px;
}
.top__infocard-text {
width: 40%;
margin: 0 auto;
}
.top__infocard-subtitle {
text-transform: uppercase;
font-weight: 400;
font-size: 32px;
text-align: center;
}
.top__infocard-title,
.top__infocard-subtitle {
text-align: center;
}
.top__infocard-title {
margin-bottom: 24px;
text-transform: uppercase;
font-weight: 500;
font-size: 48px;
}
.top__infocard-description {
line-height: 24px;
font-size: 16px;
}
/* MEDIAS QUERIES */
@media screen and (max-width: 414px) {
.main__banner-desktop,
.middle__banner-desktop {
@ -40,3 +86,36 @@ body {
display: none;
}
}
@media screen and (max-width: 992px) {
.top__text {
flex-direction: column;
padding: 73px 30px 158px;
gap: 65px;
}
.top__infocard-text {
width: 100%;
margin-right: 0;
}
.top__infocard-subtitle {
font-size: 20px;
}
.top__infocard-title {
margin-bottom: 20px;
font-size: 28px;
}
.top__infocard-image {
width: 100%;
max-width: 240px;
}
.top__infocard-description {
text-align: center;
}
}

View File

@ -20,6 +20,18 @@
<img class="main__banner main__banner-desktop" src="./assets/images/main-banner-desktop.png" alt="Banner principal Desktop">
<img class="main__banner main__banner-mobile" src="./assets/images/main-banner-mobile.png" alt="Banner principal Mobile">
</figure>
<section class="top__text">
<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>
<figure>
<img class="top__infocard-image" src="./assets/images/top-image.png" alt="Imagem de 3 monitores">
</figure>
</section>
</main>
</body>
</html>