优化首页的ui交互,解决打包生产环境下写入sessionStorage错误,优化权限路由的跳转问题

This commit is contained in:
2025-06-05 14:23:16 +08:00
parent d4ad36c3f2
commit 1835e40526
10 changed files with 77 additions and 55 deletions
+4 -3
View File
@@ -14,15 +14,15 @@
}
.contract-template-search {
padding: 24px;
/* padding: 24px; */
background: var(--gradient-bg);
min-height: 100vh;
min-height: calc(100vh - 90px);
}
.contract-search-results {
padding: 24px;
background: var(--gradient-bg);
min-height: 100vh;
min-height: calc(100vh - 90px);
}
/* 搜索英雄区域 */
@@ -158,6 +158,7 @@
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
padding:8px;
margin-top: 40px;
}
+10 -8
View File
@@ -14,7 +14,8 @@
align-items: center;
padding: 0.75rem 1rem;
background-color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
z-index: 1;
}
.logo-container {
@@ -74,7 +75,6 @@
/* 主要内容区域 */
.index-main-content {
border-radius: 0.5rem 0.5rem 0 0;
height: 100%;
flex: 1;
display: flex;
@@ -98,7 +98,7 @@
transform: translateY(-7rem);
}
.welcome-text {
font-size: 1.75rem;
font-size: 1.95rem;
font-weight: 500;
color: #333;
margin-bottom: 5rem;
@@ -115,9 +115,12 @@
.module-card {
display: flex;
align-items: center;
width: 250px;
padding: 2rem 1.5rem;
background: linear-gradient(to bottom, #ebebeb, #ffffff);
justify-content: flex-start;
gap: 1.5rem;
padding: 0 2rem;
height: 136px;
width: 290px;
background: linear-gradient(180deg, #ebf1f7 0%, #ffffff 100%);
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
@@ -144,8 +147,7 @@
} */
.module-name {
margin-left: 1rem;
font-size: 1.125rem;
font-size: 1.25rem;
font-weight: 500;
color: #333;
}