forked from M3-Academy/challenge-landing-page
feat: Cria lista cards #3
BIN
assets/imgs/coin-card.png
Normal file
BIN
assets/imgs/coin-card.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
BIN
assets/imgs/shop-card.png
Normal file
BIN
assets/imgs/shop-card.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 962 B |
BIN
assets/imgs/shopping-bag-card.png
Normal file
BIN
assets/imgs/shopping-bag-card.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
23
index.html
23
index.html
@ -30,6 +30,29 @@
|
||||
</div>
|
||||
<img class="infocard-img" src="assets/imgs/img-center.png" alt="Banner inforcard" />
|
||||
</div>
|
||||
|
||||
<div class="top-cards">
|
||||
<figure class="top-card">
|
||||
<img class="card-img" src="assets/imgs/shop-card.png" alt="Primeira imagem shop card" />
|
||||
<figcaption class="card-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod
|
||||
enim non
|
||||
dui fringilla interdum.</figcaption>
|
||||
</figure>
|
||||
|
||||
<figure class="top-card">
|
||||
<img class="card-img" src="assets/imgs/shopping-bag-card.png" alt="Segunda imagem shop card" />
|
||||
<figcaption class="card-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod
|
||||
enim non
|
||||
dui fringilla interdum.</figcaption>
|
||||
</figure>
|
||||
|
||||
<figure class="top-card">
|
||||
<img class="card-img" src="assets/imgs/coin-card.png" alt="Terceira imagem shop card" />
|
||||
<figcaption class="card-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod
|
||||
enim non
|
||||
dui fringilla interdum.</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<body>
|
||||
|
@ -1,3 +1,5 @@
|
||||
:root {
|
||||
--black: #000;
|
||||
--white: #fff;
|
||||
--bg-light-gray: #e5e5e5;
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding: 73px 0;
|
||||
padding: 73px 0 178px;
|
||||
}
|
||||
|
||||
.main .container-infocard-text {
|
||||
@ -40,15 +40,37 @@
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.main-banner .banner-desktop {
|
||||
display: none;
|
||||
}
|
||||
.main-banner .banner-mobile {
|
||||
display: block;
|
||||
}
|
||||
.main .top-cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, max-content);
|
||||
gap: 21px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding-bottom: 80px;
|
||||
}
|
||||
|
||||
.main .top-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
|
||||
padding: 26px 26px 34px;
|
||||
background-color: var(--white);
|
||||
}
|
||||
|
||||
.main .card-img {
|
||||
display: block;
|
||||
margin-bottom: 26px;
|
||||
}
|
||||
|
||||
.main .card-description {
|
||||
max-width: 300px;
|
||||
text-align: center;
|
||||
line-height: 24px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* Top-infocard */
|
||||
@media (max-width: 900px) {
|
||||
.main .top-infocard {
|
||||
padding: 73px 29px 90px;
|
||||
@ -70,9 +92,43 @@
|
||||
.main .infocard-description {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 414px) {
|
||||
.main .infocard-img {
|
||||
max-width: 244px;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/*Top-cards*/
|
||||
|
||||
@media (max-width: 1150px) {
|
||||
.main .top-cards {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
padding: 0 26px;
|
||||
}
|
||||
|
||||
.main .card-3 {
|
||||
grid-column-start: 1;
|
||||
grid-column-end: 3;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.main .top-cards {
|
||||
grid-template-columns: 1fr;
|
||||
padding: 36px 26px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Banner-desktop / Banner-mobile*/
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.main-banner .banner-desktop {
|
||||
display: none;
|
||||
}
|
||||
.main-banner .banner-mobile {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
@ -4,3 +4,7 @@
|
||||
box-sizing: border-box;
|
||||
font-family: "Inter", sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--bg-light-gray);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user