diff --git a/web-admin/src/DecorationEditor.tsx b/web-admin/src/DecorationEditor.tsx index 1011fd8..7cf0565 100644 --- a/web-admin/src/DecorationEditor.tsx +++ b/web-admin/src/DecorationEditor.tsx @@ -39,6 +39,7 @@ type Section = { title: string; subtitle: string; imageUrl: string; + imageUrls: string[]; buttonText: string; buttonUrl: string; sourceType: string; @@ -121,6 +122,7 @@ function createSection(type: SectionType): Section { ? "Industrial products and project-proven solutions for global B2B customers." : "", imageUrl: "", + imageUrls: [], buttonText: type === "HERO" ? "Explore Products" : "", buttonUrl: type === "HERO" ? "/products" : "", sourceType: type === "CONTENT" ? "CASE" : "", @@ -507,8 +509,8 @@ function PreviewSection({ className="pv-hero" style={{ ...style, - backgroundImage: item.imageUrl - ? `linear-gradient(90deg,rgba(0,0,0,.65),rgba(0,0,0,.1)),url(${item.imageUrl})` + backgroundImage: (item.imageUrls?.[0] || item.imageUrl) + ? `linear-gradient(90deg,rgba(0,0,0,.65),rgba(0,0,0,.1)),url(${item.imageUrls?.[0] || item.imageUrl})` : undefined, }} onClick={onSelect} @@ -723,6 +725,9 @@ function SectionSettings({ onChange={(e) => onChange({ imageUrl: e.target.value })} /> + +