feat: basic layout and pages

- add basic layout with sidebar and main container
- add three menus in sidebar
- add people form page for post people
- add text and image input for recognize people info
- add people table page for show peoples
This commit is contained in:
2025-10-21 11:47:28 +08:00
parent 7c28eda415
commit ddb04ff15e
20 changed files with 1284 additions and 102 deletions

54
src/styles/layout.css Normal file
View File

@@ -0,0 +1,54 @@
/* 布局相关样式 */
.layout-wrapper {
min-height: 100vh;
}
/* 侧栏头部区域 */
.sider-header {
display: flex;
align-items: center;
gap: 10px;
padding: 20px 16px 12px 16px;
color: #e5e7eb;
}
.sider-title {
font-weight: 600;
font-size: 16px;
}
.sider-desc {
font-size: 12px;
color: #a3a3a3;
}
/* 主内容区 */
.main-content {
display: flex;
flex-direction: column;
height: 100%;
}
.content-body {
flex: 1;
padding: 32px;
}
/* 输入面板固定底部 */
.input-panel-wrapper {
position: sticky;
bottom: 0;
background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.9) 40%, rgba(15, 23, 42, 1) 100%);
backdrop-filter: blur(4px);
border-top: 1px solid rgba(255,255,255,0.08);
padding: 16px 24px 24px 24px;
}
.hint-text {
margin-top: 10px;
font-size: 12px;
color: #9ca3af;
}
/* 小屏优化:输入区域内边距更紧凑 */
@media (max-width: 768px) {
.content-body { padding: 16px; }
.input-panel-wrapper { padding: 12px 12px 16px 12px; }
}