1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 07:01:19 -04:00

test new next/link behavior

This commit is contained in:
2022-05-17 18:31:58 -04:00
parent a2f4112e06
commit d1f0030d3c
8 changed files with 37 additions and 60 deletions

View File

@@ -35,7 +35,7 @@ const Row = styled("div", {
},
});
const Link = styled("a", {
const Link = styled(NextLink, {
color: "$mediumDark",
textDecoration: "none",
});
@@ -88,13 +88,13 @@ const Footer = ({ ...rest }: FooterProps) => (
<Row>
<div>
Content{" "}
<NextLink href="/license/" prefetch={false} passHref={true}>
<Link title="Creative Commons Attribution 4.0 International">licensed under CC-BY-4.0</Link>
</NextLink>
<Link href="/license/" prefetch={false} title="Creative Commons Attribution 4.0 International">
licensed under CC-BY-4.0
</Link>
,{" "}
<NextLink href="/previously/" prefetch={false} passHref={true}>
<Link title="Previously on...">2001</Link>
</NextLink>{" "}
<Link href="/previously/" prefetch={false} title="Previously on...">
2001
</Link>{" "}
{new Date(process.env.NEXT_PUBLIC_RELEASE_DATE).getUTCFullYear()}.
</div>