完善机构终端页面布局与登录页细节调整

This commit is contained in:
2569718930@qq.com
2026-05-25 00:31:11 +08:00
parent fd2531341d
commit b6d7b07708
5 changed files with 749 additions and 308 deletions
@@ -4,101 +4,148 @@ import { Skeleton } from "@/components/ui/skeleton";
export function DashboardShellSkeleton() {
return (
<div
style={{
background:
"radial-gradient(circle at top, rgba(30,41,59,0.45), rgba(2,6,23,0.98) 55%)",
height: "100vh",
overflow: "hidden",
position: "relative",
width: "100vw",
}}
>
<div
style={{
alignItems: "center",
backdropFilter: "blur(16px)",
background: "rgba(10,14,26,0.78)",
borderBottom: "1px solid rgba(99,102,241,0.15)",
display: "flex",
height: 56,
justifyContent: "space-between",
left: 0,
padding: "0 24px",
position: "fixed",
right: 0,
top: 0,
zIndex: 20,
}}
>
<div style={{ display: "flex", flexDirection: "column", gap: 8 }}>
<Skeleton className="h-6 w-40 bg-zinc-700/60" />
<Skeleton className="h-3 w-28 bg-zinc-800/70" />
</div>
<div style={{ display: "flex", gap: 10 }}>
<Skeleton className="h-8 w-20 rounded-full bg-zinc-800/70" />
<Skeleton className="h-8 w-28 rounded-full bg-zinc-800/70" />
</div>
</div>
<div className="flex h-screen w-screen overflow-hidden bg-[#e9edf3] font-sans text-slate-900">
{/* Dark Sidebar */}
<aside className="w-[52px] shrink-0 bg-[#171d24] flex flex-col items-center gap-4 py-4">
{/* Logo Placeholder */}
<div className="w-8 h-8 rounded bg-blue-600/30 animate-pulse" />
{/* Menu Icon */}
<div className="w-6 h-6 rounded bg-slate-700/50" />
{/* Navigation Items */}
{Array.from({ length: 6 }).map((_, i) => (
<div key={i} className="w-8 h-8 rounded bg-slate-700/20" />
))}
</aside>
<div
style={{
bottom: 24,
display: "flex",
gap: 24,
left: 24,
position: "absolute",
right: 24,
top: 80,
}}
>
<div
style={{
display: "flex",
flexDirection: "column",
gap: 14,
maxWidth: 280,
width: "22vw",
}}
>
<Skeleton className="h-10 w-40 rounded-xl bg-zinc-800/80" />
{Array.from({ length: 6 }).map((_, index) => (
<Skeleton
key={index}
className="h-14 w-full rounded-2xl bg-zinc-900/75"
/>
))}
</div>
{/* Main Content Area */}
<div className="flex flex-1 flex-col min-w-0">
{/* Dark Top Header */}
<header className="h-[64px] shrink-0 bg-[#171d24] flex items-center justify-between px-4">
<div className="flex items-center gap-4 w-1/3">
{/* Search Box Skeleton */}
<div className="h-10 w-full max-w-[320px] rounded bg-slate-700/40" />
{/* Title Skeleton */}
<div className="h-4 w-32 rounded bg-slate-700/30 hidden md:block" />
</div>
<div className="flex items-center gap-3">
{/* Clock & Profile Skeletons */}
<div className="h-4 w-16 rounded bg-slate-700/30 font-mono" />
<div className="h-9 w-20 rounded bg-slate-700/40" />
<div className="h-9 w-9 rounded-full bg-slate-700/40" />
</div>
</header>
<div style={{ flex: 1, position: "relative" }}>
<Skeleton className="h-full w-full rounded-[28px] bg-zinc-950/55" />
{Array.from({ length: 8 }).map((_, index) => (
<Skeleton
key={index}
className="absolute rounded-full bg-cyan-500/20"
style={{
height: 18,
left: `${10 + index * 10}%`,
top: `${20 + ((index * 9) % 45)}%`,
width: 18,
}}
/>
))}
</div>
{/* Workspace Body Skeletons (3 Columns) */}
<main className="flex-1 overflow-hidden p-2 grid grid-cols-1 gap-2 xl:grid-cols-[1.12fr_1.6fr_1.1fr]">
{/* Column 1 */}
<div className="flex flex-col gap-2 min-h-0">
{/* Card 1 */}
<div className="flex-1 rounded border border-[#cfd6df] bg-white p-4 flex flex-col gap-3">
<div className="flex justify-between items-center border-b border-slate-100 pb-2">
<Skeleton className="h-4 w-28 bg-slate-200" />
<div className="w-4 h-4 rounded bg-slate-100" />
</div>
<Skeleton className="h-12 w-full bg-slate-100/80 rounded animate-pulse" />
<div className="flex-1 flex flex-col gap-2 mt-2">
{Array.from({ length: 6 }).map((_, idx) => (
<div key={idx} className="flex justify-between items-center">
<Skeleton className="h-4 w-32 bg-slate-100" />
<Skeleton className="h-4 w-12 bg-slate-100" />
</div>
))}
</div>
</div>
{/* Card 2 */}
<div className="h-1/3 rounded border border-[#cfd6df] bg-white p-4 flex flex-col gap-3">
<div className="flex justify-between items-center border-b border-slate-100 pb-2">
<Skeleton className="h-4 w-32 bg-slate-200" />
<div className="w-4 h-4 rounded bg-slate-100" />
</div>
<div className="flex-1 flex flex-col gap-2">
{Array.from({ length: 3 }).map((_, idx) => (
<Skeleton key={idx} className="h-8 w-full bg-slate-100" />
))}
</div>
</div>
</div>
<div
style={{
display: "flex",
flexDirection: "column",
gap: 14,
maxWidth: 420,
width: "30vw",
}}
>
<Skeleton className="h-16 w-full rounded-3xl bg-zinc-900/80" />
<Skeleton className="h-48 w-full rounded-3xl bg-zinc-900/70" />
<Skeleton className="h-32 w-full rounded-3xl bg-zinc-900/70" />
</div>
{/* Column 2 */}
<div className="flex flex-col gap-2 min-h-0">
{/* Card 1 */}
<div className="h-[200px] rounded border border-[#cfd6df] bg-white p-4 flex flex-col gap-3">
<div className="flex justify-between items-center border-b border-slate-100 pb-2">
<Skeleton className="h-4 w-40 bg-slate-200" />
<div className="w-4 h-4 rounded bg-slate-100" />
</div>
<div className="flex items-center gap-4 mt-2">
<div className="flex-1 space-y-2">
<Skeleton className="h-6 w-32 bg-slate-200" />
<Skeleton className="h-3 w-full bg-slate-100" />
<Skeleton className="h-3 w-2/3 bg-slate-100" />
</div>
<Skeleton className="w-32 h-16 bg-slate-100 rounded" />
</div>
</div>
{/* Card 2 */}
<div className="h-[120px] rounded border border-[#cfd6df] bg-white p-4 flex flex-col justify-between">
<Skeleton className="h-4 w-32 bg-slate-200" />
<div className="grid grid-cols-3 gap-2">
<Skeleton className="h-10 w-full bg-slate-100" />
<Skeleton className="h-10 w-full bg-slate-100" />
<Skeleton className="h-10 w-full bg-slate-100" />
</div>
</div>
{/* Card 3 */}
<div className="flex-1 rounded border border-[#cfd6df] bg-white p-4 flex flex-col gap-3">
<div className="flex justify-between items-center border-b border-slate-100 pb-2">
<Skeleton className="h-4 w-28 bg-slate-200" />
<div className="w-4 h-4 rounded bg-slate-100" />
</div>
<div className="flex-1 flex flex-col gap-2">
{Array.from({ length: 5 }).map((_, idx) => (
<Skeleton key={idx} className="h-10 w-full bg-slate-100" />
))}
</div>
</div>
</div>
{/* Column 3 */}
<div className="flex flex-col gap-2 min-h-0">
{/* Card 1 */}
<div className="flex-1 rounded border border-[#cfd6df] bg-white p-4 flex flex-col gap-3">
<div className="flex justify-between items-center border-b border-slate-100 pb-2">
<Skeleton className="h-4 w-24 bg-slate-200" />
<div className="w-4 h-4 rounded bg-slate-100" />
</div>
<div className="flex-1 flex flex-col gap-3">
{Array.from({ length: 6 }).map((_, idx) => (
<Skeleton key={idx} className="h-10 w-full bg-slate-100" />
))}
</div>
</div>
{/* Card 2 */}
<div className="h-1/3 rounded border border-[#cfd6df] bg-white p-4 flex flex-col justify-between">
<div className="flex justify-between items-center border-b border-slate-100 pb-2">
<Skeleton className="h-4 w-36 bg-slate-200" />
<div className="w-4 h-4 rounded bg-slate-100" />
</div>
<div className="grid grid-cols-3 gap-2">
<div className="h-12 bg-slate-100 rounded flex flex-col justify-center items-center gap-1">
<Skeleton className="h-3 w-6 bg-slate-200" />
<Skeleton className="h-2 w-8 bg-slate-200/50" />
</div>
<div className="h-12 bg-slate-100 rounded flex flex-col justify-center items-center gap-1">
<Skeleton className="h-3 w-6 bg-slate-200" />
<Skeleton className="h-2 w-8 bg-slate-200/50" />
</div>
<div className="h-12 bg-slate-100 rounded flex flex-col justify-center items-center gap-1">
<Skeleton className="h-3 w-6 bg-slate-200" />
<Skeleton className="h-2 w-8 bg-slate-200/50" />
</div>
</div>
</div>
</div>
</main>
</div>
</div>
);