summaryrefslogtreecommitdiff
path: root/src/components/Project.astro
diff options
context:
space:
mode:
authorKyren223 <kyren223@proton.me>2025-08-10 22:29:12 +0300
committerKyren223 <kyren223@proton.me>2025-08-10 22:29:12 +0300
commita660227fb9f6f11389ff8d8ba6b4cb9b06c31df4 (patch)
tree20657b9e34c75ee9482eeb7394307c364de3b864 /src/components/Project.astro
parent8ac6a490f00a54a0eb90d468b083d0c93dd875e5 (diff)
Updated projects section
Diffstat (limited to 'src/components/Project.astro')
-rw-r--r--src/components/Project.astro5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/Project.astro b/src/components/Project.astro
index 2279cca..0b15a68 100644
--- a/src/components/Project.astro
+++ b/src/components/Project.astro
@@ -7,9 +7,10 @@ interface Props {
description: string;
href: string;
cd?: string;
+ dir?: string;
}
-const { title, description, href, cd = "cd ~/projects/" } = Astro.props;
+const { title, description, href, cd = title, dir = "cd ~/projects/" } = Astro.props;
---
<div class="flex-column mt-[1vw] mx-[1vw] mb-[5vw] sm:m-0">
@@ -21,6 +22,6 @@ const { title, description, href, cd = "cd ~/projects/" } = Astro.props;
</span>
</TerminalBorder>
<TerminalBorder header="Shell">
- <Link href={href}>{cd}{title}</Link>
+ <Link href={href}>{dir}{cd}</Link>
</TerminalBorder>
</div>