Sprint 7: add section engine

This commit is contained in:
sdarbinyan
2026-07-05 01:55:41 +04:00
parent d4a5daeb4c
commit 91d9444875
10 changed files with 203 additions and 62 deletions

View File

@@ -1,6 +1,17 @@
import { WidgetConfig } from './widget.model';
export type SectionViewport = 'desktop' | 'tablet' | 'mobile';
export type SectionLayoutStrategy = 'stack' | 'grid' | 'hero' | 'carousel' | 'split';
export interface SectionVisibilityConfig {
desktop?: boolean;
tablet?: boolean;
mobile?: boolean;
}
export interface SectionLayoutConfig {
strategy?: SectionLayoutStrategy;
columns?: number;
gap?: string;
align?: 'start' | 'center' | 'end' | 'stretch';
@@ -11,6 +22,7 @@ export interface SectionConfig {
type: string;
order: number;
layout?: SectionLayoutConfig;
visibility?: SectionVisibilityConfig;
widgets: WidgetConfig[];
featureFlag?: string;
visible?: boolean;