Product pages emit crawler-readable meta, public URLs use id plus Farsi slugs, and the homepage catalog matches the dashboard slot keys. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
1021 B
Plaintext
18 lines
1021 B
Plaintext
---
|
||
description: Keep Meshkee static-image slot catalog in sync with on-page image sizes.
|
||
globs: lib/static-images.ts,app/meshkee/**,components/HeroSlider.tsx,components/Banners.tsx,components/Categories.tsx,components/Brands.tsx,components/AboutUs.tsx,app/page.tsx,app/aboutus/page.tsx
|
||
alwaysApply: false
|
||
---
|
||
|
||
# Static image slot catalog
|
||
|
||
Named homepage slots are defined in `lib/static-images.ts` (`STATIC_IMAGE_SLOT_CATALOG`) and published at `GET /meshkee/static-image-slots`.
|
||
|
||
When you change a slot’s layout, CSS aspect ratio, or displayed width:
|
||
|
||
1. Update that slot’s `aspectRatio` (`W:H`) and `recommendedWidth` in `STATIC_IMAGE_SLOT_CATALOG` in the **same change**.
|
||
2. Keep using `slot.aspectRatio` from the Meshkee API on the rendered frame.
|
||
3. Do not invent upload or CMS APIs. Empty/failed slots keep the local placeholder.
|
||
|
||
Keys: `slider` (duplicatable), `two-banner-below-slider` (2), `categories` (duplicatable), `four-banner` (4), `two-banner-row` (2), `brands` (duplicatable), `about-us-image` (2).
|