2026-06-18 08:14:00 -04:00
|
|
|
import { useState } from 'react'
|
2026-06-18 16:50:06 +00:00
|
|
|
import { Routes, Route, useLocation } from 'react-router-dom'
|
2026-06-18 08:14:00 -04:00
|
|
|
import Sidebar from './components/Sidebar'
|
|
|
|
|
import TopBar from './components/TopBar'
|
2026-06-18 16:15:34 +00:00
|
|
|
import Glance from './pages/Glance'
|
|
|
|
|
import Infrastructure from './pages/Infrastructure'
|
2026-06-18 18:10:16 +00:00
|
|
|
import BookNest from './pages/BookNest'
|
2026-06-18 08:14:00 -04:00
|
|
|
|
|
|
|
|
function App() {
|
|
|
|
|
const [sidebarCollapsed, setSidebarCollapsed] = useState(false)
|
2026-06-18 14:45:00 +00:00
|
|
|
const sidebarWidth = sidebarCollapsed ? 64 : 200
|
2026-06-18 16:50:06 +00:00
|
|
|
const location = useLocation()
|
2026-06-18 18:13:26 +00:00
|
|
|
const showHero = location.pathname === '/infrastructure' || location.pathname === '/booknest'
|
2026-06-18 08:14:00 -04:00
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="min-h-screen w-screen overflow-hidden bg-page">
|
|
|
|
|
<Sidebar
|
|
|
|
|
collapsed={sidebarCollapsed}
|
|
|
|
|
onToggle={() => setSidebarCollapsed(!sidebarCollapsed)}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<main
|
2026-06-18 16:50:06 +00:00
|
|
|
className="relative h-screen overflow-hidden"
|
2026-06-18 08:14:00 -04:00
|
|
|
style={{ marginLeft: `${sidebarWidth}px`, width: `calc(100vw - ${sidebarWidth}px)` }}
|
|
|
|
|
>
|
2026-06-18 16:50:06 +00:00
|
|
|
{showHero && (
|
|
|
|
|
<div className="pointer-events-none absolute left-0 right-0 top-0" style={{ height: '300px', zIndex: 0 }}>
|
|
|
|
|
<img
|
|
|
|
|
src="/archnest-hero-banner.png"
|
|
|
|
|
alt=""
|
|
|
|
|
className="absolute inset-0 h-full w-full"
|
|
|
|
|
style={{
|
|
|
|
|
objectFit: 'cover',
|
|
|
|
|
objectPosition: 'center 5%',
|
|
|
|
|
maskImage: 'linear-gradient(to bottom, black 0%, black 55%, transparent 100%)',
|
|
|
|
|
WebkitMaskImage: 'linear-gradient(to bottom, black 0%, black 55%, transparent 100%)',
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<div
|
|
|
|
|
className="absolute inset-0"
|
|
|
|
|
style={{
|
|
|
|
|
background: 'radial-gradient(ellipse 70% 100% at center, transparent 40%, var(--color-page) 100%)',
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<div className="relative" style={{ zIndex: 1 }}>
|
|
|
|
|
<TopBar />
|
|
|
|
|
</div>
|
2026-06-18 08:14:00 -04:00
|
|
|
|
|
|
|
|
<section
|
2026-06-18 16:50:06 +00:00
|
|
|
className="relative flex w-full flex-col overflow-hidden"
|
2026-06-18 16:56:18 +00:00
|
|
|
style={{ height: 'calc(100vh - 56px)', scrollbarWidth: 'none', padding: showHero ? '72px 24px 24px 24px' : '16px 24px 24px 24px', gap: '20px', zIndex: 1 }}
|
2026-06-18 08:14:00 -04:00
|
|
|
>
|
2026-06-18 16:15:34 +00:00
|
|
|
<Routes>
|
|
|
|
|
<Route path="/" element={<Glance />} />
|
|
|
|
|
<Route path="/infrastructure" element={<Infrastructure />} />
|
2026-06-18 18:10:16 +00:00
|
|
|
<Route path="/booknest" element={<BookNest />} />
|
2026-06-18 16:15:34 +00:00
|
|
|
</Routes>
|
2026-06-18 08:14:00 -04:00
|
|
|
</section>
|
|
|
|
|
</main>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default App
|