diff --git a/src/app/education/page.tsx b/src/app/education/page.tsx index f4dee356..5b1d8930 100644 --- a/src/app/education/page.tsx +++ b/src/app/education/page.tsx @@ -88,6 +88,7 @@ const EducationPage = async () => { media={supportingDocuments} organization={school} title={program} + titleAs="h2" {...education} /> ), diff --git a/src/app/experience/page.tsx b/src/app/experience/page.tsx index 544e25ac..db8f52b5 100644 --- a/src/app/experience/page.tsx +++ b/src/app/experience/page.tsx @@ -43,7 +43,6 @@ const ExperiencePage = async () => { {experiences.map( ({ id, - jobTitle, company, jobDuties, @@ -59,6 +58,7 @@ const ExperiencePage = async () => { organization={company} tags={skills} title={jobTitle} + titleAs="h2" {...experience} /> ), diff --git a/src/components/timeline.tsx b/src/components/timeline.tsx index 0f1da367..a5218aba 100644 --- a/src/components/timeline.tsx +++ b/src/components/timeline.tsx @@ -6,6 +6,7 @@ import { Grid, type GridProps, Heading, + type HeadingProps, Inset, Link, Text, @@ -38,6 +39,7 @@ export interface ItemProps extends Omit { thumbnail?: string | StaticImageData; }[]; tags?: { name: string; url?: string }[]; + titleAs?: HeadingProps['as']; } export const Item: FC = ({ @@ -48,6 +50,7 @@ export const Item: FC = ({ descriptions = [], media = [], tags = [], + titleAs = 'h3', ...props }) => { const duration = to @@ -66,7 +69,7 @@ export const Item: FC = ({ - + {title}