<edit>add buri footer.

This commit is contained in:
2025-09-13 12:41:31 +08:00
parent 2064d6430a
commit 9d1f5a1c50

View File

@@ -1,3 +1,5 @@
// src/components/Footer.tsx (已添加您的署名)
import { fetchSetting } from "@/lib/nezha-api"
import { useQuery } from "@tanstack/react-query"
import React from "react"
@@ -20,7 +22,7 @@ const Footer: React.FC = () => {
<section className="mt-1 flex items-center sm:flex-row flex-col justify-between gap-2 text-[13px] font-light tracking-tight text-neutral-600/50 dark:text-neutral-300/50 server-footer-name">
<div className="flex items-center gap-1">
&copy;2020-{new Date().getFullYear()}{" "}
<a href={"https://github.com/naiba/nezha"} target="_blank">
<a href={"https://github.com/naiba/nezha"} target="_blank" className="hover:underline">
Nezha
</a>
<p>{settingData?.data?.version || ""}</p>
@@ -32,15 +34,21 @@ const Footer: React.FC = () => {
</kbd>
</p>
<section>
{t("footer.themeBy")}
<a href={"https://github.com/hamster1963/nezha-dash"} target="_blank">
{t("footer.themeBy")}{" "}
<a href={"https://github.com/hamster1963/nezha-dash"} target="_blank" className="hover:underline">
nezha-dash
</a>
{import.meta.env.VITE_GIT_HASH && (
<a href={"https://github.com/hamster1963/nezha-dash-v1/commit/" + import.meta.env.VITE_GIT_HASH} className="ml-1">
<a href={"https://github.com/hamster1963/nezha-dash-v1/commit/" + import.meta.env.VITE_GIT_HASH} className="ml-1 hover:underline">
({import.meta.env.VITE_GIT_HASH})
</a>
)}
</section>
<section className="mt-1">
{"Modified by "}
<a href={"https://github.com/buriburizaem0n"} target="_blank" className="hover:underline font-medium">
buriburizaem0n
</a>
</section>
</div>
</section>
@@ -49,4 +57,4 @@ const Footer: React.FC = () => {
)
}
export default Footer
export default Footer