Detect locale with is-china-user and show English copy for non-Chinese visitors.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { useLocale } from "~/components/locale-provider";
|
||||
|
||||
export default function AboutPage() {
|
||||
const { t } = useLocale();
|
||||
|
||||
return (
|
||||
<div
|
||||
className="flex min-h-dvh flex-col bg-[#f8f7fc] px-5 py-10"
|
||||
@@ -10,16 +15,15 @@ export default function AboutPage() {
|
||||
}}
|
||||
>
|
||||
<div className="mx-auto w-full max-w-md">
|
||||
<h1 className="text-xl font-bold text-neutral-900">关于 Nomadro</h1>
|
||||
<h1 className="text-xl font-bold text-neutral-900">{t.about.title}</h1>
|
||||
<p className="mt-4 text-sm leading-relaxed text-neutral-600">
|
||||
Nomadro 是中文数字游民操作系统,提供游民导航、地理套利、直播工具箱等模块,
|
||||
帮助更多人从固定工位走向自由生活与自由收入。
|
||||
{t.about.body}
|
||||
</p>
|
||||
<Link
|
||||
href="/"
|
||||
className="mt-8 inline-block text-sm text-violet-600 active:text-violet-800"
|
||||
>
|
||||
← 返回首页
|
||||
{t.about.backHome}
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user