修改登录主页

This commit is contained in:
huanglinhuan
2025-12-08 10:49:49 +08:00
parent 72bce2dbc8
commit 7c2760c1ec
7 changed files with 366 additions and 49 deletions

90
src/components/Navbar.css Executable file
View File

@@ -0,0 +1,90 @@
.navbar {
background: white;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 1000;
}
.navbar-inner {
max-width: 1200px;
margin: 0 auto;
padding: 12px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
margin-right: 16px;
color: #1890ff;
text-decoration: none;
font-weight: 600;
}
.navbar-left {
display: flex;
align-items: center;
gap: 8px;
}
.nav-item {
position: relative;
padding: 8px 10px;
}
.nav-label {
color: #333;
cursor: default;
}
.nav-item:hover .dropdown {
display: block;
}
.dropdown {
display: none;
position: absolute;
top: 36px;
left: 0;
background: white;
border: 1px solid #e8e8e8;
box-shadow: 0 4px 16px rgba(0,0,0,0.1);
border-radius: 6px;
min-width: 160px;
padding: 6px 0;
}
.dropdown-item {
display: block;
padding: 8px 12px;
color: #333;
text-decoration: none;
}
.dropdown-item:hover {
background: #f5f5f5;
}
.navbar-right {
display: flex;
align-items: center;
gap: 12px;
}
.search-input {
padding: 8px 12px;
border: 1px solid #d9d9d9;
border-radius: 4px;
}
.user-area {
display: flex;
align-items: center;
gap: 10px;
}
.username {
color: #666;
}