blob: aa0d26a4a95abebdbf54a32c654e8cad9b8a8501 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
---
import Favicon from "../assets/Favicon.astro";
---
<header>
<a href="/">Inicio</a>
<a href="/trajectory">Trayectoria</a>
<a href="/portfolio">Portfolio</a>
<a href="/blog">Blog</a>
<a href="/contact">Contacto</a>
</header>
<style lang="scss">
@import "../../styles/shared.scss";
header {
color: $accent;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 2rem;
padding: 2rem;
a {
text-decoration: none;
font-weight: 700;
font-size: 1.2rem;
text-transform: uppercase;
transition: color 0.2s ease-in-out,
border-bottom-color 0.2s ease-in-out;
color: $accent;
line-height: 1;
border-bottom: 2px solid transparent;
&:hover {
color: $accentDark;
border-bottom-color: currentColor;
}
&.active {
color: $accentDark;
}
}
}
@media (max-width: $breakpointTablet) {
}
@media (min-width: $breakpointTablet) {
}
@media (min-width: $breakpointDesktop) {
}
</style>
<script>
const mobileMenuButton = document.getElementById(
"mobile-menu"
) as HTMLButtonElement;
const headerElement = document.querySelector("header") as HTMLElement;
mobileMenuButton.addEventListener("click", () => {
headerElement.classList.toggle("collapsed");
});
</script>
|