Files
brb-store/.cursor/rules/static-image-slots.mdc
T

14 lines
758 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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.