chore(ui): redesign interface with SF Pro fonts and modern styling
- Update theme variables and styles for light/dark modes - Implement SF Pro font family across all components - Redesign cards, buttons, forms, and scrollbars - Add backdrop filters and improve visual hierarchy - Optimize spacing, typography, and interactive elements
This commit is contained in:
@@ -98,123 +98,141 @@ export default {
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 64px;
|
||||
top: 48px;
|
||||
bottom: 0;
|
||||
width: 240px;
|
||||
background: var(--sidebar-bg);
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
backdrop-filter: saturate(180%) blur(20px);
|
||||
-webkit-backdrop-filter: saturate(180%) blur(20px);
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.sidebar::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
.sidebar::-webkit-scrollbar-track {
|
||||
background: var(--bg-color);
|
||||
border-radius: 0 8px 8px 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.sidebar::-webkit-scrollbar-thumb {
|
||||
background: var(--primary-color);
|
||||
border-radius: 4px;
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.sidebar::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--sidebar-active-bg);
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
.menu {
|
||||
padding: 16px 0;
|
||||
padding: 8px 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.menu-item {
|
||||
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 12px 24px;
|
||||
color: var(--sidebar-text);
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
text-decoration: none;
|
||||
transition: all 0.3s;
|
||||
margin: 4px 12px;
|
||||
border-radius: 6px;
|
||||
margin: 2px 12px;
|
||||
border-radius: 8px;
|
||||
font-size: 15px;
|
||||
line-height: 1.29;
|
||||
letter-spacing: -0.224px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.menu-item:hover {
|
||||
color: var(--sidebar-text-hover);
|
||||
background: var(--sidebar-bg-hover);
|
||||
color: #ffffff;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.menu-item.active {
|
||||
color: var(--sidebar-text-hover);
|
||||
background: var(--sidebar-active-bg);
|
||||
color: #ffffff;
|
||||
background: var(--primary-color);
|
||||
}
|
||||
|
||||
.menu-icon {
|
||||
font-size: 18px;
|
||||
font-size: 14px;
|
||||
margin-right: 12px;
|
||||
width: 24px;
|
||||
width: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.menu-text {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
font-weight: 400;
|
||||
line-height: 1.29;
|
||||
letter-spacing: -0.224px;
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
padding: 16px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||
padding: 12px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.theme-button {
|
||||
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 10px 16px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: var(--sidebar-text);
|
||||
padding: 8px 15px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
font-size: 14px;
|
||||
line-height: 1.29;
|
||||
letter-spacing: -0.224px;
|
||||
}
|
||||
|
||||
.theme-button:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
color: var(--sidebar-text-hover);
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.theme-icon {
|
||||
font-size: 16px;
|
||||
font-size: 14px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.theme-text {
|
||||
font-weight: 500;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.status-info {
|
||||
padding: 16px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||
padding: 12px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.status-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
gap: 12px;
|
||||
margin-bottom: 8px;
|
||||
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
color: var(--sidebar-text);
|
||||
font-weight: 500;
|
||||
line-height: 1.29;
|
||||
letter-spacing: -0.224px;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.status-item p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: #ff4d4f;
|
||||
}
|
||||
@@ -224,8 +242,11 @@ export default {
|
||||
}
|
||||
|
||||
.status-text {
|
||||
font-size: 14px;
|
||||
color: var(--sidebar-text);
|
||||
font-weight: 500;
|
||||
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-size: 12px;
|
||||
line-height: 1.33;
|
||||
letter-spacing: -0.12px;
|
||||
color: rgba(255, 255, 255, 0.48);
|
||||
font-weight: 400;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -19,58 +19,58 @@
|
||||
<span>v{{ softwareInfo.Version }}</span>
|
||||
</div>
|
||||
<div class="user-profile" @click.stop="toggleMenu">
|
||||
<div class="user-info" ref="userInfoRef">
|
||||
<div class="avatar">{{ username.charAt(0).toUpperCase() }}</div>
|
||||
<span class="username">{{ username }}</span>
|
||||
</div>
|
||||
<div class="user-menu" v-show="menuVisible" @click.stop>
|
||||
<button class="menu-item" @click="showEditUser = true">
|
||||
<i class="fas fa-user-cog"></i>
|
||||
<span>User Settings</span>
|
||||
</button>
|
||||
<button class="menu-item" @click="handleLogout">
|
||||
<i class="fas fa-sign-out-alt"></i>
|
||||
<span>Logout</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="user-info" ref="userInfoRef">
|
||||
<div class="avatar">{{ username.charAt(0).toUpperCase() }}</div>
|
||||
<span class="username">{{ username }}</span>
|
||||
</div>
|
||||
<div v-if="showEditUser" class="modal-overlay" @click="closeEditUserDialog">
|
||||
<div class="modal" @click.stop>
|
||||
<h3>User Settings</h3>
|
||||
<form @submit.prevent="handleEditUserSubmit" class="form">
|
||||
<div class="form-group">
|
||||
<label>Username</label>
|
||||
<input
|
||||
type="text"
|
||||
v-model="editFormData.newUsername"
|
||||
required
|
||||
>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>New Password</label>
|
||||
<input
|
||||
type="password"
|
||||
v-model="editFormData.newPasswd"
|
||||
>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Confirm Password</label>
|
||||
<input
|
||||
type="password"
|
||||
v-model="editFormData.confirmPasswd"
|
||||
>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<button type="button" class="cancel-btn" @click="closeEditUserDialog">Cancel</button>
|
||||
<button type="submit" class="submit-btn" :disabled="loading">
|
||||
{{ loading ? 'Processing...' : 'Submit' }}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
<div class="user-menu" v-show="menuVisible && !showEditUser" @click.stop>
|
||||
<button class="menu-item" @click="showEditUser = true">
|
||||
<i class="fas fa-user-cog"></i>
|
||||
<span>User Settings</span>
|
||||
</button>
|
||||
<button class="menu-item" @click="handleLogout">
|
||||
<i class="fas fa-sign-out-alt"></i>
|
||||
<span>Logout</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="showEditUser" class="modal-overlay" @click="closeEditUserDialog">
|
||||
<div class="modal" @click.stop>
|
||||
<h3>User Settings</h3>
|
||||
<form @submit.prevent="handleEditUserSubmit" class="form">
|
||||
<div class="form-group">
|
||||
<label>Username</label>
|
||||
<input
|
||||
type="text"
|
||||
v-model="editFormData.newUsername"
|
||||
required
|
||||
>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>New Password</label>
|
||||
<input
|
||||
type="password"
|
||||
v-model="editFormData.newPasswd"
|
||||
>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Confirm Password</label>
|
||||
<input
|
||||
type="password"
|
||||
v-model="editFormData.confirmPasswd"
|
||||
>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<button type="button" class="cancel-btn" @click="closeEditUserDialog">Cancel</button>
|
||||
<button type="submit" class="submit-btn" :disabled="loading">
|
||||
{{ loading ? 'Processing...' : 'Submit' }}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -227,15 +227,15 @@ export default {
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
height: 64px;
|
||||
background: var(--card-bg);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||||
height: 56px;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
backdrop-filter: saturate(180%) blur(20px);
|
||||
-webkit-backdrop-filter: saturate(180%) blur(20px);
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 100;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
|
||||
.topbar-left {
|
||||
@@ -244,9 +244,12 @@ export default {
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 24px;
|
||||
font-family: 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-size: 21px;
|
||||
font-weight: 600;
|
||||
color: var(--primary-color);
|
||||
line-height: 1.19;
|
||||
letter-spacing: 0.231px;
|
||||
color: #ffffff;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@@ -264,20 +267,30 @@ export default {
|
||||
}
|
||||
|
||||
.search-box input {
|
||||
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
width: 100%;
|
||||
padding: 10px 40px 10px 16px;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 20px;
|
||||
font-size: 14px;
|
||||
padding: 0px 14px;
|
||||
padding-right: 36px;
|
||||
height: 32px;
|
||||
border: 3px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 11px;
|
||||
font-size: 12px;
|
||||
line-height: 1.33;
|
||||
letter-spacing: -0.12px;
|
||||
transition: all 0.3s;
|
||||
background: var(--bg-color);
|
||||
color: var(--text-color);
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.search-box input::placeholder {
|
||||
color: rgba(255, 255, 255, 0.48);
|
||||
}
|
||||
|
||||
.search-box input:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary-color);
|
||||
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
||||
box-shadow: 0 0 0 2px var(--focus-ring);
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
@@ -285,8 +298,8 @@ export default {
|
||||
right: 12px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 16px;
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
color: rgba(255, 255, 255, 0.48);
|
||||
}
|
||||
|
||||
.topbar-right {
|
||||
@@ -295,11 +308,12 @@ export default {
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.version-info {
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-size: 12px;
|
||||
line-height: 1.33;
|
||||
letter-spacing: -0.12px;
|
||||
color: rgba(255, 255, 255, 0.48);
|
||||
}
|
||||
|
||||
.user-profile {
|
||||
@@ -309,39 +323,45 @@ export default {
|
||||
.user-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
gap: 8px;
|
||||
cursor: pointer;
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
padding: 4px 8px;
|
||||
border-radius: 980px;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.user-info:hover {
|
||||
background-color: rgba(0, 0, 0, 0.05);
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.user-profile:hover .user-info {
|
||||
background-color: rgba(0, 0, 0, 0.05);
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.avatar {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
|
||||
background: var(--primary-color);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
font-size: 12px;
|
||||
line-height: 1.33;
|
||||
letter-spacing: -0.12px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.username {
|
||||
font-size: 14px;
|
||||
color: var(--text-color);
|
||||
font-weight: 500;
|
||||
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-size: 12px;
|
||||
line-height: 1.33;
|
||||
letter-spacing: -0.12px;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
font-weight: 400;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@@ -351,17 +371,19 @@ export default {
|
||||
right: 0;
|
||||
margin-top: 8px;
|
||||
min-width: 180px;
|
||||
background: var(--card-bg);
|
||||
background: rgba(29, 29, 31, 0.95);
|
||||
backdrop-filter: saturate(180%) blur(20px);
|
||||
-webkit-backdrop-filter: saturate(180%) blur(20px);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
box-shadow: var(--card-shadow);
|
||||
overflow: hidden;
|
||||
z-index: 101;
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.user-menu .menu-item {
|
||||
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
width: 100%;
|
||||
padding: 12px 16px;
|
||||
padding: 8px 15px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
@@ -369,16 +391,19 @@ export default {
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
color: var(--text-color);
|
||||
line-height: 1.29;
|
||||
letter-spacing: -0.224px;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.user-menu .menu-item:hover {
|
||||
background-color: rgba(0, 0, 0, 0.05);
|
||||
background-color: var(--primary-color);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.user-menu .menu-item i {
|
||||
font-size: 16px;
|
||||
font-size: 14px;
|
||||
width: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -390,6 +415,7 @@ export default {
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
backdrop-filter: blur(4px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -402,11 +428,15 @@ export default {
|
||||
padding: 24px;
|
||||
width: 90%;
|
||||
max-width: 500px;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
||||
box-shadow: var(--card-shadow);
|
||||
}
|
||||
|
||||
.modal h3 {
|
||||
font-size: 20px;
|
||||
font-family: 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-size: 21px;
|
||||
font-weight: 700;
|
||||
line-height: 1.19;
|
||||
letter-spacing: 0.231px;
|
||||
color: var(--text-color);
|
||||
margin: 0 0 20px 0;
|
||||
}
|
||||
@@ -416,27 +446,34 @@ export default {
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--text-color);
|
||||
font-weight: 600;
|
||||
line-height: 1.29;
|
||||
letter-spacing: -0.224px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.form-group input {
|
||||
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
background: var(--bg-color);
|
||||
padding: 10px 14px;
|
||||
border: 3px solid var(--border-color);
|
||||
border-radius: 11px;
|
||||
font-size: 17px;
|
||||
line-height: 1.47;
|
||||
letter-spacing: -0.374px;
|
||||
background: var(--surface-light);
|
||||
color: var(--text-color);
|
||||
transition: border-color 0.3s;
|
||||
transition: border-color 0.3s, background-color 0.3s;
|
||||
}
|
||||
|
||||
.form-group input:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary-color);
|
||||
box-shadow: 0 0 0 2px var(--focus-ring);
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
@@ -447,27 +484,34 @@ export default {
|
||||
}
|
||||
|
||||
.cancel-btn {
|
||||
padding: 10px 20px;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
padding: 8px 15px;
|
||||
border: 3px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
background: var(--surface-light);
|
||||
color: var(--text-color);
|
||||
cursor: pointer;
|
||||
font-size: 17px;
|
||||
font-weight: 400;
|
||||
line-height: 2.41;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.cancel-btn:hover {
|
||||
background: var(--hover-bg);
|
||||
border-color: var(--primary-color);
|
||||
background: var(--surface-hover);
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
padding: 10px 20px;
|
||||
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
padding: 8px 15px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
border-radius: 8px;
|
||||
background: var(--primary-color);
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
font-size: 17px;
|
||||
font-weight: 400;
|
||||
line-height: 2.41;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
@@ -476,7 +520,7 @@ export default {
|
||||
}
|
||||
|
||||
.submit-btn:disabled {
|
||||
opacity: 0.6;
|
||||
opacity: 0.48;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user