From 17131893334fa13dea84c139efc23af02b9255a6 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Thu, 6 Feb 2025 00:20:05 +0800 Subject: [PATCH] refactor: improve Footer component with modular link styling and constants --- app/(main)/footer.tsx | 53 +++++++++++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 19 deletions(-) diff --git a/app/(main)/footer.tsx b/app/(main)/footer.tsx index 6370577..7958feb 100644 --- a/app/(main)/footer.tsx +++ b/app/(main)/footer.tsx @@ -1,38 +1,53 @@ import pack from "@/package.json" import { useTranslations } from "next-intl" +const GITHUB_URL = "https://github.com/hamster1963/nezha-dash" +const PERSONAL_URL = "https://buycoffee.top" + +type LinkProps = { + href: string + children: React.ReactNode +} + +const FooterLink = ({ href, children }: LinkProps) => ( + + {children} + +) + +const baseTextStyles = "text-[13px] font-light tracking-tight text-neutral-600/50 dark:text-neutral-300/50" + export default function Footer() { const t = useTranslations("Footer") const version = pack.version + const currentYear = new Date().getFullYear() + return (