forked from M3-Academy/practice-time-landing-page
Adiciona o Top infocard desktop e mobile
This commit is contained in:
parent
f69357377a
commit
0619567640
@ -1,9 +1,17 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');
|
||||
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Inter', sans-serif;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@ -19,14 +27,75 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.top-infocard {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 80px 0 96px;
|
||||
}
|
||||
|
||||
.top-infocard-text {
|
||||
margin-right: 124px;
|
||||
max-width: 766px;
|
||||
}
|
||||
|
||||
.top-infocard-subtitle {
|
||||
font-weight: 400;
|
||||
font-size: 32px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.top-infocard-title {
|
||||
margin-bottom: 24px;
|
||||
font-weight: 500;
|
||||
font-size: 48px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.top-infocard-description {
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 414px) {
|
||||
.main-banner-desktop {
|
||||
display:none;
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 414px) {
|
||||
@media screen and (max-width: 992px) {
|
||||
.top-infocard {
|
||||
padding: 84px 26px 158px;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.top-infocard-text {
|
||||
margin: 0 0 68px;
|
||||
}
|
||||
|
||||
.top-infocard-subtitle {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.top-infocard-title {
|
||||
margin-bottom: 20px;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.top-infocard-img {
|
||||
width: 100%;
|
||||
max-width: 240px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 993px) and (max-width: 1280px) {
|
||||
.top-infocard-text {
|
||||
max-width: 520px;
|
||||
margin-right: 70px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 415px) {
|
||||
.main-banner-mobile {
|
||||
display: none;
|
||||
}
|
||||
|
BIN
assets/top-infocard-img.png
Normal file
BIN
assets/top-infocard-img.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
16
index.html
16
index.html
@ -17,9 +17,19 @@
|
||||
|
||||
</header>
|
||||
<main>
|
||||
<section>
|
||||
<img class="main-banner-desktop" src="assets/main-banner-desktop.png" alt="Banner principal">
|
||||
<img class="main-banner-mobile" src="assets/main-banner-mobile.png" alt="Banner principal">
|
||||
<div>
|
||||
<img class="main-banner main-banner-desktop" src="assets/main-banner-desktop.png" alt="Banner principal">
|
||||
<img class="main-banner main-banner-mobile" src="assets/main-banner-mobile.png" alt="Banner principal">
|
||||
</div>
|
||||
|
||||
<section class="top-infocard">
|
||||
<div class="top-infocard-text">
|
||||
<h2 class="top-infocard-subtitJle">Lorem ipsum</h2>
|
||||
<h1 class="top-infocard-title">dolor sit amet</h1>
|
||||
<p class="top-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>
|
||||
<img class="top-infocard-img" src="assets/top-infocard-img.png" alt="Banner do Infocard do Topo">
|
||||
</section>
|
||||
</main>
|
||||
<footer>
|
||||
|
Loading…
Reference in New Issue
Block a user