diff options
author | Ashelyn Rose <git@tempest.dev> | 2023-12-02 18:09:37 -0700 |
---|---|---|
committer | Ashelyn Rose <git@tempest.dev> | 2023-12-02 18:09:37 -0700 |
commit | 14bfd8bc27e0e6bb4037b1089b64e31312e5a57d (patch) | |
tree | f9fd1a93e4bc9b7f3d605c8316009f20d728613a | |
parent | 5289646abb229c9948dafda41d93a8bf85d56144 (diff) |
Change <a> for <Link> where appropriate
-rw-r--r-- | app/about/page.tsx | 5 | ||||
-rw-r--r-- | app/page.tsx | 5 | ||||
-rw-r--r-- | components/layout/Footer.tsx | 4 | ||||
-rw-r--r-- | components/layout/Header.tsx | 10 |
4 files changed, 14 insertions, 10 deletions
diff --git a/app/about/page.tsx b/app/about/page.tsx index 255f403..1a9ef1c 100644 --- a/app/about/page.tsx +++ b/app/about/page.tsx @@ -1,3 +1,4 @@ +import Link from 'next/link' import Image from 'components/Image' import system from '~/config/system.json' @@ -40,7 +41,7 @@ export default function About() { {member.bioShort} </p> <p> - <a href={`/about/${member.name.toLowerCase()}`}>{member.readMore}</a> + <Link href={`/about/${member.name.toLowerCase()}`}>{member.readMore}</Link> </p> </section> ) @@ -69,7 +70,7 @@ export default function About() { {member.bioShort} </p> <p> - <a href={`/about/${member.name.toLowerCase()}`}>{member.readMore}</a> + <Link href={`/about/${member.name.toLowerCase()}`}>{member.readMore}</Link> </p> </section> ) diff --git a/app/page.tsx b/app/page.tsx index eeb99af..b044b16 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,4 +1,5 @@ -import React from 'react'; +import React from 'react' +import Link from 'next/link' import styles from '~/styles/index.module.css' @@ -39,7 +40,7 @@ export default function Index() { <p> <em>Note:</em> This is the information for our system in aggregate, - for individual info see our <a href="/about">about</a> page + for individual info see our <Link href="/about">about</Link> page </p> </main> ) diff --git a/components/layout/Footer.tsx b/components/layout/Footer.tsx index 3ea7990..f4917b7 100644 --- a/components/layout/Footer.tsx +++ b/components/layout/Footer.tsx @@ -1,3 +1,5 @@ +import Link from 'next/link' + export default function Footer() { return ( <footer> @@ -7,7 +9,7 @@ export default function Footer() { <a target="_blank" href="https://webring.umbreon.online/">webring</a> <a style={{ textDecoration: 'none' }} href="https://webring.umbreon.online/next?from=https://tempest.dev">></a> </span> - <a href="/pay-transparency">Pay Transparency</a> + <Link href="/pay-transparency">Pay Transparency</Link> </footer> ) } diff --git a/components/layout/Header.tsx b/components/layout/Header.tsx index f55047c..7afe08c 100644 --- a/components/layout/Header.tsx +++ b/components/layout/Header.tsx @@ -1,4 +1,5 @@ import React from 'react' +import Link from 'next/link' import Image from 'components/Image' import { usePathname } from 'next/navigation' @@ -14,13 +15,12 @@ export default function Title() { <header className={isHomepage ? 'homepage' : undefined}> {isHomepage ? <h1 className="siteTitle">tempest.dev</h1> - : <a href="/" className="siteTitle">tempest.dev</a> + : <Link href="/" className="siteTitle">tempest.dev</Link> } <nav> - <a href="/about">about</a> - {/* <a href="/posts">posts</a> */} - <a href="/contact">contact</a> - <a target="blank" href="https://git.tempest.dev/ashe/tempest.dev">code</a> + <Link href="/about">about</Link> + <Link href="/contact">contact</Link> + <Link target="blank" href="https://git.tempest.dev/ashe/tempest.dev">code</Link> </nav> <div className="headerBackground"> <Image |