生产管理系统 - 2种角色的登录

This commit is contained in:
2025-10-31 14:52:30 +08:00
parent 46ff61eaed
commit ad600ce059
7 changed files with 371 additions and 25 deletions

View File

@@ -0,0 +1,32 @@
'use client';
import React from 'react';
import { Loader2 } from 'lucide-react';
interface LoadingScreenProps {
message?: string;
}
export function LoadingScreen({ message = '正在验证用户身份...' }: LoadingScreenProps) {
return (
<div className="min-h-screen flex items-center justify-center bg-gray-50">
<div className="text-center">
<div className="inline-flex items-center justify-center w-16 h-16 bg-green-100 rounded-full mb-4">
<Loader2 className="w-8 h-8 text-green-600 animate-spin" />
</div>
<h2 className="text-xl font-semibold text-gray-900 mb-2"></h2>
<p className="text-gray-600">{message}</p>
{/* 加载进度条 */}
<div className="mt-6 w-64 h-2 bg-gray-200 rounded-full overflow-hidden">
<div className="h-full bg-green-600 rounded-full animate-pulse" style={{ width: '60%' }}></div>
</div>
{/* 提示信息 */}
<div className="mt-8 text-sm text-gray-500 max-w-md">
<p>...</p>
</div>
</div>
</div>
);
}