mirror of
https://github.com/XFox111/my-website.git
synced 2026-04-22 07:28:01 +03:00
62 lines
1.7 KiB
TypeScript
62 lines
1.7 KiB
TypeScript
import Button from "@/_components/Button";
|
|
import links from "@/_data/links";
|
|
import { getTitle } from "@/_data/metadata";
|
|
import resumeList from "@/_data/resumeList";
|
|
import { Metadata } from "next";
|
|
import Image from "next/image";
|
|
import React from "react";
|
|
import { SocialIcon, social_icons } from "react-social-icons";
|
|
import cls from "./page.module.scss";
|
|
|
|
export const metadata: Metadata =
|
|
{
|
|
title: getTitle("Resume")
|
|
};
|
|
|
|
// [SPECIAL]
|
|
|
|
const ResumePage: React.FC = () => (
|
|
<main className={ cls.page }>
|
|
|
|
<h1>Who are you looking for?</h1>
|
|
<div className={ cls.resumeButtons }>
|
|
{ resumeList.map(i =>
|
|
<div key={ i.key } className={ cls.buttonContainer }>
|
|
<Button className={ cls.button }
|
|
href={ `/resume/download?type=${i.key}` } download
|
|
icon={
|
|
<Image className={ cls.image } src={ i.image.src } loading="eager" draggable={ false }
|
|
aria-hidden alt={ i.image.alt } />
|
|
}>
|
|
|
|
{ i.label }
|
|
</Button>
|
|
{ process.env.ATS_RESUME_URL &&
|
|
<a className={ cls.atsLink } href={ `/resume/download?type=${i.key}&ats=true` } download>
|
|
ATS-compatible version
|
|
</a>
|
|
}
|
|
</div>
|
|
) }
|
|
</div>
|
|
|
|
{ links.linkedin &&
|
|
<>
|
|
<p>You can also check out my</p>
|
|
<Button href={ links.linkedin } target="_blank"
|
|
className={ cls.linkedin }
|
|
// @ts-expect-error Inline variables are not supported by TS definition, although they work as intended.
|
|
style={ { "--network-color": social_icons.get("linkedin")!.color } }
|
|
icon={ <SocialIcon network="linkedin" as="i" aria-hidden /> }>
|
|
|
|
LinkedIn profile
|
|
<span className={ cls.circle } />
|
|
</Button>
|
|
</>
|
|
}
|
|
|
|
</main>
|
|
);
|
|
|
|
export default ResumePage;
|