Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adicionando início do header (pendente lapidar hover) #12

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions cabeçalho.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@

*{
margin: 0;
padding: 0;
}


#container {
width: 980px; /*largura do box content, sem contar padding e border*/
margin: 50px auto 0; /*valores em sentido horário;
20px para margem superior;
valor auto renderiza automaticamente margens laterais, para centralizar conteúdo
valor 0 para bottom=0*/

}

.nav1 {
display: flex;
justify-content: space-between; /*separa o logo e o menu*/
align-items: center; /*alinha verticalmente o logo e o menu */
background-color: #1b8e99; /*cor de fundo para o menu inferior*/
padding: 0 10px; /*espaçamento interno entre itens no cabeçalho */
height: 45px; /*define altura do box*/
position: relative; /*permite alterar posicionamento; necessário para z-index*/
z-index: 2; /*define profundidade; valor maior que menu azul e banner*/

}

.nav2 {
display: flex; /*permite uso das propriedades flexbox: justify-content e align items*/
justify-content: space-between; /*separa no eixo horizontal, logo e o menu, posiciona-os nas extremidades*/
align-items: center; /* centraliza logo e o menu no eixo vertical */
background-color: #660000; /* Cor de fundo para o cabeçalho e o menu secundário */
padding: 0 10px; /* Espaçamento interno no cabeçalho */
height: 45px; /*define altura do box*/

}

#logo img {
width: 194px; /* Largura do logo */
height: 146px; /* Altura do logo */
position: relative;
z-index: 1; /*define profundidade; valor menor que logo*/
translate: 0 30px; /*desloca 0 no eixo horizontal e 30px no eixo vertical*/
}

.menu, nav ul {
list-style: none; /*remove bullet points*/
display: flex; /*define flexbox*/
padding: 0; /*reseta padding para zero*/
margin: 0; /*reseta margin para zer0*/
gap: 30px; /* Espaço entre os itens do menu; propriedade do display grid, aplicável ao flexbox */
text-align: center; /*centraliza texto*/
height: 45px; /*define altura para texto, igual à altura do box, para aplicar align-itens*/
display: flex; /*permite uso da propriedade align-itens*/
align-items: center; /* alinha texto dos links no eixo vertical */


}

.menu li a, nav ul li a {
color: white; /* Cor do texto dos links */
text-decoration: none; /* Remove o sublinhado dos links */
font-size: 12px; /* Tamanho da fonte dos links */

}

.hover1:hover{
background-color: #92c9ce; /*cor de fundo do hover*/
height: 55px; /*altura 10px maior do que box, para dar efeito de overflow/transbordamento*/
padding: 0 5px 0 5px;/*aumenta área de padding à esquerda e à direita, mas está empurrando os elementos circundantes*/
margin: -5px; /*evita deslocamento lateral dos elementos ao redor após aumento do padding, mas cria um problema no eixo vertical*/
display: flex;/*permite propriedades flexbox*/
align-items: center; /*centraliza no eixo vertical*/
font-weight: bold; /*negrito*/
}

.hover2:hover{
background-color: white; /*cor de fundo do hover*/
height: 55px; /*altura 10px maior do que box, para dar efeito de overflow/transbordamento*/
padding: 0 5px 0 5px; /*aumenta área de padding à esquerda e à direita, mas está empurrando os elementos circundantes*/
margin: -5px; /*evita deslocamento lateral dos elementos ao redor após aumento do padding, mas cria um problema no eixo vertical*/
display: flex; /*permite propriedades flexbox*/
align-items: center; /*centraliza no eixo vertical*/
font-weight: bold /*negrito*/
}

.hover2:hover a {
color: #660000; /*sobreposição à regra herdade de .menu li a, nav ul li a*/
}

#banner {

z-index: 1; /*define profundidade; valor menor que logo*/
}
35 changes: 35 additions & 0 deletions cabeçalho.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="cabeçalho.css">
</head>
<body>
<div id="container">
<nav id="logo-menu" class="nav1">
<div id="logo"><img src="./img/logo.fw.png" alt="Drones Net Logo"></div>
<ul class="menu">
<li class="hover1"><a href="#">HOME</a></li>
<li class="hover1"><a href="#">NOSSA<br>EMPRESA</a></li>
<li class="hover1"><a href="#">LOJAS</a></li>
<li class="hover1"><a href="#">LOCALIZAÇÃO</a></li>
<li class="hover1"><a href="#">CONTATO</a></li>
</ul>
</nav>
<div id="banner">
<img src="./img/banner.fw.png" alt="Banner">
</div>
<nav class="nav2">
<ul>
<li class="hover2"><a href="#">PRODUTOS</a></li>
<li class="hover2"><a href="#">LOJA<br>VIRTUAL</a></li>
<li class="hover2"><a href="#">CURSOS</a></li>
<li class="hover2"><a href="#">SERVIÇOS</a></li>
<li class="hover2"><a href="#">BLOG</a></li>
</ul>
</nav>
</div>
</body>
</html>
Binary file added img/DroneA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/DroneB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/DroneC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/ServicosA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/ServicosB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/ServicosC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/banner.fw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/carrinho.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/imgDroneA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/imgDroneB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/imgDroneC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/imgProfessor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logo.fw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/modelo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion index.html

This file was deleted.