feat: 統一全系統頁面標題樣式、優化側邊欄與實作角色成員查看功能
This commit is contained in:
36
resources/js/Pages/Error/403.tsx
Normal file
36
resources/js/Pages/Error/403.tsx
Normal file
@@ -0,0 +1,36 @@
|
||||
import { Link } from "@inertiajs/react";
|
||||
import { ShieldAlert, Home } from "lucide-react";
|
||||
|
||||
export default function Error403() {
|
||||
return (
|
||||
<div className="min-h-screen bg-slate-50 flex flex-col items-center justify-center p-6">
|
||||
<div className="max-w-md w-full text-center">
|
||||
{/* 圖示 */}
|
||||
<div className="mb-6 flex justify-center">
|
||||
<div className="w-24 h-24 bg-red-100 rounded-full flex items-center justify-center">
|
||||
<ShieldAlert className="w-12 h-12 text-red-500" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 標題 */}
|
||||
<h1 className="text-3xl font-bold text-slate-900 mb-2">
|
||||
無此權限
|
||||
</h1>
|
||||
|
||||
{/* 說明 */}
|
||||
<p className="text-slate-600 mb-8">
|
||||
您沒有存取此頁面的權限,請洽系統管理員。
|
||||
</p>
|
||||
|
||||
{/* 返回按鈕 */}
|
||||
<Link
|
||||
href="/"
|
||||
className="inline-flex items-center gap-2 px-6 py-3 bg-primary-main text-white rounded-lg hover:bg-primary-dark transition-colors"
|
||||
>
|
||||
<Home className="w-5 h-5" />
|
||||
返回首頁
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user