feat: improve user interface layout for better accessibility
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# 授权管理系统 - 前端应用
|
# 溯源管理平台 - 前端应用
|
||||||
|
|
||||||
浙江贝凡企业授权管理系统的前端应用,基于 React + TypeScript + Ant Design。
|
浙江贝凡溯源管理平台的前端应用,基于 React + TypeScript + Ant Design。
|
||||||
|
|
||||||
## 技术栈
|
## 技术栈
|
||||||
|
|
||||||
@@ -25,7 +25,6 @@ frontend/
|
|||||||
│ │ ├── Dashboard.tsx
|
│ │ ├── Dashboard.tsx
|
||||||
│ │ ├── Generate.tsx
|
│ │ ├── Generate.tsx
|
||||||
│ │ ├── Manage.tsx
|
│ │ ├── Manage.tsx
|
||||||
│ │ ├── AdminQuery.tsx
|
|
||||||
│ │ └── Profile.tsx
|
│ │ └── Profile.tsx
|
||||||
│ ├── services/ # API 服务层
|
│ ├── services/ # API 服务层
|
||||||
│ │ └── api.ts
|
│ │ └── api.ts
|
||||||
@@ -99,7 +98,6 @@ VITE_API_BASE_URL=/api
|
|||||||
- 查看序列号列表
|
- 查看序列号列表
|
||||||
- 吊销企业/序列号
|
- 吊销企业/序列号
|
||||||
- 查看序列号二维码
|
- 查看序列号二维码
|
||||||
- 序列号查询
|
|
||||||
- 用户资料管理
|
- 用户资料管理
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>溯源管理系统</title>
|
<title>溯源管理平台</title>
|
||||||
<link rel="icon" type="image/x-icon" href="/src/assets/img/favicon.ico">
|
<link rel="icon" type="image/x-icon" href="/src/assets/img/favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "trace-frontend",
|
"name": "trace-frontend",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "浙江贝凡企业授权管理系统 - 前端",
|
"description": "浙江贝凡溯源管理平台 - 前端",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ function GeneratePage() {
|
|||||||
<div style={{ textAlign: 'center' }}>
|
<div style={{ textAlign: 'center' }}>
|
||||||
<img src={qrCodeDataUrl} alt="QR Code" style={{ width: '200px', height: '200px' }} />
|
<img src={qrCodeDataUrl} alt="QR Code" style={{ width: '200px', height: '200px' }} />
|
||||||
{generatedData.serials && generatedData.serials.length > 0 && (
|
{generatedData.serials && generatedData.serials.length > 0 && (
|
||||||
<p style={{ marginTop: '8px', fontFamily: 'monospace' }}>{generatedData.serials[0].serialNumber}</p>
|
<p style={{ marginTop: '12px', fontFamily: 'monospace', fontSize: '16px', fontWeight: 'bold', color: '#165DFF' }}>{generatedData.serials[0].serialNumber}</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
.login-container {
|
.login-container {
|
||||||
min-height: 100vh;
|
height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
|
background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-card {
|
.login-card {
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
.public-query-container {
|
.public-query-container {
|
||||||
min-height: 100vh;
|
height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: center;
|
||||||
padding: 32px 20px;
|
padding: 20px;
|
||||||
background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
|
background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.query-card {
|
.query-card {
|
||||||
@@ -50,7 +51,7 @@
|
|||||||
.result-card {
|
.result-card {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 480px;
|
max-width: 480px;
|
||||||
padding: 16px;
|
padding: 24px;
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
background: rgba(255, 255, 255, 0.9);
|
background: rgba(255, 255, 255, 0.9);
|
||||||
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
||||||
|
|||||||
Reference in New Issue
Block a user