forked from M3-Academy/challenge-landing-page
Ajusta os banners para o mobile
This commit is contained in:
parent
04e5a3f2cb
commit
6bbf1ee112
BIN
assets/img/final-photo-desktop.png
Normal file
BIN
assets/img/final-photo-desktop.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 362 KiB |
BIN
assets/img/final-photo-mobile.png
Normal file
BIN
assets/img/final-photo-mobile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 247 KiB |
BIN
assets/img/main-banner-mobile.png
Normal file
BIN
assets/img/main-banner-mobile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 341 KiB |
@ -12,7 +12,6 @@ body{
|
|||||||
.page-header{
|
.page-header{
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 28px 0;
|
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,6 +147,38 @@ body{
|
|||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.final-card{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.final-card-info{
|
||||||
|
max-width: 550px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.final-card-title{
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 32px;
|
||||||
|
line-height: 39px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.final-card-text{
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 24px;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.final-card-image-desktop{
|
||||||
|
width: 70%;
|
||||||
|
margin-bottom: 116px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@media screen and (max-width:992px) {
|
@media screen and (max-width:992px) {
|
||||||
|
|
||||||
.top-infocard-image{
|
.top-infocard-image{
|
||||||
@ -186,6 +217,17 @@ body{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width:414px) {
|
||||||
|
.main-banner-desktop, .final-photo-desktop{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-banner-mobile, .final-photo-mobile{
|
||||||
|
display: block;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width:768px){
|
@media screen and (max-width:768px){
|
||||||
.top-card{
|
.top-card{
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
@ -217,7 +259,11 @@ body{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width:415px){
|
||||||
|
.main-banner-mobile, .final-photo-mobile{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (min-width:2500px){
|
@media screen and (min-width:2500px){
|
||||||
|
|
||||||
|
20
index.html
20
index.html
@ -19,6 +19,7 @@
|
|||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<a href="/">
|
<a href="/">
|
||||||
<img class="logo-header" src="./assets/img/Logo-M3Academy.png" alt="Logo M3 Academy" />
|
<img class="logo-header" src="./assets/img/Logo-M3Academy.png" alt="Logo M3 Academy" />
|
||||||
|
<img class="main-banner-mobile" src="./assets/img/main-banner-mobile.png" alt="Banner Principal"/>
|
||||||
</a>
|
</a>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
@ -111,4 +112,23 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section class="final-card">
|
||||||
|
|
||||||
|
<img class="final-photo-mobile" src="./assets/img/final-photo-mobile.png" alt="Banner final da pagina" />
|
||||||
|
|
||||||
|
<div class="final-card-info">
|
||||||
|
<h1 class="final-card-title" >Lorem ipsum dolor sit amet</h1>
|
||||||
|
<p class="final-card-text">
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vulputate sapien non libero
|
||||||
|
faucibus interdum. In eget tincidunt ipsum.
|
||||||
|
Quisque a tellus at lectus blandit tempor. Ut tristique auctor mi eget hendrerit.
|
||||||
|
Curabitur venenatis felis vitae sagittis venenatis.
|
||||||
|
Donec finibus turpis vitae lectus interdum rutrum vitae sed augue.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<img class="final-photo-desktop" src="./assets/img/final-photo-desktop.png" alt="Banner final da pagina" />
|
||||||
|
</section>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user