forked from M3-Academy/practice-time-landing-page
Adiciona o top infocard desktop e mobile
This commit is contained in:
parent
ef9d104325
commit
c8899c61d7
BIN
assets/img/top-infocard-image.png
Normal file
BIN
assets/img/top-infocard-image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
@ -3,6 +3,12 @@
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body{
|
||||
font-family: 'Inter', sans-serif;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.page-header{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@ -12,18 +18,87 @@
|
||||
|
||||
.header-logo{
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
|
||||
.main-banner-desktop{
|
||||
width:100%
|
||||
}
|
||||
|
||||
.top-infocard{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 80px 0 95px;
|
||||
}
|
||||
|
||||
.top-infocard-text{
|
||||
max-width: 766px;
|
||||
margin-right: 124px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.top-infocard-image{
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@media screen and (max-width:414px) {
|
||||
.main-banner-desktop{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width:992px){
|
||||
.top-infocard{
|
||||
flex-direction: column;
|
||||
padding: 84px 30px 158px;
|
||||
}
|
||||
.top-infocard-text{
|
||||
margin: 0 0 68px;
|
||||
}
|
||||
|
||||
.top-infocard-subtitle{
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.top-infocard-title{
|
||||
margin-bottom: 20px;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.top-infocard-image{
|
||||
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;
|
||||
|
22
index.html
22
index.html
@ -2,9 +2,16 @@
|
||||
<html lang="pt-BR">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>M3 Landing Page</title>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap" rel="stylesheet">
|
||||
|
||||
<link rel="stylesheet" href="./assets/styles/main.css">
|
||||
</head>
|
||||
<body>
|
||||
@ -20,6 +27,21 @@
|
||||
<img class="main-banner-desktop"src="./assets/img/main-banner-desktop.png" alt="Banner Principal" />
|
||||
<img class="main-banner-mobile"src="./assets/img/main-banner-mobile.png" alt="Banner Principal" />
|
||||
</section>
|
||||
|
||||
<section class="top-infocard">
|
||||
<div class="top-infocard-text">
|
||||
<h2 class="top-infocard-subtitle">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-image" src="./assets/img/top-infocard-image.png" alt="Banner do infocard no topo"/>
|
||||
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user