feature/challenge #1

Merged
BernardoWaldhelm merged 11 commits from feature/challenge into main 2022-10-12 22:05:45 +00:00
23 changed files with 509 additions and 0 deletions

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 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

BIN
assets/images/card1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 B

BIN
assets/images/card2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
assets/images/card3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
assets/images/computes.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 B

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 19 KiB

BIN
assets/images/product1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

BIN
assets/images/product2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

BIN
assets/images/product3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

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

@ -0,0 +1,336 @@
.header{
display:flex;
justify-content:center;
align-items:center;
padding:29px 0;
background:#000
}
.header__logo {
display: block;
}
.banner {
margin-bottom: 74px;
}
.banner__img {
width: 100%;
display: block;
}
.home-destaque {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.home-destaque__text {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
max-width: 766px;
}
.home-destaque__text__subtitle {
font-weight: 400;
font-size: 32px;
line-height: 39px;
text-transform: uppercase;
}
.home-destaque__text__title {
font-weight: 500;
font-size: 48px;
line-height: 58px;
margin-bottom: 28px;
text-transform: uppercase;
}
.home-destaque__text__description {
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
margin-bottom: 74px;
}
.home-destaque__img {
width: 16%;
margin-bottom: 180px;
}
.cards {
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
}
.cards__card{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
padding: 36px 26px 26px;
}
.card__img {
display: block;
margin-bottom: 26px;
}
.card__description {
padding: 0 25px 27px;
text-align: center;
max-width: 300px;
}
.carousel{
margin-top: 80px;
background: #E0E0E0;
}
.carousel__products {
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 40px;
justify-content: center;
top: 62px;
position: relative;
}
.carousel__products_img {
width: 30vw;
max-width: 566px;
display: block;
}
.bottom-cards {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
justify-content: center;
margin-top: 190px;
padding: 0 72px;
}
.bottom-cards__card{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background: #FFFFFF;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
padding: 36px 26px 26px;
}
.bottom-card__img {
display: block;
margin-bottom: 26px;
}
.bottom-card__description {
padding: 0 25px 27px;
text-align: center;
max-width: 300px;
}
.home-description {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin-top: 110px;
}
.home-description__text {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin-bottom: 32px;
}
.home-description__text__subtitle {
font-weight: 600;
font-size: 32px;
line-height: 40px;
text-align: center;
text-transform: uppercase;
}
.home-description__text__description {
font-weight: 400;
font-size: 16px;
line-height: 24px;
text-align: center;
width: 28%;
}
.home-description__img {
width: 70%;
margin-bottom: 130px;
}
.footer{
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
background: #000;
padding: 38px 0 ;
}
.footer__logos {
display: flex;
list-style: none;
margin-bottom: 12px;
}
.footer__logo {
margin: 0 8px;
}
.footer__text {
font-weight: 400;
font-size: 10px;
line-height: 12px;
text-transform: uppercase;
color: #BDBDBD;
}
@media screen and (min-width: 769px) and (max-width: 1200px) {
.home-destaque__img {
width: 58%;
max-width: 240px;
}
.cards {
grid-template-columns: repeat(2, max-content);
}
.card__description, .bottom-card__description {
max-width: 230px;
}
.bottom-cards{
grid-template-columns: repeat(2, 1fr);
}
.home-description__text__description {
width: 85%;
}
}
@media screen and (max-width: 768px) {
.home-destaque__text {
padding: 0 28px;
}
.home-destaque__text__subtitle {
font-size: 20px;
line-height: 24px;
}
.home-destaque__text__title{
font-size: 28px;
line-height: 34px;
}
.home-destaque__text__description {
text-align: center;
}
.home-destaque__img {
width: 58%;
max-width: 240px;
}
.cards, .bottom-cards {
grid-template-columns: 1fr;
padding: 0 28px;
}
.carousel__products {
grid-template-columns: repeat(2, max-content);
justify-content: center;
column-gap: 14px;
row-gap: 24px;
padding: 0 26px;
}
.carousel__products_img {
width: 42vw;
}
.product3 {
grid-column: 1/3;
width: 88vw;
max-width: none;
}
.home-description {
flex-direction: column-reverse;
}
.home-description__text{
padding: 0 26px ;
}
.home-description__text__subtitle{
font-weight: 600;
font-size: 24px;
line-height: 30px;
}
.home-description__text__description {
width: 85%;
}
.home-description__img {
margin-bottom: 50px;
}
.footer__text{
max-width: 250px;
text-align: center;
}
}
@media screen and (min-width: 415px) {
.banner__img__mobile {
display: none;
}
}
@media screen and (max-width: 414px) {
.banner__img__desktop {
display: none;
}
}
@media screen and (max-width: 300px) {
.home-destaque__text__title{
font-size: 26px;
}
.cards__card, .bottom-cards__card{
max-width: 235px;
}
}

View File

@ -0,0 +1,44 @@
tml, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
font-family: 'Inter', sans-serif;
color: #000;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

117
index.html Normal file
View File

@ -0,0 +1,117 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./assets/styles/css/main.css">
<link rel="stylesheet" href="./assets/styles/css/reset.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https: //fonts.googleapis.com/css2? família= Inter:wght@400;500;600 & display=swap" rel="stylesheet">
<title>Desafio M3 Academy</title>
</head>
<body>
<header class="header">
<a href="/">
<img class="header__logo" src="./assets/images/logo-m3.svg" alt="Logo M3-Academy">
</a>
</header>
<main>
<section class="banner">
<img class="banner__img banner__img__desktop" src="/assets/images/banner-princpal-desktop.png" alt="Banner Principal do Site" />
<img class="banner__img banner__img__mobile" src="/assets/images/banner-principal-mobile.png" alt="Banner Principal do Site" />
</section>
<section class="home-destaque">
<div class="home-destaque__text">
<h2 class="home-destaque__text__subtitle">Lorem ipsum</h2>
<h1 class="home-destaque__text__title">dolor sit amet</h1>
<p class="home-destaque__text__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="home-destaque__img" src="./assets/images/computes.png" alt="Monitores" />
</section>
<section class="cards">
<div class="cards__card">
<img src="/assets/images/card1.png" alt="Imagem do Card 1" class="card__img">
<p class='card__description'>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </p>
</div>
<div class="cards__card">
<img src="/assets/images/card2.png" alt="Imagem do Card 2" class="card__img">
<p class='card__description'>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </p>
</div>
<div class="cards__card">
<img src="/assets/images/card3.png" alt="Imagem do Card 3" class="card__img">
<p class='card__description'>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </p>
</div>
</section>
<section class="carousel">
<div class="carousel__products">
<img class="carousel__products_img" src="/assets/images/product1.png" alt="Imagem do Produto 1" >
<img class="carousel__products_img " src="/assets/images/product2.png" alt="Imagem do Produto 2" >
<img class="carousel__products_img product3" src="/assets/images/product3.png" alt="Imagem do Produto 3" ">
</div>
</section>
<section class="bottom-cards">
<div class="bottom-cards__card">
<img src="/assets/images/bottom-card1.png" alt="Imagem do Card 1" class="bottom-card__img">
<p class='bottom-card__description'>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </p>
</div>
<div class="bottom-cards__card">
<img src="/assets/images/bottom-card2.png" alt="Imagem do Card 2" class="bottom-card__img">
<p class='bottom-card__description'>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </p>
</div>
<div class="bottom-cards__card">
<img src="/assets/images/bottom-card3.png" alt="Imagem do Card 3" class="bottom-card__img">
<p class='bottom-card__description'>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </p>
</div>
<div class="bottom-cards__card">
<img src="/assets/images/bottom-card4.png" alt="Imagem do Card 4" class="bottom-card__img">
<p class='bottom-card__description'>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum. </p>
</div>
</section>
<section class="home-description">
<div class="home-description__text">
<h2 class="home-description__text__subtitle">Lorem ipsum dolor sit amet</h2>
<p class="home-description__text__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>
</div>
<img class="home-description__img banner__img__desktop" src="./assets/images/home-description.png" alt="Imagem embaçada código" />
<img class="home-description__img banner__img__mobile" src="./assets/images/home-description-mobile.png" alt="Imagem embaçada código" />
</section>
<footer class="footer">
<ul class="footer__logos">
<li class="footer__logo">
<a href="#" target="_blank">
<img class="footer__img" src="./assets/images/insta-logo.png" alt="Ícone Instagram"/>
</a>
</li>
<li class="footer__logo">
<a href="#">
<img class="footer__img" src="/assets/images/facebook-logo.png" alt="Ícone Facebook">
</a>
</li>
<li class="footer__logo">
<a href="#">
<img class="footer__img" src="/assets/images/youtube-logo.png" alt="Ícone Youtube">
</a>
</li>
</ul>
<p class="footer__text">Copyright © 2020 - Loja Comércio Eletrônico CNPJ: 000.000.000/0001-00
</p>
</footer>
</main>
</body>
</html>