2026-10-16 23:14:52 +07:00
|
|
|
import { motion } from 'motion/react'
|
2026-10-13 00:24:12 +07:00
|
|
|
import { SectionHeading } from '@/components/ui/SectionHeading'
|
2026-10-06 11:42:11 +07:00
|
|
|
import { experiences } from '@/data/experience'
|
2026-10-14 11:15:48 +07:00
|
|
|
import { useLanguage } from '@/hooks/useLanguage'
|
|
|
|
|
import { strings } from '@/i18n/strings'
|
2026-10-14 14:50:27 +07:00
|
|
|
import { useField, useFieldArray } from '@/i18n/useField'
|
2026-10-06 11:42:11 +07:00
|
|
|
|
|
|
|
|
export function ExperiencePage() {
|
2026-10-14 11:15:48 +07:00
|
|
|
const { lang } = useLanguage()
|
2026-10-06 11:42:11 +07:00
|
|
|
return (
|
|
|
|
|
<section className="section container-content" aria-labelledby="experience-heading">
|
2026-10-14 11:15:48 +07:00
|
|
|
<SectionHeading title={strings.experience.heading[lang]} tag={strings.common.experienceTag[lang]} />
|
2026-10-06 11:42:11 +07:00
|
|
|
<div className="timeline">
|
2026-10-16 23:14:52 +07:00
|
|
|
{experiences.map((exp, i) => (
|
|
|
|
|
<motion.div
|
|
|
|
|
key={exp.id}
|
|
|
|
|
className={exp.variant ? `timeline-entry timeline-entry-${exp.variant}` : 'timeline-entry'}
|
|
|
|
|
initial={{ opacity: 0, y: 24 }}
|
|
|
|
|
whileInView={{ opacity: 1, y: 0 }}
|
|
|
|
|
viewport={{ once: true, amount: 0.2 }}
|
|
|
|
|
transition={{ duration: 0.45, ease: 'easeOut', delay: i * 0.08 }}
|
|
|
|
|
>
|
2026-10-06 11:42:11 +07:00
|
|
|
<div className="timeline-marker" />
|
|
|
|
|
<div className="timeline-header">
|
2026-10-14 14:50:27 +07:00
|
|
|
<div className="timeline-title">{useField(exp.title, exp.titleEn)}</div>
|
2026-10-06 11:42:11 +07:00
|
|
|
<div className="timeline-company">{exp.company}</div>
|
2026-10-16 23:14:52 +07:00
|
|
|
<div className="timeline-meta">
|
|
|
|
|
<span className="timeline-duration">{exp.duration}</span>
|
|
|
|
|
{exp.location && <span className="timeline-location">{exp.location}</span>}
|
|
|
|
|
</div>
|
2026-10-06 11:42:11 +07:00
|
|
|
</div>
|
|
|
|
|
<ul className="timeline-responsibilities">
|
2026-10-14 14:50:27 +07:00
|
|
|
{useFieldArray(exp.responsibilities, exp.responsibilitiesEn).map((r) => (
|
2026-10-06 11:42:11 +07:00
|
|
|
<li key={r}>{r}</li>
|
|
|
|
|
))}
|
|
|
|
|
</ul>
|
2026-10-16 23:14:52 +07:00
|
|
|
</motion.div>
|
2026-10-06 11:42:11 +07:00
|
|
|
))}
|
2026-10-16 23:14:52 +07:00
|
|
|
<div className="timeline-tldr">
|
|
|
|
|
<span className="timeline-tldr-marker" aria-hidden="true" />
|
|
|
|
|
<span className="timeline-tldr-chip">{strings.experience.tldr[lang]}</span>
|
|
|
|
|
<p className="timeline-tldr-text">{strings.experience.tldrText[lang]}</p>
|
|
|
|
|
</div>
|
2026-10-06 11:42:11 +07:00
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
)
|
|
|
|
|
}
|