blob: bd8c9d693372f827460941e95f8aa9ac33125dca (
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
|
---
import { getRelativeLocaleUrl } from "astro:i18n";
import { useTranslations } from "../i18n"
const t = useTranslations(Astro.currentLocale);
---
<header>
<a href={getRelativeLocaleUrl(Astro.currentLocale!, "")}>{t.header.home}</a>
<a href={getRelativeLocaleUrl(Astro.currentLocale!, "trajectory")}>{t.header.trajectory}</a>
<a href={getRelativeLocaleUrl(Astro.currentLocale!, "portfolio")}>{t.header.portfolio}</a>
<a href={getRelativeLocaleUrl("es", "blog")}>{t.header.blog}</a>
<a href={getRelativeLocaleUrl(Astro.currentLocale!, "contact")}>{t.header.contact}</a>
</header>
<style lang="scss">
@use "../../styles/shared.scss" as *;
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>
|