feat(rep): nav links

This commit is contained in:
2026-10-13 15:41:14 +07:00 Unverified
parent 26a4331a08
commit acc0de3648
4 changed files with 30 additions and 9 deletions
+4 -2
View File
@@ -7,6 +7,7 @@ import {
LoaderPinwheel,
StickyNote,
Table,
UserCog,
} from "lucide-react";
import Link from "next/link";
import { usePathname } from "next/navigation";
@@ -19,7 +20,7 @@ export function Navbar() {
const mobile = useIsMobile();
if (
!/^\/(?:tl(?:\/[a-zA-Z0-9]+)?|rubgram|artifact|guide|donate)$/gm.test(
!/^\/(?:tl(?:\/[a-zA-Z0-9]+)?|rubgram|artifact|guide|donate|repair)$/gm.test(
pathname,
)
)
@@ -44,7 +45,8 @@ export function Navbar() {
/>
<Item icon={<Table size={16} />} name="จัดเทียร์ลิสต์" href="/tl" />
<Item icon={<StickyNote size={16} />} name="ไกด์ตัวละคร" href="/guide" />
<Item icon={<Bitcoin size={16} />} name="โดเนท" href="/donate" last />
<Item icon={<Bitcoin size={16} />} name="โดเนท" href="/donate" />
<Item icon={<UserCog size={16} />} name="ซ่อมไอดี" href="/repair" last />
</div>
);
}
+6
View File
@@ -66,6 +66,12 @@ export default function Home() {
href="/donate"
logo={DonateLogo}
/>
<HomeLink
name="ซ่อมไอดีชาวบ้าน"
desc="ซ่อมไอดีชาวบ้าน"
href="/repair"
logo={DonateLogo}
/>
</div>
<footer className="flex h-full flex-col justify-end pb-3 text-muted-foreground md:justify-center">
<div className="flex flex-col justify-between gap-2 text-center sm:flex-row sm:text-left">