How s4yush/portfolio works
This is a browser-based macOS-inspired portfolio: users pass through boot/login into an interactive desktop or mobile layout, then launch portfolio apps and use simulated system controls. The graph emphasizes that experience, its shared application catalog and state, and the documented widgets, search, notifications, settings, audio, and personalization. Several UI modules are represented from the tree and README/index; their internal wiring was not sampled, so unverified relationships are omitted.
Main entry points: Desktop.tsx Desktop session · index.tsx Application entry · Mobile.tsx Mobile session · index.ts Shared application state
Components 28
System experience
- Application entry
src/index.tsx - Boot screen
src/pages/Boot.tsx - Login screen
src/pages/Login.tsx
Desktop and mobile UI
- Desktop session
src/pages/Desktop.tsx - Mobile session
src/pages/Mobile.tsx - App windows
src/components/AppWindow.tsx - Dock
src/components/dock/Dock.tsx - Launchpad
src/components/Launchpad.tsx - System menus
src/components/menus/ControlCenterMenu.tsx - Notifications
src/components/NotificationCenter.tsx - Spotlight search
src/components/Spotlight.tsx - Dynamic Island
src/components/DynamicIsland.tsx - Desktop widgets
src/components/widgets/CalendarWidget.tsx - Weather widget
src/components/widgets/WeatherWidget.tsx - Calendar widget
src/components/widgets/CalendarWidget.tsx - About this Mac
src/components/AboutThisMacModal.tsx
Portfolio apps
- System settings UI
src/components/apps/SystemSettings.tsx - App catalog
src/configs/apps.tsx - App experiences
src/components/apps/Finder.tsx - Portfolio content
src/configs/websites.ts
Shared state and services
- Shared application state
src/stores/index.ts - System preferences
src/stores/slices/settings.ts - System state
src/stores/slices/system.ts - Notification state
src/stores/slices/notifications.ts - Audio provider
src/context/AudioContext.tsx - Music configuration
src/configs/music.ts - Viewport sizing
src/hooks/useWindowSize.ts
Other components
- Visitor
Connections 39
- Visitor → Application entry: opens
src/index.tsx - Application entry → Boot screen: renders
src/index.tsx - Application entry → Login screen: renders
src/index.tsx - Application entry → Desktop session: renders
src/index.tsx - Application entry → Mobile session: renders
src/index.tsx - Application entry → Shared application state: reads
src/index.tsx - Application entry → Audio provider: provides
src/index.tsx - Application entry → Viewport sizing: checks viewport
src/index.tsx - Desktop session → App catalog: reads catalog
src/pages/Desktop.tsx - Desktop session → App windows: renders
src/pages/Desktop.tsx - Desktop session → Dynamic Island: renders
src/pages/Desktop.tsx - Desktop session → Notifications: renders
src/pages/Desktop.tsx - Desktop session → Desktop widgets: renders
src/pages/Desktop.tsx - Desktop session → About this Mac: renders
src/pages/Desktop.tsx - Desktop session → Spotlight search: renders
- Desktop session → Launchpad: renders
- Desktop session → Dock: renders
- Desktop session → System menus: renders
- Desktop session → Viewport sizing: checks viewport
src/pages/Desktop.tsx - Desktop session → Shared application state: reads
- Mobile session → App catalog: reads catalog
src/pages/Mobile.tsx - Mobile session → System menus: renders
src/pages/Mobile.tsx - Mobile session → Notifications: renders
src/pages/Mobile.tsx - Mobile session → Shared application state: reads and updates
src/pages/Mobile.tsx - Mobile session → Audio provider: controls audio
src/pages/Mobile.tsx - Mobile session → App experiences: renders selected app
src/pages/Mobile.tsx - App catalog → App experiences: defines content
src/configs/apps.tsx - App catalog → System settings UI: includes
src/configs/apps.tsx - App catalog → Portfolio content: configures links
- Shared application state → System preferences: combines slice
src/stores/index.ts - Shared application state → System state: combines slice
src/stores/index.ts - Shared application state → Notification state: combines slice
src/stores/index.ts - Audio provider → Music configuration: loads configuration
src/context/AudioContext.tsx - Notifications → Calendar widget: renders
src/components/NotificationCenter.tsx - Notifications → Weather widget: renders
src/components/NotificationCenter.tsx - Notifications → Viewport sizing: checks viewport
src/components/NotificationCenter.tsx - Dynamic Island → Music configuration: reads configuration
src/components/DynamicIsland.tsx - Dynamic Island → Audio provider: uses audio
src/components/DynamicIsland.tsx - System settings UI → Shared application state: reads state
src/components/apps/SystemSettings.tsx