Fiz os cards desktop e mobile

This commit is contained in:
Patrick Reis Santos 2022-10-09 23:55:39 -03:00
parent 65878a0e6c
commit 8e0e1696a2
5 changed files with 62 additions and 0 deletions

BIN
Assets/Images/coin 1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
Assets/Images/shop 1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -64,12 +64,49 @@ body {
color: black; color: black;
} }
.top-cards {
padding: 74px 0;
gap: 20px;
display: grid;
grid-template-columns: repeat(3, max-content);
background: #FFFFFF;
justify-content: center;
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 26px 26px 34px;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-img {
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 (min-width: 415px) { @media screen and (min-width: 415px) {
.main-banner-mobile { .main-banner-mobile {
display:none display:none
@ -97,6 +134,12 @@ body {
} }
} }
@media screen and (min-width: 769px) and (max-width: 1200px) {
.top-cards{
grid-template-columns: repeat(2, max-content);
}
}
@media screen and (min-width: 993px) and (max-width: 1280px) { @media screen and (min-width: 993px) and (max-width: 1280px) {
.top-infocard-text { .top-infocard-text {
max-width: 520px; max-width: 520px;

View File

@ -34,6 +34,25 @@
</div> </div>
<img class="top-infocard-img" src="./Assets/Images/top infocard img.png" alt="top infocard"> <img class="top-infocard-img" src="./Assets/Images/top infocard img.png" alt="top infocard">
</section> </section>
<section class="top-cards">
<div class="top-card">
<img class="top-card-img" src="./Assets/Images/shop 1.png" alt="Imagem shop" />
<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-img" src="./Assets/Images/shopping-bag (1) 1.png" alt="Imagem shopping" />
<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-img" src="./Assets/Images/coin 1.png" alt="Imagem coin" />
<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>