mirror of
https://git.aramjonghu.dev/AramJonghu/aramjonghu-site.git
synced 2026-09-06 07:33:29 +02:00
revert to stable TS vs TS7@rc. Added Gitea repo link.
This commit is contained in:
@@ -1,25 +1,43 @@
|
||||
import forgejo from "../assets/images/forgejo.svg";
|
||||
import gitea from "../assets/images/gitea.svg";
|
||||
|
||||
export default function Footer() {
|
||||
const currentYear = new Date().getFullYear();
|
||||
|
||||
const goToRepo = () => {
|
||||
const goToForgejo = () => {
|
||||
window.location.href =
|
||||
"https://git.aramjonghu.nl/AramJonghu/aramjonghu-site";
|
||||
};
|
||||
|
||||
const goToGitea = () => {
|
||||
window.location.href =
|
||||
"https://git.zach-dev.cc/AramJonghu/aramjonghu-site";
|
||||
};
|
||||
|
||||
return (
|
||||
<footer className="bg-ctp-mantle flex items-center justify-between px-24 py-6 border-t border-ctp-lavender-800 mt-10">
|
||||
<p className="text-sm text-ctp-text">
|
||||
© {currentYear} AramJonghu. All rights reserved.
|
||||
</p>
|
||||
<div className="flex">
|
||||
<p className="text-sm text-ctp-text">
|
||||
Check out the website repository here:
|
||||
</p>
|
||||
|
||||
<img
|
||||
src={forgejo}
|
||||
alt="Forgejo repository"
|
||||
onClick={goToRepo}
|
||||
className="w-6 h-6 cursor-pointer hover:opacity-80 transition-opacity"
|
||||
/>
|
||||
<img
|
||||
src={forgejo}
|
||||
alt="Forgejo repository"
|
||||
onClick={goToForgejo}
|
||||
className="ml-2 w-6 h-6 cursor-pointer hover:opacity-80 transition-opacity"
|
||||
/>
|
||||
|
||||
<img
|
||||
src={gitea}
|
||||
alt="Gitea mirror"
|
||||
onClick={goToGitea}
|
||||
className="ml-2 w-6 h-6 cursor-pointer hover:opacity-80 transition-opacity"
|
||||
/>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user