File tree Expand file tree Collapse file tree 5 files changed +15
-32
lines changed
Expand file tree Collapse file tree 5 files changed +15
-32
lines changed Original file line number Diff line number Diff line change 11import { 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
138export default function MonochromeMergeLayout ( {
149 children,
Original file line number Diff line number Diff line change 1- "use client" ;
2-
3- import { useTranslations } from "next-intl" ;
41import MonochromeMergeClient from "./client" ;
52
63export 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 />
Original file line number Diff line number Diff line change 11import "../page.css" ;
22import Explains from "../components/explains" ;
3- import { useTranslations } from "next-intl" ;
43import Link from "next/link" ;
54export 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 >
Original file line number Diff line number Diff line change 1- "use client" ;
2- import { useTranslations } from "next-intl" ;
3-
41export 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 ) ;
Original file line number Diff line number Diff line change 11import "./page.css" ;
22import Explains from "./components/explains" ;
3- import { useTranslations } from "next-intl" ;
43import Link from "next/link" ;
54export 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 >
You can’t perform that action at this time.
0 commit comments