forked from M3-Academy/challenge-landing-page
Cria o infocard do topo desktop e mobile
This commit is contained in:
parent
d3c8072b97
commit
00e2dcca3c
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 |
@ -4,6 +4,11 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body{
|
||||
font-family: 'Inter', sans-serif;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.page-header{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@ -15,4 +20,61 @@
|
||||
width: 100%;
|
||||
display: block;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.top-infocard-subtitle{
|
||||
margin-top: 73px;
|
||||
font-weight: 400;
|
||||
font-size: 32px;
|
||||
line-height: 39px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.top-infocard{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.top-infocard-text{
|
||||
max-width: 766px;
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
|
||||
.top-infocard-title{
|
||||
margin-bottom: 28px;
|
||||
font-weight: 500;
|
||||
font-size: 48px;
|
||||
line-height: 58px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.top-infocard-image{
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.top-infocard-description{
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
margin-bottom: 84px;
|
||||
}
|
||||
|
||||
@media screen and (max-width:992px) {
|
||||
.top-infocard-description{
|
||||
margin: 0 28px 73px;
|
||||
}
|
||||
.top-infocard-title{
|
||||
font-size: 28px;
|
||||
line-height: 34px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.top-infocard-subtitle{
|
||||
font-size: 20px;
|
||||
line-height: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
|
21
index.html
21
index.html
@ -2,10 +2,18 @@
|
||||
<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 Academy Landing Page</title>
|
||||
<link rel="stylesheet" href="./assets/styles/style.css" />
|
||||
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<header class="page-header">
|
||||
@ -18,5 +26,18 @@
|
||||
<img class="main-banner" src="./assets/img/main-banner.png" alt="Banner Principal"/>
|
||||
</div>
|
||||
|
||||
<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="Imagem do infocard do topo"/>
|
||||
</section>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user