diff --git a/src/components/organisms/work-timeline-item.astro b/src/components/organisms/work-timeline-item.astro index 6c8cc3c..3f68861 100644 --- a/src/components/organisms/work-timeline-item.astro +++ b/src/components/organisms/work-timeline-item.astro @@ -14,7 +14,7 @@ const { job, i18n, ...props } = Astro.props; const WorkTimelineItem = 'div'; --- - + {job.role} — {job.company}
a]:my-2']}> {job.socials?.map(({ icon, url }) => )} diff --git a/src/components/sections/experience-section.astro b/src/components/sections/experience-section.astro index 41d2238..3b20471 100644 --- a/src/components/sections/experience-section.astro +++ b/src/components/sections/experience-section.astro @@ -1,13 +1,21 @@ --- +import Divider from '@/atoms/divider.astro'; import SectionCard from '@/atoms/section-card.astro'; import Typography from '@/atoms/typography.astro'; +import WorkTimelineItem from '@/organisms/work-timeline-item.astro'; import type { Section } from '@/types/data'; -import type { ExperienceSection } from '@/types/experience-section'; +import type { ExperienceSection, Job } from '@/types/experience-section'; +import type { I18n } from '@/types/i18n'; -export interface Props extends ExperienceSection {} +export interface Props extends ExperienceSection { + jobs: Job[]; + i18n: I18n; +} const { config: { title }, + i18n, + jobs, } = Astro.props; const section: Section = 'experience'; @@ -15,4 +23,12 @@ const section: Section = 'experience'; {title} + { + jobs.map((value, id) => ( + <> + + {id !== jobs.length - 1 && } + + )) + } diff --git a/src/pages/index.astro b/src/pages/index.astro index 87ee4cc..ce58a2b 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -48,7 +48,11 @@ const { seo, i18n, ...dataWithoutSeoAndI18n } = data;
{data.skills && } - {data.experience && } + { + data.experience && ( + + ) + } {data.portfolio && } {data.testimonials && } {data.favorites && }