diff --git a/design-decisions.md b/design-decisions.md index 99115f4..9b2fff1 100644 --- a/design-decisions.md +++ b/design-decisions.md @@ -8,8 +8,8 @@ ## Global Rules (Apply to Every Page) ### Sidebar -- **Expanded width**: 100px (not 80px — needs room for labels) -- **Collapsed width**: 60px (icon only) +- **Expanded width**: 200px (matches mockup proportions — needs room for labels) +- **Collapsed width**: 64px (icon only) - **User can manually collapse/expand** via toggle button (not just responsive) - **Main content margin-left** must match sidebar width exactly diff --git a/src/App.tsx b/src/App.tsx index f535b1b..969b4a2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,7 +7,7 @@ import BottomRow from './components/BottomRow' function App() { const [sidebarCollapsed, setSidebarCollapsed] = useState(false) - const sidebarWidth = sidebarCollapsed ? 60 : 140 + const sidebarWidth = sidebarCollapsed ? 64 : 200 return (
@@ -28,21 +28,31 @@ function App() { >
{/* Hero + KPI overlap — KPI bottom aligns with banner bottom */} -
-
- ArchNest Banner { - const target = e.currentTarget - target.style.display = 'none' - target.parentElement!.classList.add('bg-card') - target.parentElement!.style.height = '260px' - }} - /> -
+
+ ArchNest Banner { + const target = e.currentTarget + target.style.display = 'none' + target.parentElement!.classList.add('bg-card') + }} + /> + {/* Side vignette so the rectangular image blends into the page edges */} +
{/* KPI cards positioned so their bottom edge aligns with banner bottom */}
diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index cd9cb53..e2f5fd4 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -24,7 +24,7 @@ const navItems = [ ] export default function Sidebar({ collapsed, onToggle }: SidebarProps) { - const width = collapsed ? 60 : 140 + const width = collapsed ? 64 : 200 return (