Cria o card principal desktop, mobile e telas 4k

This commit is contained in:
Leonardo Pereira Rocha 2022-10-12 16:12:23 -03:00
parent 00e2dcca3c
commit 479e9d6619
6 changed files with 112 additions and 4 deletions

View File

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -16,7 +16,7 @@ body{
background-color: #000; background-color: #000;
} }
.logo-header, .main-banner{ .logo-header, .main-banner-desktop{
width: 100%; width: 100%;
display: block; display: block;
height: auto; height: auto;
@ -52,7 +52,9 @@ body{
} }
.top-infocard-image{ .top-infocard-image{
width: 25%; width: 20%;
display: block;
margin-bottom: 179px;
} }
.top-infocard-description{ .top-infocard-description{
@ -61,9 +63,49 @@ body{
margin-bottom: 84px; margin-bottom: 84px;
} }
.top-card{
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 21px;
padding: 74px 0;
justify-content: center;
}
.card{
display: flex;
flex-direction: column;
align-items: center;
padding: 36px 25px 27px 25px;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.card-image{
width: 20%;
display: block;
margin-bottom: 27px;
}
.card-text{
max-width: 350px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
@media screen and (max-width:768px){
.top-card{
grid-template-columns: 1fr;
padding: 35px 33px 65px 33px;
}
}
@media screen and (max-width:992px) { @media screen and (max-width:992px) {
.top-infocard-description{ .top-infocard-description{
margin: 0 28px 73px; margin: 0 28px 73px;
padding: 26px 36px;
} }
.top-infocard-title{ .top-infocard-title{
font-size: 28px; font-size: 28px;
@ -77,4 +119,47 @@ body{
} }
} }
@media screen and (min-width: 769px) and (max-width: 1250px){
.top-card {
grid-template-columns: repeat(2, max-content);
padding: 35px 33px 65px 33px;
}
}
@media screen and (min-width:2500px){
.top-infocard-text {
max-width: 2000px;
}
.top-infocard-title{
font-size: 144px;
line-height: 174px;
margin-bottom: 84px;
}
.top-infocard-subtitle{
margin-top: 219px;
font-size: 96px;
line-height: 117px;
}
.top-infocard-description{
font-size: 48px;
line-height: 72px;
margin-bottom: 252px;
}
.top-card{
padding: 222px 0;
}
.card-text{
max-width: 1050px;
font-size: 48px;
line-height: 72px;
}
}

View File

@ -23,7 +23,7 @@
</header> </header>
<div> <div>
<img class="main-banner" src="./assets/img/main-banner.png" alt="Banner Principal"/> <img class="main-banner-desktop" src="./assets/img/main-banner-desktop.png" alt="Banner Principal"/>
</div> </div>
<section class="top-infocard"> <section class="top-infocard">
@ -39,5 +39,28 @@
<img class="top-infocard-image" src="./assets/img/top-infocard-image.png" alt="Imagem do infocard do topo"/> <img class="top-infocard-image" src="./assets/img/top-infocard-image.png" alt="Imagem do infocard do topo"/>
</section> </section>
<section class="top-card">
<div class="card">
<img class="card-image" src = "./assets/img/top-card-image-1.png" alt="Primeira imagem do card" />
<p class="card-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
<div class="card">
<img class="card-image" src = "./assets/img/top-card-image-2.png" alt="Segunda imagem do card" />
<p class="card-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
<div class="card">
<img class="card-image" src = "./assets/img/top-card-image-3.png" alt="Terceira imagem do card" />
<p class="card-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
</section>
</body> </body>
</html> </html>