--- import type { Locale } from '@i18n/locales'; import { useDict } from '@i18n/t'; import { homeAnchor } from '@i18n/slugMap'; import { getExperience } from '@lib/content'; import SectionLabel from '@components/ui/SectionLabel.astro'; interface Props { locale: Locale; eyebrow?: boolean; // false on the standalone experience page (it has its own H1) } const { locale, eyebrow = true } = Astro.props; const d = useDict(locale); const items = getExperience(locale); const firstAlongside = items.findIndex((i) => i.alongside); const period = (from: number, to: number | null) => `${from}–${to ?? d.home.present}`; ---
{ eyebrow && ( <>

{d.home.experienceHeading}

) }
{ items.map((item, i) => ( <> {i === firstAlongside && (

{d.home.earlierRoles}

)} {item.emphasis === 'featured' ? (
) : (
)} )) }