Polish storefront SEO, specials, and homepage UX.
Publish Meshkee sitemap-config, map product-source specials without variants, restore hero autoplay, and tighten page heroes, product images, and section order. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
11d0ba64ed
commit
24b5649abd
+11
-2
@@ -1,3 +1,4 @@
|
||||
import type { Metadata } from "next";
|
||||
import { AboutPreview } from "@/components/home/AboutPreview";
|
||||
import { BannerRow } from "@/components/home/BannerRow";
|
||||
import { BlogCarousel } from "@/components/home/BlogCarousel";
|
||||
@@ -17,6 +18,7 @@ import {
|
||||
refrigeratorPartsFallback,
|
||||
services,
|
||||
showcaseCategories,
|
||||
site,
|
||||
slides,
|
||||
threeBannerRow,
|
||||
twoBannerRow,
|
||||
@@ -28,6 +30,13 @@ import { fetchStaticImageSlots, overlaySlotImages, pickSlot } from "@/lib/static
|
||||
|
||||
export const revalidate = 60;
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: {
|
||||
absolute: `${site.name} | ${site.tagline}`,
|
||||
},
|
||||
description: site.description,
|
||||
};
|
||||
|
||||
export default async function HomePage() {
|
||||
const [slots, consumables, refrigerator, washing, blogs] = await Promise.all([
|
||||
fetchStaticImageSlots("home"),
|
||||
@@ -141,20 +150,20 @@ export default async function HomePage() {
|
||||
subtitle="قطعات مصرفی پرفروش برای تعمیرگاه و مصرفکننده"
|
||||
products={consumables.products.length ? consumables.products : consumablesFallback}
|
||||
/>
|
||||
<CategoryShowcase items={categories.items} aspectRatio={categories.aspectRatio} />
|
||||
<ProductCarousel
|
||||
id="refrigerator-parts"
|
||||
title={refrigerator.special?.title || "قطعات یخچال"}
|
||||
subtitle="قطعات یخچال و فریزر"
|
||||
products={refrigerator.products.length ? refrigerator.products : refrigeratorPartsFallback}
|
||||
/>
|
||||
<AboutPreview image={aboutImage.items[0]} aspectRatio={aboutImage.aspectRatio} />
|
||||
<ProductCarousel
|
||||
id="washing-machine-parts"
|
||||
title={washing.special?.title || "قطعات ماشین لباسشویی"}
|
||||
subtitle="قطعات لباسشویی خانگی و صنعتی"
|
||||
products={washing.products.length ? washing.products : washingMachinePartsFallback}
|
||||
/>
|
||||
<CategoryShowcase items={categories.items} aspectRatio={categories.aspectRatio} />
|
||||
<AboutPreview image={aboutImage.items[0]} aspectRatio={aboutImage.aspectRatio} />
|
||||
<BannerRow banners={fiveBanners.items.slice(0, 2)} columns={2} aspectRatio={fiveBanners.aspectRatio} />
|
||||
<BannerRow banners={fiveBanners.items.slice(2, 5)} columns={3} aspectRatio={fiveBanners.aspectRatio} />
|
||||
<BlogCarousel posts={blogs.items} fallback={blogPosts} />
|
||||
|
||||
Reference in New Issue
Block a user