Dynamic Dashboard Layout with Resizable & Collapsible Panels
Blinkit's internal operational dashboards require highly flexible and customizable layouts to empower power users and optimize workflows. This problem challenges you to build a dynamic dashboard layout comprising a main content area, a left sidebar, and a bottom panel. The core task is to implement robust resizing and collapsing functionality for the sidebar and bottom panel, ensuring a highly responsive and intuitive user experience. This is crucial for power users who need to customize their workspace efficiently to monitor real-time data and manage tasks.
LeftSidebar, a MainContent area, and a BottomPanel.LeftSidebar. A drag handle on its right edge should allow users to adjust its width. The MainContent area should dynamically expand or shrink to fill the remaining horizontal space.BottomPanel. A drag handle on its top edge should allow users to adjust its height. The combined LeftSidebar and MainContent section should dynamically expand or shrink to fill the remaining vertical space.LeftSidebar and BottomPanel must be collapsible and expandable. Provide clear UI controls (e.g., buttons with arrow icons) to toggle their collapsed state.LeftSidebar: Minimum width of 150px.BottomPanel: Minimum height of 100px.LeftSidebar should be on the left, MainContent to its right. The BottomPanel should span the full width below both the LeftSidebar and MainContent.ew-resize for horizontal handles and ns-resize for vertical handles upon hover.LeftSidebar and BottomPanel. When a panel is collapsed, it should occupy a minimal space (e.g., a slim bar) and display an icon to expand it.LeftSidebar and MainContent to resize LeftSidebar's width.BottomPanel and the top section to resize BottomPanel's height.LeftSidebar respects a minimum width of 150px during resizing.BottomPanel respects a minimum height of 100px during resizing.LeftSidebar can be collapsed and expanded via a UI control, reclaiming/restoring space correctly.BottomPanel can be collapsed and expanded via a UI control, reclaiming/restoring space correctly.MainContent area always dynamically fills the remaining available space, both horizontally and vertically.Constraints
100vw, 100vh).mousemove and mouseup events.div elements.LeftSidebar (250px width), BottomPanel (200px height).LeftSidebar (40px width), BottomPanel (30px height).localStorage).Loading editor...