This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
scoresaber-reloadedv3/src/components/footer.tsx
Liam ae66a73abc
All checks were successful
Deploy SSR / deploy (push) Successful in 1m17s
add padding above the footer
2024-09-13 20:59:34 +01:00

44 lines
1001 B
TypeScript

import Link from "next/link";
import { getBuildInformation } from "@/common/website-utils";
type NavbarItem = {
name: string;
link: string;
};
const items: NavbarItem[] = [
{
name: "Home",
link: "/",
},
{
name: "Source",
link: "https://git.fascinated.cc/Fascinated/scoresaber-reloadedv3",
},
];
export default function Footer() {
const { buildId, buildTime } = getBuildInformation();
return (
<div className="flex items-center w-full flex-col gap-1 mt-6">
<p className="text-input text-sm">
Build: {buildId} ({buildTime})
</p>
<div className="h-14 w-full flex items-center justify-center bg-secondary/95 divide-x divide-input">
{items.map((item, index) => {
return (
<Link
key={index}
className="px-2 text-pp hover:brightness-75"
href={item.link}
>
{item.name}
</Link>
);
})}
</div>
</div>
);
}