From 8042db8d7a61cb8ffd7c706dade6ea27f1fe048d Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 18 Apr 2026 01:13:33 +0200 Subject: [PATCH] feat(vacay,journey): apply the same unified toolbar header Wraps the Vacay and Journey desktop headers in the shared rounded bg-tertiary bar (title + divider + subtitle, actions grouped on the right, border and light shadow for contrast). Vacay keeps its filters sidebar-toggle inside the bar on tablet widths; Journey keeps the search-toggle and the primary "Create journey" action. Mobile headers are unchanged. --- client/src/pages/JourneyPage.tsx | 99 +++++++++++++++++++++----------- client/src/pages/VacayPage.tsx | 63 +++++++++++++++++--- 2 files changed, 121 insertions(+), 41 deletions(-) diff --git a/client/src/pages/JourneyPage.tsx b/client/src/pages/JourneyPage.tsx index dbd6d818..c0638322 100644 --- a/client/src/pages/JourneyPage.tsx +++ b/client/src/pages/JourneyPage.tsx @@ -150,39 +150,72 @@ export default function JourneyPage() { )} - {/* Header — desktop */} -
-
-

{t('journey.title')}

-

{t("journey.frontpage.subtitle")}

-
-
- {searchOpen && ( - setSearchQuery(e.target.value)} - onKeyDown={e => { if (e.key === 'Escape') { setSearchQuery(''); setSearchOpen(false) } }} - placeholder={t('journey.search.placeholder')} - autoFocus - className="w-52 px-3 py-2 border border-zinc-200 dark:border-zinc-700 rounded-[10px] text-[13px] bg-white dark:bg-zinc-800 text-zinc-900 dark:text-white focus:border-zinc-400 focus:outline-none" - /> - )} - - + {/* Header — desktop (unified toolbar) */} +
+
+

+ {t('journey.title')} +

+
+ + {t('journey.frontpage.subtitle')} + + +
+ {searchOpen && ( + setSearchQuery(e.target.value)} + onKeyDown={e => { if (e.key === 'Escape') { setSearchQuery(''); setSearchOpen(false) } }} + placeholder={t('journey.search.placeholder')} + autoFocus + className="w-52 px-3 py-2 rounded-[10px] text-[13px] bg-white dark:bg-zinc-800 text-zinc-900 dark:text-white focus:outline-none" + style={{ border: '1px solid var(--border-primary)' }} + /> + )} + + +
diff --git a/client/src/pages/VacayPage.tsx b/client/src/pages/VacayPage.tsx index b3a524ed..fec226c4 100644 --- a/client/src/pages/VacayPage.tsx +++ b/client/src/pages/VacayPage.tsx @@ -138,19 +138,15 @@ export default function VacayPage(): React.ReactElement {
- {/* Header */} -
+ {/* Mobile header */} +
-
-

{t('admin.addons.catalog.vacay.name')}

-

{t('vacay.subtitle')}

-
+

{t('admin.addons.catalog.vacay.name')}

- {/* Mobile sidebar toggle */}
+ {/* Desktop header — unified toolbar */} +
+
+

+ {t('admin.addons.catalog.vacay.name')} +

+
+ + {t('vacay.subtitle')} + +
+ + +
+
+
+ {/* Main layout */}
{/* Desktop Sidebar */}