feat(main): Adiciona os cards de baixo desktop

This commit is contained in:
Juan Guzzo Santana 2022-10-13 21:42:20 -03:00
parent 53135c486c
commit 37da6069d9
6 changed files with 166 additions and 84 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -1,104 +1,154 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="pr-BR"> <html lang="pr-BR">
<head> <head>
<link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>M3 Landing Page Challenge</title> <title>M3 Landing Page Challenge</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="./styles/main.css" /> <link rel="stylesheet" href="./styles/main.css" />
</head> </head>
<body> <body>
<!--Cabeçalho--> <!--Cabeçalho-->
<header class="page-header"> <header class="page-header">
<figure> <figure>
<a href="./"> <a href="./">
<img class="header-logo" src="./assets/svg/header-logo.svg" alt="Logo da M3 Academy" /> <img class="header-logo" src="./assets/svg/header-logo.svg" alt="Logo da M3 Academy" />
</a> </a>
</figure>
</header>
<main>
<!--Banner Principal-->
<figure>
<img class="main-banner main-banner-desktop" src="./assets/images/main-banner-desktop.png"
alt="Banner principal: Um notebook rodando um aplicativo de programação" />
<img class="main-banner main-banner-mobile" src="./assets/images/main-banner-mobile.png"
alt="Banner principal: Um notebook rodando um aplicativo de programação" />
</figure>
<!--Primeiro Infocard-->
<article 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>
<figure class="top-infocard-figure">
<img class="top-infocard-image" src="./assets/images/top-infocard.png"
alt="Imagem de três computadores interligados">
</figure> </figure>
</article> </header>
<!--Cards de Cima--> <main>
<section class="top-cards"> <!--Banner Principal-->
<figure class="top-card"> <figure>
<img class="top-card-image" src="./assets/images/top-card-image-01.png" alt="Icone representando loja" /> <img class="main-banner main-banner-desktop" src="./assets/images/main-banner-desktop.png"
alt="Banner principal: Um notebook rodando um aplicativo de programação" />
<figcaption class="top-cards-description"> <img class="main-banner main-banner-mobile" src="./assets/images/main-banner-mobile.png"
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. alt="Banner principal: Um notebook rodando um aplicativo de programação" />
</figcaption>
</figure> </figure>
<figure class="top-card"> <!--Primeiro Infocard-->
<img class="top-card-image" src="./assets/images/top-card-image-02.png" alt="Icone de sacola de compras" /> <article 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>
<figcaption class="top-cards-description"> <p class="top-infocard-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. euismod enim non dui fringilla interdum.
</figcaption> Curabitur ut tortor sed lacus egestas vulputate vel sit amet velit. Nulla suscipit magna dui.
</figure> </p>
</div>
<figure class="top-card"> <figure class="top-infocard-figure">
<img class="top-card-image" src="./assets/images/top-card-image-03.png" alt="Icone de mão com dinheiro" /> <img class="top-infocard-image" src="./assets/images/top-infocard.png"
alt="Imagem de três computadores interligados">
</figure>
</article>
<figcaption class="top-cards-description"> <!--Cards de Cima-->
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. <section class="top-cards">
</figcaption> <figure class="top-card">
</figure> <img class="top-card-image" src="./assets/images/top-card-image-01.png"
</section> alt="Icone representando loja" />
<!--Banner do Meio--> <figcaption class="top-cards-description">
<section class="middle-banners"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla
<div class="middle-banners-wrapper"> interdum.
<figure class="middle-banner middle-banner-fig-01"> </figcaption>
<img class="middle-banner-image" src="./assets/images/middle-banner-image-01.png" alt="Macbook quase fechado">
</figure> </figure>
<figure class="middle-banner middle-banner-fig-02"> <figure class="top-card">
<img class="middle-banner-image" src="./assets/images/middle-banner-image-02.png" alt="Macbook semi-aberto"> <img class="top-card-image" src="./assets/images/top-card-image-02.png"
alt="Icone de sacola de compras" />
<figcaption class="top-cards-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla
interdum.
</figcaption>
</figure> </figure>
<figure class="middle-banner middle-banner-fig-03"> <figure class="top-card">
<img class="middle-banner-image" src="./assets/images/middle-banner-image-03.png" alt="Close do Macbook"> <img class="top-card-image" src="./assets/images/top-card-image-03.png"
</figure> alt="Icone de mão com dinheiro" />
</div>
</section> <figcaption class="top-cards-description">
</main> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla
</body> interdum.
</figcaption>
</figure>
</section>
<!--Banner do Meio-->
<section class="middle-banners">
<div class="middle-banners-wrapper">
<figure class="middle-banner middle-banner-fig-01">
<img class="middle-banner-image" src="./assets/images/middle-banner-image-01.png"
alt="Macbook quase fechado">
</figure>
<figure class="middle-banner middle-banner-fig-02">
<img class="middle-banner-image" src="./assets/images/middle-banner-image-02.png"
alt="Macbook semi-aberto">
</figure>
<figure class="middle-banner middle-banner-fig-03">
<img class="middle-banner-image" src="./assets/images/middle-banner-image-03.png"
alt="Close do Macbook">
</figure>
</div>
</section>
<section class="bottom-cards">
<figure class="bottom-card">
<img class="bottom-card-image" src="./assets/images/bottom-card-image-01.png" alt="" />
<figcaption 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.
</figcaption>
</figure>
<figure class="bottom-card">
<img class="bottom-card-image" src="./assets/images/bottom-card-image-02.png" alt="" />
<figcaption 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.
</figcaption>
</figure>
<figure class="bottom-card">
<img class="bottom-card-image" src="./assets/images/bottom-card-image-03.png" alt="" />
<figcaption 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.
</figcaption>
</figure>
<figure class="bottom-card">
<img class="bottom-card-image" src="./assets/images/bottom-card-image-04.png" alt="" />
<figcaption 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.
</figcaption>
</figure>
</section>
</main>
</body>
</html> </html>

View File

@ -118,6 +118,7 @@ body {
gap: 2%; gap: 2%;
position: relative; position: relative;
top: 8vh; top: 8vh;
margin-bottom: 17vh;
} }
.middle-banner { .middle-banner {
@ -129,6 +130,37 @@ body {
width: 100% width: 100%
} }
/* Cards de Baixo */
.bottom-cards {
width: 100%;
display: flex;
justify-content: center;
gap: 1%;
}
.bottom-card {
width: 22%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #FFFFFF;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}
.bottom-card-image {
width: 22%;
margin: 10% 0 5%
}
.bottom-card-description {
width: 85%;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/* Responsividade */ /* Responsividade */
@media screen and (min-width: 821px) { @media screen and (min-width: 821px) {
.main-banner-mobile { .main-banner-mobile {