This commit is contained in:
eric
2026-03-09 04:08:32 -05:00
parent 52da06789b
commit 302a072036
15 changed files with 1498 additions and 13 deletions

111
app/[locale]/blog/page.tsx Normal file
View File

@@ -0,0 +1,111 @@
import Footer from "@/app/components/Footer";
import { blogPosts } from "@/app/data/mock";
export const metadata = {
title: "博客 | 游牧中国",
description: "阅读最新的数字游民资讯、城市攻略、签证指南和经验分享。",
};
export default function BlogPage() {
const featuredPost = blogPosts.find((post) => post.featured);
const regularPosts = blogPosts.filter((post) => !post.featured);
return (
<>
<main className="min-h-screen bg-[#fafafa] dark:bg-gray-950">
<section className="max-w-6xl mx-auto px-4 sm:px-6 py-12 sm:py-16">
<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>
{/* Featured Post */}
{featuredPost && (
<div className="mb-12">
<div className="bg-white dark:bg-gray-900 rounded-2xl overflow-hidden shadow-sm hover:shadow-md transition-shadow border border-gray-100 dark:border-gray-800">
<div className="grid md:grid-cols-2 gap-0">
<div className="aspect-video md:aspect-auto relative">
<img
src={featuredPost.coverImage}
alt={featuredPost.title}
className="w-full h-full object-cover"
/>
</div>
<div className="p-6 sm:p-8 flex flex-col justify-center">
<span className="inline-block px-3 py-1 bg-[#ff4d4f]/10 text-[#ff4d4f] text-xs font-medium rounded-full mb-4 w-fit">
{featuredPost.category}
</span>
<h2 className="text-xl sm:text-2xl font-bold text-gray-900 dark:text-gray-100 mb-3">
{featuredPost.title}
</h2>
<p className="text-gray-600 dark:text-gray-400 mb-4 line-clamp-2">
{featuredPost.excerpt}
</p>
<div className="flex items-center gap-3 mt-auto">
<img
src={featuredPost.authorAvatar}
alt={featuredPost.author}
className="w-8 h-8 rounded-full"
/>
<div className="text-sm">
<span className="text-gray-900 dark:text-gray-100 font-medium">
{featuredPost.author}
</span>
<span className="text-gray-400 ml-2">
{featuredPost.date} · {featuredPost.readTime}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
)}
{/* Regular Posts Grid */}
<div className="grid sm:grid-cols-2 lg:grid-cols-3 gap-6">
{regularPosts.map((post) => (
<article
key={post.id}
className="bg-white dark:bg-gray-900 rounded-xl overflow-hidden shadow-sm hover:shadow-md transition-shadow border border-gray-100 dark:border-gray-800"
>
<div className="aspect-video relative">
<img
src={post.coverImage}
alt={post.title}
className="w-full h-full object-cover"
/>
<span className="absolute top-3 left-3 inline-block px-2 py-1 bg-black/50 text-white text-xs rounded-md backdrop-blur-sm">
{post.category}
</span>
</div>
<div className="p-4">
<h3 className="font-bold text-gray-900 dark:text-gray-100 mb-2 line-clamp-2">
{post.title}
</h3>
<p className="text-sm text-gray-600 dark:text-gray-400 mb-3 line-clamp-2">
{post.excerpt}
</p>
<div className="flex items-center gap-2">
<img
src={post.authorAvatar}
alt={post.author}
className="w-6 h-6 rounded-full"
/>
<span className="text-xs text-gray-500">
{post.author} · {post.readTime}
</span>
</div>
</div>
</article>
))}
</div>
</section>
</main>
<Footer />
</>
);
}

View File

@@ -0,0 +1,104 @@
import Footer from "@/app/components/Footer";
import { jobs } from "@/app/data/mock";
export const metadata = {
title: "加入我们 | 游牧中国",
description: "加入游牧中国团队,一起打造中国最好的数字游民社区。",
};
export default function CareersPage() {
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-6 flex items-center gap-2">
<span className="w-1 h-10 bg-[#ff4d4f] rounded-full" />
加入我们
</h1>
<p className="text-lg text-gray-600 dark:text-gray-400 leading-relaxed mb-10">
游牧中国正在寻找志同道合的伙伴,一起打造中国最好的数字游民社区。
我们鼓励远程工作,支持灵活的工作时间,欢迎热爱旅行和自由生活的你。
</p>
{/* Benefits */}
<div className="bg-white dark:bg-gray-900 rounded-2xl p-6 sm:p-8 mb-10 border border-gray-100 dark:border-gray-800">
<h2 className="text-xl font-bold text-gray-900 dark:text-gray-100 mb-6">为什么加入我们</h2>
<div className="grid sm:grid-cols-2 gap-4">
<div className="flex items-start gap-3">
<span className="text-2xl">🏝️</span>
<div>
<h3 className="font-medium text-gray-900 dark:text-gray-100">远程工作</h3>
<p className="text-sm text-gray-500">支持全远程,可在大理、泰国等地办公</p>
</div>
</div>
<div className="flex items-start gap-3">
<span className="text-2xl">⏰</span>
<div>
<h3 className="font-medium text-gray-900 dark:text-gray-100">弹性时间</h3>
<p className="text-sm text-gray-500">核心时间外,自由安排工作时间</p>
</div>
</div>
<div className="flex items-start gap-3">
<span className="text-2xl">🎉</span>
<div>
<h3 className="font-medium text-gray-900 dark:text-gray-100">有趣同事</h3>
<p className="text-sm text-gray-500">团队成员都是数字游民,志同道合</p>
</div>
</div>
<div className="flex items-start gap-3">
<span className="text-2xl">📈</span>
<div>
<h3 className="font-medium text-gray-900 dark:text-gray-100">成长空间</h3>
<p className="text-sm text-gray-500">快速发展的创业团队,机会多多</p>
</div>
</div>
</div>
</div>
{/* Job Openings */}
<h2 className="text-xl font-bold text-gray-900 dark:text-gray-100 mb-6">热招职位</h2>
<div className="space-y-4">
{jobs.map((job) => (
<div
key={job.id}
className="bg-white dark:bg-gray-900 rounded-xl p-5 border border-gray-100 dark:border-gray-800 hover:shadow-md transition-shadow"
>
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-3 mb-3">
<div>
<h3 className="text-lg font-bold text-gray-900 dark:text-gray-100">{job.title}</h3>
<p className="text-sm text-gray-500">
{job.department} · {job.location} · {job.type}
</p>
</div>
<span className="text-[#ff4d4f] font-medium">{job.salary}</span>
</div>
<p className="text-gray-600 dark:text-gray-400 text-sm mb-4">{job.description}</p>
<div className="flex flex-wrap gap-2">
{job.requirements.slice(0, 3).map((req, index) => (
<span
key={index}
className="px-2 py-1 bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400 text-xs rounded-md"
>
{req}
</span>
))}
</div>
</div>
))}
</div>
{/* Contact */}
<div className="mt-10 text-center">
<p className="text-gray-600 dark:text-gray-400">
没有看到合适的职位?请发送简历至{" "}
<a href="mailto:hello@nomadcna.com" className="text-[#ff4d4f] hover:underline">
hello@nomadcna.com
</a>
</p>
</div>
</section>
</main>
<Footer />
</>
);
}

View File

@@ -0,0 +1,106 @@
import Footer from "@/app/components/Footer";
import { contactContent } from "@/app/data/mock";
export const metadata = {
title: "联系我们 | 游牧中国",
description: "联系我们,获取支持或商务合作。",
};
export default function ContactPage() {
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="grid md:grid-cols-2 gap-8">
{/* Contact Info */}
<div className="bg-white dark:bg-gray-900 rounded-xl p-6 border border-gray-100 dark:border-gray-800">
<h2 className="text-lg font-bold text-gray-900 dark:text-gray-100 mb-6">联系方式</h2>
<div className="space-y-4">
{contactContent.social.map((item, index) => (
<div key={index} className="flex items-center gap-3">
<span className="w-10 h-10 rounded-lg bg-gray-100 dark:bg-gray-800 flex items-center justify-center text-lg">
{item.name === "微信" ? "💬" : item.name === "邮箱" ? "📧" : item.name === "Twitter" ? "🐦" : "📱"}
</span>
<div>
<p className="text-xs text-gray-500">{item.name}</p>
<p className="text-gray-900 dark:text-gray-100 font-medium">{item.value}</p>
</div>
</div>
))}
</div>
<div className="mt-6 pt-6 border-t border-gray-100 dark:border-gray-800">
<p className="text-sm text-gray-500">{contactContent.responseTime}</p>
</div>
</div>
{/* Contact Form */}
<div className="bg-white dark:bg-gray-900 rounded-xl p-6 border border-gray-100 dark:border-gray-800">
<h2 className="text-lg font-bold text-gray-900 dark:text-gray-100 mb-6">发送消息</h2>
<form className="space-y-4">
<div>
<label className="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
您的邮箱
</label>
<input
type="email"
placeholder="your@email.com"
className="w-full px-4 py-2 rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-[#ff4d4f] focus:border-transparent"
/>
</div>
<div>
<label className="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
主题
</label>
<input
type="text"
placeholder="请输入主题"
className="w-full px-4 py-2 rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-[#ff4d4f] focus:border-transparent"
/>
</div>
<div>
<label className="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">
消息内容
</label>
<textarea
rows={4}
placeholder="请描述您的问题或建议..."
className="w-full px-4 py-2 rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-2 focus:ring-[#ff4d4f] focus:border-transparent resize-none"
/>
</div>
<button
type="submit"
className="w-full py-2 px-4 bg-[#ff4d4f] text-white font-medium rounded-lg hover:bg-[#ff4d4f]/90 transition-colors"
>
发送消息
</button>
</form>
</div>
</div>
{/* Business Cooperation */}
<div className="mt-10 bg-white dark:bg-gray-900 rounded-xl p-6 border border-gray-100 dark:border-gray-800">
<h2 className="text-lg font-bold text-gray-900 dark:text-gray-100 mb-4">商务合作</h2>
<p className="text-gray-600 dark:text-gray-400 text-sm mb-4">
欢迎品牌合作、活动联合、媒体报道等商务咨询。
</p>
<a
href="mailto:business@nomadcna.com"
className="inline-block px-5 py-2 bg-[#ff4d4f] text-white font-medium rounded-lg hover:bg-[#ff4d4f]/90 transition-colors"
>
商务合作邮箱
</a>
</div>
</section>
</main>
<Footer />
</>
);
}

View File

@@ -0,0 +1,48 @@
import Footer from "@/app/components/Footer";
import { cookieContent } from "@/app/data/mock";
export const metadata = {
title: "Cookie政策 | 游牧中国",
description: "游牧中国Cookie政策,了解我们如何使用Cookie。",
};
export default function CookiesPage() {
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" />
Cookie政策
</h1>
<p className="text-gray-500 text-sm mb-10">
最后更新:{cookieContent.lastUpdated}
</p>
<div className="space-y-8">
{cookieContent.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>
</section>
</main>
<Footer />
</>
);
}

View File

@@ -0,0 +1,62 @@
import Footer from "@/app/components/Footer";
import { guidelinesContent } from "@/app/data/mock";
export const metadata = {
title: "社区准则 | 游牧中国",
description: "游牧中国社区准则,打造健康、积极、互助的社区氛围。",
};
export default function GuidelinesPage() {
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">
{guidelinesContent.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>
{/* Report */}
<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-3">
如果您发现社区中有违规行为或需要举报,请联系我们。
</p>
<a
href="mailto:hello@nomadcna.com"
className="text-[#ff4d4f] hover:underline text-sm"
>
hello@nomadcna.com
</a>
</div>
</section>
</main>
<Footer />
</>
);
}

View File

@@ -0,0 +1,66 @@
import Footer from "@/app/components/Footer";
import Link from "next/link";
import { helpArticles } from "@/app/data/mock";
export const metadata = {
title: "帮助中心 | 游牧中国",
description: "游牧中国帮助中心,解决您在使用过程中的常见问题。",
};
export default function HelpPage() {
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="grid sm:grid-cols-2 gap-4">
{helpArticles.map((category) => (
<div
key={category.id}
className="bg-white dark:bg-gray-900 rounded-xl p-5 border border-gray-100 dark:border-gray-800"
>
<div className="flex items-center gap-3 mb-4">
<span className="text-2xl">{category.icon}</span>
<h2 className="text-lg font-bold text-gray-900 dark:text-gray-100">{category.title}</h2>
</div>
<ul className="space-y-2">
{category.articles.map((article) => (
<li key={article.id}>
<Link
href={`/help?category=${category.category}&article=${article.id}`}
className="text-sm text-gray-600 dark:text-gray-400 hover:text-[#ff4d4f] transition-colors block"
>
{article.title}
</Link>
</li>
))}
</ul>
</div>
))}
</div>
{/* Contact Support */}
<div className="mt-10 bg-[#ff4d4f]/5 dark:bg-[#ff4d4f]/10 rounded-xl p-6 text-center">
<h3 className="font-bold text-gray-900 dark:text-gray-100 mb-2">没有找到答案?</h3>
<p className="text-gray-600 dark:text-gray-400 text-sm mb-4">
请通过联系我们页面提交您的问题
</p>
<Link
href="/contact"
className="inline-block px-5 py-2 bg-[#ff4d4f] text-white font-medium rounded-lg hover:bg-[#ff4d4f]/90 transition-colors"
>
联系我们
</Link>
</div>
</section>
</main>
<Footer />
</>
);
}

View File

@@ -0,0 +1,64 @@
import Footer from "@/app/components/Footer";
import { pressArticles } from "@/app/data/mock";
export const metadata = {
title: "媒体报道 | 游牧中国",
description: "查看媒体对游牧中国的报道,了解数字游民社区的发展。",
};
export default function PressPage() {
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="grid gap-4">
{pressArticles.map((article) => (
<a
key={article.id}
href={article.url}
target="_blank"
rel="noopener noreferrer"
className="bg-white dark:bg-gray-900 rounded-xl p-5 border border-gray-100 dark:border-gray-800 hover:shadow-md transition-shadow block"
>
<div className="flex items-start gap-4">
<div className="w-12 h-12 rounded-lg bg-gray-100 dark:bg-gray-800 flex items-center justify-center flex-shrink-0 overflow-hidden">
{article.logo ? (
<img
src={article.logo}
alt={article.outlet}
className="w-8 h-8 object-contain"
/>
) : (
<span className="text-lg">📰</span>
)}
</div>
<div className="flex-1 min-w-0">
<div className="flex items-center gap-2 mb-1">
<span className="text-sm text-gray-500">{article.outlet}</span>
<span className="text-gray-300">·</span>
<span className="text-sm text-gray-400">{article.date}</span>
</div>
<h2 className="text-lg font-bold text-gray-900 dark:text-gray-100 mb-1">
{article.title}
</h2>
<p className="text-sm text-gray-600 dark:text-gray-400 line-clamp-2">
{article.excerpt}
</p>
</div>
</div>
</a>
))}
</div>
</section>
</main>
<Footer />
</>
);
}

View File

@@ -0,0 +1,48 @@
import Footer from "@/app/components/Footer";
import { privacyContent } from "@/app/data/mock";
export const metadata = {
title: "隐私政策 | 游牧中国",
description: "游牧中国隐私政策,了解我们如何保护您的个人信息。",
};
export default function PrivacyPage() {
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-500 text-sm mb-10">
最后更新:{privacyContent.lastUpdated}
</p>
<div className="space-y-8">
{privacyContent.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>
</section>
</main>
<Footer />
</>
);
}

View File

@@ -0,0 +1,59 @@
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 />
</>
);
}

View File

@@ -0,0 +1,128 @@
import Footer from "@/app/components/Footer";
import Link from "next/link";
export const metadata = {
title: "支持 | 游牧中国",
description: "游牧中国支持中心,获取帮助和联系我们的多种方式。",
};
export default function SupportPage() {
const supportOptions = [
{
icon: "❓",
title: "帮助中心",
description: "浏览常见问题和使用指南",
link: "/help",
color: "bg-blue-50 dark:bg-blue-900/20",
},
{
icon: "💬",
title: "联系我们",
description: "通过邮件或社群联系我们",
link: "/contact",
color: "bg-green-50 dark:bg-green-900/20",
},
{
icon: "🛡️",
title: "安全指南",
description: "旅居安全建议和保护措施",
link: "/safety",
color: "bg-red-50 dark:bg-red-900/20",
},
{
icon: "📋",
title: "社区准则",
description: "了解社区规则和行为规范",
link: "/guidelines",
color: "bg-purple-50 dark:bg-purple-900/20",
},
{
icon: "🔒",
title: "隐私政策",
description: "了解我们如何保护您的数据",
link: "/privacy",
color: "bg-gray-50 dark:bg-gray-800/50",
},
{
icon: "📜",
title: "服务条款",
description: "平台使用条款和条件",
link: "/terms",
color: "bg-orange-50 dark:bg-orange-900/20",
},
];
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="grid sm:grid-cols-2 gap-4">
{supportOptions.map((option, index) => (
<Link
key={index}
href={option.link}
className="bg-white dark:bg-gray-900 rounded-xl p-5 border border-gray-100 dark:border-gray-800 hover:shadow-md transition-shadow flex items-start gap-4"
>
<div className={`w-12 h-12 rounded-lg ${option.color} flex items-center justify-center text-2xl flex-shrink-0`}>
{option.icon}
</div>
<div>
<h2 className="text-lg font-bold text-gray-900 dark:text-gray-100 mb-1">
{option.title}
</h2>
<p className="text-sm text-gray-500">
{option.description}
</p>
</div>
</Link>
))}
</div>
{/* Quick Help */}
<div className="mt-10 bg-white dark:bg-gray-900 rounded-xl p-6 border border-gray-100 dark:border-gray-800">
<h2 className="text-lg font-bold text-gray-900 dark:text-gray-100 mb-4">快速帮助</h2>
<div className="grid sm:grid-cols-2 gap-4">
<div className="flex items-center gap-3">
<span className="text-xl">📧</span>
<div>
<p className="text-sm font-medium text-gray-900 dark:text-gray-100">邮件支持</p>
<p className="text-xs text-gray-500">hello@nomadcna.com</p>
</div>
</div>
<div className="flex items-center gap-3">
<span className="text-xl">💬</span>
<div>
<p className="text-sm font-medium text-gray-900 dark:text-gray-100">微信社群</p>
<p className="text-xs text-gray-500">NomadCNA</p>
</div>
</div>
<div className="flex items-center gap-3">
<span className="text-xl">🐦</span>
<div>
<p className="text-sm font-medium text-gray-900 dark:text-gray-100">Twitter</p>
<p className="text-xs text-gray-500">@NomadCNA</p>
</div>
</div>
<div className="flex items-center gap-3">
<span className="text-xl">⏰</span>
<div>
<p className="text-sm font-medium text-gray-900 dark:text-gray-100">响应时间</p>
<p className="text-xs text-gray-500">24小时内回复</p>
</div>
</div>
</div>
</div>
</section>
</main>
<Footer />
</>
);
}

View File

@@ -0,0 +1,48 @@
import Footer from "@/app/components/Footer";
import { termsContent } from "@/app/data/mock";
export const metadata = {
title: "服务条款 | 游牧中国",
description: "游牧中国服务条款,了解使用平台的规定和条件。",
};
export default function TermsPage() {
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-500 text-sm mb-10">
最后更新:{termsContent.lastUpdated}
</p>
<div className="space-y-8">
{termsContent.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>
</section>
</main>
<Footer />
</>
);
}