refactor(blog): use nextJS link

This commit is contained in:
Kim, Jimin 2023-07-28 22:28:08 +09:00
parent d37f25dabf
commit 2d600d724d
Signed by: pomp
GPG key ID: CE1DDB8A4A765403

View file

@ -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>
) )
} }