14 lines
758 B
Plaintext
14 lines
758 B
Plaintext
---
|
||
description: Keep Meshkee static-image slot catalog in sync with homepage CSS
|
||
globs: "{lib/static-images.ts,app/page.tsx,app/meshkee/**,components/home/**}"
|
||
alwaysApply: false
|
||
---
|
||
|
||
# Static image slots
|
||
|
||
Homepage photos come from Meshkee `GET /tenants/{domain}/website/static-images?pageKey=home`. The dashboard catalog is `GET /meshkee/static-image-slots` (`STATIC_IMAGE_SLOTS` in `lib/static-images.ts`).
|
||
|
||
If you change a slot’s on-page **width, height, or aspect ratio**, update that slot’s `aspectRatio` and `recommendedWidth` in `STATIC_IMAGE_SLOTS` in the same change.
|
||
|
||
Do not invent upload APIs. `url` → `<img src>`, `linkUrl` → wrap in a link, empty/fail → keep the current placeholder. Use `slot.aspectRatio` from the API when present.
|