diff options
| author | Nikhil M Warrier <nikhilmw.dev@gmail.com> | 2026-03-04 22:33:38 +0530 |
|---|---|---|
| committer | Nikhil M Warrier <nikhilmw.dev@gmail.com> | 2026-03-04 22:33:38 +0530 |
| commit | 54c2054acee0549772e1baff733b6ce4f1762e21 (patch) | |
| tree | f56c21062c4f3f655f923815d88803c791fafe93 /src/components | |
| parent | 053e6b3d685f0864ee7cd70894ef47fa433930cf (diff) | |
Update About page further
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/TimelineCard.astro | 30 |
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> |
