Skip to content

Commit 810619b

Browse files
committed
Auto-save: Changed 47 lines in src/app/tool/art/monochrome-merge/layout.tsx src/app/tool/art/monochrome-merge/page.tsx src/app/tool/art/page.tsx src/app/tool/components/explains.tsx src/app/tool/page.tsx on 2025-07-13 21:00:47
1 parent 045a193 commit 810619b

File tree

5 files changed

+15
-32
lines changed

5 files changed

+15
-32
lines changed

src/app/tool/art/monochrome-merge/layout.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
import { Metadata } from "next";
2-
import { getTranslations } from "next-intl/server";
32

4-
export async function generateMetadata(): Promise<Metadata> {
5-
const t = await getTranslations("pages.tool.art.monochrome-merge");
6-
7-
return {
8-
title: t("title"),
9-
description: t("description"),
10-
};
11-
}
3+
export const metadata: Metadata = {
4+
title: "Monochrome Merge",
5+
description: "Merge a light and dark image into a single monochrome image.",
6+
};
127

138
export default function MonochromeMergeLayout({
149
children,

src/app/tool/art/monochrome-merge/page.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
"use client";
2-
3-
import { useTranslations } from "next-intl";
41
import MonochromeMergeClient from "./client";
52

63
export default function MonochromeMergePage() {
7-
const t = useTranslations("pages.tool.art.monochrome-merge");
84
return (
95
<>
106
<section className="title">
11-
<h1>{t("title")}</h1>
12-
<p>{t("description")}</p>
7+
<h1>Monochrome Merge</h1>
8+
<p>Merge a light and dark image into a single monochrome image.</p>
139
</section>
1410
<section className="monochrome-merge-tool-section">
1511
<MonochromeMergeClient />

src/app/tool/art/page.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
import "../page.css";
22
import Explains from "../components/explains";
3-
import { useTranslations } from "next-intl";
43
import Link from "next/link";
54
export default function ArtToolPage() {
6-
const t = useTranslations("pages.tool.art");
75
return (
86
<>
97
<Explains />
108
<section className="tool-list-section">
11-
<h1>{t("title")}</h1>
9+
<h1>Art Tools</h1>
1210
<div className="tool-categories">
1311
<Link
1412
href="/tool/art/monochrome-merge"
1513
className="tool-category-card"
1614
>
1715
<div className="tool-category-info">
18-
<h2>{t("monochrome-merge.title")}</h2>
19-
<p>{t("monochrome-merge.description")}</p>
16+
<h2>Monochrome Merge</h2>
17+
<p>Merge a light and dark image into a single monochrome image.</p>
2018
</div>
2119
</Link>
2220
</div>

src/app/tool/components/explains.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
"use client";
2-
import { useTranslations } from "next-intl";
3-
41
export default function Explains() {
5-
const t = useTranslations("pages.tool"); // Assuming a 'pages.tool' translation key
62
return (
73
<>
84
<section className="title">
9-
<h1>{t("title")}</h1>
5+
<h1>The Infinity's Tools</h1>
106
</section>
117
<section className="description">
12-
<p>{t("description.msg1")}</p>
13-
<p>{t("description.msg2")}</p>
8+
<p>Useful tools for everyone!</p>
9+
<p>More tools will be added in the future.</p>
1410
</section>
1511
</>
1612
);

src/app/tool/page.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
import "./page.css";
22
import Explains from "./components/explains";
3-
import { useTranslations } from "next-intl";
43
import Link from "next/link";
54
export default function ToolPage() {
6-
const t = useTranslations("pages.tool");
75
return (
86
<>
97
<Explains />
108
<section className="tool-categories-section">
11-
<h1>{t("toolCategories")}</h1>
9+
<h1>Tool Categories</h1>
1210
<div className="tool-categories">
1311
<Link href="/tool/art" className="tool-category-card">
1412
<div className="tool-category-info">
15-
<h2>{t("art.title")}</h2>
16-
<p>{t("art.description")}</p>
13+
<h2>Art</h2>
14+
<p>Tools for creating or editing images.</p>
1715
</div>
1816
</Link>
1917
</div>

0 commit comments

Comments
 (0)