summaryrefslogtreecommitdiff
path: root/src/components/BlogItem.astro
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-12 22:33:11 +0200
committerKyren223 <Kyren223@proton.me>2024-11-12 22:33:11 +0200
commit6d3da9537200e4029d3c9e1b6140f601642f26da (patch)
tree4454964a5910cacf6bef160ec7d679b6aa08eaa2 /src/components/BlogItem.astro
parent506d97a7d16fa186beee3eda314492d9297e90c5 (diff)
Backup
Diffstat (limited to 'src/components/BlogItem.astro')
-rw-r--r--src/components/BlogItem.astro22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/components/BlogItem.astro b/src/components/BlogItem.astro
new file mode 100644
index 0000000..5f6b0e5
--- /dev/null
+++ b/src/components/BlogItem.astro
@@ -0,0 +1,22 @@
+---
+import TerminalBorder from "../components/TerminalBorder.astro";
+
+interface Props {
+ title: string;
+ description: string;
+ date: string;
+}
+
+const { title, description, date } = Astro.props;
+---
+
+<TerminalBorder footer={date} margin="0 0 20px">
+ <span>
+ <h1 class="text-[130%] text-[var(--accent)]">
+ {title}
+ </h1>
+ <p class="text-[var(--secondary)]">
+ {description}
+ </p>
+ </span>
+</TerminalBorder>