forked from M3-Academy/practice-time-landing-page
feat(home): adiciona o bottom infocard no desktop e mobile
This commit is contained in:
parent
ade1866856
commit
f3aa95ee91
BIN
assets/images/bottom-infocard-img-desktop.png
Normal file
BIN
assets/images/bottom-infocard-img-desktop.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 447 KiB |
BIN
assets/images/botttom-inforcard-img-mobile.png
Normal file
BIN
assets/images/botttom-inforcard-img-mobile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 247 KiB |
@ -124,6 +124,33 @@ body {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.bottom-infocard{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 142px 0 180px;
|
||||
}
|
||||
|
||||
.bottom-infocard-img {
|
||||
margin-right: 40px;
|
||||
}
|
||||
|
||||
.bottom-infocard-text {
|
||||
max-width: 550px;
|
||||
}
|
||||
|
||||
.bottom-infocard-title {
|
||||
margin-bottom: 18px;
|
||||
font-size: 32px;
|
||||
line-height: 20px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.bottom-infocard-description {
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 414px) {
|
||||
.main-banner-desktop {
|
||||
display: none;
|
||||
@ -192,6 +219,25 @@ body {
|
||||
width: 100%;
|
||||
max-width: 240px;
|
||||
}
|
||||
|
||||
.bottom-infocard {
|
||||
flex-direction: column;
|
||||
padding: 80px 0 136px;
|
||||
}
|
||||
|
||||
.bottom-infocard-img {
|
||||
width: 100%;
|
||||
max-width: 596px;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
.bottom-infocard-title {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.bottom-infocard-text {
|
||||
padding: 0 26px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 769px) and (max-width: 1200px) {
|
||||
@ -211,6 +257,18 @@ body {
|
||||
max-width: 520px;
|
||||
margin-right: 70px;
|
||||
}
|
||||
|
||||
.bottom-infocard-img {
|
||||
max-width: 480px;
|
||||
}
|
||||
|
||||
.bottom-infocard-title {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.bottom-infocard-text {
|
||||
max-width: 400px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
11
index.html
11
index.html
@ -7,7 +7,7 @@
|
||||
<link rel="stylesheet" href="./assets/styles/main.css" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https: //fonts.googleapis.com/css2? família= Inter:wght@400;500 & display=swap" rel="stylesheet">
|
||||
<link href="https: //fonts.googleapis.com/css2? família= Inter:wght@400;500;600 & display=swap" rel="stylesheet">
|
||||
|
||||
<title>M3 - Landing Page</title>
|
||||
</head>
|
||||
@ -72,6 +72,15 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="bottom-infocard">
|
||||
<img class="bottom-infocard-img" src="./assets/images/bottom-infocard-img-desktop.png" alt="Banner de óculos">
|
||||
<div class="bottom-infocard-text">
|
||||
<h1 class="bottom-infocard-title"> Lorem ipsum dolor sit amet</h1>
|
||||
<p class="bottom-infocard-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. Curabitur ut tortor sed lacus egestas vulputate vel sit amet velit. Nulla suscipit magna dui. </p>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user