rearch links, routes + add resume link

This commit is contained in:
2026-03-07 12:17:21 -06:00
parent 23d206de99
commit 1a5b5a336f
7 changed files with 104 additions and 49 deletions

View File

@@ -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() {
</main>
}
function ExternalLink(props: PropsWithChildren & { href: string }) {
function ExternalLink(props: HTMLProps<HTMLAnchorElement>) {
return (
<a href={props.href} className="link external-link" target="_blank">{props.children}</a>
<Link {...props} href={props.href as Path} className="external-link" target="_blank">{props.children}</Link>
)
}