Skip to content

Commit

Permalink
type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jgettings committed Oct 3, 2024
1 parent 7cf1eab commit dde4968
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const AdditionalFields = z.object({
}),
education: z.array(
z.object({
name: z.string(),
name: z.string().optional(),
}),
),
});
Expand Down
32 changes: 19 additions & 13 deletions src/pages/ResumeTimeline/EducationTimelineItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,28 @@ const EducationTimelineItem: React.FC<EducationTimelineItemProps> = ({
<Timeline.Title className="flex flex-col justify-between gap-6 md:flex-row">
<div>
{education.studyType}
<div className="font-light italic">{education.institution}</div>
<div className="font-light italic">
<a href={education.url}>{education.institution}</a>
</div>
</div>
<div className="flex-none">
<a href={education.url}>
<img
alt={`${education.name} logo`}
src={`/images/school-icons/${education.name.toLowerCase()}-dark.svg`}
width={logoWidth}
className="hidden dark:inline"
/>
<img
alt={`${education.name} logo`}
src={`/images/school-icons/${education.name.toLowerCase()}.svg`}
width={logoWidth}
className="inline dark:hidden"
/>
{education.name ? (
<>
<img
alt={`${education.name} logo`}
src={`/images/school-icons/${education.name.toLowerCase()}-dark.svg`}
width={logoWidth}
className="hidden dark:inline"
/>
<img
alt={`${education.name} logo`}
src={`/images/school-icons/${education.name.toLowerCase()}.svg`}
width={logoWidth}
className="inline dark:hidden"
/>
</>
) : null}
</a>
</div>
</Timeline.Title>
Expand Down

0 comments on commit dde4968

Please sign in to comment.