refactor(blog): use nextJS link
This commit is contained in:
parent
d37f25dabf
commit
2d600d724d
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
import { faGithub } from "@fortawesome/free-brands-svg-icons"
|
import { faGithub } from "@fortawesome/free-brands-svg-icons"
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
|
||||||
|
import Link from "next/link"
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
href: string
|
href: string
|
||||||
|
@ -7,13 +8,13 @@ interface Props {
|
||||||
|
|
||||||
export default function GithubLinkIcon({ href }: Props) {
|
export default function GithubLinkIcon({ href }: Props) {
|
||||||
return (
|
return (
|
||||||
<a
|
<Link
|
||||||
className="text-5xl text-light-footer-text transition-colors duration-75 hover:text-light-text-high-contrast dark:text-dark-footer-text dark:hover:text-dark-text-high-contrast"
|
className="text-5xl text-light-footer-text transition-colors duration-75 hover:text-light-text-high-contrast dark:text-dark-footer-text dark:hover:text-dark-text-high-contrast"
|
||||||
href={href}
|
href={href}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
aria-label="GitHub link"
|
aria-label="GitHub link"
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={faGithub} />
|
<FontAwesomeIcon icon={faGithub} />
|
||||||
</a>
|
</Link>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue