Initial commit: Hoomat storefront with Meshkee API and static-image slots.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-09-04 15:00:41 +03:30
co-authored by Cursor
commit cfabf3e327
95 changed files with 12651 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
---
description: Keep Meshkee static-image slot catalog aspect ratios in sync with UI
globs: lib/meshkee/static-slots.ts,app/meshkee/static-image-slots/**,app/page.tsx,app/about-us/**,app/components/hero-slider.tsx,app/components/slot-media.tsx,app/components/product-carousel.tsx
alwaysApply: false
---
# Static image slots
When homepage/about (or other) UI image sizes or aspect ratios change during development, update `STATIC_IMAGE_SLOT_CATALOG` in `lib/meshkee/static-slots.ts` (and thus `GET /meshkee/static-image-slots`) so Meshkee’s static-image reader stays accurate.
- Prefer API `slot.aspectRatio` / catalog values; do not invent upload or CMS write APIs.
- Empty or failed slot fetches must keep local placeholders.
- List slots use all `slot.images`; single slots use the first image with a `url`.
- Wrap with `<a>` when `linkUrl` is present; map `titleFa` / `titleEn` / `subtext` to the existing UI copy fields.