Files
gitlab-instance-0a899031_cn…/app/[locale]/safety/page.tsx
2026-03-09 04:08:32 -05:00

60 lines
2.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import Footer from "@/app/components/Footer";
import { safetyContent } from "@/app/data/mock";
export const metadata = {
title: "安全指南 | 游牧中国",
description: "数字游民安全指南,帮助您在旅居过程中保护自己。",
};
export default function SafetyPage() {
return (
<>
<main className="min-h-screen bg-[#fafafa] dark:bg-gray-950">
<section className="max-w-4xl mx-auto px-4 sm:px-6 py-12 sm:py-20">
<h1 className="text-3xl sm:text-4xl font-bold text-gray-900 dark:text-gray-100 mb-2 flex items-center gap-2">
<span className="w-1 h-10 bg-[#ff4d4f] rounded-full" />
安全指南
</h1>
<p className="text-gray-600 dark:text-gray-400 mb-10">
作为数字游民,安全是我们最重视的问题之一。这份指南帮助您在旅居过程中保护自己。
</p>
<div className="space-y-8">
{safetyContent.sections.map((section, index) => (
<div
key={index}
className="bg-white dark:bg-gray-900 rounded-xl p-6 border border-gray-100 dark:border-gray-800"
>
<h2 className="text-xl font-bold text-gray-900 dark:text-gray-100 mb-4">
{section.title}
</h2>
<div className="prose prose-gray dark:prose-invert max-w-none">
{section.content.split('\n').map((line, i) => {
if (line.trim() === '') return null;
return (
<p key={i} className="text-gray-600 dark:text-gray-400 mb-2">
{line}
</p>
);
})}
</div>
</div>
))}
</div>
{/* Emergency Contact */}
<div className="mt-10 bg-[#ff4d4f]/5 dark:bg-[#ff4d4f]/10 rounded-xl p-6">
<h3 className="font-bold text-gray-900 dark:text-gray-100 mb-3">紧急联系方式</h3>
<p className="text-gray-600 dark:text-gray-400 text-sm mb-2">
如果您遇到紧急情况,请拨打当地急救电话或联系最近的大使馆。
</p>
<p className="text-gray-600 dark:text-gray-400 text-sm">
游牧中国客服:hello@nomadcna.com
</p>
</div>
</section>
</main>
<Footer />
</>
);
}