style: 更新品牌标识与侧栏切换图标
This commit is contained in:
1 parent
7763170830
commit
a442087ea9
4 files changed
+63
-19
No files matched your search
+13
-13
@@ -14,8 +14,8 @@ import {
|
||||
type MenuOption
|
||||
} from 'naive-ui'
|
||||
import {
|
||||
Archive,
|
||||
Clapperboard,
|
||||
Archive,
|
||||
Camera,
|
||||
Images,
|
||||
Palette,
|
||||
@@ -23,11 +23,12 @@ import {
|
||||
FolderOpen,
|
||||
FileText,
|
||||
Layers,
|
||||
Menu,
|
||||
PanelLeftClose,
|
||||
PanelLeftOpen,
|
||||
Settings2,
|
||||
X
|
||||
} from '@lucide/vue'
|
||||
import { AppDialog } from './components/ui'
|
||||
import { AppDialog, StudioLogo } from './components/ui'
|
||||
import { useTheme } from './composables/useTheme'
|
||||
import ThemeToggle from './components/ui/ThemeToggle.vue'
|
||||
import { projectAccessKey, type ProjectAccess } from './features/projects/access'
|
||||
@@ -195,7 +196,7 @@ const menuOptions = computed<MenuOption[]>(() => {
|
||||
:class="{ 'is-collapsed': collapsed }"
|
||||
aria-label="短剧工作台首页"
|
||||
>
|
||||
<Clapperboard :size="narrow ? NAV_ICON_SIZE : 24" /><span
|
||||
<StudioLogo :size="narrow ? 23 : 27" /><span class="admin-brand-copy"
|
||||
>短剧工作台<small>SHORT DRAMA STUDIO</small></span
|
||||
>
|
||||
</RouterLink>
|
||||
@@ -249,7 +250,9 @@ const menuOptions = computed<MenuOption[]>(() => {
|
||||
aria-controls="main-navigation"
|
||||
@click="toggleNav"
|
||||
>
|
||||
<template #icon><Menu :size="20" /></template>
|
||||
<template #icon
|
||||
><component :is="collapsed ? PanelLeftOpen : PanelLeftClose" :size="20"
|
||||
/></template>
|
||||
</NButton>
|
||||
<span class="truncate text-sm">{{ route.meta.title || '工作空间' }}</span>
|
||||
</div>
|
||||
@@ -362,20 +365,17 @@ const menuOptions = computed<MenuOption[]>(() => {
|
||||
@apply flex shrink-0 items-center gap-3 h-[74px] overflow-hidden py-0 px-5 text-ink whitespace-nowrap;
|
||||
min-width: var(--admin-sider-expanded);
|
||||
}
|
||||
.admin-brand > svg {
|
||||
@apply shrink-0;
|
||||
}
|
||||
.admin-brand span {
|
||||
.admin-brand-copy {
|
||||
@apply text-[15px] font-semibold;
|
||||
opacity: 1;
|
||||
transition:
|
||||
opacity 0.2s ease,
|
||||
transform 0.2s ease;
|
||||
}
|
||||
.admin-sider.is-collapsed .admin-brand span {
|
||||
.admin-sider.is-collapsed .admin-brand-copy {
|
||||
opacity: 0;
|
||||
}
|
||||
.admin-brand small {
|
||||
.admin-brand-copy small {
|
||||
@apply block text-[8px] tracking-[1px] font-normal text-muted mt-[3px];
|
||||
}
|
||||
.admin-topbar {
|
||||
@@ -525,7 +525,7 @@ const menuOptions = computed<MenuOption[]>(() => {
|
||||
.admin-brand {
|
||||
@apply h-12 min-w-0 flex-1 justify-start px-3.5;
|
||||
}
|
||||
.admin-sider.is-collapsed .admin-brand span,
|
||||
.admin-sider.is-collapsed .admin-brand-copy,
|
||||
.admin-sider.is-collapsed .n-menu-item-content-header,
|
||||
.admin-sider.is-collapsed .admin-settings-label {
|
||||
opacity: 1;
|
||||
@@ -545,7 +545,7 @@ const menuOptions = computed<MenuOption[]>(() => {
|
||||
.admin-sider.is-collapsed .admin-sider-footer,
|
||||
.admin-sider .n-menu-item-content-header,
|
||||
.admin-menu-label,
|
||||
.admin-brand span,
|
||||
.admin-brand-copy,
|
||||
.admin-settings-label {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<script setup lang="ts">
|
||||
import { Film, Sparkles } from '@lucide/vue'
|
||||
|
||||
withDefaults(defineProps<{ size?: number }>(), { size: 28 })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span class="studio-logo" :style="{ width: `${size}px`, height: `${size}px` }" aria-hidden="true">
|
||||
<Film class="studio-logo-film" :size="size" :stroke-width="1.8" />
|
||||
<Sparkles class="studio-logo-ai" :size="Math.round(size * 0.46)" :stroke-width="2.4" />
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.studio-logo {
|
||||
position: relative;
|
||||
display: inline-grid;
|
||||
flex: 0 0 auto;
|
||||
place-items: center;
|
||||
color: var(--app-ink);
|
||||
}
|
||||
.studio-logo-film {
|
||||
display: block;
|
||||
}
|
||||
.studio-logo-ai {
|
||||
position: absolute;
|
||||
top: -12%;
|
||||
right: -15%;
|
||||
color: var(--app-accent-text);
|
||||
fill: var(--app-subtle);
|
||||
}
|
||||
</style>
|
||||
@@ -2,6 +2,7 @@
|
||||
export { default as AppDialog } from './AppDialog.vue'
|
||||
export { default as EmptyState } from './EmptyState.vue'
|
||||
export { default as StatusBadge } from './StatusBadge.vue'
|
||||
export { default as StudioLogo } from './StudioLogo.vue'
|
||||
export { default as AssetImage } from './AssetImage.vue'
|
||||
export { default as RevealImage } from './RevealImage.vue'
|
||||
export { default as DirectoryItem } from './DirectoryItem.vue'
|
||||
|
||||
Reference in new issue
Block a user