Merge pull request 'Cria header/banner desktop e mobile' (#1) from feature/landingPage into main

Reviewed-on: #1
This commit is contained in:
ThiagoDutraSampaioLeite 2022-10-10 14:55:12 +00:00
commit 66f45d4ea6
9 changed files with 74 additions and 0 deletions

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.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 KiB

28
index.html Normal file
View File

@ -0,0 +1,28 @@
<!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">
<title>Desafio 01 - Landing Page</title>
<link rel="stylesheet" href="style/style.css">
</head>
<header class="header">
<a href="/">
<img class="header-logo" src="assets/imgs/Logo-M3Academy-header.svg" alt="Logo M3">
</a>
</header>
<main class="main">
<figure class="main-banner">
<img class="banner-desktop banner-img" src="assets/imgs/banner-desktop.png" alt="banner pc desktop">
<img class="banner-mobile banner-img" src="assets/imgs/banner-mobile.png" alt="banner pc mobile">
</figure>
</main>
<body>
</body>
</html>

3
style/colors.css Normal file
View File

@ -0,0 +1,3 @@
:root {
--black: #000;
}

6
style/header.css Normal file
View File

@ -0,0 +1,6 @@
.header {
display: flex;
justify-content: center;
padding: 29px 0;
background-color: var(--black);
}

17
style/main.css Normal file
View File

@ -0,0 +1,17 @@
.main-banner .banner-img {
display: block;
width: 100%;
}
.main-banner .banner-mobile {
display: none;
}
@media (max-width: 720px) {
.main-banner .banner-desktop {
display: none;
}
.main-banner .banner-mobile {
display: block;
}
} ;

6
style/reset.css Normal file
View File

@ -0,0 +1,6 @@
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Inter", sans-serif;
}

5
style/style.css Normal file
View File

@ -0,0 +1,5 @@
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");
@import url("reset.css");
@import url("colors.css");
@import url("header.css");
@import url("main.css");