feat(project-editor): header layout + sticky option

- HeaderConfig gains sticky (default true) and layout ('default'|'centered')
- header editor exposes layout select + sticky toggle
- runtime header component applies static/centered classes from config

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
sdarbinyan
2026-07-17 15:29:55 +04:00
parent b183410888
commit d8456ecb9f
10 changed files with 82 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
export type HeaderLayout = 'default' | 'centered';
export interface HeaderConfig {
showLogo?: boolean;
showSearch?: boolean;
@@ -8,6 +10,8 @@ export interface HeaderConfig {
showWishlist?: boolean;
showCompare?: boolean;
showRegion?: boolean;
sticky?: boolean;
layout?: HeaderLayout;
}
export const DEFAULT_HEADER_CONFIG: Required<HeaderConfig> = {
@@ -20,4 +24,6 @@ export const DEFAULT_HEADER_CONFIG: Required<HeaderConfig> = {
showWishlist: true,
showCompare: true,
showRegion: true,
sticky: true,
layout: 'default',
};