index.html
<!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>AluraBooks</title>
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header class="cabecalho">
<div class="container">
<span class="cabecalho__menu-hamburguer container__imagem"></span>
<img src="img/Logo.svg" alt="Logo AluraBooks" class="container__imagem">
</div>
<div class="container">
<a href="#"><img src="img/Favoritos.svg" alt="Favoritos" class="container__imagem"></a>
<a href="#"><img src="img/Compras.svg" alt="Sacola de Compras" class="container__imagem"></a>
<a href="#"><img src="img/Usuario.svg" alt="Meu Perfil" class="container__imagem"></a>
</div>
</header>
<main>
</main>
<footer>
</footer>
</body>
</html>
header.css
.cabecalho__menu-hamburguer {
width: 24px;
height: 22px;
background-image: url("../img/Menu.svg");
display: inline-block;
background-repeat: no-repeat;
}
.cabecalho {
background-color: var(--branco-principal);
display: flex;
justify-content: space-between;
align-items: center;
}
.container {
display: flex;
align-items: center;
}
.container__imagem {
padding: 1rem;
}
style.css
@import url("styles/header.css");
:root {
--cor-principal: #EBECEE;
--branco-principal: #FFFFFF;
}
body {
background-color: var(--cor-principal);
}