Redesign header: single row with unified search block
All checks were successful
Build Docker Image / build (push) Successful in 3m6s
All checks were successful
Build Docker Image / build (push) Successful in 3m6s
- 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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user