feature/section2 #3

Merged
luizfelipe9627 merged 3 commits from feature/section2 into main 2022-10-14 00:07:12 +00:00
3 changed files with 200 additions and 6 deletions

View File

@ -7,6 +7,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./src/assets/css/style.css">
<link rel="shortcut icon" href="./src/assets/img/favicon.jpg" type="image/x-icon">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<title>Landing Page - M3 Academy</title>
</head>
@ -21,5 +23,56 @@
<img class="fundo-desktop" src="./src/assets/img/fundo-desktop.png" alt="Notebook na mesa">
<img class="fundo-mobile" src="./src/assets/img/fundo-mobile.png" alt="Notebook na mesa">
</section>
<section class="section2">
<div class="container">
<div class="container-content">
<h2 class="text-subtitle">Lorem ipsum</h2>
<h1 class="text-title">dolor sit amet</h1>
<p class="text-paragraph">
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>
<figure class="img-computers">
<img src="./src/assets/svg/computadores.svg" alt="Computadores">
</figure>
</div>
<div class="container-cards">
<div class="card">
<figure>
<img src="./src/assets/svg/shopping.svg" alt="Loja">
<figcaption>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</figcaption>
</figure>
</div>
<div class="card">
<figure>
<img src="./src/assets/svg/bolsa.svg" alt="Bolsa">
<figcaption>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</figcaption>
</figure>
</div>
<div class="card">
<figure>
<img src="./src/assets/svg/moeda.svg" alt="Moeda">
<figcaption>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui fringilla interdum.
</figcaption>
</figure>
</div>
</div>
</div>
</section>
</body>
</html>

View File

@ -1,8 +1,16 @@
@import url('../font/fonte.css');
/* GLOBAL */
* {
box-sizing: border-box;
padding: 0;
margin: 0;
font-family: 'Inter', sans-serif;
}
body {
background-color: #E5E5E5;
}
/* HEADER */
@ -23,17 +31,149 @@ header a {
.section1 img {
width: 100%;
height: 36%;
padding-top: 50px;
}
@media screen and (max-width: 425px) {
.fundo-desktop {
display: none;
/* SECTION 2 */
.section2 {
display: flex;
justify-content: center;
text-align: center;
margin: 0 auto;
padding: 50px 0;
flex-wrap: wrap;
}
.text-title {
font-size: 48px;
font-weight: 500;
text-transform: uppercase;
}
.text-subtitle {
font-size: 32px;
text-transform: uppercase;
font-weight: 400;
}
.text-paragraph {
padding-top: 20px;
max-width: 60%;
margin: 0 auto;
line-height: 24px;
}
.img-computers img {
width: 16%;
padding: 70px 0;
}
.container-cards {
display: flex;
justify-content: center;
gap: 21px;
}
.card {
background-color: #fff;
box-shadow: 0px 4px 20px 0px #0000003B;
padding: 20px;
max-width: 20%;
}
.card img {
padding: 15px;
}
.card figure img {
max-width: 50%;
}
figcaption {
line-height: 24px;
}
/* TELAS GRANDES */
@media only screen and (min-width: 1440px) {
.text-subtitle {
font-size: 64px;
}
.text-title {
font-size: 96px;
}
.text-paragraph {
font-size: 32px;
line-height: 48px;
}
.card figure figcaption {
font-size: 32px;
line-height: 48px;
}
}
@media screen and (min-width: 426px) {
/* TABLET */
@media only screen and (min-width: 481px) and (max-width: 900px) {
.img-computers img {
width: 30%;
}
.text-paragraph {
max-width: 80%;
}
.container-cards {
width: 80%;
margin: 0 auto;
}
.card {
max-width: 70%;
}
}
/* CELULAR */
@media screen and (min-width: 481px) {
.fundo-mobile {
display: none;
}
}
}
@media screen and (max-width: 480px) {
.fundo-desktop {
display: none;
}
.text-title {
font-size: 28px;
}
.text-subtitle {
font-size: 20px;
}
.text-paragraph {
max-width: 90%;
line-height: 24px;
}
.container-cards {
flex-direction: column;
}
.card {
max-width: 90vw;
margin: 0 auto;
}
.img-computers img {
width: 70%;
}
}

View File

@ -0,0 +1 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');