Files
LangBot/web/src/app/not-found.tsx
2025-05-09 19:39:59 +08:00

64 lines
1.9 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.
'use client';
import { useRouter } from 'next/navigation';
import { Button } from "@/components/ui/button";
import { GithubIcon } from "lucide-react";
export default function NotFound() {
const router = useRouter();
return (
<div className="min-h-screen bg-white flex items-center justify-center">
<div className="w-full max-w-[600px] px-4">
<div className="flex flex-col items-center p-6">
{/* 404 图标 */}
<div className="mb-8">
<div className="text-[72px] font-bold text-gray-800">404</div>
</div>
{/* 错误文本 */}
<div className="text-center mb-8">
<h1 className="text-2xl font-normal text-gray-800 mb-2">
</h1>
<p className="text-base text-gray-600 max-w-[450px] mx-auto mb-8">
URL
</p>
</div>
{/* 按钮组 */}
<div className="flex gap-4 mb-6">
<Button
variant="default"
onClick={() => router.back()}
className="h-9 px-4 cursor-pointer"
>
</Button>
<Button
variant="outline"
onClick={() => router.push('/home')}
className="h-9 px-4 cursor-pointer"
>
</Button>
</div>
{/* 帮助文档链接 */}
<div className="text-center">
<p className="text-sm text-gray-600">
<a
href="https://docs.langbot.app"
className="text-black no-underline hover:underline"
>
</a>
</p>
</div>
</div>
</div>
</div>
);
}