PagePlaceholder.tsx
1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import type { ReactNode } from 'react';
import { brandAccent } from '@/theme/themeConfig';
interface PagePlaceholderProps {
title: string;
description?: string;
extra?: ReactNode;
}
/** 极简占位页:框架阶段先用,后续逐个替换为真实页面 */
export default function PagePlaceholder({ title, description, extra }: PagePlaceholderProps) {
return (
<div
style={{
flex: 1,
minHeight: 0,
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
background: '#fff',
borderRadius: 12,
border: '1px dashed #E2E7EF',
}}
>
<div
style={{
width: 56,
height: 56,
borderRadius: 16,
background: 'linear-gradient(135deg, rgba(43,92,230,.12), rgba(91,141,239,.18))',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: 24,
fontWeight: 700,
color: brandAccent,
marginBottom: 16,
}}
>
{title.slice(0, 1)}
</div>
<div style={{ fontSize: 18, fontWeight: 600, color: '#1D2533' }}>{title}</div>
{description && (
<div style={{ marginTop: 8, fontSize: 13, color: '#8A94A6' }}>{description}</div>
)}
{extra && <div style={{ marginTop: 24 }}>{extra}</div>}
</div>
);
}