blob: da08b3200ffe390965db493a58c133d7685aebce (
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
|
---
interface Props {
path: string;
}
const { path } = Astro.props;
const directories = ["skills", "projects", "blogs"];
---
<nav
class="grid sm:flex
justify-between
border-[0.25vh] sm:border-[0.125vw]
border-[var(--alt)]
border-solid
mb-[7vw] sm:mb-[1.5625vw]
p-[3vw] sm:p-[1vw]"
>
<span class="mr-[2.5vh] text-[5vw] sm:mr-[2.5vw] sm:text-[1.375vw]"
>{path}</span
>
<span
id="nav-links"
class="mb-0 mx-[0.2vw] text-[5vw]
mx-[0.2vw] sm:text-[1.375vw]"
>
<a href="/">home</a>
{
directories.map((dir) => (
<>
<a href={`/${dir}`}>{dir}</a>
</>
))
}
<a class="hidden sm:contents" href="/shell">shell</a>
</span>
</nav>
<style>
#nav-links a {
color: var(--primary);
}
#nav-links a:hover {
color: var(--accent);
}
</style>
|