From c468bd867941128cc6f86f4fc7f65ad6509618d4 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Thu, 22 Jan 2026 11:38:32 +0700 Subject: [PATCH] Redesign header: single row with unified search block - Merge two rows into one: logo + search block + icons - Search block now contains input and chips together - Input is bigger with larger tokens - Remove hero section from landing page - Update padding to match new header height --- app/components/navigation/MainNavigation.vue | 128 ++++++++++--------- app/layouts/topnav.vue | 8 +- app/pages/index.vue | 35 ----- 3 files changed, 71 insertions(+), 100 deletions(-) diff --git a/app/components/navigation/MainNavigation.vue b/app/components/navigation/MainNavigation.vue index a906231..369ea67 100644 --- a/app/components/navigation/MainNavigation.vue +++ b/app/components/navigation/MainNavigation.vue @@ -1,7 +1,7 @@ diff --git a/app/layouts/topnav.vue b/app/layouts/topnav.vue index 0f04bf8..3bf0e22 100644 --- a/app/layouts/topnav.vue +++ b/app/layouts/topnav.vue @@ -60,7 +60,7 @@ const { } = useCatalogSearch() // Collapsible header for catalog pages -const { headerOffset, isCollapsed } = useScrollCollapse(118) +const { headerOffset, isCollapsed } = useScrollCollapse(130) // Theme state const theme = useState<'cupcake' | 'night'>('theme', () => 'cupcake') @@ -131,10 +131,10 @@ const headerStyle = computed(() => { }) // Main content padding-top to compensate for fixed header -// 90px = MainNav with search (2 rows: top 56px + chips 34px) -// 144px = MainNav + SubNav (orders, seller, settings) +// 130px = MainNav with search block (input + chips in one block) +// 184px = MainNav + SubNav (orders, seller, settings) const mainStyle = computed(() => ({ - paddingTop: (isHomePage.value || isCatalogSection.value) ? '90px' : '144px' + paddingTop: (isHomePage.value || isCatalogSection.value) ? '130px' : '184px' })) // Provide collapsed state to child components (CatalogPage needs it for map positioning) diff --git a/app/pages/index.vue b/app/pages/index.vue index 5c1fc43..d4350e0 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -1,38 +1,5 @@