Adiciona os card do topo desktop e mobile

This commit is contained in:
Rhayllon Daudt 2022-10-10 02:16:14 -03:00
parent 958205dcde
commit c672ff1c48
5 changed files with 88 additions and 2 deletions

View File

@ -58,12 +58,50 @@ body{
line-height: 24px; line-height: 24px;
} }
.top-cards{
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
padding: 74px 0;
background: #F0F0F0;
}
.top-card{
padding: 26px 26px 34px;
display: flex;
flex-direction: column;
align-items: center;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-image{
display: block;
margin-bottom: 26px;
}
.top-card-description{
max-width: 300px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
@media screen and (max-width: 414px) { @media screen and (max-width: 414px) {
.main-banner-desktop{ .main-banner-desktop{
display: none; display: none;
} }
} }
@media screen and (max-width: 768px) {
.top-cards{
grid-template-columns: 1fr;
padding: 36px 26px;
}
}
@media screen and (max-width: 992px) { @media screen and (max-width: 992px) {
.top-infocard{ .top-infocard{
flex-direction: column; flex-direction: column;
@ -90,13 +128,33 @@ body{
} }
@media screen and (min-width: 993px) and (max-width: 1280) { @media screen and (min-width: 993px) {
.top-infocard-text{ .top-infocard-text{
max-width: 520px; max-width: 520px;
margin-right: 70px; margin-right: 70px;
} }
} }
@media screen and (max-width: 1280) {
.top-infocard-text{
max-width: 520px;
margin-right: 70px;
}
}
@media screen and (min-width: 769px) {
.top-cards{
grid-template-columns: repeat(2, max-content);
}
}
@media screen and (max-width: 1200px) {
.top-cards{
grid-template-columns: repeat(2, max-content);
}
}
@media screen and (min-width: 415px) { @media screen and (min-width: 415px) {
.main-banner-mobile{ .main-banner-mobile{
display: none; display: none;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -45,6 +45,34 @@
<img class="top-infocard-image" src="./assets/images/top-infocard-image.png" alt=" Tres computador interligado" /> <img class="top-infocard-image" src="./assets/images/top-infocard-image.png" alt=" Tres computador interligado" />
</section> </section>
<section class="top-cards">
<div class="top-card">
<img class="top-card-image" src="./assets/images/top-card-image-01.png" alt="Imagem do primeiro card do topo" />
<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="./assets/images/top-card-image-02.png" alt="Imagem do segundo card do topo" />
<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="./assets/images/top-card-image-03.png" alt="Imagem do terceiro card do topo" />
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</p>
</div>
</section>
</main> </main>
</body> </body>
</html> </html>