From 030ca4009c1cc3d51d1a56adb7eaef8c4404e4fd Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Thu, 6 Aug 2026 18:33:32 +0200 Subject: [PATCH] feat(Timeline): Timeline component showing current entry. Might change. --- .../components/portfolio/TimelineEntry.tsx | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 frontend/src/components/portfolio/TimelineEntry.tsx diff --git a/frontend/src/components/portfolio/TimelineEntry.tsx b/frontend/src/components/portfolio/TimelineEntry.tsx new file mode 100644 index 0000000..4a3a322 --- /dev/null +++ b/frontend/src/components/portfolio/TimelineEntry.tsx @@ -0,0 +1,59 @@ +import type { ReactElement } from "react"; + +interface TimelineEntryProps { + title: string; + subtitle: string; + subtitleUrl?: string; + date: string; + current?: boolean; + highlights: string[]; +} + +export default function TimelineEntry({ + title, + subtitle, + subtitleUrl, + date, + current, + highlights, +}: TimelineEntryProps): ReactElement { + return ( +
+ +
+

+ {title} + {current && ( + + Current + + )} +

+ {date} +
+

+ {subtitleUrl ? ( + + {subtitle} + + ) : ( + subtitle + )} +

+ {highlights.length > 0 && ( +
    + {highlights.map((h) => ( +
  • + {h} +
  • + ))} +
+ )} +
+ ); +}