feat: footer add kdb

This commit is contained in:
hamster1963 2025-01-24 00:13:10 +08:00
parent f69ec0a010
commit 3ca6a8e310
2 changed files with 6 additions and 3 deletions

View File

@ -5,7 +5,7 @@ export default function Footer() {
const t = useTranslations("Footer") const t = useTranslations("Footer")
const version = pack.version const version = pack.version
return ( return (
<footer className="mx-auto w-full max-w-5xl"> <footer className="mx-auto w-full max-w-5xl flex items-center justify-between">
<section className="flex flex-col"> <section className="flex flex-col">
<p className="mt-3 flex gap-1 text-[13px] font-light tracking-tight text-neutral-600/50 dark:text-neutral-300/50"> <p className="mt-3 flex gap-1 text-[13px] font-light tracking-tight text-neutral-600/50 dark:text-neutral-300/50">
{t("p_146-598_Findthecodeon")}{" "} {t("p_146-598_Findthecodeon")}{" "}
@ -32,6 +32,11 @@ export default function Footer() {
<a href={"https://buycoffee.top"}>{t("a_800-850_Hamster1963")}</a> <a href={"https://buycoffee.top"}>{t("a_800-850_Hamster1963")}</a>
</section> </section>
</section> </section>
<p className="mt-1 text-[13px] font-light tracking-tight text-neutral-600/50 dark:text-neutral-300/50">
<kbd className="pointer-events-none mx-1 inline-flex h-4 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100">
<span className="text-xs"></span>K
</kbd>
</p>
</footer> </footer>
) )
} }

View File

@ -47,7 +47,6 @@ export function DashCommand() {
return a.id - b.id return a.id - b.id
}) })
// 添加语言切换快捷方式
const languageShortcuts = localeItems.map((item) => ({ const languageShortcuts = localeItems.map((item) => ({
keywords: ["language", "locale", item.code.toLowerCase()], keywords: ["language", "locale", item.code.toLowerCase()],
icon: <Languages />, icon: <Languages />,
@ -56,7 +55,6 @@ export function DashCommand() {
value: `language ${item.name.toLowerCase()} ${item.code}`, value: `language ${item.name.toLowerCase()} ${item.code}`,
})) }))
// 将语言快捷方式添加到现有的shortcuts数组中
const shortcuts = [ const shortcuts = [
{ {
keywords: ["home", "homepage"], keywords: ["home", "homepage"],