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 ( +
+ {subtitleUrl ? ( + + {subtitle} + + ) : ( + subtitle + )} +
+ {highlights.length > 0 && ( +