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 ContactPage() {
|
||||
const { t } = useLocale();
|
||||
|
||||
return (
|
||||
<div
|
||||
className="flex min-h-dvh flex-col bg-[#f8f7fc] px-5 py-10"
|
||||
@@ -10,9 +15,9 @@ export default function ContactPage() {
|
||||
}}
|
||||
>
|
||||
<div className="mx-auto w-full max-w-md">
|
||||
<h1 className="text-xl font-bold text-neutral-900">联系我们</h1>
|
||||
<h1 className="text-xl font-bold text-neutral-900">{t.contact.title}</h1>
|
||||
<p className="mt-4 text-sm leading-relaxed text-neutral-600">
|
||||
加入数字游民社群,获取最新动态与交流机会。
|
||||
{t.contact.body}
|
||||
</p>
|
||||
<div className="mt-6 flex flex-col gap-3">
|
||||
<Link
|
||||
@@ -21,7 +26,7 @@ export default function ContactPage() {
|
||||
rel="noopener noreferrer"
|
||||
className="flex h-12 items-center justify-center rounded-2xl bg-violet-600 text-sm font-medium text-white active:bg-violet-700"
|
||||
>
|
||||
🎬 直播工具箱
|
||||
{t.contact.liveCta}
|
||||
</Link>
|
||||
<Link
|
||||
href="https://vip.hackrobot.cn"
|
||||
@@ -29,14 +34,14 @@ export default function ContactPage() {
|
||||
rel="noopener noreferrer"
|
||||
className="flex h-12 items-center justify-center rounded-2xl border border-neutral-200 bg-white text-sm font-medium text-neutral-700 active:bg-neutral-50"
|
||||
>
|
||||
👑 会员社群
|
||||
{t.contact.vipCta}
|
||||
</Link>
|
||||
</div>
|
||||
<Link
|
||||
href="/"
|
||||
className="mt-8 inline-block text-sm text-violet-600 active:text-violet-800"
|
||||
>
|
||||
← 返回首页
|
||||
{t.contact.backHome}
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user