Merge pull request 'feature/landing-page' (#1) from feature/landing-page into main

Reviewed-on: #1
This commit is contained in:
Eleonora Otz de Mendonça Soares 2022-10-13 23:46:53 +00:00
commit bb0fafdbcd
22 changed files with 718 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 KiB

View File

@ -0,0 +1,3 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.9993 0.0049936L14.887 0C11.3905 0 9.13087 2.31828 9.13087 5.90643V8.62969H6.00163C5.73123 8.62969 5.51226 8.84891 5.51226 9.11932V13.065C5.51226 13.3354 5.73148 13.5544 6.00163 13.5544H9.13087V23.5106C9.13087 23.781 9.34984 24 9.62025 24H13.703C13.9734 24 14.1924 23.7808 14.1924 23.5106V13.5544H17.8512C18.1216 13.5544 18.3406 13.3354 18.3406 13.065L18.3421 9.11932C18.3421 8.98948 18.2904 8.86514 18.1988 8.77326C18.1071 8.68138 17.9823 8.62969 17.8525 8.62969H14.1924V6.32115C14.1924 5.21157 14.4568 4.64829 15.9022 4.64829L17.9988 4.64755C18.2689 4.64755 18.4879 4.42833 18.4879 4.15817V0.494367C18.4879 0.224462 18.2692 0.00549296 17.9993 0.0049936Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 787 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

View File

@ -0,0 +1,5 @@
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.3766 0H6.62295C2.97106 0 0 3.095 0 6.89906V18.1008C0 21.905 2.97106 24.9999 6.62295 24.9999H17.3766C21.0288 24.9999 23.9999 21.9049 23.9999 18.1008V6.89906C24 3.095 21.0288 0 17.3766 0ZM21.8706 18.1008C21.8706 20.6819 19.8547 22.7817 17.3768 22.7817H6.62295C4.1452 22.7819 2.12938 20.6819 2.12938 18.1008V6.89906C2.12938 4.31806 4.1452 2.21811 6.62295 2.21811H17.3766C19.8545 2.21811 21.8705 4.31806 21.8705 6.89906V18.1008H21.8706Z" fill="white"/>
<path d="M11.9999 6.05847C8.58992 6.05847 5.81576 8.94822 5.81576 12.5003C5.81576 16.0522 8.58992 18.9418 11.9999 18.9418C15.4099 18.9418 18.1841 16.0522 18.1841 12.5003C18.1841 8.94822 15.4099 6.05847 11.9999 6.05847ZM11.9999 16.7236C9.7642 16.7236 7.94514 14.829 7.94514 12.5002C7.94514 10.1711 9.76406 8.27643 11.9999 8.27643C14.2358 8.27643 16.0547 10.1711 16.0547 12.5002C16.0547 14.829 14.2356 16.7236 11.9999 16.7236Z" fill="white"/>
<path d="M18.4435 4.17761C18.0333 4.17761 17.6303 4.35062 17.3405 4.65377C17.0494 4.95543 16.882 5.37539 16.882 5.80422C16.882 6.23173 17.0495 6.65154 17.3405 6.95468C17.6301 7.25635 18.0333 7.43084 18.4435 7.43084C18.8552 7.43084 19.2569 7.25635 19.548 6.95468C19.839 6.65154 20.0051 6.23158 20.0051 5.80422C20.0051 5.37539 19.839 4.95543 19.548 4.65377C19.2584 4.35062 18.8552 4.17761 18.4435 4.17761Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -0,0 +1,3 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M22.98 5.34C22.329 4.182 21.6225 3.969 20.184 3.888C18.747 3.7905 15.1335 3.75 12.003 3.75C8.8665 3.75 5.2515 3.7905 3.816 3.8865C2.3805 3.969 1.6725 4.1805 1.0155 5.34C0.345 6.4965 0 8.4885 0 11.9955C0 11.9985 0 12 0 12C0 12.003 0 12.0045 0 12.0045V12.0075C0 15.4995 0.345 17.5065 1.0155 18.651C1.6725 19.809 2.379 20.019 3.8145 20.1165C5.2515 20.2005 8.8665 20.25 12.003 20.25C15.1335 20.25 18.747 20.2005 20.1855 20.118C21.624 20.0205 22.3305 19.8105 22.9815 18.6525C23.658 17.508 24 15.501 24 12.009C24 12.009 24 12.0045 24 12.0015C24 12.0015 24 11.9985 24 11.997C24 8.4885 23.658 6.4965 22.98 5.34ZM9 16.5V7.5L16.5 12L9 16.5Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 759 B

518
assets/styles/main.css Normal file
View File

@ -0,0 +1,518 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter' , sans-serif;
}
body {
font-family: 'Inter', sans-serif;
color: #000000;
}
/*Header*/
.page-header {
display: flex;
justify-content: center;
align-items: center;
padding: 28px;
background: #000000;
}
.header-logo {
display: block;
}
/*Banner principal*/
.main-banner {
width: 100%;
}
.main-banner-mobile {
display: none;
}
/*Infocard do topo */
.top-infocard {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 73px 0 178px;
gap: 73px;
}
.top-infocard-text {
width: 40%;
text-align: center;
align-items: center;
}
.top-infocard-subtitle {
text-transform: uppercase;
font-weight: 400;
font-size: 32px;
}
.top-infocard-title {
text-transform: uppercase;
font-weight: 500;
font-size: 48px;
line-height: 58px;
margin-bottom: 28px;
}
.top-infocard-description {
font-size: 16px;
line-height: 24px;
text-align: left;
}
.top-infocard-image {
width: 17%;
}
/*Cards do Topo*/
.top-cards {
display: flex;
background: #FFFFFF;
gap: 21px;
justify-content: center;
align-items: center;
margin-bottom: 80px;
width: 100%;
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 35px 26px 27px 26px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.23);
min-height: 287px;
width: 18%;
gap: 27px;
height: auto;
}
.top-card-image {
display: block;
width: 34%;
}
.top-card-description {
/* max-width: 300px;*/
width: 77%;
font-size: 16px;
line-height: 24px;
text-align: center;
}
.gallery-area {
background: #E0E0E0;
width: 100%;
}
.gallery-wrapper {
position: relative;
transform: translateY(4rem);
display: flex;
gap: 39px;
justify-content: center;
width: 88%;
margin: 0 auto;
margin-bottom: 173px;
}
.gallery-area-images {
display: block;
}
.gallery-area-image {
width: 100%
}
/* Cards de Baixo */
.bottom-cards {
display: flex;
background: #FFFFFF;
gap: 16px;
justify-content: center;
align-items: center;
margin: auto auto 108px;
width: 88%;
}
.bottom-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 48px 32px 65px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.23);
min-height: 287px;
gap: 25px;
height: auto;
}
.bottom-card-image {
display: block;
}
.bottom-card-description {
max-width: 367px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/*Infocard de baixo*/
.bottom-infocard {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0 0 116px;
width: 100%;
padding: 0 72px;
}
.bottom-infocard-text {
text-align: center;
margin-bottom: 50px;
width: 29%;
}
.bottom-infocard-title {
font-size: 32px;
font-weight: 600;
line-height: 39px;
}
.bottom-infocard-description {
font-size: 16px;
line-height: 24px;
}
.bottom-infocard-image {
display: block;
width: 100%;
}
.bottom-infocard-image-desktop {
display: block;
margin: auto;
width: 71%;
}
.bottom-infocard-image-mobile {
display: none;
}
/*Footer*/
.page-footer {
display: flex;
flex-direction: column;
background: #000000;
align-items: center;
padding: 38px 0;
gap: 17px;
}
.footer-icons {
display: flex;
list-style: none;
}
.footer-icon {
margin: 0 8px;
}
.footer-text {
text-align: center;
text-transform: uppercase;
font-size: 10px;
line-height: 12px;
color: #BDBDBD;
}
@media screen and (min-width: 2500px) {
/* Infocard do topo */
.top-infocard-text {
width: 52%;
margin: 95px 0 95px;
}
.top-infocard-subtitle {
font-size: 64px;
line-height: 76px;
}
.top-infocard-title {
font-size: 96px;
line-height: 116px;
margin: 0 0 28px;
padding: 0;
}
.top-infocard-description {
font-size: 32px;
line-height: 48px;
padding: 0 0 36px;
}
.top-infocard-image {
width: 20%;
}
/* Cards do topo */
.top-card-description {
width: 88%;
font-size: 32px;
line-height: 48px;
}
.bottom-card-description {
font-size: 32px;
line-height: 48px;
}
/* Infocard de baixo */
.bottom-infocard-text {
width: 35%;
}
.bottom-infocard-title {
font-size: 64px;
line-height: 78px;
}
.bottom-infocard-description {
font-size: 32px;
line-height: 48px;
}
/* Footer */
.footer-text {
font-size: 20px;
line-height: 24px;
}
}
@media screen and (max-width: 1024px) {
/*Banner principal*/
.main-banner-desktop {
display: none;
}
.main-banner-mobile {
display: flex;
width: 100%;
}
/*Infocard do topo*/
.top-infocard {
margin: 73px 28px 91px;
gap: 65px;
}
.top-infocard-text {
width: 86%;
padding: 0 0;
}
.top-infocard-subtitle {
font-size: 20px;
line-height: 24px;
}
.top-infocard-title {
font-size: 28px;
line-height: 32px;
margin-bottom: 18px;
}
.top-infocard-description {
text-align: center;
}
.top-infocard-image {
width: 58%;
}
/*Cards do topo*/
.top-cards {
flex-direction: column;
}
.top-card {
width: 84%;
}
.top-card-image {
max-width: 102px;
}
/*Galeria de Imagens*/
.gallery-area {
padding: 0;
}
.gallery-wrapper {
display: grid;
grid-template-columns: repeat(2, 1fr);
width: 89%;
gap: 23px 14px;
transform: translateY(32px);
margin-bottom: 98px;
}
.gallery-area-images-01 {
order: 2;
}
.gallery-area-images-02 {
order: 1;
}
.gallery-area-images-03 {
grid-column: 1/2 span;
order: 2;
}
/*Cards de baixo*/
.bottom-cards {
flex-direction: column;
margin-bottom: 98px;
width: auto;
}
.bottom-card {
width: 88%;
gap: 15px;
}
.bottom-card-image {
max-width: 102px;
}
.bottom-card-description {
font-size: 14px;
}
/*Infocard de baixo*/
.bottom-infocard {
margin: 0;
padding: 0;
flex-direction: column-reverse;
}
.bottom-infocard-text {
margin-bottom: 87px;
gap: 10px;
width: 84%;
align-items: center;
}
.bottom-infocard-title {
margin-bottom: 9px;
font-size: 24px;
line-height: 29px;
}
.bottom-infocard-description {
font-size: 16px;
line-height: 24px;
}
.bottom-infocard-image-desktop {
display: none;
}
.bottom-infocard-image-mobile {
display: flex;
width: 100%;
margin-bottom: 50px;
}
/*Footer*/
.page-footer {
gap: 16px;
}
.footer-text {
max-width: 63%;
}
}
@media screen and (max-width: 320px) {
.header-logo {
width: 180px
}
/*Infocard do topo */
.top-infocard {
margin: 57px 28px 57px;
gap: 45px;
}
/*Cards do topo */
.top-cards {
margin-bottom: 50px;
}
.top-card {
padding: 26px 23px 23px 25px;
gap: 16px;
}
/*Galeria de imagens*/
.gallery-wrapper{
gap: 14px 11px;
transform: translateY(23px);
margin-bottom: 76px;
}
/*Cards de baixo */
.bottom-cards {
margin-bottom: 67px;
}
.bottom-card {
padding: 38px 29px 38px;
gap: 11px;
}
/*Infocard de baixo*/
.bottom-infocard-image-mobile {
margin-bottom: 34px;
}
.bottom-infocard-text {
margin-bottom: 62px;
}
}

180
index.html Normal file
View File

@ -0,0 +1,180 @@
<!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>Challenge Landing Page</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="./assets/styles/main.css" />
</head>
<body>
<!-- Header -->
<header class="page-header">
<a href="/">
<img class="header-logo" src="./assets/images/m3-academy-logo.svg" alt="Logo M3" />
</a>
</header>
<main>
<!-- Banner principal -->
<div>
<figure class="main-banner">
<img class="main-banner main-banner-desktop" src="./assets/images/main-banner-desktop.png" alt="Banner principal" />
<img class="main-banner main-banner-mobile" src="./assets/images/main-banner-mobile.png" alt="Banner principal" />
</figure>
</div>
<!-- Infocard do topo -->
<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/images/top-infocard-image.png" alt="Imagem do infocard do topo: 3 computadores" />
</section>
<!-- Cards do topo -->
<section class="top-cards">
<figure class="top-card">
<img class="top-card-image" src="./assets/images/top-card-image-01.png" alt="Imagem do card do topo: Loja" />
<figcaption class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</figcaption>
</figure>
<figure class="top-card">
<img class="top-card-image" src="./assets/images/top-card-image-02.png" alt="Imagem do card do topo: Bolsa de compras" />
<figcaption class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</figcaption>
</figure>
<figure class="top-card">
<img class="top-card-image" src="./assets/images/top-card-image-03.png" alt="Imagem do card do topo: Moeda" />
<figcaption class="top-card-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</figcaption>
</figure>
</section>
<!-- Galeria de Fotos-->
<div class="gallery-area">
<div class="gallery-wrapper">
<figure class="gallery-area-images gallery-area-images-01">
<img class="gallery-area-image" src="./assets/images/gallery-area-image-01.png" alt="Imagem da galeria: Computador 1" />
</figure>
<figure class="gallery-area-images gallery-area-images-02">
<img class="gallery-area-image" src="./assets/images/gallery-area-image-02.png" alt="Imagem da galeria: Computador 2" />
</figure>
<figure class="gallery-area-images gallery-area-images-03">
<img class="gallery-area-image" src="./assets/images/gallery-area-image-03.png" alt="Imagem da galeria: Computador 3" />
</figure>
</div>
</div>
<!-- Cards de Baixo -->
<section class="bottom-cards">
<figure class="bottom-card">
<img class="bottom-card-image" src="./assets/images/bottom-card-image-01.png" alt="Imagem do card de baixo: Nota dinheiro" />
<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="Imagem do card de baixo: Moeda" />
<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="Imagem do card de baixo: Computador" />
<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="Imagem do card de baixo: Celular" />
<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>
<!-- Infocard de baixo -->
<div class="bottom-infocard">
<article class="bottom-infocard-text">
<h2 class="bottom-infocard-title">Lorem ipsum dolor sit amet</h2>
<p class="bottom-infocard-description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vulputate sapien non libero faucibus interdum. In eget tincidunt ipsum.
Quisque a tellus at lectus blandit tempor. Ut tristique auctor mi eget hendrerit. Curabitur venenatis felis vitae sagittis venenatis.
Donec finibus turpis vitae lectus interdum rutrum vitae sed augue.
</p>
</article>
<figure class="bottom-infocard-image">
<img class="bottom-infocard-image-desktop" src="./assets/images/bottom-infocard-image-desktop.png" alt="Imagem do infocard de baixo" />
<img class="bottom-infocard-image-mobile" src="./assets/images/bottom-infocard-image-mobile.png" alt="Imagem do infocard de baixo" />
</figure>
</div>
</main>
<!--Footer-->
<footer class="page-footer">
<ul class="footer-icons">
<li class="footer-icon">
<a href="https://www.instagram.com/m3.ecommerce/" target="_blank" rel="external">
<img src="./assets/images/instagram-icon.svg" alt="Ícone do Instagram" />
</a>
</li>
<li class="footer-icon">
<a href="https://www.facebook.com/digitalm3/" target="_blank" rel="external">
<img src="./assets/images/facebook-icon.svg" alt="Ícone do Facebook" />
</a>
</li>
<li class="footer-icon">
<a href="https://www.youtube.com/channel/UCW4o86gZG_ceA8CmHltXeXA/videos?app=desktop" target="_blank" rel="external">
<img src="./assets/images/youtube-icon.svg" alt="Ícone do Youtube" />
</a>
</li>
</ul>
<p class="footer-text">
Copyright © 2020 - Loja Comércio Eletrônico CNPJ: 000.000.000/0001-00
</p>
</footer>
</body>
</html>