-
Novalon CMS
+
Novalon CMS
@@ -172,8 +172,8 @@ export function AdminLayout({ children }: { children: React.ReactNode }) {
href="/admin"
className={`flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition-colors ${
pathname === '/admin'
- ? 'bg-gray-900 text-white'
- : 'text-gray-600 hover:bg-gray-100'
+ ? 'bg-dark-bg text-dark-text-primary'
+ : 'text-text-tertiary hover:bg-bg-hover'
}`}
>
@@ -189,8 +189,8 @@ export function AdminLayout({ children }: { children: React.ReactNode }) {
onClick={() => toggleMenu(group.label)}
className={`flex items-center justify-between w-full px-3 py-2.5 rounded-lg text-sm font-medium transition-colors ${
hasActiveChild
- ? 'bg-gray-100 text-gray-900'
- : 'text-gray-600 hover:bg-gray-100'
+ ? 'bg-bg-hover text-text-primary'
+ : 'text-text-tertiary hover:bg-bg-hover'
}`}
>
@@ -212,8 +212,8 @@ export function AdminLayout({ children }: { children: React.ReactNode }) {
href={item.href}
className={`flex items-center gap-3 px-3 py-2 rounded-lg text-sm transition-colors ${
isActive(item.href)
- ? 'bg-gray-900 text-white'
- : 'text-gray-500 hover:bg-gray-100'
+ ? 'bg-dark-bg text-dark-text-primary'
+ : 'text-text-muted hover:bg-bg-hover'
}`}
>
@@ -228,20 +228,20 @@ export function AdminLayout({ children }: { children: React.ReactNode }) {
{/* User info */}
-
+
-
+
{user?.nickname?.charAt(0) || 'A'}
-
+
{user?.nickname || user?.username}
-
{user?.role === 'admin' ? '管理员' : '编辑'}
+
{user?.role === 'admin' ? '管理员' : '编辑'}