aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/TimelineCard.astro
diff options
context:
space:
mode:
authorNikhil M Warrier <nikhilmw.dev@gmail.com>2026-03-04 22:33:38 +0530
committerNikhil M Warrier <nikhilmw.dev@gmail.com>2026-03-04 22:33:38 +0530
commit54c2054acee0549772e1baff733b6ce4f1762e21 (patch)
treef56c21062c4f3f655f923815d88803c791fafe93 /src/components/TimelineCard.astro
parent053e6b3d685f0864ee7cd70894ef47fa433930cf (diff)
Update About page further
Diffstat (limited to 'src/components/TimelineCard.astro')
-rw-r--r--src/components/TimelineCard.astro30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/components/TimelineCard.astro b/src/components/TimelineCard.astro
new file mode 100644
index 0000000..5549dcd
--- /dev/null
+++ b/src/components/TimelineCard.astro
@@ -0,0 +1,30 @@
+---
+import { cn } from '@/lib/utils'
+
+interface Props {
+ year: string
+ title: string
+ text: string
+ fancy: boolean
+}
+
+const { year, title, text, fancy = false } = Astro.props
+---
+
+<div class="group relative flex items-center pl-8">
+ <div
+ class={cn(
+ 'ml-4 w-full rounded-2xl border p-6 shadow-2xl backdrop-blur-sm',
+ fancy
+ ? 'border-border bg-linear-to-bl from-primary/10 to-transparent'
+ : 'border-border',
+ )}
+ >
+ <div class="mb-2 flex items-center" id="container">
+ <span class="bg-background absolute top-8 -left-13 font-mono">{year}</span
+ >
+ </div>
+ <h3 class="mb-2 text-xl">{title}</h3>
+ <p class="text-muted-foreground leading-relaxed">{text}</p>
+ </div>
+</div>