diff --git a/src/app/meshkee/static-image-slots/route.ts b/src/app/meshkee/static-image-slots/route.ts index 1e26462..10f4986 100644 --- a/src/app/meshkee/static-image-slots/route.ts +++ b/src/app/meshkee/static-image-slots/route.ts @@ -44,12 +44,12 @@ export async function GET() { recommendedWidth: 720, }, { - key: "three-banner-row", - label: "سه بنر دسته‌بندی", + key: "four-banner-row", + label: "چهار بنر دسته‌بندی", kind: "list", pageKey: "home", aspectRatio: "1:1", - itemCount: 3, + itemCount: 4, recommendedWidth: 520, }, { diff --git a/src/app/page.tsx b/src/app/page.tsx index 0cbb518..f8ce984 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,6 +1,6 @@ import HeroSlider from "@/components/HeroSlider"; import SpecialSaleCarousel from "@/components/SpecialSaleCarousel"; -import ThreeBanners from "@/components/ThreeBanners"; +import FourBanners from "@/components/FourBanners"; import TwoBanners from "@/components/TwoBanners"; import TopSellingCarousel from "@/components/TopSellingCarousel"; import FullBanner from "@/components/FullBanner"; @@ -78,7 +78,7 @@ export default async function Home() {
- + diff --git a/src/components/ThreeBanners.tsx b/src/components/FourBanners.tsx similarity index 88% rename from src/components/ThreeBanners.tsx rename to src/components/FourBanners.tsx index 1aff319..eb53a9f 100644 --- a/src/components/ThreeBanners.tsx +++ b/src/components/FourBanners.tsx @@ -6,9 +6,10 @@ const fallbackBanners = [ { image: "/images/categories/girls.svg", href: "#" }, { image: "/images/categories/boys.svg", href: "#" }, { image: "/images/categories/baby.svg", href: "#" }, + { image: "/images/categories/party.svg", href: "#" }, ]; -export default function ThreeBanners({ slot }: { slot?: StaticImageSlot }) { +export default function FourBanners({ slot }: { slot?: StaticImageSlot }) { const images = slot?.images ?? []; const cssAspectRatio = toCssAspectRatio(slot?.aspectRatio); const aspectStyle = cssAspectRatio ? { aspectRatio: cssAspectRatio } : undefined; @@ -22,7 +23,7 @@ export default function ThreeBanners({ slot }: { slot?: StaticImageSlot }) {
-
+
{banners.map((b, i) => { const Wrapper = b.href ? "a" : "div"; return (