Adiciona o top infocard desktop e mobile

This commit is contained in:
HUMBERTO ANTONIO CORREIA FERRO 2022-10-10 22:55:26 -03:00
parent b129e1ea85
commit e54699db1d
3 changed files with 86 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -3,6 +3,10 @@
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Inter', sans-serif;
color:#000000
}
.page-header{
background: #000000;
display:flex;
@ -12,18 +16,77 @@
.header-logo{
display: block;
}
.main-banner{
width: 100%;
.top-infocard{
display: flex;
align-items: center;
justify-content: center;
gap: 72px;
flex-direction: column;
padding: 84px 38px 179px;
}
.top-infocard-test{
width: 40%;
margin: 0 auto;
}
@media screen and (max-width: 414px) {
.main-banner-desktop {
display: none;
}
.top-infocard-subtitle{
text-transform: uppercase;
font-size: 32px;
font-weight: 400;
}
.top-infocard-description{
font-size: 16px;
line-height: 24px;
}
.top-infocard-title{
text-transform: uppercase;
font-size: 48px;
font-weight: 500;
margin-bottom: 24px;
}
.top-infocard-title,
.top-infocard-subtitle{
text-align: center;
}
@media screen and (min-width: 415px) {
.main-banner-mobile {
display: none;
.main-banner-desktop {
display: block;
width: 100%;
}
.main-banner-mobile {
display: none;
}
@media (max-width: 1024px) {
.main-banner-desktop {
display: none;
}
.main-banner-mobile {
display: block;
width: 100%;
}
}
@media screen and (max-width:1024px) {
.top-infocard{
padding: 65px 0 90px;
flex-direction: column;
}
.top-infocard-subtitle{
font-size: 20px;
}
.top-infocard-title{
font-size: 28px;
margin-bottom: 20px;
}
.top-infocard-test{
margin: 0 0 66px
}
.top-infocard-image{
max-width: 240px;
width: 100%;
}
}

View File

@ -1,10 +1,13 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Document</title>
<title>Page M3 Academy</title>
<link href="https: //fonts.googleapis.com/css2? família= Inter:wght@400;500 &family= Roboto+Mono:wght@100 & family= Shadows+Into+Light & display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/style/main.css"/>
</head>
<body>
@ -18,6 +21,15 @@
<img class="main banner main-banner-desktop" src="assets/image/main-banner-desktop.png" alt="banner principal desktop"/>
<img class="main banner main-banner-mobile" src="assets/image/main-banner-mobile.png" alt="banner principal mobile"/>
</section>
<section class="top-infocard">
<div class="top-infocard-test">
<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/image/top-infocard-image.png" alt="Banner do infocard do topo"/>
</section>
</main>
</body>