Files
shanghai-residences/src/pages/NotFound.tsx
T
2026-04-30 09:17:31 +08:00

36 lines
1.4 KiB
TypeScript

import { Link } from 'react-router-dom'
import { Home, ArrowLeft } from 'lucide-react'
export default function NotFound() {
return (
<div className="h-full w-full relative bg-white">
<div className="max-w-2xl mx-auto text-center">
<div className="bg-white rounded-xl shadow-lg p-12">
<div className="mb-8">
<h1 className="text-9xl font-bold text-indigo-600 mb-4">404</h1>
<h2 className="text-3xl font-bold text-gray-800 mb-2">页面未找到</h2>
<p className="text-gray-600 text-lg">抱歉,您访问的页面不存在或已被移除。</p>
</div>
<div className="flex flex-col sm:flex-row gap-4 justify-center">
<Link
to="/"
className="inline-flex items-center justify-center gap-2 px-6 py-3 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition-colors font-semibold"
>
<Home size={20} />
返回首页
</Link>
<button
onClick={() => window.history.back()}
className="inline-flex items-center justify-center gap-2 px-6 py-3 border-2 border-indigo-600 text-indigo-600 rounded-lg hover:bg-indigo-50 transition-colors font-semibold"
>
<ArrowLeft size={20} />
返回上一页
</button>
</div>
</div>
</div>
</div>
)
}