-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e32dd10
commit 860c523
Showing
10 changed files
with
478 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import React from 'react'; | ||
import { | ||
Card, | ||
CardContent, | ||
CardHeader, | ||
CardTitle, | ||
} from '@repo/ui/components/ui/card'; | ||
|
||
import { | ||
Timeline, | ||
TimelineContent, | ||
TimelineDot, | ||
TimelineHeading, | ||
TimelineItem, | ||
TimelineLine, | ||
} from '@repo/ui/components/ui/timeline'; | ||
import { Briefcase } from 'lucide-react'; | ||
|
||
const SimpleVerticalTimeline = ({ resume }) => { | ||
const workExperiences = resume.work || []; | ||
|
||
return ( | ||
<div className="min-h-screen p-8"> | ||
<Card className="mb-8"> | ||
<CardHeader> | ||
<CardTitle className="text-xl font-semibold flex items-center"> | ||
<Briefcase className="w-5 h-5 mr-2" /> | ||
Career Timeline | ||
</CardTitle> | ||
</CardHeader> | ||
|
||
<CardContent> | ||
<div> | ||
<Timeline positions="center"> | ||
{workExperiences.map((work, index) => { | ||
const side = index % 2 === 0 ? 'left' : 'right'; | ||
const opposite = side === 'left' ? 'right' : 'left'; | ||
return ( | ||
<TimelineItem key={index} status="done"> | ||
<TimelineHeading className="text-xl" side={side}> | ||
{work.name} | ||
</TimelineHeading> | ||
<TimelineHeading side={opposite} variant="secondary"> | ||
{work.startDate} - {work.endDate} | ||
</TimelineHeading> | ||
<TimelineDot status="done" /> | ||
<TimelineLine done /> | ||
<TimelineContent className="text-sm" side={side}> | ||
<span className="font-bold">{work.position}</span> <br /> | ||
{work.summary} | ||
</TimelineContent> | ||
</TimelineItem> | ||
); | ||
})} | ||
|
||
<TimelineItem> | ||
<TimelineDot /> | ||
<TimelineHeading>Beginning!</TimelineHeading> | ||
</TimelineItem> | ||
</Timeline> | ||
</div> | ||
</CardContent> | ||
</Card> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SimpleVerticalTimeline; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.