From bed903914a6e4bb7e3807dd2510a3237591c0c40 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 18 Jun 2026 18:25:19 +0000 Subject: [PATCH] Restructure BookNest hero header: bigger title, taller Favorites card, Add Bookmark button --- src/App.tsx | 8 +++--- src/components/TopBar.tsx | 9 ++++--- src/pages/BookNest.tsx | 53 ++++++++++++++++++++++++++------------- 3 files changed, 47 insertions(+), 23 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index ff12ffd..ec9f69f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -11,7 +11,9 @@ function App() { const sidebarWidth = sidebarCollapsed ? 64 : 200 const location = useLocation() const showHero = location.pathname === '/infrastructure' || location.pathname === '/booknest' - const heroPaddingTop = location.pathname === '/booknest' ? '240px' : '72px' + const heroPaddingTop = location.pathname === '/booknest' ? '90px' : '72px' + const heroObjectPosition = location.pathname === '/booknest' ? '54% 8%' : 'center 5%' + const topBarHeight = location.pathname === '/booknest' ? 72 : 56 return (
@@ -32,7 +34,7 @@ function App() { className="absolute inset-0 h-full w-full" style={{ objectFit: 'cover', - objectPosition: 'center 5%', + objectPosition: heroObjectPosition, maskImage: 'linear-gradient(to bottom, black 0%, black 55%, transparent 100%)', WebkitMaskImage: 'linear-gradient(to bottom, black 0%, black 55%, transparent 100%)', }} @@ -52,7 +54,7 @@ function App() {
} /> diff --git a/src/components/TopBar.tsx b/src/components/TopBar.tsx index b057cab..483989f 100644 --- a/src/components/TopBar.tsx +++ b/src/components/TopBar.tsx @@ -32,14 +32,17 @@ export default function TopBar() { }, []) return ( -
+
{/* Page Title — pushed away from sidebar edge */}
-

+

{title}

{subtitle && ( -

+

{subtitle}

)} diff --git a/src/pages/BookNest.tsx b/src/pages/BookNest.tsx index 8248a3e..235132f 100644 --- a/src/pages/BookNest.tsx +++ b/src/pages/BookNest.tsx @@ -4,6 +4,7 @@ import { Link2, FolderOpen, Star, + Plus, Server, Bot, Cloud, @@ -269,17 +270,35 @@ export default function BookNest() { } return ( -
- {/* Page stats */} -
- 312 Links - 18 Categories - 12 Favorites -
+
+
+ {/* Page stats + Add Bookmark — main column only, so sidebar can rise above it */} +
+
+ 312 Links + 18 Categories + 12 Favorites +
+ +
-
{/* Main column */} -
+
{/* Quick Access */}
{quickAccess.map((qa) => ( @@ -317,15 +336,15 @@ export default function BookNest() {
- {/* Right sidebar */} -
-
-

Favorites

-
+ {/* Right sidebar — spans both rows so Favorites reaches up near the hero */} +
+
+

Favorites

+
{favorites.map((f) => ( -
- - {f.name} +
+ + {f.name}
))}