diff options
| author | Kyren223 <contact@kyren.codes> | 2026-10-06 20:46:31 +0300 |
|---|---|---|
| committer | Kyren223 <contact@kyren.codes> | 2026-10-06 20:46:31 +0300 |
| commit | ba1be9573ef20d6424ae987257a1c727c47d4b53 (patch) | |
| tree | e59ef56f19142215070d0516a9b3a110d15557b6 /old_stuff/src/components/Project.astro | |
| parent | ea056b6e080669ba4b6f16c2757b4e2e88ea0553 (diff) | |
Initial setup for website rewrite
Diffstat (limited to 'old_stuff/src/components/Project.astro')
| -rw-r--r-- | old_stuff/src/components/Project.astro | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/old_stuff/src/components/Project.astro b/old_stuff/src/components/Project.astro new file mode 100644 index 0000000..0b15a68 --- /dev/null +++ b/old_stuff/src/components/Project.astro @@ -0,0 +1,27 @@ +--- +import TerminalBorder from "@components/TerminalBorder.astro"; +import Link from "@components/Link.astro"; + +interface Props { + title: string; + description: string; + href: string; + cd?: string; + dir?: string; +} + +const { title, description, href, cd = title, dir = "cd ~/projects/" } = Astro.props; +--- + +<div class="flex-column mt-[1vw] mx-[1vw] mb-[5vw] sm:m-0"> + <TerminalBorder> + <span> + <h1 class="inline-block text-[130%] text-[var(--accent)]">{title}</h1> + <p class="inline-block text-[var(--secondary)]">{description}</p> + <span class="block my-[3vw] sm:my-[0.625vw]"><slot /></span> + </span> + </TerminalBorder> + <TerminalBorder header="Shell"> + <Link href={href}>{dir}{cd}</Link> + </TerminalBorder> +</div> |
