Expand each category with body copy, highlights, supply steps, and FAQ in fa/en/ar, and surface livedata oil benchmarks on the oil page. Co-authored-by: Cursor <cursoragent@cursor.com>
2.0 KiB
2.0 KiB
Majd Trading — Project Context
Living document for AI assistants and developers.
Last updated: 2026-09-11 — Enriched product category pages
Overview
Corporate site for Ario Majd Asia International Trading Group (گروه بازرگانی بینالمللی آریو مجد آسیا). Next.js App Router, flat design, fa / en / ar.
| Field | Value |
|---|---|
| Live reference | https://majdtrading.com |
| Stack | Next.js 15, React, TypeScript, Tailwind |
| Locales | fa (RTL, default), en (LTR), ar (RTL) |
| Brand | Primary #1A3851, accent #FF214F |
Product category pages
Route: /{locale}/products/[slug]
Slugs: oil, mineral, food, chemical, livestock, construction
Each page now includes:
- Hero + expanded intro / body copy
- Available goods grid
- Highlights (4 benefits)
- Supply process (4 steps)
- Oil only: live Brent (
400106) + Gas oil (400506) rates from livedata.ir - FAQ (3 Q&As)
- Other categories + inquiry CTA
Where copy lives
- Structure (slugs, images):
src/content/index.ts - Prose (fa/en/ar):
src/i18n/locales/*.jsonunderproducts.categories.<slug> - Category shape:
title,latin,intro,body[],goods[],highlights[],process[],faq[{q,a}] - Shared chrome:
highlightsHeading,processHeading,faqHeading,ratesHeading,ratesNote, …
After editing locales run npm run i18n:check.
Market / oil rates
- Catalogue + display list:
src/lib/market/instruments.ts,displayed.ts - Scraper:
src/lib/market/livedata.ts(revalidate 60s) - Homepage widget:
MarketFrame - Oil product page filters snapshot quotes to Brent + Gas oil only
Key commands
npm run dev
npm run build
npm run i18n:check
Out of scope (still)
- Per-good detail pages / CMS product API
- Contact form backend
- Redesign of homepage category strip