完成智慧法务前端调整20250522,还有登录和主页需要完善

This commit is contained in:
2025-05-27 23:48:28 +08:00
parent 742a789244
commit 690d369f57
30 changed files with 1557 additions and 292 deletions
+159 -125
View File
@@ -1,127 +1,161 @@
/**
* 首页特定样式
*/
/* 仪表盘容器 */
.dashboard-container {
@apply p-2;
}
/* 统计卡片 */
.stat-grid {
@apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 p-4;
}
.stat-card {
@apply bg-white rounded-lg p-4 shadow transition-all duration-200 relative;
}
.stat-card:hover {
@apply transform -translate-y-[3px] shadow-[0_4px_15px_rgba(0,0,0,0.1)];
}
.stat-title {
@apply text-sm text-gray-600 mb-2.5;
}
.stat-value {
@apply text-2xl font-semibold text-gray-900 mb-2.5;
}
.stat-trend {
@apply flex items-center text-xs;
}
.stat-trend.trend-up {
@apply text-[#52c41a];
}
.stat-trend.trend-down {
@apply text-[#f5222d];
}
.stat-icon {
@apply absolute right-4 top-4 text-2xl text-[#00684a] opacity-20;
}
/* 快捷访问网格 */
.shortcut-grid {
@apply grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-8 gap-4 p-4;
}
.shortcut-item {
@apply flex flex-col items-center justify-center p-4 bg-white rounded-lg shadow
transition-all duration-200 cursor-pointer text-gray-900 h-24;
}
.shortcut-item:hover {
@apply transform -translate-y-[3px] shadow-[0_4px_12px_rgba(0,0,0,0.1)]
bg-[rgba(0,104,74,0.05)] text-[#00684a];
}
.shortcut-icon {
@apply text-2xl text-[#00684a] mb-2.5;
}
.shortcut-label {
@apply text-sm text-center;
}
/* 文档列表 */
.doc-list {
@apply space-y-3 p-4;
}
.doc-item {
@apply flex justify-between items-center p-3 border border-gray-100 rounded-lg hover:bg-gray-50 transition-colors duration-200;
}
.doc-info {
@apply flex items-center;
}
.doc-icon {
@apply text-2xl mr-3 text-primary;
}
.doc-name {
@apply text-sm font-medium text-gray-800 mb-1;
}
.doc-meta {
@apply text-xs text-gray-500;
}
.doc-status {
@apply flex items-center;
}
/* 卡片样式 */
.dashboard-card {
@apply bg-white rounded-lg shadow p-5 mb-5 transition-all duration-200;
}
.dashboard-card:hover {
@apply transform -translate-y-[3px] shadow-[0_4px_15px_rgba(0,0,0,0.1)];
}
.card-title {
@apply text-base font-semibold mb-4 flex items-center text-gray-900;
}
.card-title i {
@apply text-xl text-[#00684a] mr-2;
}
/* 响应式调整 */
@screen md {
.stat-grid {
@apply grid-cols-2;
/* 主页样式 */
.home-page {
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: #f0f7f4;
}
}
@screen lg {
.stat-grid {
@apply grid-cols-4;
/* 头部样式 */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 2rem;
background-color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
}
.logo-container {
display: flex;
align-items: center;
}
.logo {
height: 36px;
margin-right: 0.75rem;
}
.logo-text {
font-size: 1.125rem;
font-weight: 600;
color: #333;
margin-right: 0.5rem;
}
.logo-text-en {
font-size: 0.75rem;
color: #666;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05rem;
}
.user-info {
display: flex;
align-items: center;
gap: 1.5rem;
}
.datetime {
font-size: 0.875rem;
color: #666;
}
.user {
display: flex;
align-items: center;
gap: 0.5rem;
}
.avatar {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
}
.username {
font-size: 0.875rem;
font-weight: 500;
color: #333;
}
/* 主要内容区域 */
.main-content {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
padding: 3rem 1.5rem;
padding-bottom: 0;
}
.welcome-text {
font-size: 1.75rem;
font-weight: 500;
color: #333;
margin-bottom: 3rem;
text-align: center;
}
.modules-container {
display: flex;
justify-content: center;
gap: 2.5rem;
margin-bottom: 3rem;
}
.module-card {
display: flex;
flex-direction: column;
align-items: center;
width: 250px;
padding: 2rem 1.5rem;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
transition: transform 0.2s, box-shadow 0.2s;
cursor: pointer;
}
.module-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.module-icon {
width: 64px;
height: 64px;
margin-bottom: 1.5rem;
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}
.contract-icon {
background-image: url('/images/contract-icon.svg');
}
.review-icon {
background-image: url('/images/review-icon.svg');
}
.ai-icon {
background-image: url('/images/ai-icon.svg');
}
.module-name {
font-size: 1.125rem;
font-weight: 500;
color: #333;
}
/* 底部山水背景 */
.footer {
height: 200px;
overflow: hidden;
position: relative;
}
.mountains-bg {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('/images/mountains-bg.svg');
background-position: center bottom;
background-repeat: no-repeat;
background-size: cover;
}
+103
View File
@@ -0,0 +1,103 @@
/* 登录页面样式 */
.login-page {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(135deg, #f0f7f4 0%, #c5e8e0 100%);
}
.login-container {
width: 100%;
max-width: 480px;
padding: 2rem;
background-color: white;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.login-header {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 2rem;
}
.login-logo {
height: 60px;
margin-bottom: 1rem;
}
.login-title {
font-size: 1.5rem;
font-weight: 600;
color: #015c42;
text-align: center;
}
.login-subtitle {
font-size: 1.25rem;
font-weight: 500;
color: #333;
margin-bottom: 1.5rem;
text-align: center;
}
.login-form-container {
margin-bottom: 2rem;
}
.login-form {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.form-group label {
font-size: 0.875rem;
font-weight: 500;
color: #555;
}
.form-input {
padding: 0.75rem 1rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
transition: border-color 0.2s;
}
.form-input:focus {
border-color: #2cad7d;
outline: none;
box-shadow: 0 0 0 2px rgba(44, 173, 125, 0.2);
}
.login-button {
margin-top: 1rem;
padding: 0.75rem 1.5rem;
background-color: #2cad7d;
color: white;
border: none;
border-radius: 4px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s;
}
.login-button:hover {
background-color: #1e9668;
}
.login-footer {
text-align: center;
font-size: 0.875rem;
color: #777;
}
+128
View File
@@ -0,0 +1,128 @@
/**
* 首页特定样式
*/
/* 仪表盘容器 */
.dashboard-container {
@apply pt-0;
}
/* 统计卡片 */
.stat-grid {
@apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 p-4;
}
.stat-card {
@apply bg-white rounded-lg p-4 shadow transition-all duration-200 relative;
}
.stat-card:hover {
@apply transform -translate-y-[3px] shadow-[0_4px_15px_rgba(0,0,0,0.1)];
}
.stat-title {
@apply text-sm text-gray-600 mb-2.5;
}
.stat-value {
@apply text-2xl font-semibold text-gray-900 mb-2.5;
}
.stat-trend {
@apply flex items-center text-xs;
}
.stat-trend.trend-up {
@apply text-[#52c41a];
}
.stat-trend.trend-down {
@apply text-[#f5222d];
}
.stat-icon {
@apply absolute right-4 top-4 text-2xl text-[#00684a] opacity-20;
}
/* 快捷访问网格 */
.shortcut-grid {
@apply grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-8 gap-4 p-4;
}
.shortcut-item {
@apply flex flex-col items-center justify-center p-4 bg-white rounded-lg shadow
transition-all duration-200 cursor-pointer text-gray-900 h-24;
}
.shortcut-item:hover {
@apply transform -translate-y-[3px] shadow-[0_4px_12px_rgba(0,0,0,0.1)]
bg-[rgba(0,104,74,0.05)] text-[#00684a];
}
.shortcut-icon {
@apply text-2xl text-[#00684a] mb-2.5;
}
.shortcut-label {
@apply text-sm text-center;
}
/* 文档列表 */
.doc-list {
@apply space-y-3 p-4;
}
.doc-item {
@apply flex justify-between items-center p-3 border border-gray-100 rounded-lg hover:bg-gray-50 transition-colors duration-200;
}
.doc-info {
@apply flex items-center;
}
.doc-icon {
@apply text-2xl mr-3 text-primary;
}
.doc-name {
@apply text-sm font-medium text-gray-800 mb-1;
}
.doc-meta {
@apply text-xs text-gray-500;
}
.doc-status {
@apply flex items-center;
}
/* 卡片样式 */
.dashboard-card {
@apply bg-white rounded-lg shadow p-5 mb-5 transition-all duration-200;
}
.dashboard-card:hover {
@apply transform -translate-y-[3px] shadow-[0_4px_15px_rgba(0,0,0,0.1)];
}
.card-title {
@apply text-base font-semibold mb-4 flex items-center text-gray-900;
}
.card-title i {
@apply text-xl text-[#00684a] mr-2;
}
/* 响应式调整 */
@screen md {
.stat-grid {
@apply grid-cols-2;
}
}
@screen lg {
.stat-grid {
@apply grid-cols-4;
}
}