mirror of
https://github.com/massbug/judge4c.git
synced 2025-07-03 15:20:50 +00:00
refactor(auth): Relocate unauthorized page
This commit is contained in:
parent
1d27f059da
commit
efaadefa48
@ -1,28 +0,0 @@
|
|||||||
'use client'
|
|
||||||
|
|
||||||
import { Button } from "@/components/ui/button";
|
|
||||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
|
||||||
import { redirect } from "next/navigation";
|
|
||||||
|
|
||||||
|
|
||||||
export default function ForbiddenPage() {
|
|
||||||
const handleGoBack = () => {
|
|
||||||
redirect("/")
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className="flex flex-col items-center justify-center min-h-screen bg-background">
|
|
||||||
<Card className="w-full max-w-md text-center">
|
|
||||||
<CardHeader>
|
|
||||||
<CardTitle className="text-6xl font-bold text-red-500">403</CardTitle>
|
|
||||||
</CardHeader>
|
|
||||||
<CardContent>
|
|
||||||
<p className="text-xl mb-6 text-muted-foreground">你无权访问该页面</p>
|
|
||||||
<Button onClick={handleGoBack} variant="default">
|
|
||||||
返回上一页
|
|
||||||
</Button>
|
|
||||||
</CardContent>
|
|
||||||
</Card>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user