feat(blog): update link to source code
This commit is contained in:
parent
eb8ac809f0
commit
feea815847
2 changed files with 8 additions and 23 deletions
|
@ -1,8 +1,7 @@
|
|||
import { faRss } from "@fortawesome/free-solid-svg-icons"
|
||||
import { faGitAlt } from "@fortawesome/free-brands-svg-icons"
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
|
||||
|
||||
import GithubLinkIcon from "../GithubLinkIcon"
|
||||
|
||||
export default function Footer() {
|
||||
return (
|
||||
<footer className="flex h-32 justify-center bg-light-footer-bg px-4 text-light-footer-text dark:bg-dark-footer-bg dark:text-dark-footer-text">
|
||||
|
@ -17,9 +16,15 @@ export default function Footer() {
|
|||
>
|
||||
<FontAwesomeIcon icon={faRss} />
|
||||
</a>
|
||||
<GithubLinkIcon href="https://github.com/pompydev/pompy.dev" />
|
||||
<a
|
||||
href="https://git.pompy.dev/pomp/pompy.dev/src/branch/master/apps/blog"
|
||||
className="text-4xl 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"
|
||||
>
|
||||
<FontAwesomeIcon icon={faGitAlt} />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
import { faGithub } from "@fortawesome/free-brands-svg-icons"
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
|
||||
import Link from "next/link"
|
||||
|
||||
interface Props {
|
||||
href: string
|
||||
}
|
||||
|
||||
export default function GithubLinkIcon({ href }: Props) {
|
||||
return (
|
||||
<Link
|
||||
className="text-4xl 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}
|
||||
target="_blank"
|
||||
aria-label="GitHub link"
|
||||
>
|
||||
<FontAwesomeIcon icon={faGithub} />
|
||||
</Link>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue