blob: 17f6565f1c1a0b8d80b43ff57023191cbb2ab139 (
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
|
---
interface Props {
path: string;
}
const { path } = Astro.props;
const directories = ["skills", "projects", "blogs"];
---
<nav>
<span id="nav-path">/home/kyren/{path}</span>
<span id="nav-links">
<a href="/">home</a>
{
directories.map((dir) => (
<>
<a href={`/${dir}`}>{dir}</a>
</>
))
}
</span>
</nav>
<style>
nav {
display: flex;
justify-content: space-between;
border: 0.125vw var(--alt);
border-style: solid;
margin-bottom: 1.5625vw;
padding: 0.9375vw;
}
#nav-links a {
margin-bottom: 0;
margin-right: 0.1875vw;
margin-left: 0.1875vw;
font-size: 1.375vw;
color: var(--primary);
}
#nav-links a:hover {
color: var(--accent);
}
#nav-path {
margin-right: 2.5vw;
font-size: 1.375vw;
}
</style>
|