Skip to content

Commit 990d812

Browse files
committed
feat: add pdf cv
1 parent 9b3be9d commit 990d812

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/assets/cv/nguyenminhchau.pdf

226 KB
Binary file not shown.

src/feature/main/About/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import styles from "./about.module.scss";
88
import {useNavigate} from "react-router-dom";
99
import { CV } from "common/path";
1010
import {useTranslation} from "react-i18next";
11+
import cvPdf from "../../../assets/cv/nguyenminhchau.pdf";
1112

1213
enum refNames {
1314
about = "about",
@@ -43,7 +44,7 @@ const About: FC = () => {
4344
};
4445

4546
const handleMoveViewCV = () => {
46-
navigate(CV);
47+
window.open(cvPdf, '_blank')
4748
}
4849

4950
return (

src/react-app-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
/// <reference types="react-scripts" />
2+
3+
declare module '*.pdf' {
4+
const src: string;
5+
export default src;
6+
}

0 commit comments

Comments
 (0)