import resume from '@/data/resume.json' import siteMetadata from '@/data/siteMetadata' import Link from '@/components/Link' import { genPageMetadata } from 'app/seo' export const metadata = genPageMetadata({ title: 'Resume', description: `${resume.basics.name} — ${resume.basics.label}`, }) const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] function formatDate(value: string) { if (!value) return '' const [year, month] = value.split('-') return month ? `${MONTHS[Number(month) - 1]} ${year}` : year } function formatRange(start: string, end: string) { const from = formatDate(start) const to = end ? formatDate(end) : 'Present' return from ? `${from} — ${to}` : to } function SectionHeading({ children }: { children: React.ReactNode }) { return (

{children}

) } export default function Resume() { const { basics, work, skills, education, certificates, projects } = resume const contact = [ [basics.location.city, basics.location.region].filter(Boolean).join(', '), basics.email, basics.phone, basics.url.replace(/^https?:\/\//, ''), ...basics.profiles.map((p) => p.network), ].filter(Boolean) const contactHrefs: Record = { [basics.email]: `mailto:${basics.email}`, [basics.phone]: `tel:${basics.phone.replace(/[^0-9+]/g, '')}`, [basics.url.replace(/^https?:\/\//, '')]: basics.url, ...Object.fromEntries(basics.profiles.map((p) => [p.network, p.url])), } return (

{basics.name}

{basics.label}

Download PDF
{contact.map((item, i) => ( {i > 0 && ( )} {contactHrefs[item] ? ( {item} ) : ( {item} )} ))}

{basics.summary}

Experience {work.map((job) => (

{job.position}{' '} · {job.name}

{formatRange(job.startDate, job.endDate)}
    {job.highlights.map((highlight) => (
  • ))}
))} Skills {skills.map((group) => (
{group.name}
{group.keywords.map((keyword) => ( {keyword} ))}
))}
Education {education.map((school) => (
{school.institution}
{school.area}
{formatDate(school.endDate)}
))}
Certifications
    {certificates.map((cert) => (
  • {cert.name} {!cert.name.includes(cert.issuer) && ( · {cert.issuer} )}
  • ))}
Projects {projects.map((project) => (
{project.url ? ( {project.name} ) : ( project.name )}
{project.description}
))}
) }