diff --git a/src/about/AboutPage.tsx b/src/about/AboutPage.tsx index 512add7..4e30777 100644 --- a/src/about/AboutPage.tsx +++ b/src/about/AboutPage.tsx @@ -1,5 +1,7 @@ import "./about.scss"; -import {lazy, PropsWithChildren} from "react"; +import {HTMLProps, lazy} from "react"; +import {Link} from "../router/Link"; +import {Path} from "../router/router"; const About = lazy(() => import("./About.mdx")); @@ -15,8 +17,8 @@ export default function AboutPage() { } -function ExternalLink(props: PropsWithChildren & { href: string }) { +function ExternalLink(props: HTMLProps) { return ( - {props.children} + {props.children} ) } \ No newline at end of file diff --git a/src/img/resume.pdf b/src/img/resume.pdf new file mode 100755 index 0000000..bf7e6c7 Binary files /dev/null and b/src/img/resume.pdf differ diff --git a/src/index.d.ts b/src/index.d.ts index 13786c0..0e9234e 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -19,49 +19,71 @@ declare module '*.md' { export default MDXComponent; } +declare module '*.pdf' { + import {Path} from "./router/router"; + + const src: Path; + export default src; +} + declare module '*.avif' { - const src: string; + import {Path} from "./router/router"; + + const src: Path; export default src; } declare module '*.bmp' { - const src: string; + import {Path} from "./router/router"; + + const src: Path; export default src; } declare module '*.gif' { - const src: string; + import {Path} from "./router/router"; + + const src: Path; export default src; } declare module '*.jpg' { - const src: string; + import {Path} from "./router/router"; + + const src: Path; export default src; } declare module '*.jpeg' { - const src: string; + import {Path} from "./router/router"; + + const src: Path; export default src; } declare module '*.png' { - const src: string; + import {Path} from "./router/router"; + + const src: Path; export default src; } declare module '*.webp' { - const src: string; - export default src; + import {Path} from "./router/router"; + + const src: Path; + export default src; } declare module '*.svg' { + import {Path} from "./router/router"; import * as React from 'react'; export const ReactComponent: React.FunctionComponent & { title?: string }>; - const src: string; + const src: Path; export default src; } diff --git a/src/index.tsx b/src/index.tsx index 8df437b..e72afe9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2,12 +2,10 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.scss'; import {RouterProvider} from "./router/RouterContext"; -import {Route} from "./router/Route"; import "@fontsource/inter"; // Defaults to weight 400 -import "@fontsource/neuton"; // Defaults to weight 400 +import "@fontsource/neuton"; +import {Routes} from "./router/Route"; -const Canvas = React.lazy(() => import("./index/Canvas")); -const About = React.lazy(() => import("./about/AboutPage")); const Nav = React.lazy(() => import("./nav/Nav")); const root = ReactDOM.createRoot( @@ -18,15 +16,7 @@ root.render(