Skip to content

Commit 593da1b

Browse files
Update header-pt.html
1 parent 7987549 commit 593da1b

File tree

1 file changed

+82
-27
lines changed

1 file changed

+82
-27
lines changed

_includes/header-pt.html

Lines changed: 82 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,87 @@
1-
<header class="row">
2-
<!-- Logo -->
3-
<img id="logo" height="100px" alt="datazoom"
4-
src="{{ site.baseurl }}/assets/img/banner_dzam.png"
5-
class="center-img">
6-
</header>
1+
<!DOCTYPE html>
2+
<html lang="pt-br">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>DataZoom</title>
76

8-
<!-- 🔽 MENU AQUI, logo embaixo da faixa branca -->
9-
<nav>
10-
<ul class="menu">
11-
<li><a class="menu-item" href="index.html">Início</a></li>
12-
<li><a class="menu-item" href="sobre.html">Sobre</a></li>
13-
<li><a class="menu-item" href="contato.html">Contato</a></li>
14-
<li><a class="menu-item" href="projetos.html">Projetos</a></li>
15-
</ul>
16-
</nav>
17-
18-
<!-- Script para marcar link ativo -->
19-
<script>
20-
document.addEventListener('DOMContentLoaded', function() {
21-
const currentPage = window.location.pathname.split('/').pop() || 'index.html';
22-
const menuItems = document.querySelectorAll('.menu-item');
23-
menuItems.forEach(item => item.classList.remove('active'));
24-
const currentLink = document.querySelector(`a[href="${currentPage}"]`);
25-
if (currentLink) {
26-
currentLink.classList.add('active');
7+
<!-- 🔽 CSS direto no HTML -->
8+
<style>
9+
/* Estilo do menu */
10+
.menu {
11+
list-style: none;
12+
margin: 0;
13+
padding: 0;
14+
display: flex;
15+
justify-content: center; /* centraliza os botões */
16+
gap: 15px; /* espaço entre eles */
17+
background-color: #f2f6fa; /* fundo do menu */
18+
padding: 10px 0;
19+
}
20+
21+
.menu li {
22+
display: inline-block;
23+
}
24+
25+
.menu-item {
26+
display: block;
27+
padding: 10px 20px;
28+
text-decoration: none;
29+
background: white;
30+
border-radius: 6px;
31+
color: #004080;
32+
font-weight: bold;
33+
transition: 0.3s;
34+
}
35+
36+
.menu-item:hover {
37+
background: #dce9f9;
2738
}
28-
});
29-
</script>
39+
40+
.menu-item.active {
41+
background: #004080;
42+
color: white;
43+
}
44+
45+
/* Opcional: centralizar logo */
46+
.center-img {
47+
display: block;
48+
margin: 0 auto;
49+
}
50+
</style>
51+
</head>
52+
<body>
53+
<!-- Header com logo -->
54+
<header class="row">
55+
<img id="logo" height="100px" alt="datazoom"
56+
src="{{ site.baseurl }}/assets/img/banner_dzam.png"
57+
class="center-img">
58+
</header>
59+
60+
<!-- 🔽 MENU logo embaixo da faixa branca -->
61+
<nav>
62+
<ul class="menu">
63+
<li><a class="menu-item" href="index.html">Início</a></li>
64+
<li><a class="menu-item" href="sobre.html">Sobre</a></li>
65+
<li><a class="menu-item" href="contato.html">Contato</a></li>
66+
<li><a class="menu-item" href="projetos.html">Projetos</a></li>
67+
</ul>
68+
</nav>
69+
70+
<!-- Script para marcar link ativo -->
71+
<script>
72+
document.addEventListener('DOMContentLoaded', function() {
73+
const currentPage = window.location.pathname.split('/').pop() || 'index.html';
74+
const menuItems = document.querySelectorAll('.menu-item');
75+
menuItems.forEach(item => item.classList.remove('active'));
76+
const currentLink = document.querySelector(`a[href="${currentPage}"]`);
77+
if (currentLink) {
78+
currentLink.classList.add('active');
79+
}
80+
});
81+
</script>
82+
</body>
83+
</html>
84+
3085
</header>
3186
<div class="row">
3287
</div>

0 commit comments

Comments
 (0)