forked from M3-Academy/practice-time-landing-page
Adiciona os cards do topo desktop e mobile
This commit is contained in:
parent
0393ef605a
commit
92c7d09a2c
BIN
assets/images/top-card-image-01.png
Normal file
BIN
assets/images/top-card-image-01.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
assets/images/top-card-image-02.png
Normal file
BIN
assets/images/top-card-image-02.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
assets/images/top-card-image-03.png
Normal file
BIN
assets/images/top-card-image-03.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
@ -54,12 +54,49 @@ body{
|
|||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.top-cards{
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, max-content);
|
||||||
|
gap: 20px;
|
||||||
|
padding: 74px 0;
|
||||||
|
justify-content: center;
|
||||||
|
background: #F0F0F0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.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-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;
|
||||||
@ -91,6 +128,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: 415px){
|
@media screen and (min-width: 415px){
|
||||||
.main-banner-mobile{
|
.main-banner-mobile{
|
||||||
display: none;
|
display: none;
|
||||||
|
20
index.html
20
index.html
@ -39,6 +39,26 @@
|
|||||||
|
|
||||||
<img class="top-infocard-image" src="./assets/images/top-infocard-image.png" alt="Banner Infocard do Topo"/>
|
<img class="top-infocard-image" src="./assets/images/top-infocard-image.png" alt="Banner Infocard do Topo"/>
|
||||||
</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>
|
Loading…
Reference in New Issue
Block a user