From 3709794d1182a15fb51802178ad5c18b6999a2e3 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 27 Sep 2024 19:50:27 +0100 Subject: [PATCH] add open in new tab option to the footer --- src/components/footer.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/footer.tsx b/src/components/footer.tsx index 061a7d0..f0f140c 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -1,9 +1,10 @@ -import Link from "next/link"; import { getBuildInformation } from "@/common/website-utils"; +import Link from "next/link"; type NavbarItem = { name: string; link: string; + openInNewTab?: boolean; }; const items: NavbarItem[] = [ @@ -14,6 +15,7 @@ const items: NavbarItem[] = [ { name: "Source", link: "https://git.fascinated.cc/Fascinated/scoresaber-reloadedv3", + openInNewTab: true, }, ]; @@ -34,6 +36,7 @@ export default function Footer() { key={index} className="px-2 text-pp hover:brightness-75 transition-all transform-gpu" href={item.link} + target={item.openInNewTab ? "_blank" : undefined} > {item.name}