2026-01-07 09:31:02 +00:00
|
|
|
import React from 'react';
|
|
|
|
|
import { useNavigate, useLocation, Link } from 'react-router-dom';
|
2026-01-13 18:47:57 +00:00
|
|
|
import {
|
|
|
|
|
Home,
|
|
|
|
|
Users,
|
|
|
|
|
Disc,
|
|
|
|
|
Radio,
|
|
|
|
|
Settings,
|
|
|
|
|
LogOut,
|
|
|
|
|
ShoppingBag,
|
|
|
|
|
GraduationCap,
|
|
|
|
|
BarChart2,
|
|
|
|
|
Shield,
|
|
|
|
|
Box,
|
|
|
|
|
MessageSquare,
|
|
|
|
|
Cloud,
|
|
|
|
|
Layers,
|
|
|
|
|
Cpu,
|
|
|
|
|
Heart,
|
|
|
|
|
ListMusic,
|
|
|
|
|
CreditCard,
|
|
|
|
|
DollarSign,
|
|
|
|
|
Terminal,
|
|
|
|
|
} from 'lucide-react';
|
2026-01-07 09:31:02 +00:00
|
|
|
import { NavItem } from '../../types';
|
2025-12-26 08:11:41 +00:00
|
|
|
import { useAuthStore } from '@/features/auth/store/authStore';
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
import { useUIStore } from '@/stores/ui';
|
|
|
|
|
import { cn } from '@/lib/utils';
|
2025-12-03 21:56:50 +00:00
|
|
|
|
2026-01-07 09:31:02 +00:00
|
|
|
interface SidebarProps {
|
|
|
|
|
currentView?: string;
|
|
|
|
|
onNavigate?: (viewId: string) => void;
|
|
|
|
|
onLogout?: () => void;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const navItems: { section: string; items: NavItem[] }[] = [
|
|
|
|
|
{
|
|
|
|
|
section: 'My Studio',
|
|
|
|
|
items: [
|
2026-01-13 18:47:57 +00:00
|
|
|
{
|
|
|
|
|
id: 'dashboard',
|
|
|
|
|
label: 'Command Center',
|
|
|
|
|
icon: <Home className="w-4 h-4" />,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'studio',
|
|
|
|
|
label: 'Cloud Files',
|
|
|
|
|
icon: <Cloud className="w-4 h-4" />,
|
|
|
|
|
},
|
2026-01-07 09:31:02 +00:00
|
|
|
{ id: 'tracks', label: 'Projects', icon: <Layers className="w-4 h-4" /> },
|
|
|
|
|
{ id: 'gear', label: 'Gear Locker', icon: <Box className="w-4 h-4" /> },
|
2026-01-13 18:47:57 +00:00
|
|
|
{
|
|
|
|
|
id: 'analytics',
|
|
|
|
|
label: 'Performance',
|
|
|
|
|
icon: <BarChart2 className="w-4 h-4" />,
|
|
|
|
|
},
|
|
|
|
|
],
|
2026-01-07 09:31:02 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
section: 'Veza Network',
|
|
|
|
|
items: [
|
2026-01-13 18:47:57 +00:00
|
|
|
{
|
|
|
|
|
id: 'social',
|
|
|
|
|
label: 'Community Feed',
|
|
|
|
|
icon: <Users className="w-4 h-4" />,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'marketplace',
|
|
|
|
|
label: 'Marketplace',
|
|
|
|
|
icon: <ShoppingBag className="w-4 h-4" />,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'live',
|
|
|
|
|
label: 'Live Sessions',
|
|
|
|
|
icon: <Radio className="w-4 h-4 text-kodo-red" />,
|
|
|
|
|
badge: 3,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'chat',
|
|
|
|
|
label: 'Channels',
|
|
|
|
|
icon: <MessageSquare className="w-4 h-4" />,
|
|
|
|
|
badge: 12,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'education',
|
|
|
|
|
label: 'Academy',
|
|
|
|
|
icon: <GraduationCap className="w-4 h-4" />,
|
|
|
|
|
},
|
|
|
|
|
],
|
2026-01-07 09:31:02 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
section: 'Commerce',
|
|
|
|
|
items: [
|
2026-01-13 18:47:57 +00:00
|
|
|
{
|
|
|
|
|
id: 'sell',
|
|
|
|
|
label: 'Seller Dashboard',
|
|
|
|
|
icon: <DollarSign className="w-4 h-4" />,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'wishlist',
|
|
|
|
|
label: 'Wishlist',
|
|
|
|
|
icon: <Heart className="w-4 h-4" />,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'purchases',
|
|
|
|
|
label: 'Purchases',
|
|
|
|
|
icon: <CreditCard className="w-4 h-4" />,
|
|
|
|
|
},
|
|
|
|
|
],
|
2026-01-07 09:31:02 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
section: 'Library',
|
|
|
|
|
items: [
|
2026-01-13 18:47:57 +00:00
|
|
|
{
|
|
|
|
|
id: 'playlists',
|
|
|
|
|
label: 'Playlists',
|
|
|
|
|
icon: <ListMusic className="w-4 h-4" />,
|
|
|
|
|
},
|
2026-01-07 09:31:02 +00:00
|
|
|
{ id: 'queue', label: 'Play Queue', icon: <Disc className="w-4 h-4" /> },
|
2026-01-13 18:47:57 +00:00
|
|
|
],
|
2026-01-07 09:31:02 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
section: 'System',
|
|
|
|
|
items: [
|
2026-01-13 18:47:57 +00:00
|
|
|
{
|
|
|
|
|
id: 'developer',
|
|
|
|
|
label: 'Developer API',
|
|
|
|
|
icon: <Terminal className="w-4 h-4" />,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'admin',
|
|
|
|
|
label: 'Admin Panel',
|
|
|
|
|
icon: <Shield className="w-4 h-4" />,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2026-01-07 09:31:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
// Mapping des IDs de navigation vers les routes React Router
|
|
|
|
|
const routeMap: Record<string, string> = {
|
|
|
|
|
dashboard: '/dashboard',
|
2026-01-13 18:47:57 +00:00
|
|
|
studio: '/library', // Fixed: was /dashboard
|
2026-01-07 09:31:02 +00:00
|
|
|
tracks: '/library',
|
2026-01-13 18:47:57 +00:00
|
|
|
gear: '/gear', // Fixed: was /dashboard (will create page)
|
2026-01-07 09:31:02 +00:00
|
|
|
analytics: '/analytics',
|
2026-01-13 18:47:57 +00:00
|
|
|
social: '/social', // Fixed: was /dashboard (will create page)
|
2026-01-07 09:31:02 +00:00
|
|
|
marketplace: '/marketplace',
|
2026-01-13 18:47:57 +00:00
|
|
|
live: '/live', // Fixed: was /dashboard (will create page)
|
2026-01-07 09:31:02 +00:00
|
|
|
chat: '/chat',
|
2026-01-13 18:47:57 +00:00
|
|
|
education: '/education', // Fixed: was /dashboard (will create page)
|
2026-01-07 09:31:02 +00:00
|
|
|
sell: '/marketplace',
|
|
|
|
|
wishlist: '/marketplace',
|
|
|
|
|
purchases: '/marketplace',
|
|
|
|
|
playlists: '/playlists',
|
2026-01-13 18:47:57 +00:00
|
|
|
queue: '/queue', // Fixed: was /dashboard (will create page)
|
|
|
|
|
developer: '/developer', // Fixed: was /dashboard (will create page)
|
2026-01-07 09:31:02 +00:00
|
|
|
admin: '/admin',
|
|
|
|
|
settings: '/settings',
|
|
|
|
|
};
|
|
|
|
|
|
2026-01-13 18:47:57 +00:00
|
|
|
export const Sidebar: React.FC<SidebarProps> = ({
|
|
|
|
|
currentView,
|
|
|
|
|
onNavigate,
|
|
|
|
|
onLogout,
|
|
|
|
|
}) => {
|
2026-01-07 09:31:02 +00:00
|
|
|
const navigate = useNavigate();
|
2025-12-03 21:56:50 +00:00
|
|
|
const location = useLocation();
|
2026-01-07 09:31:02 +00:00
|
|
|
const { logout } = useAuthStore();
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
const { sidebarOpen, setSidebarOpen } = useUIStore();
|
|
|
|
|
|
|
|
|
|
const handleMobileNav = () => {
|
2026-01-13 18:47:57 +00:00
|
|
|
if (window.innerWidth < 1024) {
|
|
|
|
|
// lg breakpoint
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
setSidebarOpen(false);
|
|
|
|
|
}
|
|
|
|
|
};
|
2025-12-03 21:56:50 +00:00
|
|
|
|
2026-01-07 09:31:02 +00:00
|
|
|
// Déterminer la vue actuelle depuis l'URL
|
2026-01-13 18:47:57 +00:00
|
|
|
const activeView =
|
|
|
|
|
currentView ||
|
|
|
|
|
Object.keys(routeMap).find((key) => routeMap[key] === location.pathname) ||
|
|
|
|
|
'dashboard';
|
2025-12-03 21:56:50 +00:00
|
|
|
|
2026-01-07 09:31:02 +00:00
|
|
|
const handleLogout = () => {
|
|
|
|
|
logout();
|
|
|
|
|
navigate('/login');
|
|
|
|
|
// Appeler onLogout si fourni (pour compatibilité)
|
|
|
|
|
if (onLogout) {
|
|
|
|
|
onLogout();
|
|
|
|
|
}
|
|
|
|
|
};
|
2025-12-03 21:56:50 +00:00
|
|
|
|
|
|
|
|
return (
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
<>
|
|
|
|
|
{/* Mobile Backdrop */}
|
|
|
|
|
{sidebarOpen && (
|
|
|
|
|
<div
|
|
|
|
|
className="fixed inset-0 bg-black/60 backdrop-blur-sm lg:hidden"
|
|
|
|
|
style={{ zIndex: 'var(--z-modal-backdrop)' }}
|
|
|
|
|
onClick={() => setSidebarOpen(false)}
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
|
2026-01-13 18:47:57 +00:00
|
|
|
<aside
|
|
|
|
|
role="navigation"
|
|
|
|
|
aria-label="Sidebar"
|
|
|
|
|
className={`
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
fixed left-6 top-24 bottom-6 w-64 glass-hud rounded-2xl border-white/10 flex flex-col transition-all duration-500 ease-in-out hud-corner
|
|
|
|
|
${sidebarOpen ? 'translate-x-0 opacity-100' : '-translate-x-full lg:translate-x-0 lg:opacity-100 lg:w-20'}
|
2026-01-13 18:47:57 +00:00
|
|
|
`}
|
|
|
|
|
style={{ zIndex: 'var(--z-fixed)' }}
|
|
|
|
|
>
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
{/* Hub Header Integration */}
|
|
|
|
|
<div className="p-6 border-b border-white/5 flex items-center gap-3">
|
|
|
|
|
<div className="w-8 h-8 rounded bg-kodo-cyan/20 flex items-center justify-center border border-kodo-cyan/30 animate-pulse-glow">
|
|
|
|
|
<Cpu className="w-5 h-5 text-kodo-cyan" />
|
2025-12-03 21:56:50 +00:00
|
|
|
</div>
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
{sidebarOpen && (
|
|
|
|
|
<div className="animate-fadeIn">
|
2026-01-13 18:47:57 +00:00
|
|
|
<h2 className="text-xs font-mono font-bold text-white tracking-widest uppercase">
|
|
|
|
|
System Hub
|
|
|
|
|
</h2>
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
<div className="flex items-center gap-1.5 mt-0.5">
|
|
|
|
|
<span className="w-1 h-1 rounded-full bg-kodo-lime animate-pulse" />
|
2026-01-13 18:47:57 +00:00
|
|
|
<span className="text-[10px] font-mono text-kodo-lime opacity-80 uppercase">
|
|
|
|
|
Active
|
|
|
|
|
</span>
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="flex-1 overflow-y-auto custom-scrollbar p-3 space-y-6 mt-4">
|
|
|
|
|
{navItems.map((group, idx) => (
|
|
|
|
|
<div key={idx} className="mb-4">
|
|
|
|
|
{sidebarOpen && (
|
|
|
|
|
<h3 className="text-[9px] font-mono font-bold text-kodo-cyan/60 uppercase tracking-[0.2em] mb-3 px-3 flex items-center gap-2 animate-fadeIn">
|
|
|
|
|
{group.section}
|
|
|
|
|
</h3>
|
|
|
|
|
)}
|
|
|
|
|
<div className="space-y-1">
|
|
|
|
|
{group.items.map((item) => {
|
|
|
|
|
const route = routeMap[item.id] || '/dashboard';
|
|
|
|
|
const isActive = activeView === item.id;
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Link
|
|
|
|
|
key={item.id}
|
|
|
|
|
to={route}
|
|
|
|
|
title={!sidebarOpen ? item.label : undefined}
|
|
|
|
|
onClick={() => {
|
|
|
|
|
handleMobileNav();
|
|
|
|
|
if (onNavigate) {
|
|
|
|
|
onNavigate(item.id);
|
|
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
className={cn(
|
2026-01-13 18:47:57 +00:00
|
|
|
'w-full flex items-center px-4 py-2.5 rounded-xl text-sm font-medium transition-all duration-300 group relative overflow-hidden',
|
2026-01-15 23:37:53 +00:00
|
|
|
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-kodo-cyan focus-visible:ring-offset-2 focus-visible:ring-offset-kodo-void',
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
isActive
|
2026-01-13 18:47:57 +00:00
|
|
|
? 'glass-hud-active text-kodo-cyan'
|
|
|
|
|
: 'text-kodo-secondary hover:text-white hover:bg-white/5',
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
)}
|
|
|
|
|
>
|
|
|
|
|
{/* Active indicator bar */}
|
|
|
|
|
{isActive && (
|
|
|
|
|
<div className="absolute left-0 top-1 bottom-1 w-1 bg-kodo-cyan rounded-full shadow-[0_0_10px_rgba(102,252,241,0.5)]" />
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<div className="flex items-center gap-3 relative z-10 w-full">
|
2026-01-13 18:47:57 +00:00
|
|
|
<span
|
|
|
|
|
className={cn(
|
aesthetic-improvements: remove excessive hover effects from high-priority files
- Removed scale transforms (hover:scale-[1.02], hover:scale-110, group-hover:scale-110/105) from cards and images
- Removed decorative shadow/glow effects (hover:shadow-neon-cyan/20, hover:shadow-lg) from cards
- Removed hover-lift class (translateY + shadow) from base Card and Button components
- Replaced excessive effects with subtle hover:bg-white/5 or hover:opacity-90
- Preserved functional hover states (group-hover:opacity-100 for play overlays, hover:bg-accent/50 for interactive feedback)
- Updated 14 files: ProductCard, TrackCard, CourseCard, EquipmentCard, PostCard, ProfileView, card.tsx, SearchPage, PlayerControls, OrderSummary, DiscoverView, PlaylistCard, Sidebar, button.tsx
- Effects are now subtle and purposeful, aligning with Surgical Minimalism
- Action 11.4.1.3 complete
2026-01-16 09:34:41 +00:00
|
|
|
'transition-colors duration-200',
|
2026-01-13 18:47:57 +00:00
|
|
|
isActive
|
|
|
|
|
? 'text-kodo-cyan drop-shadow-[0_0_8px_rgba(102,252,241,0.4)]'
|
|
|
|
|
: 'text-kodo-secondary',
|
|
|
|
|
)}
|
|
|
|
|
>
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
{item.icon}
|
|
|
|
|
</span>
|
|
|
|
|
{sidebarOpen && (
|
|
|
|
|
<span className="animate-fadeIn flex-1 truncate">
|
|
|
|
|
{item.label}
|
|
|
|
|
</span>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{item.badge && sidebarOpen && (
|
|
|
|
|
<span className="ml-2 bg-kodo-magenta/20 text-kodo-magenta text-[9px] px-1.5 py-0.5 rounded-full font-mono font-bold border border-kodo-magenta/30">
|
|
|
|
|
{item.badge}
|
|
|
|
|
</span>
|
|
|
|
|
)}
|
|
|
|
|
</Link>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="p-3 border-t border-white/5 bg-white/2">
|
|
|
|
|
<Link
|
|
|
|
|
to="/settings"
|
|
|
|
|
onClick={() => {
|
|
|
|
|
handleMobileNav();
|
|
|
|
|
if (onNavigate) {
|
|
|
|
|
onNavigate('settings');
|
|
|
|
|
}
|
|
|
|
|
}}
|
|
|
|
|
className={cn(
|
2026-01-13 18:47:57 +00:00
|
|
|
'w-full flex items-center gap-3 px-4 py-2.5 text-sm rounded-xl transition-all',
|
2026-01-15 23:37:53 +00:00
|
|
|
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-kodo-cyan focus-visible:ring-offset-2 focus-visible:ring-offset-kodo-void',
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
activeView === 'settings'
|
2026-01-13 18:47:57 +00:00
|
|
|
? 'glass-hud-active text-kodo-cyan'
|
|
|
|
|
: 'text-kodo-secondary hover:text-white hover:bg-white/5',
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
)}
|
|
|
|
|
>
|
|
|
|
|
<Settings className="w-4 h-4" />
|
|
|
|
|
{sidebarOpen && <span className="animate-fadeIn">Settings</span>}
|
|
|
|
|
</Link>
|
|
|
|
|
<button
|
|
|
|
|
onClick={handleLogout}
|
2026-01-16 00:59:31 +00:00
|
|
|
className="w-full flex items-center gap-3 px-4 py-2.5 text-kodo-red/80 hover:text-kodo-red hover:bg-kodo-red/10 rounded-xl transition-all text-sm mt-1 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-400 focus-visible:ring-offset-2 focus-visible:ring-offset-kodo-void"
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
>
|
|
|
|
|
<LogOut className="w-4 h-4" />
|
2026-01-13 18:47:57 +00:00
|
|
|
{sidebarOpen && (
|
|
|
|
|
<span className="animate-fadeIn">Initialize Signout</span>
|
|
|
|
|
)}
|
feat: Visual masterpiece - true light mode & premium UI
🎨 **True Light/Dark Mode**
- Implemented proper light mode with inverted color scheme
- Smooth theme transitions (0.3s ease)
- Light mode colors: white backgrounds, dark text, vibrant accents
- System theme detection with proper class application
🌈 **Enhanced Theme System**
- 4 color themes work in both light and dark modes
- Cyber (cyan/magenta), Ocean (blue/teal), Forest (green/lime), Sunset (orange/purple)
- Theme-specific glassmorphism effects
- Proper contrast in light mode
✨ **Premium Animations**
- Float, glow-pulse, slide-in, scale-in, rotate-in animations
- Smooth page transitions
- Hover effects with depth (lift, glow, scale)
- Micro-interactions on all interactive elements
🎯 **Visual Polish**
- Enhanced glassmorphism for light/dark modes
- Custom scrollbar with theme colors
- Beautiful text selection
- Focus indicators for accessibility
- Premium utility classes
🔧 **Technical Improvements**
- Updated UIStore to properly apply light/dark classes
- Added data-theme attribute for CSS targeting
- Smooth scroll behavior
- Optimized transitions
The app is now a visual masterpiece with perfect light/dark mode support!
2026-01-11 01:32:21 +00:00
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</aside>
|
|
|
|
|
</>
|
2025-12-03 21:56:50 +00:00
|
|
|
);
|
2026-01-07 09:31:02 +00:00
|
|
|
};
|