2024-09-13 19:52:27 +00:00
|
|
|
import { getBuildInformation } from "@/common/website-utils";
|
2024-09-27 18:50:27 +00:00
|
|
|
import Link from "next/link";
|
2024-09-13 19:52:27 +00:00
|
|
|
|
|
|
|
type NavbarItem = {
|
|
|
|
name: string;
|
|
|
|
link: string;
|
2024-09-27 18:50:27 +00:00
|
|
|
openInNewTab?: boolean;
|
2024-09-13 19:52:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
const items: NavbarItem[] = [
|
|
|
|
{
|
|
|
|
name: "Home",
|
|
|
|
link: "/",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Source",
|
|
|
|
link: "https://git.fascinated.cc/Fascinated/scoresaber-reloadedv3",
|
2024-09-27 18:50:27 +00:00
|
|
|
openInNewTab: true,
|
2024-09-13 19:52:27 +00:00
|
|
|
},
|
2024-10-16 05:36:24 +00:00
|
|
|
{
|
|
|
|
name: "Twitter",
|
|
|
|
link: "https://x.com/ssr_reloaded",
|
|
|
|
openInNewTab: true,
|
|
|
|
},
|
2024-10-16 05:53:30 +00:00
|
|
|
{
|
|
|
|
name: "Discord",
|
|
|
|
link: "https://discord.gg/kmNfWGA4A8",
|
|
|
|
openInNewTab: true,
|
|
|
|
},
|
2024-09-13 19:52:27 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
export default function Footer() {
|
2024-09-13 20:19:59 +00:00
|
|
|
const { buildId, buildTime, buildTimeShort } = getBuildInformation();
|
2024-09-13 19:52:27 +00:00
|
|
|
|
|
|
|
return (
|
2024-09-13 19:59:34 +00:00
|
|
|
<div className="flex items-center w-full flex-col gap-1 mt-6">
|
2024-09-13 23:21:06 +00:00
|
|
|
<div className="flex items-center gap-2 text-input text-sm">
|
|
|
|
<p>Build: {buildId}</p>
|
|
|
|
<p className="hidden md:block">({buildTime})</p>
|
|
|
|
<p className="none md:hidden">({buildTimeShort})</p>
|
|
|
|
</div>
|
2024-10-16 05:36:24 +00:00
|
|
|
<div className="h-10 w-full flex flex-wrap items-center justify-center bg-secondary/95 divide-x divide-input">
|
2024-09-13 19:52:27 +00:00
|
|
|
{items.map((item, index) => {
|
|
|
|
return (
|
2024-09-13 19:56:03 +00:00
|
|
|
<Link
|
|
|
|
key={index}
|
2024-09-14 17:40:39 +00:00
|
|
|
className="px-2 text-pp hover:brightness-75 transition-all transform-gpu"
|
2024-09-13 19:56:03 +00:00
|
|
|
href={item.link}
|
2024-09-27 18:50:27 +00:00
|
|
|
target={item.openInNewTab ? "_blank" : undefined}
|
2024-09-13 19:56:03 +00:00
|
|
|
>
|
2024-09-13 19:52:27 +00:00
|
|
|
{item.name}
|
|
|
|
</Link>
|
|
|
|
);
|
|
|
|
})}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|