forked from M3-Academy/practice-time-landing-page
Fiz os cards desktop e mobile
This commit is contained in:
parent
65878a0e6c
commit
8e0e1696a2
BIN
Assets/Images/coin 1.png
Normal file
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
BIN
Assets/Images/shop 1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
Assets/Images/shopping-bag (1) 1.png
Normal file
BIN
Assets/Images/shopping-bag (1) 1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
@ -64,12 +64,49 @@ body {
|
||||
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) {
|
||||
.main-banner-desktop {
|
||||
display: none
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.top-cards{
|
||||
grid-template-columns: 1fr;
|
||||
padding: 36px 26px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 415px) {
|
||||
.main-banner-mobile {
|
||||
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) {
|
||||
.top-infocard-text {
|
||||
max-width: 520px;
|
||||
|
19
index.html
19
index.html
@ -34,6 +34,25 @@
|
||||
</div>
|
||||
<img class="top-infocard-img" src="./Assets/Images/top infocard img.png" alt="top infocard">
|
||||
</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>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user