Initial commit: BRB Store Next.js storefront with Meshkee image slots.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
---
|
||||
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.
|
||||
Reference in New Issue
Block a user