page: tools page: base64

This commit is contained in:
Alikia2x 2024-04-27 19:00:47 +08:00
parent 6fe4fc28c1
commit e3ec2bb897
5 changed files with 32 additions and 3 deletions

View File

@ -0,0 +1,10 @@
import { useTranslations } from "next-intl";
export default function Base64() {
const t = useTranslations("tools");
return (
<div>
<h1 className="text-3xl font-semibold">{t("base64.title")}</h1>
</div>
);
}

View File

@ -0,0 +1,10 @@
export default function ToolsLayout({ children }: { children: React.ReactNode }) {
return (
<div className="h-screen w-screen overflow-x-hidden bg-white dark:bg-[rgb(23,25,29)]">
<main className="relative h-full w-full md:w-3/4 lg:w-1/2 left-0 md:left-[12.5%] lg:left-1/4
pt-12">
{children}
</main>
</div>
);
}

View File

@ -1,7 +1,6 @@
"use client";
import { useEffect } from "react";
import { useRecoilState, useSetRecoilState } from "recoil";
import { useRecoilValue, useSetRecoilState } from "recoil";
import { settingsState } from "./state/settings";
import Search from "./search/search";
import { bgFocusState } from "./state/background";
@ -17,7 +16,7 @@ const Time = dynamic(() => import("./time"), {
});
export default function Homepage() {
const [settings, setSettings] = useRecoilState(settingsState);
const settings = useRecoilValue(settingsState);
const setFocus = useSetRecoilState(bgFocusState);
return (

View File

@ -18,5 +18,10 @@
},
"About": {
"title": "SparkHome"
},
"tools": {
"base64": {
"title": "Base64 tools - LuminaraUtils"
}
}
}

View File

@ -15,5 +15,10 @@
},
"404": {
"title": "未找到"
},
"tools": {
"base64": {
"title": "Base64 工具"
}
}
}