summaryrefslogtreecommitdiff
path: root/src/components/BlogItem.astro
diff options
context:
space:
mode:
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>