forked from M3-Academy/challenge-landing-page
Merge pull request 'feat(home): Adiciona Cards do topo desktop e mobile' (#4) from feature/main/top-cards into development
Reviewed-on: #4
This commit is contained in:
commit
8f7e04c185
@ -66,6 +66,36 @@ body {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.top-cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 20px;
|
||||
justify-content: center;
|
||||
margin: 0 22% 4%;
|
||||
}
|
||||
|
||||
.top-card {
|
||||
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-top: 10%;
|
||||
}
|
||||
.top-card-description {
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 150%;
|
||||
/* or 150% */
|
||||
margin: 8%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1023px) {
|
||||
.main-banner-desktop {
|
||||
display: none;
|
||||
@ -89,6 +119,13 @@ body {
|
||||
.top-infocard-description {
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.top-cards {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 24px;
|
||||
margin: 0 32px 80px;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1024px) {
|
||||
.main-banner-mobile {
|
||||
|
BIN
assets/imagens/top-card-image-01.png
Normal file
BIN
assets/imagens/top-card-image-01.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 962 B |
BIN
assets/imagens/top-card-image-02.png
Normal file
BIN
assets/imagens/top-card-image-02.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
BIN
assets/imagens/top-card-image-03.png
Normal file
BIN
assets/imagens/top-card-image-03.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
35
index.html
35
index.html
@ -40,14 +40,43 @@
|
||||
dui.
|
||||
</p>
|
||||
</figcaption>
|
||||
|
||||
|
||||
<figure>
|
||||
<img class="top-infocard-image" src="./assets/imagens/top-infocard-image.png"
|
||||
alt="Banner do Infocard do Topo">
|
||||
</figure>
|
||||
</section>
|
||||
|
||||
<section class="top-cards">
|
||||
<figure class="top-card">
|
||||
<img class="top-card-image" src="./assets/imagens/top-card-image-01.png"
|
||||
alt="Imagem do Primeiro Card do Topo" />
|
||||
<figcaption>
|
||||
<p class="top-card-description">
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla
|
||||
interdum.
|
||||
</p>
|
||||
</figcaption>
|
||||
</figure>
|
||||
<figure class="top-card">
|
||||
<img class="top-card-image" src="./assets/imagens/top-card-image-02.png"
|
||||
alt="Imagem do Segundo Card do Topo" />
|
||||
<figcaption>
|
||||
<p class="top-card-description">
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla
|
||||
interdum.
|
||||
</p>
|
||||
</figcaption>
|
||||
</figure>
|
||||
<figure class="top-card">
|
||||
<img class="top-card-image" src="./assets/imagens/top-card-image-03.png"
|
||||
alt="Imagem do Terceiro Card do Topo" />
|
||||
<figcaption>
|
||||
<p class="top-card-description">
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla
|
||||
interdum.
|
||||
</p>
|
||||
</figcaption>
|
||||
</figure>
|
||||
</section>
|
||||
|
||||
</main>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user