- Removed unused dependencies related to @dnd-kit from pnpm-lock.yaml. - Updated Vite configuration to set the base path. - Added input styles to the main CSS file. - Enhanced BackgroundImage component to include an overflowHidden prop for better layout control. - Deleted the DraggableItem component as it was no longer needed. - Updated routing to include new Publicity and Content pages, and modified navigation in Menu and NotFound components.
40 lines
1.5 KiB
TypeScript
40 lines
1.5 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>
|
|
);
|
|
}
|