Open the leather banner to the full viewport on scroll and align homepage frames.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-10-07 18:26:46 +03:30
co-authored by Cursor
parent f44058bd6e
commit beac5f3b73
11 changed files with 621 additions and 193 deletions
+2 -7
View File
@@ -102,15 +102,10 @@ export function mapHomeSlots(
const heroItems = slotItems(items, "hero-slider", "home.hero");
const heroSlides: HeroSlideData[] =
heroItems.length > 0
? heroItems.map((item, i) => ({
? heroItems.map((item) => ({
id: item.id,
image: item.imageUrl || "/images/home/banners/hero.jpg",
imagePosition:
i === 0
? "object-[center_20%]"
: i === 1
? "object-[center_40%]"
: "object-[center_55%]",
imagePosition: "object-[center_top]",
title: item.nameFa || item.nameEn || "مانا کالکشن",
subtitle: item.nameEn || item.subtext || "",
cta: {