summaryrefslogtreecommitdiff
path: root/src/components/Nav.astro
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-12 01:07:20 +0200
committerKyren223 <Kyren223@proton.me>2024-11-12 01:07:20 +0200
commitc839ead325d552496c7faf6d72428d3589d88304 (patch)
treec314784ab5c2486b30954367deed6460df523f81 /src/components/Nav.astro
parent098dce9f35621753ab0af28fffbf97d4c9310437 (diff)
Committing with a bunch of changes
Diffstat (limited to 'src/components/Nav.astro')
-rw-r--r--src/components/Nav.astro50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/components/Nav.astro b/src/components/Nav.astro
new file mode 100644
index 0000000..3c41d0d
--- /dev/null
+++ b/src/components/Nav.astro
@@ -0,0 +1,50 @@
+---
+interface Props {
+ path: string;
+}
+
+const { path } = Astro.props;
+
+const directories = ["about", "works", "links"]
+
+---
+<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></span> /* For whitespace */
+ ))}
+ </span>
+</nav>
+
+<style>
+
+nav {
+ font-weight: 300;
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ border: 0;
+ border-bottom: 1px;
+ border-style: solid;
+ margin-bottom: 0.75rem;
+ padding-bottom: 0.75rem;
+}
+#nav-links a {
+ margin-right: 0.15rem;
+ margin-bottom: 0px;
+ margin-left: 0.15rem;
+ color: var(--primary);
+ font-size: 1rem;
+
+}
+#nav-links a:hover {
+ color: var(--accent);
+}
+#nav-path {
+ margin-right: 2rem;
+}
+
+</style>