Adiciona os cards de baixo desktop e mobile

This commit is contained in:
Affonso Kopmann 2022-10-07 22:55:27 -03:00
parent 27b3dd09a2
commit 201f75d8fd
9 changed files with 225 additions and 86 deletions

View File

@ -2,13 +2,11 @@
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
color: #000000;
}
.page-header {
@ -16,7 +14,6 @@ body {
justify-content: center;
background: #000000;
padding: 28px 0;
}
.header-logo {
@ -56,7 +53,6 @@ body {
.top-infocard-description {
line-height: 24px;
font-size: 16px;
}
.top-cards {
@ -89,12 +85,46 @@ body {
text-align: center;
}
.bottom-cards {
margin-top: 114px;
background: linear-gradient(180deg, #00C8FF 0%, #15ACD6 100%);
}
@media screen and (min-width: 993px) and (max-width:1280px) {
.top-infocard-text {
max-width: 520px;
margin-right: 70px;
.bottom-cards-wrapper {
display: grid;
grid-template-columns: repeat(2, max-content);
gap: 20px;
justify-content: center;
position: relative;
top: -60px;
}
.bottom-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 36px 32px 66px;
background: #FFFFFF;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}
.bottom-card-image {
display: block;
margin-bottom: 14px;
}
.bottom-card-description {
max-width: 368px;
text-align: center;
font-size: 16px;
line-height: 24px;
}
@media screen and (max-width: 414px) {
.main-banner-desktop,
.middle-banner-desktop {
display: none;
}
}
@ -105,11 +135,25 @@ body {
}
}
@media screen and (max-width: 414px) {
.main-banner-desktop,
.middle-banner-desktop {
display: none;
@media screen and (max-width: 768px) {
.top-cards {
grid-template-columns: 1fr;
padding: 36px 26px;
}
.bottom-cards {
margin-top: 114px;
padding: 0 26px;
}
.bottom-cards-wrapper {
grid-template-columns: 1fr;
gap: 16px;
}
.bottom-card-description {
font-size: 14px;
}
}
@media screen and (max-width: 992px) {
@ -134,17 +178,21 @@ body {
}
}
@media screen and (max-width: 768px) {
.top-cards {
grid-template-columns: 1fr;
padding: 36px 26px;
}
}
@media screen and (min-width: 769px) and (max-width: 1200px) {
.top-cards {
grid-template-columns: repeat(2, max-content);
}
}
@media screen and (min-width: 769px) and (max-width: 992px) {
.bottom-card-description {
max-width: 280px;
}
}
@media screen and (min-width: 993px) and (max-width:1280px) {
.top-infocard-text {
max-width: 520px;
margin-right: 70px;
}
}

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 790 B

After

Width:  |  Height:  |  Size: 790 B

View File

Before

Width:  |  Height:  |  Size: 565 B

After

Width:  |  Height:  |  Size: 565 B

View File

Before

Width:  |  Height:  |  Size: 743 B

After

Width:  |  Height:  |  Size: 743 B

View File

@ -2,8 +2,8 @@
<html lang="pt-BR">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<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" />
@ -11,26 +11,39 @@
<title>M3 Landing Page</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;900&display=swap" rel="stylesheet">
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;900&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./_assets/css/main.css">
<link rel="stylesheet" href="./_assets/css/main.css" />
</head>
<body>
<!-- Header | Image and background -->
<header class="page-header">
<a href="/">
<img class="header-logo" src="./_assets/images/logo_m3.svg" alt="Logo M3" />
<img
class="header-logo"
src="./_assets/images/logo_m3.svg"
alt="Logo M3"
/>
</a>
</header>
<main>
<!-- Main Banner | desktop and Mobile -->
<section>
<img class="main-banner main-banner-desktop" src="./_assets/images/main-banner-desktop.jpg" alt="Banner principal Desktop" />
<img class="main-banner main-banner-mobile" src="./_assets/images/main-banner-mobile.jpg" alt="Banner principal Mobile" />
<img
class="main-banner main-banner-desktop"
src="./_assets/images/main-banner-desktop.jpg"
alt="Banner principal Desktop"
/>
<img
class="main-banner main-banner-mobile"
src="./_assets/images/main-banner-mobile.jpg"
alt="Banner principal Mobile"
/>
</section>
<!-- First Infocard -->
@ -40,42 +53,120 @@
<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.
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/images/top-infocard-image.png" alt="Banner do Infocard do Topo" />
<img
class="top-infocard-image"
src="./_assets/images/top-infocard-image.png"
alt="Banner do Infocard do Topo"
/>
</section>
<section class="top-cards">
<div class="top-card">
<img class="top-card-image" src="./_assets/images/top-card-image-01.svg" alt="Imagem do Primeiro Card do Topo" />
<img
class="top-card-image"
src="./_assets/images/top-card-image-01.svg"
alt="Imagem do Primeiro Card do Topo"
/>
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras
euismod enim non dui fringilla interdum.
</p>
</div>
<div class="top-card">
<img class="top-card-image" src="./_assets/images/top-card-image-02.svg" alt="Imagem do Segundo Card do Topo" />
<img
class="top-card-image"
src="./_assets/images/top-card-image-02.svg"
alt="Imagem do Segundo Card do Topo"
/>
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras
euismod enim non dui fringilla interdum.
</p>
</div>
<div class="top-card">
<img class="top-card-image" src="./_assets/images/top-card-image-03.svg" alt="Imagem do Terceiro Card do Topo" />
<img
class="top-card-image"
src="./_assets/images/top-card-image-03.svg"
alt="Imagem do Terceiro Card do Topo"
/>
<p class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras
euismod enim non dui fringilla interdum.
</p>
</div>
</section>
<!-- Middle Banner | desktop and Mobile -->
<section>
<img class="middle-banner middle-banner-desktop" src="./_assets/images/middle-banner-desktop.jpg" alt="Banner do Meio Desktop" />
<img class="middle-banner middle-banner-mobile" src="./_assets/images/middle-banner-mobile.jpg" alt="Banner do Meio Mobile" />
<img
class="middle-banner middle-banner-desktop"
src="./_assets/images/middle-banner-desktop.jpg"
alt="Banner do Meio Desktop"
/>
<img
class="middle-banner middle-banner-mobile"
src="./_assets/images/middle-banner-mobile.jpg"
alt="Banner do Meio Mobile"
/>
</section>
<!-- Bottom Card | desktop and Mobile -->
<section class="bottom-cards">
<div class="bottom-cards-wrapper">
<div class="bottom-card">
<img class="bottom-card-image" src="./_assets/images/bottom-card-image-01.svg" alt="Imagem do Primeiro Card de Baixo." />
<p class="bottom-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras
euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet,
consectetur adipiscing elit. Cras euismod enim non dui fringilla
interdum.
</p>
</div>
<div class="bottom-card">
<img class="bottom-card-image" src="./_assets/images/bottom-card-image-02.svg" alt="Imagem do Segundo Card de Baixo." />
<p class="bottom-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras
euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet,
consectetur adipiscing elit. Cras euismod enim non dui fringilla
interdum.
</p>
</div>
<div class="bottom-card">
<img class="bottom-card-image" src="./_assets/images/bottom-card-image-03.svg" alt="Imagem do Terceiro Card de Baixo." />
<p class="bottom-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras
euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet,
consectetur adipiscing elit. Cras euismod enim non dui fringilla
interdum.
</p>
</div>
<div class="bottom-card">
<img class="bottom-card-image" src="./_assets/images/bottom-card-image-04.svg" alt="Imagem do Quarto Card de Baixo." />
<p class="bottom-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras
euismod enim non dui fringilla interdum. Lorem ipsum dolor sit amet,
consectetur adipiscing elit. Cras euismod enim non dui fringilla
interdum.
</p>
</div>
</div>
</section>
</main>