上传完整的WebUI前端仓库

This commit is contained in:
墨梓柒
2026-01-13 06:24:35 +08:00
parent a9187dc312
commit 812296590e
184 changed files with 47854 additions and 1 deletions

View File

@@ -0,0 +1,61 @@
import { useNavigate } from '@tanstack/react-router'
import { Home, Search, ArrowLeft } from 'lucide-react'
import { Button } from '@/components/ui/button'
export function NotFoundPage() {
const navigate = useNavigate()
return (
<div className="flex min-h-screen items-center justify-center bg-background p-4">
<div className="w-full max-w-2xl text-center">
{/* 404 大标题 */}
<div className="relative mb-8">
<h1 className="text-[150px] font-black leading-none text-primary/10 select-none sm:text-[200px]">
404
</h1>
<div className="absolute inset-0 flex items-center justify-center">
<Search className="h-20 w-20 text-primary/30 sm:h-24 sm:w-24" />
</div>
</div>
{/* 错误信息 */}
<div className="space-y-4 mb-8">
<h2 className="text-2xl font-bold text-foreground sm:text-3xl">
</h2>
<p className="text-base text-muted-foreground sm:text-lg max-w-md mx-auto">
访 URL
</p>
</div>
{/* 操作按钮 */}
<div className="flex flex-col sm:flex-row items-center justify-center gap-4">
<Button
size="lg"
onClick={() => navigate({ to: '/' })}
className="gap-2 w-full sm:w-auto"
>
<Home className="h-4 w-4" />
</Button>
<Button
size="lg"
variant="outline"
onClick={() => window.history.back()}
className="gap-2 w-full sm:w-auto"
>
<ArrowLeft className="h-4 w-4" />
</Button>
</div>
{/* 提示信息 */}
<div className="mt-12 pt-8 border-t border-border">
<p className="text-sm text-muted-foreground">
</p>
</div>
</div>
</div>
)
}