Files
ln-bi/src/auth/UnauthorizedPage.tsx
kkfluous e7efe179b7
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: 未授权页面增加两种进入方式说明
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 18:19:18 +08:00

38 lines
1.8 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.
import { ShieldX, Monitor, Smartphone } from 'lucide-react';
export default function UnauthorizedPage({ message }: { message?: string }) {
return (
<div className="min-h-screen bg-[#F8F9FB] flex items-center justify-center p-6">
<div className="text-center max-w-sm">
<div className="w-20 h-20 mx-auto mb-6 rounded-full bg-slate-100 flex items-center justify-center">
<ShieldX size={36} className="text-slate-400" />
</div>
<h1 className="text-lg font-black text-slate-800 mb-2">访</h1>
<p className="text-xs text-slate-400 mb-4">
{message || '获取用户认证信息失败,可能是跳转令牌已过期或无效'}
</p>
<div className="bg-white rounded-2xl border border-slate-100 p-4 text-left space-y-3">
<p className="text-[10px] font-bold text-slate-400 uppercase tracking-wider text-center"></p>
<div className="flex items-start gap-3 p-2.5 rounded-xl bg-slate-50">
<Monitor size={16} className="text-blue-500 flex-shrink-0 mt-0.5" />
<div>
<p className="text-xs font-bold text-slate-700">PC端</p>
<p className="text-[10px] text-slate-400 mt-0.5">BI BI</p>
</div>
</div>
<div className="flex items-start gap-3 p-2.5 rounded-xl bg-slate-50">
<Smartphone size={16} className="text-green-500 flex-shrink-0 mt-0.5" />
<div>
<p className="text-xs font-bold text-slate-700"></p>
<p className="text-[10px] text-slate-400 mt-0.5">BI BI</p>
</div>
</div>
</div>
</div>
</div>
);
}