How jiwon79/macos-web-react works
Main Architecture Components
┌─ User Interface Layer ─────────────────────┐
• Desktop View │
• Menu System │
• Dock │
• Windows │
• ┘
• ↑
┌─ Domain Layer ──────────────────────────┐
• App Domain │
• Window Management │
• Menu Domain │
• Dock Domain │
• ┘
• ↑
┌─ Core Modules Layer ────────────────────┐
• Event Manager │
• Movable │
• Resizable │
• ┘
• ↑
┌─ Utility Layer ──────────────────────────┐
• Browser Utils │
• React Utils │
• Style Utils │
• Type Utils │
• ┘
Component Relationships
• Blue rectangles for UI components
• Green rectangles for domain logic
• Yellow rectangles for core modules
• Gray rectangles for utilities
Specific Components Detail
Window Management System:
┌─ Window System ────────────────────┐
• ┌─ WindowRenderer ─┐ ┌─ Window ─┐ │
• ┘ └──────────┘ │
• ┌─ WindowControl ─┐ ┌─ Resize ─┐ │
• ┘ └──────────┘ │
• ┘
Menu System:
┌─ Menu System ──────────────────────┐
• ┌─ MenuLeft ────┐ ┌─ FloatingMenu┐ │
• Apple Menu │ │ │ │
• Submenus │ │ │ │
• ┘ └──────────────┘ │
• ┘
State Management
A section showing Zustand stores:
┌─ State Management ────────────────┐
• Window Store │
• Calculator Store │
• Theme Store │
• ┘
Key Features to Highlight
• Window Management:
• Movable windows
• Resizable windows
• Window controls (minimize, maximize, close)
• Desktop Experience:
• Dock with applications
• Menu bar system
• Dark mode support
Technical Implementation Details
Technology stack:
┌─ Technology Stack ───────────────┐
• React │
• TypeScript │
• Vanilla Extract (CSS) │
• Zustand (State Management) │
• ┘