feat(ui): 优化Logo组件设计和交互效果
* 重新设计Logo展示组件 - 添加现代化的渐变背景和容器样式 - 实现图标和文字的渐变色彩效果 - 增加悬停动画和过渡效果 * 改善视觉层次和布局 - 优化间距和对齐方式 - 提升品牌展示效果 * 增强用户交互体验 - 平滑的动画过渡 - 响应式设计适配 提升整体UI美观度和用户体验
This commit is contained in:
parent
4f27534f22
commit
104952336d
@ -9,15 +9,75 @@ const name = import.meta.env.VITE_APP_NAME
|
||||
|
||||
<template>
|
||||
<div
|
||||
class="h-60px text-xl flex-center cursor-pointer gap-2 p-x-2"
|
||||
class="logo-container h-60px cursor-pointer p-x-3"
|
||||
@click="router.push('/')"
|
||||
>
|
||||
<svg-icons-logo class="text-1.5em" />
|
||||
<span
|
||||
<div class="logo-content">
|
||||
<div class="logo-icon">
|
||||
<svg-icons-logo class="text-2em" />
|
||||
</div>
|
||||
<div
|
||||
v-show="!appStore.collapsed"
|
||||
class="text-ellipsis overflow-hidden whitespace-nowrap"
|
||||
>{{ name }}</span>
|
||||
class="logo-text"
|
||||
>
|
||||
{{ name }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
<style scoped>
|
||||
.logo-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.logo-container:hover {
|
||||
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.logo-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
.logo-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 8px;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.logo-icon:hover {
|
||||
transform: scale(1.05);
|
||||
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
letter-spacing: 0.5px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.logo-container:hover .logo-text {
|
||||
transform: translateX(2px);
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user